Opened 8 years ago
Closed 8 years ago
#14771 closed Bug (invalid)
ev.editor.setKeystroke(CKEDITOR.CTRL + 86, 'pastetext') pasting text into window BEFORE dialog has opened.
Reported by: | ukjezza | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.3.3 |
Keywords: | Cc: |
Description
I'm trying to intercept the CTRL + V keystrokes to open the ckeditor default 'Paste' dialog window.
Steps to reproduce
$(window).load(function() {
CKEDITOR.on('instanceReady', function (ev) {
ev.editor.setKeystroke(CKEDITOR.CTRL + 86, 'pastetext');
});
}
- CTRL + V paste into main editor window
Expected result
'Paste' dialog should pop up ready for text to be pasted into it.
Actual result
Text is pasted into the editor BEFORE 'Paste' dialog has opened.
(Using ckeditor version 4.3.3 in Chrome Version 51.0.2704.106)
I'm sorry but this is a place for reporting CKEditor bugs and not place for seeking advice or support.
If you have CKEditor license, please contact our support team. You also can ask your implementation questions at Stack Overflow.
What you are trying to do can be done with API but you need to focus on key event.