Opened 16 years ago

Closed 11 years ago

#2260 closed New Feature (wontfix)

Expose TextNode on Toolbar Button

Reported by: Joshua Szmajda Owned by:
Priority: Normal Milestone:
Component: UI : Toolbar Version: FCKeditor 2.5
Keywords: HasPatch Cc:


I just created a patch to the editor source in order to expose the textNode that is the text of a text-only button in the toolbar. I needed this functionality in order to support a character counter plugin. I could see this sort of functionality being useful in other plugins as well that want to update toolbar button text.

Here's some sample code using the changed version: (charsCounterButton is defined as a global variable when created) charsCounterButton._UIButton.TextNode.nodeValue = 'Left: ' + this.LeftChars ;

Attachments (1)

fcktoolbarbuttonui.patch (567 bytes) - added by Joshua Szmajda 16 years ago.
Patch to fcktoolbarbuttonui.js

Download all attachments as: .zip

Change History (4)

Changed 16 years ago by Joshua Szmajda

Attachment: fcktoolbarbuttonui.patch added

Patch to fcktoolbarbuttonui.js

comment:1 Changed 16 years ago by Wojciech Olchawa

Keywords: HasPatch added

comment:2 Changed 13 years ago by Wiktor Walc

Version: FCKeditor 2.5

comment:3 Changed 11 years ago by Jakub Ś

Resolution: wontfix
Status: newclosed

FCKeditor is no longer supported thus I'm closing this issue.

AFAIK when implementing custom plugin in editor or changing existing one this can be done.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy