Ticket #2260 (new New Feature)

Opened 5 months ago

Last modified 5 months ago

Expose TextNode on Toolbar Button

Reported by: jszmajda Owned by:
Priority: Normal Milestone:
Component: UI : Toolbar Version:
Keywords: HasPatch Cc:

Description

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

fcktoolbarbuttonui.patch (0.6 KB) - added by jszmajda 5 months ago.
Patch to fcktoolbarbuttonui.js

Change History

Changed 5 months ago by jszmajda

Patch to fcktoolbarbuttonui.js

Changed 5 months ago by w.olchawa

  • keywords HasPatch added
Note: See TracTickets for help on using tickets.