开发者

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

开发者 https://www.devze.com 2022-12-26 13:26 出处:网络
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 do

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 apprecia开发者_Python百科ted 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.


The development of plugins has not been documented as of yet that's why you can't get to the documentation. You can look at fontsize iand BGColor in ckeditor->_source->plugins that should get you started. let us know when you get stuck be happy to help some

0

精彩评论

暂无评论...
验证码 换一张
取 消