| Page 1 of 1 | [ 4 posts ] |
|
Hi,
I like to limit the selectable text colors in the color picker of an YUI editor to only two color: blue and black. I think this can be done by a special config parameter without changing the source code of the editor itself. Is this right? But how do to it? Thanks for tips, Gérôme |
|
I found out, that there is the list of the colors inside editor.js:
Code: YAHOO.extend(YAHOO.widget.Toolbar, YAHOO.util.Element, { [...] * @property _colorData * @description Object reference containing colors hex and text values. * @type Object */ _colorData: { /* {{{ _colorData */ '#111111': 'Obsidian', '#2D2D2D': 'Dark Gray', '#434343': 'Shale', [...] } But how do I change this property? I can't get a pointer to the Toolbar of a simple editor that I just created. Gérôme |
|
|
|
Thanks. It works
Gérôme |
| Page 1 of 1 | [ 4 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group