Ticket #5487: 5487_2.patch

File 5487_2.patch, 670 bytes (added by Garry Yao, 9 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    1414        var nonExitableElementNames = { table:1,pre:1 };
    1515
    1616        // 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;
     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