Ticket #2163: 2163_2.patch
File 2163_2.patch, 2.1 KB (added by , 15 years ago) |
---|
-
_whatsnew.html
41 41 now use sampleposteddata.php in action parameter inside a form.</li> 42 42 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2150">#2150</a>] The searching 43 43 speed of the Find/Replace dialog has been vastly improved.</li> 44 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2163">#2163</a>] If the FCKConfig.DocType 45 setting points to a HTML DocType then the output won't generate self-closing tags (it will output 46 <img > instead of <img />).</li> 44 47 </ul> 45 48 <p> 46 49 Fixed Bugs:</p> -
editor/_source/internals/fckregexlib.js
78 78 79 79 Html4DocType : /HTML 4\.0 Transitional/i , 80 80 DocTypeTag : /<!DOCTYPE[^>]*>/i , 81 HtmlDocType : /DTD HTML/ , 81 82 82 83 // These regex are used to save the original event attributes in the HTML. 83 84 TagsWithEvent : /<[^\>]+ on\w+[\s\r\n]*=[\s\r\n]*?('|")[\s\S]+?\>/g , -
editor/_source/internals/fckxhtml.js
70 70 // Strip the "XHTML" root node. 71 71 sXHTML = sXHTML.substr( 7, sXHTML.length - 15 ).Trim() ; 72 72 73 // Add a space in the tags with no closing tags, like <br/> -> <br /> 74 sXHTML = sXHTML.replace( FCKRegexLib.SpaceNoClose, ' />'); 73 // According to the doctype set the proper end for self-closing tags 74 // HTML: <br> 75 // XHTML: Add a space, like <br/> -> <br /> 76 if (FCKConfig.DocType.length > 0 && FCKRegexLib.HtmlDocType.test( FCKConfig.DocType ) ) 77 sXHTML = sXHTML.replace( FCKRegexLib.SpaceNoClose, '>'); 78 else 79 sXHTML = sXHTML.replace( FCKRegexLib.SpaceNoClose, ' />'); 75 80 76 81 if ( FCKConfig.ForceSimpleAmpersand ) 77 82 sXHTML = sXHTML.replace( FCKRegexLib.ForceSimpleAmpersand, '&' ) ;