Opened 15 years ago
Last modified 15 years ago
#5883 closed Bug
event.editor undefined for "keyup" event — at Initial Version
Reported by: | Nikola | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
Inside the keyup event, the event object contains an editor, but it is undefined.
By not making the editor available, it renders the keyup event useless in cases where there may be variable numbers of editors on the page, and we do not know the editors names ahead of time.
Here is an example. In this case, we assume that this chunk of code is contained inside a loop, and until run-time, we do not know the value of "id".
CKEDITOR.instances[id].on("instanceReady", function(event) {
set keyup event alert(event.editor.name) this correctly gives me the name this.document.on("keyup", function(event) {
alert(event.editor.name); this throws an error, as the editor is undefined.
});
});