最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - "After paste" event in CkEditor - Stack Overflow

programmeradmin4浏览0评论

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.

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.

Share Improve this question asked Jan 9, 2014 at 9:44 Vito GentileVito Gentile 14.5k11 gold badges64 silver badges97 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 8

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
});
发布评论

评论列表(0)

  1. 暂无评论