Changeset 7208
- Timestamp:
- 08/18/11 21:24:37 (22 months ago)
- Location:
- CKEditor/trunk
- Files:
-
- 2 edited
-
CHANGES.html (modified) (1 diff)
-
_source/plugins/htmldataprocessor/plugin.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/CHANGES.html
r7206 r7208 59 59 <li><a href="http://dev.ckeditor.com/ticket/7619">#7619</a> : [IE] IFrame shim now consolidate editor dialog to avoid having it masked by embeddeds.</li> 60 60 <li><a href="http://dev.ckeditor.com/ticket/7900">#7900</a> : [FF] Copy/Paste table cells no longer breaks Table dialog.</li> 61 <li><a href="http://dev.ckeditor.com/ticket/7243">#7243</a> : Inline JavaScript events may have been corrupted.</li> 61 62 <li>Updated the following language files:<ul> 62 63 <li><a href="http://dev.ckeditor.com/ticket/8128">#8128</a> : Italian;</li> -
CKEditor/trunk/_source/plugins/htmldataprocessor/plugin.js
r6904 r7208 45 45 return false; 46 46 47 // 1. For IE version >=8, empty blocks are displayed correctly themself in wysiwiyg;48 // 2. For the rest, at least table cell and list item need no filler space.49 // (#6248)50 if ( fromSource && CKEDITOR.env.ie &&51 ( document.documentMode > 752 || block.name in CKEDITOR.dtd.tr53 || block.name in CKEDITOR.dtd.$listItem ) )54 return false;47 // 1. For IE version >=8, empty blocks are displayed correctly themself in wysiwiyg; 48 // 2. For the rest, at least table cell and list item need no filler space. 49 // (#6248) 50 if ( fromSource && CKEDITOR.env.ie && 51 ( document.documentMode > 7 52 || block.name in CKEDITOR.dtd.tr 53 || block.name in CKEDITOR.dtd.$listItem ) ) 54 return false; 55 55 56 56 var lastChild = lastNoneSpaceChild( block ); … … 290 290 291 291 var protectElementRegex = /<(a|area|img|input)\b([^>]*)>/gi, 292 protectAttributeRegex = /\b( href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi;292 protectAttributeRegex = /\b(on\w+|href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi; 293 293 294 294 var protectElementsRegex = /(?:<style(?=[ >])[^>]*>[\s\S]*<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi, … … 306 306 return '<' + tag + attributes.replace( protectAttributeRegex, function( fullAttr, attrName ) 307 307 { 308 // Avoid corrupting the inline event attributes (#7243). 308 309 // We should not rewrite the existed protected attributes, e.g. clipboard content from editor. (#5218) 309 if ( attributes.indexOf( 'data-cke-saved-' + attrName ) == -1 )310 if ( !/^on/.test( attrName ) && attributes.indexOf( 'data-cke-saved-' + attrName ) == -1 ) 310 311 return ' data-cke-saved-' + fullAttr + ' ' + fullAttr; 311 312
Note: See TracChangeset
for help on using the changeset viewer.
