Opened 10 years ago

Last modified 10 years ago

#4158 confirmed New Feature

Changing link target fails to generate event

Reported by: Derek Price 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 (4)

comment:1 Changed 10 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.0

comment:2 Changed 10 years ago by Artur Formella

Keywords: Pending added

Why do you need such event?

comment:3 Changed 10 years ago by Derek Price

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 10 years ago by Frederico Caldeira Knabben

Keywords: Confirmed added; Pending removed
Type: BugNew Feature
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy