Opened 11 years ago
Closed 9 years ago
#11990 closed Bug (fixed)
Codesnippet checkDirty is true after modify code and then rollback or switch to source and back
Reported by: | Artur Delura | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.4.1 |
Keywords: | Cc: |
Description (last modified by )
- Open code snippet sample with following code i.e. you must modify sample source.
<pre> <code class="language-javascript">a; </code></pre> <pre> <code class="language-sql">a; </code></pre>
- Double click on first codesnippet widget, to open dialog.
- Remove
;
and apply. - Open codesnippet dialog again and rollback changes. Add
;
sign where it was. - Apply changes.
Actual result: Calling method CKEDITOR.instances.editor1.ckeckDirty();
return false
Please note: This happend only when there are two codesnippet widgets.
Change History (3)
comment:1 Changed 11 years ago by
Description: | modified (diff) |
---|---|
Status: | new → confirmed |
Summary: | Codesnippet checkDirty is true after modify code and then rollback → Codesnippet checkDirty is true after modify code and then rollback or switch to source and back |
Version: | → 4.4.1 |
comment:3 Changed 9 years ago by
Resolution: | → fixed |
---|---|
Status: | confirmed → closed |
This problem is no longer reproducible from CKEditor 4.5.0
@a.delura i have modified your description as I think you have meant
checkDirty
.When you start editor with text like "pp", delete p (checkDirty==true) and then type p again you get checkdirty==false. One would expect same behaviour from a widget holding text-like data.
Weird case scenario with above code is that switching to source mode and back causes checkDirty to return true - it is possible that code is invalid and editor modifies it thus you get such result.