Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
358 views
in Q2A Core by
How can I have a HTML editor button on asking question area?
by
I want a change button, too.

1 Answer

+1 vote
by
selected by
 
Best answer

You can customize the toolbar in the file qa-plugin/wysiwyg-editor/qa-wysiwyg-editor.php, from line 138. For example, on line 147 change

    "['RemoveFormat', 'Maximize']".

to

    "['RemoveFormat', 'Maximize', 'Source']".

The CKeditor site has various info on configuring toolbars: http://docs.ckeditor.com/#!/guide/dev_toolbar

Edit: just realized, there is a config.js file included in the plugin. Not sure if that is read by CKeditor but might be worth trying. I think you'd need to add a config.toolbarGroups setting like on the above link.

by
This required to be have as a default. Or at least an option to add this button to the toolbar.
by
I can recommend sama55's CKEditor4 plugin, just put 'RemoveFormat', 'Maximize', 'Source' into the admin>plugin>options. http://question2answer.org/qa/26643/update-plugin-ckeditor4-v1-1-3
...