Ticket #4746: 4746_2.patch
File 4746_2.patch, 1.8 KB (added by , 14 years ago) |
---|
-
_source/plugins/htmldataprocessor/plugin.js
84 84 delete blockLikeTags.pre; 85 85 var defaultDataFilterRules = 86 86 { 87 elements : {}, 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 }, 88 103 attributeNames : 89 104 [ 90 105 // Event attributes (onXYZ) must not be directly set. They can become -
_source/plugins/wysiwygarea/plugin.js
32 32 { 33 33 this.focus(); 34 34 35 var selection = this.getSelection(); 35 var selection = this.getSelection(), 36 start = selection.getStartElement(), 37 data = evt.data; 38 36 39 if ( checkReadOnly( selection ) ) 37 40 return; 38 41 39 42 var data = evt.data; 40 43 this.fire( 'saveSnapshot' ); 41 44 45 // Creating a 'has inline started' parsing context for the inserted HTML, 46 // This's because we expect leading spaces are left untouched. (#4767) 47 data = '<span cke_temp="1">\ufeff</span>' + data; 48 // Creating proper context for insertion happens inside preformatted block. 49 if ( start.hasAscendant( 'pre', true ) ) 50 data = '<pre cke_context="1">' + data + '</pre>'; 51 42 52 if ( this.dataProcessor ) 43 53 data = this.dataProcessor.toHtml( data ); 44 54