Hello,
I've searched docs and this forum about CKEditor 3 but couldn't find how to insert a toolbar option to change text color and size (something like a color picker and a font size in pixels or percentage)
Is that somwhow supported in CKEditor?
thanks for any help,
Ignacio
I've searched docs and this forum about CKEditor 3 but couldn't find how to insert a toolbar option to change text color and size (something like a color picker and a font size in pixels or percentage)
Is that somwhow supported in CKEditor?
thanks for any help,
Ignacio
Re: How to add a color picker/pallete and font size to the toolb
Is this what you mean? These are defaults.
Or, are you asking about making your own plug-ins to do those functions? If you prefer to define font sizes as percent or in ems rather than the existing "px" (pixels), then you could just add your commonly used common ones to the existing Styles dropdown. Same thing for color: if you have a handful of specific color styles that you want to include, then edit them into the Styles dropdown.
On the other hand, if you want to edit the existing plug-ins or create new ones, I have looked at the code, and it is a bigger project than I am ready to take on at this moment. For example, the colordialog.js is tied to the language javascript file (such as en.js) to provide the specific names for colors that you'll see as tooltips. To me, that is not valuable, and I would drop the tooltips and skip naming colors. Further, I would not use the RGB notation for color style in the generated HTML code. Who uses RGB in websites? Doesn't everyone use hex color values?
I'd rather see this:
Attachments: