Ticket #5487: 5487_2.patch
File 5487_2.patch, 670 bytes (added by , 14 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
14 14 var nonExitableElementNames = { table:1,pre:1 }; 15 15 16 16 // Matching an empty paragraph at the end of document. 17 var emptyParagraphRegexp = /\s*<(p|div|address|h\d|center)[^>]*>\s*(?:<br[^>]*>| |\u00A0| )?\s*(:?<\/\1>)? \s*(?=$|<\/body>)/gi;17 var emptyParagraphRegexp = /\s*<(p|div|address|h\d|center)[^>]*>\s*(?:<br[^>]*>| |\u00A0| )?\s*(:?<\/\1>)?(?=\s*$|<\/body>)/gi; 18 18 19 19 function onInsertHtml( evt ) 20 20 {