添加自定义按钮给cleditor [英] Add custom button to cleditor

查看:139
本文介绍了添加自定义按钮给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 named jquery.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 one buttons 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 images buttons.gif to include the new button image.


这篇关于添加自定义按钮给cleditor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆