-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #666 from ckeditor/t/554
First alteration of a text after pasting (ctrl+v) does not trigger 'change' event
- Loading branch information
Showing
5 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<div id="editor1"> | ||
<p>Paste something here:</p> | ||
</div> | ||
<div id="changes"></div> | ||
|
||
<script> | ||
var i = 1; | ||
var changes = document.getElementById( 'changes' ); | ||
CKEDITOR.replace( 'editor1' ).on("change", function () { | ||
var elem = document.createElement( 'div' ); | ||
elem.innerText = 'changes ' + i++; | ||
changes.appendChild( elem ); | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@bender-tags: 554, 4.7.3, bug | ||
@bender-ui: collapsed | ||
@bender-ckeditor-plugins: undo,clipboard,basicstyles,toolbar,wysiwygarea | ||
|
||
---- | ||
|
||
1. Paste some text into the editor. | ||
2. Type a single character after pasting. | ||
|
||
**Expected:** There should be exactly two change events shown below the editor. |