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']".
 
添加上“源码”的效果图如下:

 



你可能感兴趣的:(question2answer(q2a)怎么给WYSIWYG Editor增加查看html源码的按钮?)