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 )
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:2 Changed 12 years ago by
Description: | modified (diff) |
---|---|
Status: | new → confirmed |
Version: | 3.6.5 → 3.0 |
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.