Looks like the CKeditor wrapper must have a bug. the isNode() method is never invoked on the plugins, seems it never accurs?
As really a lot of users start to use CKeditor (iam not..), iam marking it as urgent

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

miro_dietiker’s picture

Confirm this to be an issue. Missing e.g. active icon mark for current markup item.

TwoD’s picture

Priority: Critical » Normal

I did not make a call to isNode in partly because CKEditor seems to have moved away from highlighting buttons depending on the selection. Note that their own image button does not highlight when an image is selected, but it does add a context menu item. Another reason was that at the time I could not figure out how to change a button's state. (Later turned out that buttons do not have states, but the commands associated with them do, and that I now know how to change.)

I did not consider this critical at the time because isNode() should do no processing which changes anything on its own, it's invoked as often as on each keystroke to determine button state, but I can see that some plugins may rely on it internally as well.

We already have an issue about making isNode and invoke receive the same parameters here: #613944: data.node object not present in FCKeditor/CKEditor, so I'll mark this a duplicate of that (can't send the same parameters if it's never invoked hehe).

TwoD’s picture

Status: Active » Closed (duplicate)
EugenMayer’s picture

As explained in the other issue, i cant see how this is a dublicate of the empty data.node issue.

Because this issue is not about isNode(data) .. that data is empty or the wrong element..no..its about that isNode is NEVER called :)

TwoD’s picture

Status: Closed (duplicate) » Active

Un-duplicating the issue and instead noting that this issue needs to be kept in sync #613944: data.node object not present in FCKeditor/CKEditor so that this isNode implementation gets the same element which will be present in invokes' data.node.

EugenMayer’s picture

Thanks TwoD!

sun’s picture

Title: CKeditor WYSIWYG API problemem (isNode() is not called) » isNode() is not called in CKEditor
Component: Code » Editor - CKEditor
TwoD’s picture

Version: 6.x-2.1 » 6.x-2.x-dev
Status: Active » Needs review
FileSize
1 KB

Wrote this patch a while ago (originally for #613944) but forgot to post it here...

sun’s picture

Slightly revamped that code :)

sun’s picture

Sorry, converted @TwoD's code wrongly.

TwoD’s picture

Status: Needs review » Reviewed & tested by the community

Yep, now it works again. =)

sun’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for reporting, reviewing, and testing! Committed to all branches.

A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.