Ticket #4158 (confirmed New Feature)

Opened 5 years ago

Last modified 5 years ago

Changing link target fails to generate event

Reported by: dprice Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0 RC
Keywords: Cc:

Description

I think this should be generating at least an 'insertHtml' event?

Change History

comment:1 Changed 5 years ago by fredck

  • Milestone CKEditor 3.0 deleted

comment:2 Changed 5 years ago by arczi

  • Keywords Pending added

Why do you need such event?

comment:3 Changed 5 years ago by dprice

Well, if I could catch a single change event, as I requested in issue #4159, I wouldn't. As I noted in issue #4159, I am currently trying to catch virtual "change" events on two different forms, like this:

    oEditor.on ('setData', updateLinksTimer);
    oEditor.on ('insertHtml', updateLinksTimer);
    oEditor.on ('insertElement', updateLinksTimer);
    oEditor.on ('loadSnapshot', updateLinksTimer);
    oEditor.on ('key', updateLinksTimer);
    oEditor.on ('afterUndo', updateLinksTimer);
    oEditor.on ('afterRedo', updateLinksTimer);

I use this virtual "change" event to update, on one form, a preview frame, and on another, a list of the URLs linked via A tags (I also post-process the URLs to verify validity and display the content of the linked page to users for visual verification, as well as adding some other form options to each link).

Since I can't catch the link edit event, it generates a change to the editor content that I can't use to update the relevant fields.

comment:4 Changed 5 years ago by fredck

  • Keywords Confirmed added; Pending removed
  • Type changed from Bug to New Feature
Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy