[wp-trac] [WordPress Trac] #16239: Improve switching between visual editor and html mode when text set immediately after more tag

WordPress Trac wp-trac at lists.automattic.com
Sun Feb 12 16:11:27 UTC 2012


#16239: Improve switching between visual editor and html mode when text set
immediately after more tag
--------------------------+------------------------
 Reporter:  koopersmith   |       Owner:
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  3.4
Component:  TinyMCE       |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------

Comment (by azaozz):

 Replying to [comment:11 dwright]:

 I meant that rather than replacing <more> with <p><more></p> on post-
 process (i.e. after the DOM has been serialized into a string of HTML
 code), we should insert it in a new paragraph when the "More" button in
 the visual editor is clicked. That way the editor creates a new DOM node
 for it which later is serialized properly.

 The equivalent in the HTML editor would be to insert `"\n\n<more>\n\n"` as
 two line breaks are converted to a <p> by wpautop.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16239#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list