Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html (revision 6438)
+++ /CKEditor/trunk/CHANGES.html (revision 6439)
@@ -55,4 +55,5 @@
#7092 : Corrupted toolbar button state for inline style after switch to source.
#7168 : Editor destroying logic flaws.
+ #6921 : Pasted text marked by SCAYT in one language is not re-checked if another spellchecking language is selected in editor.
Updated the following language files:
- #7124 : Czech;
Index: /CKEditor/trunk/_source/plugins/scayt/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/scayt/plugin.js (revision 6438)
+++ /CKEditor/trunk/_source/plugins/scayt/plugin.js (revision 6439)
@@ -505,4 +505,20 @@
init : function( editor )
{
+ // Delete span[data-scaytid] when text pasting in editor (#6921)
+ var dataFilter = editor.dataProcessor && editor.dataProcessor.dataFilter;
+ var dataFilterRules =
+ {
+ elements :
+ {
+ span : function( element )
+ {
+ var attrs = element.attributes;
+ if ( attrs && attrs[ 'data-scaytid' ] )
+ delete element.name;
+ }
+ }
+ };
+ dataFilter && dataFilter.addRules( dataFilterRules );
+
var moreSuggestions = {},
mainSuggestions = {};