Opened 12 years ago

Last modified 12 years ago

#9558 confirmed New Feature

Allow Additional Line Break In Source View

Reported by: Dave Owned by:
Priority: Normal Milestone:
Component: UI : Source View Version: 3.0
Keywords: Cc:

Description (last modified by Jakub Ś)

I'm a big fan of clean and easily readable source code. I think it would be great to add an additional parameter to CKEditor SetRules() function just below 'breakAfterClose' named additionalBreakAfterClose which would add a 2nd line break after the closing tag. As a result, the SetRules function could allow for an additional line break after certain tags. I believe this could allow users to make their code easier for human eyes to read.

Current Method:

<div>I'm a happy div</div> <div>I'm another happy</div>

Proposed Method with 'additionalBreakAfterClose':

<div>I'm a happy div</div>

<div>I'm a very happy div now</div>

Change History (2)

comment:1 Changed 12 years ago by Dave

My formatting of the "current method" above didn't work. Let me try again:

Current Method:

<div>I'm a happy div</div>
<div>I'm another happy div</div>

Proposed Method with 'additionalBreakAfterClose':

<div>I'm a happy div</div>

<div>I'm a very happy div now</div>

One other thing I thought of is that you could make 'breakAfterClose' accept an integer value for the number of line breaks to add after the closing tag.

Last edited 12 years ago by Dave (previous) (diff)

comment:2 Changed 12 years ago by Jakub Ś

Description: modified (diff)
Status: newconfirmed
Version: 3.6.53.0
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy