Make WordPress Core

Ticket #16239: editor_plugin.dev.js.patch

File editor_plugin.dev.js.patch, 695 bytes (added by dwright, 13 years ago)

<!--more--> is surrounded by a fully blank line above and a fully blank line below, representing a paragraph

  • wp-includes/js/tinymce/plugins/wordpress/editor_plugin.dev.js

     
    386386                                        o.content = o.content.replace(/<img[^>]+>/g, function(im) {
    387387                                                if (im.indexOf('class="mceWPmore') !== -1) {
    388388                                                        var m, moretext = (m = im.match(/alt="(.*?)"/)) ? m[1] : '';
    389                                                         im = '<!--more'+moretext+'-->';
     389                                                        im = '\n</p><!--more'+moretext+'--></p>\n';
    390390                                                }
    391391                                                if (im.indexOf('class="mceWPnextpage') !== -1)
    392392                                                        im = '<!--nextpage-->';