Ticket #5638: 5638.patch

File 5638.patch, 841 bytes (added by Garry Yao, 10 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    1313        // List of elements in which has no way to move editing focus outside.
    1414        var nonExitableElementNames = { table:1,pre:1 };
    1515
    16         // Matching an empty paragraph at the end of document.
    17         var emptyParagraphRegexp = /\s*<(p|div|address|h\d|center)[^>]*>\s*(?:<br[^>]*>|&nbsp;|\u00A0|&#160;)?\s*(:?<\/\1>)?\s*(?=$|<\/body>)/gi;
     16        // Matching an empty paragraph or sinlge line-break at the end of document.
     17        var emptyParagraphRegexp = /\s*(:?<(p|div|address|h\d|center)[^>]*>\s*)?(?:<br[^>]*>|&nbsp;|\u00A0|&#160;)?\s*(:?<\/\1>)?\s*(?=$|<\/body>)/gi;
    1818
    1919        function onInsertHtml( evt )
    2020        {
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy