Ticket #6002: 6002.patch
File 6002.patch, 1.8 KB (added by , 14 years ago) |
---|
-
_source/plugins/htmldataprocessor/plugin.js
333 333 var protectedHtml = [], 334 334 tempRegex = /<\!--\{cke_temp(comment)?\}(\d*?)-->/g; 335 335 336 var regexes = 337 [ 338 // Script tags will also be forced to be protected, otherwise 339 // IE will execute them. 340 ( /<script[\s\S]*?<\/script>/gi ), 336 var regexes = protectRegexes; 341 337 342 // <noscript> tags (get lost in IE and messed up in FF).343 /<noscript[\s\S]*?<\/noscript>/gi344 ]345 .concat( protectRegexes );346 347 338 // First of any other protection, we must protect all comments 348 339 // to avoid loosing them (of course, IE related). 349 340 // Note that we use a different tag for comments, as we need to … … 409 400 { 410 401 // The source data is already HTML, but we need to clean 411 402 // it up and apply the filter. 403 data = protectSource( data, this.editor.config.defaultProtectedSource.concat( this.editor.config.protectedSource ) ); 412 404 413 data = protectSource( data, this.editor.config.protectedSource );414 415 405 // Before anything, we must protect the URL attributes as the 416 406 // browser may changing them when setting the innerHTML later in 417 407 // the code. … … 484 474 * config.forceSimpleAmpersand = false; 485 475 */ 486 476 CKEDITOR.config.forceSimpleAmpersand = false; 477 478 /** 479 * Protection regexes for script tags. 480 */ 481 CKEDITOR.config.defaultProtectedSource = [ 482 // Script tags will also be forced to be protected, otherwise 483 // IE will execute them. 484 ( /<script[\s\S]*?<\/script>/gi ), 485 486 // <noscript> tags (get lost in IE and messed up in FF). 487 /<noscript[\s\S]*?<\/noscript>/gi 488 ]; 489 No newline at end of file