添加自定义按钮给cleditor
问题描述:
嗨朋友
我已经使用了CLeditor来创建richtextbox现在我想为这个编辑器工具箱添加一个按钮如何实现它,编辑器的链接给出了bellow
http://premiumsoftware.net/cleditor [ ^ ]
Thanku
Hi Friends
I have Used CLeditor to Create richtextbox now i want add a button to this editor toolbox how can i achieve it,the link for editor is given bellow
http://premiumsoftware.net/cleditor[^]
Thanku
答
下载后,您将获得名为jquery.cleditor的 JavaScript 文件。 js
。
在其中,每个按钮及其代码都被写入。请先尝试理解。您还可以调试代码以了解会发生什么。
然后您就可以添加一个新按钮。已定义一个按钮
属性,其中包含所有按钮。您需要在那里添加其他按钮并查找所有引用,您可以在其中添加功能。您还需要更新图像buttons.gif
以包含新的按钮图像。
After you download, you will get a JavaScript file namedjquery.cleditor.js
.
Inside that, every button and its code is written. Please try to understand first. You can also debug the code to learn what happens.
Then you would be able to add one new button. There is onebuttons
property defined, which have all the buttons defined there. you need to add the other button there and find all references, where you can add functionality. You also need to update the imagesbuttons.gif
to include the new button image.