Ticket #2333: 2333.patch
File 2333.patch, 2.7 KB (added by , 16 years ago) |
---|
-
_test/automated/tests/fckdataprocessor.html
164 164 dataProcessor.ConvertToDataFormat( document.getElementById('xDiv2'), true, true ) ) ; 165 165 } 166 166 167 function test_ConvertToDataFormat_Character_Transform() 168 { 169 var dataProcessor = new FCKDataProcessor() ; 170 171 assertEquals( 172 '<p><<GetText(Edit)>></p>', 173 dataProcessor.ConvertToDataFormat( document.getElementById('xDiv3'), true, true ) ) ; 174 } 175 167 176 </script> 168 177 </head> 169 178 <body> 170 179 <div id="xDiv1"><p>This is a <strong>test</strong>.</p><p>Another paragraph.</p></div> 171 180 <div id="xDiv2"><p> </p></div> 181 <div id="xDiv3"><p><<GetText(Edit)>></p></div> 172 182 </body> 173 183 </html> -
_whatsnew.html
122 122 posted data page has now the table fixed at 100% width. </li> 123 123 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2396">#2396</a>] SpellerPages 124 124 was causing a "Permission Denied" error in some situations. </li> 125 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2333">#2333</a>] The &gt; 126 character inside text wasn't encoded in Opera and Safari.</li> 125 127 </ul> 126 128 <p> 127 129 <a href="_whatsnew_history.html">See previous versions history</a></p> -
editor/_source/internals/fckxhtmlentities.js
150 150 '"':'quot', 151 151 // '&':'amp', // This entity is automatically handled by the XHTML parser. 152 152 // '<':'lt', // This entity is automatically handled by the XHTML parser. 153 // '>':'gt', // This entity is automatically handled by the XHTML parser.153 '>':'gt', // Opera and Safari don't encode it in their implementation 154 154 'ˆ':'circ', 155 155 '˜':'tilde', 156 156 ' ':'ensp', … … 331 331 } 332 332 else 333 333 { 334 FCKXHtmlEntities.Entities = {} ; 334 FCKXHtmlEntities.Entities = { 335 '>':'gt' // Opera and Safari don't encode it in their implementation 336 } ; 337 sChars = '>'; 335 338 336 339 // Even if we are not processing the entities, we must render the 337 340 // correctly. As we don't want HTML entities, let's use its numeric 338 341 // representation ( ). 339 sChars = ' ' ;342 sChars += ' ' ; 340 343 } 341 344 342 345 // Create the Regex used to find entities in the text.