Ticket #6588: 6588_2.patch
File 6588_2.patch, 1.2 KB (added by , 13 years ago) |
---|
-
_source/plugins/scayt/plugin.js
46 46 oParams.customDictionaryIds = config.scayt_customDictionaryIds || ''; 47 47 oParams.userDictionaryName = config.scayt_userDictionaryName || ''; 48 48 oParams.sLang = config.scayt_sLang || 'en_US'; 49 oParams.addClass = true; 49 50 50 51 // Introduce SCAYT onLoad callback. (#5632) 51 52 oParams.onLoad = function() … … 505 506 { 506 507 var moreSuggestions = {}, 507 508 mainSuggestions = {}; 508 509 510 // Delete misspelled marker when pasting in editor. (#6588) 511 var dataProcessor = editor.dataProcessor; 512 var addDataFilterRules = 513 { 514 elements : 515 { 516 span : function( element ) 517 { 518 var attrs = element.attributes; 519 if ( attrs[ 'class' ] && attrs[ 'class' ].indexOf( 'scayt-' ) != -1 ) 520 delete element.name; 521 } 522 } 523 }; 524 dataProcessor.dataFilter.addRules( addDataFilterRules ); 525 509 526 // Scayt command. 510 527 var command = editor.addCommand( commandName, commandDefinition ); 511 528