Ticket #2765: 2765_5.patch
File 2765_5.patch, 2.4 KB (added by , 15 years ago) |
---|
-
_source/core/htmlparser/element.js
113 113 { 114 114 var attrib = attribsArray[ i ]; 115 115 // IE's treated expand fields as dom attributes, skip it 116 if ( CKEDITOR.env.ie && attrib === '_cke_expando' )116 if ( CKEDITOR.env.ie && attrib[0] === '_cke_expando' ) 117 117 continue; 118 118 writer.attribute( attrib[0], attrib[1] ); 119 119 } -
_source/plugins/fakeobjects/plugin.js
8 8 * in WYSIWYG mode. 9 9 */ 10 10 11 (function() 11 CKEDITOR.plugins.add( 'fakeobjects', 12 { 13 init : function( editor, pluginPath ) 14 { 15 (function() 12 16 { 13 17 var flashExtensionRegex = /\.swf($|#|\?)/i, 14 18 emptyElements = { base:1,col:1,meta:1,link:1,hr:1,br:1,param:1,img:1,area:1,input:1 }, … … 346 350 innerParser.parse( protectedHtml ); 347 351 protectedHtml = innerParser.output.join( '' ); 348 352 } 353 354 //Format protected html which skip plugin:wysiwyg default logic 355 if ( editor.dataProcessor ) 356 protectedHtml = editor.dataProcessor.toDataFormat( protectedHtml ); 349 357 350 358 this.output.push( protectedHtml ); 351 359 return; … … 397 405 } 398 406 }; 399 407 400 CKEDITOR.plugins.add( 'fakeobjects', 401 { 402 init : function( editor, pluginPath ) 403 { 408 })(); 404 409 editor.fakeobjects = new CKEDITOR.plugins.fakeobjects(); 405 410 } 406 411 } ); 407 })(); 412 -
_source/plugins/htmldataprocessor/plugin.js
25 25 // The source data is already HTML, so just return it as is. 26 26 return data; 27 27 }, 28 29 toDataFormat : function( element ) 28 29 /** 30 * 31 * @param {CKEDITOR.dom.element|String} source 32 */ 33 toDataFormat : function( source ) 30 34 { 31 35 var writer = this.writer, 32 fragment = CKEDITOR.htmlParser.fragment.fromHtml( element.getHtml());36 fragment = CKEDITOR.htmlParser.fragment.fromHtml( source.type?source.getHtml() : source); 33 37 34 38 writer.reset(); 35 39