[wp-trac] [WordPress Trac] #24067: TinyMCE 4.0

WordPress Trac noreply at wordpress.org
Mon Jan 27 06:47:30 UTC 2014


#24067: TinyMCE 4.0
-------------------------+-----------------------
 Reporter:  josh401      |       Owner:  azaozz
     Type:  enhancement  |      Status:  accepted
 Priority:  high         |   Milestone:  3.9
Component:  TinyMCE      |     Version:  3.8
 Severity:  minor        |  Resolution:
 Keywords:               |     Focuses:
-------------------------+-----------------------

Comment (by josh401):

 Hi Andrew,

 I think there is something 'buggy' with the pagebreak button.  If you
 could be so kind as to add it to one of your rows using `pagebreak` (which
 I'm sure you already know).

 The issue comes when switching between the 'visual' and 'text' tabs; after
 you have created the page breaks.

 For example, take this code being inserted into 'visual' mode:

     Page 1
     (click the pagebreak button)
     Page 2
     (click the pagebreak button)
     Page 3

 This results in the following html (on text side):

     First Page<!--nextpage-->Second Page<!--nextpage-->Third Page

 This works great when previewed.
 But.. switch to the visual and back to text.
 You will end up with something like this:

     <!--nextpage-->
     <!--nextpage-->
     First PageSecond PageThird Page

 This will break any pages when viewing on the front end.. if saved in this
 state.

 I noticed when inserting a `wp-more` into the visual side... we get a nice
 little placeholder image.  But if you do the same with the `pagebreak`...
 we get a weird dotted border.

 NOTE: I had to modify the tinymce init filter:

     pagebreak_separator = '<!--nextpage-->';

 This makes the button insert the `<!--nextpage-->` text into the editor.

 That's all I can determine for now.  Thank you for your time!

--
Ticket URL: <https://core.trac.wordpress.org/ticket/24067#comment:97>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list