Is it possible to intercept an event that is fired after pasting something in CkEditor?
I know that it's possible to use the paste
event, that is fired before that some content is inserted in the editor; what I'm looking for is an event that is fired after inserting contents.
I found the solution in this page of the official forum of CkEditor.
The event I was looking for is provided by the framework, and it is called afterPaste
.
You can use it as the following example shows:
editor.on('afterPaste', function (event) {
//Do what you want
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With