Ticket #2260 (new New Feature)
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
Change History
Note: See
TracTickets for help on using
tickets.