Changeset 2022
- Timestamp:
- 2008-05-28 22:17:53 (22 months ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 3 modified
-
editor/_source/internals/fckregexlib.js (modified) (1 diff)
-
editor/_source/internals/fckxhtml.js (modified) (1 diff)
-
_whatsnew.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/internals/fckregexlib.js
r1565 r2022 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. -
FCKeditor/trunk/editor/_source/internals/fckxhtml.js
r1920 r2022 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 ) -
FCKeditor/trunk/_whatsnew.html
r2019 r2022 49 49 50 50 51 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2163">#2163</a>] If the FCKConfig.DocType 52 setting points to a HTML DocType then the output won't generate self-closing tags (it will output 53 <img > instead of <img />).</li> 51 54 </ul> 52 55 <p>