Ask Question

CKEditor v4: Hook adding a link via dialog

I am having issue with CKEditor v4. I need to hook when a link gets added via the link dialog.
I also use the auto link plugin which converts pasted url automatically to a link and here I can hook the process by insertHtml listener.

CKEDITOR.replace("editor", {
  // ...
  on: {
    insertHtml: handleHtmlInsert,

However the insertHtml does not fire by adding a link via the link dialog… I try also those listeners without success…

insertText: (...args) => console.log("--> ", args),
insertElement: (...args) => console.log("--> ", args),

It seems that the insert happens here… But not really sure - bit lost here (source code on github)



Author´s AnkiCodes image


Last edited on

No answers available yet.