#2260: Expose TextNode on Toolbar Button ----------------------+----------------------------------------------------- Reporter: jszmajda | Type: New Feature Status: new | Priority: Normal Milestone: | Component: UI : Toolbar Version: | Keywords: ----------------------+----------------------------------------------------- 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 ; -- Ticket URL: <http://dev.fckeditor.net/ticket/2260> FCKeditor <http://www.fckeditor.net> The text editor for Internet ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ FCKeditor-Trac mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fckeditor-trac
