Opened 13 years ago
Last modified 11 years ago
#9161 confirmed Bug
[IE]: SCAYT affecting IsDirty
Reported by: | Jakub Ś | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | UI : Spell Checker | Version: | 3.0 |
Keywords: | IE, Review?, HasPatch | Cc: | WebSpellChecker.net |
Description
This is the continuation of #4688
WebSpellChecker team has been reported CheckDirty functionality doesn't work correctly after replacing misspellings with correct word. While preparing solution we discovered additional problem in IE. Here are steps to reproduce:
- Open http://ckeditor.com/demo in any IE
- Enable SCAYT and wait for all misspellings would be underlined
- Change editor's mode to <Source> then to <WYSIWYG>
- Run in console CKEDITOR.instances.editor1.checkDirty()
NOTE: For the above steps you can use api sample
Expected result: checkDirty=false
Actual result: checkDirty=true
Problem has been reproducible in all versions of IE from CKEditor 3.0
Attachments (2)
Change History (6)
Changed 13 years ago by
Attachment: | 4688.patch added |
---|
comment:1 Changed 13 years ago by
Status: | new → confirmed |
---|
comment:2 Changed 12 years ago by
Changed 12 years ago by
Attachment: | 4688.2.patch added |
---|
comment:3 Changed 12 years ago by
Keywords: | Review? HasPatch added |
---|
Here is another patch which address the comments
comment:4 Changed 11 years ago by
Component: | General → UI : Spell Checker |
---|
Unfortunately this patch is not acceptable. It may make the checkDirty function very unstable. For example, if somehow we change the checkDirty function logic, it'll not work well when SCAYT is enabled.
It is clear that the problem is the getSnapshot call, which needs to get fixed by SCAYT on the checkDirty call. Because of this, the logic could be somehow similar, but made in a way that the getSnapshot result is fixed. Something like this (untested... just the relevant "if" part inside the override function):
In this way we don't touch any original functionality of the editor, avoiding any possibility of breaking it.