question2answer(q2a)怎么给WYSIWYG Editor增加查看html源码的按钮?

http://www.soexception.com/218/question2answer(q2a)怎么给wysiwyg-editor增加查看html源码的按钮?


需要修改WYSIWYG Editor插件根目录qa-wysiwyg-editor.php,找到下面的代码,并在最后添加“source”,如下所示。

$qa_content['script_lines'][]=array(
 
"qa_wysiwyg_editor_config={toolbar:[".
"['Bold','Italic','Underline','Strike'],".
"['Font','FontSize'],".
"['TextColor','BGColor'],".
"['Link','Unlink'],".
"'/',".
"['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],".
"['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],".
"['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar'],".
"['RemoveFormat', 'Maximize', ' Source']".
 
添加上“源码”的效果图如下:

 



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值