Opened 11 years ago
Closed 11 years ago
#10722 closed Bug (expired)
Loading an editor with colors and ENTER_BR turned on fails parsing due to page break command
Reported by: | Thomas Jones | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.2 |
Keywords: | Cc: |
Description
Consider the following HTML
<em><u><strong>something ineteresting</strong></u></em><br><br>BUT WAIT, there's more!<br><br><span style="color:#0000CD">AND more</span>
This was generated using CKEditor with default (full) configuration and enterMode = ENTER_BR.
Creating an editor that contains this HTML using the jQuery adapter will fail on the parsing phase of ONLY the span with the color applied inside the PageBreakCommand's match method, specifically on this line:
return parent && parent.name == 'div' && parent.styles[ 'page-break-after' ];
In this case, parent.styles is undefined, presumably due to the fact that the parent is the editor itself.
Loading with any other enter mode or using config.removePlugins="pagebreak" is a workarodun.
Change History (2)
comment:1 Changed 11 years ago by
Status: | new → pending |
---|
comment:2 Changed 11 years ago by
Resolution: | → expired |
---|---|
Status: | pending → closed |
I have just tried default editor 4.2 full mode and didn't get this problem.
$( '#editor1' ).ckeditor({enterMode : CKEDITOR.ENTER_BR});
Nothing has happened. No code was removed, no error was thrown.