It is not possible to prevent text from dropping.
Steps to reproduce
- Use below code in CKEditor
CKEDITOR.replace( 'editor1', {
on: {
instanceReady: function( evt ) {
evt.editor.document.on( 'drop', function(ev){
console.log('precented');
ev.data.$.preventDefault();
});
}
}
} );
- Select and D&D some text.
Expected result
Text should not be dropped.
Actual result
Text is dropped.
Other details (browser, OS, CKEditor version, installed plugins)
Happens in all browsers starting from CKEditor 4.5.0
Change History (6)
Milestone: |
→ CKEditor 4.5.5
|
Keywords: |
Support added
|
Milestone: |
CKEditor 4.5.5
|
Status: |
new →
confirmed
|
Milestone: |
→ CKEditor 4.5.5
|
Owner: |
set to Tomasz Jakut
|
Status: |
confirmed →
assigned
|
Status: |
assigned →
review
|
Resolution: |
→ fixed
|
Status: |
review →
closed
|
There wasn't any check if the event hadn't been prevented in the drop handler. Pushed fix to branch:t/13879.