Ticket #4746: 4746.patch
File 4746.patch, 1.6 KB (added by , 14 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
24 24 this.fire( 'saveSnapshot' ); 25 25 26 26 var selection = this.getSelection(), 27 start = selection.getStartElement(), 27 28 data = evt.data; 28 29 30 // Creating a 'has inline started' parsing context for the inserted HTML, 31 // This's because we expect leading spaces are left untouched. (#4767) 32 data = '<span cke_temp="1">\ufeff</span>' + data; 33 // Creating proper context for insertion happens inside preformatted block. 34 if ( start.hasAscendant( 'pre', true ) ) 35 data = '<pre cke_context="1">' + data + '</pre>'; 36 29 37 if ( this.dataProcessor ) 30 38 data = this.dataProcessor.toHtml( data ); 31 39 -
_source/plugins/htmldataprocessor/plugin.js
84 84 delete blockLikeTags.pre; 85 85 var defaultDataFilterRules = 86 86 { 87 elements : 88 { 89 '$' : function( element ) 90 { 91 var attribs = element.attributes; 92 // Elements marked as temporary are to be ignored. 93 if ( attribs.cke_temp ) 94 return false; 95 96 // Elements marked as contextual keep only contents. (#4746) 97 if ( attribs.cke_context ) 98 delete element.name; 99 100 return element; 101 } 102 }, 87 103 attributeNames : 88 104 [ 89 105 // Event attributes (onXYZ) must not be directly set. They can become