CKEditor plugin: Hightlight selected text by hovering on a new item in the toolbar and selecting fro

Posted by scottystang on Stack Overflow See other posts from Stack Overflow or by scottystang
Published on 2010-04-09T17:04:38Z Indexed on 2010/04/13 12:23 UTC
Read the original article Hit count: 273

Filed under:
|
|

I'm new to the CKEditor and I'm trying to create a simple plugin. What I'm hoping to accomplish is to allow the user to highlight some text and then hover on a new item in the toolbar that drops down on mouse over a few different highlight color options for the text. For example, the user could highlight some text, hover on my new item and then select a highlight color. This will be similar to the 'BGColor' plugin except instead of opening a color palette to choose from, the user would select from a drop down of options similar to when you choose to change the font size you have a list of options such as '10', '11', '12', etc.

Any help would be appreciated on how to pull this off. I was hoping to check out how 'BGColor' and 'FontSize' plugins where implemented, but I can't find these in ../ckeditor/_source/plugins. Am I looking in the right spot? Also, the link for plugins here - http://docs.cksource.com/CKEditor_3.x/Developers_Guide isn't clickable so I'm not sure if there's a place for plugin documentation that I can check out.

© Stack Overflow or respective owner

Related posts about ckeditor

Related posts about JavaScript