Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
1.6k views
in Plugins by
edited by
Hi!

How can i enable an additional button in the wysiwyg editor, to view and edit the html source code?

1 Answer

0 votes
by
 
Best answer

I found the solution: you need to add 'Source' to the "get_field" function inside "qa-wysiwyg-editor.php".

For example:

$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']".
...