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 Jakub Ś

Status: newpending

I have just tried default editor 4.2 full mode and didn't get this problem.

  1. I have used default standalone editor 4.2
  2. I have opened jquery.html sample which I have modified as you have described - I have set HTML textarea with HTML you have specified. Next I have set enter mode for editor: $( '#editor1' ).ckeditor({enterMode : CKEDITOR.ENTER_BR});

Nothing has happened. No code was removed, no error was thrown.


  1. Please explain exactly a step by step scenario for reproducing this issue.
  2. In which browser does it happen?
  3. Could you perhaps provide reduced HTML page that allows reproducing this issue?

comment:2 Changed 11 years ago by Jakub Ś

Resolution: expired
Status: pendingclosed
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