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

YOu either have installed the entire qa1.7.1  ( or have simply replaced your wysiwyg plugin with the one from the dev version as of  today Feb 13- 2015) 

steps to add new ckEditor plguin:

1- Suppose the plug-in name is "ckEditorPlugin"(so simply place it to ckEditor\plugin\ckEditorPlugin)
2- (pay attention ) most probabely the button name is also ckEditorPlugin(might be different though)
 
 in config.js:
3- // add these two
       config.extraAllowedContent= 'img[!src,alt,width,height]';// not always needed
      config.extraPlugins= 'ckEditorPlugin';
 
 
// and place the button name somethere among other buttons
    config.toolbar = [
        { name: 'basic', items: [ 'ckEditorPlugin', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript' ] },
        { name: 'color', items: [ 'TextColor', 'BGColor' ] },
        { name: 'align', items: [ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock' ] },
        { name: 'clipboard', items: [ 'Cut', 'Copy', 'Paste', 'PasteFromWord', '-', 'Undo', 'Redo' ] },
        '/',
        { name: 'font', items: [ 'Font', 'FontSize', 'Format' ] },
        { name: 'paragraph', items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote' ] },
        { name: 'links', items: [ 'Link', 'Unlink' ] },
        { name: 'insert', items: [ 'Image', 'Table', 'HorizontalRule', 'SpecialChar', 'Smiley' ] },
        { name: 'last', items: [ 'RemoveFormat', 'Maximize' ] }
    ];

The onse high lighted in yellow are always needed for new plugins (with button)

Q2A version: qa 1.7+
by
@Waterfr Villa

How do we get the dev version dated Feb 13 2015? The link on the dev page here:

https://github.com/q2a/question2answer/tree/dev

Is dated Dec 28 2014 according to the  qa-include/qa-base.php and the version number is 1.7.0 and not 1.7.1
by
No, look at the top line which reads something like " svivian authored 2 days ago".
Anyways, if you download the dev version by clicking on the ZIP(right hand side of screen) you will be fine.
by
Thanks, I've added those lines in:

qa-plugin/wysiwyg-editor/ckeditor/config.js

and I still cannot see the textarea.

However, I do not understand how to find the "button name". You say it might be different, but: how do I find the button name?
by
Well, you can get the  button name from the person who developed the plugin for you or from the manual or something. I have some programming background and thus can extract the button name  from the source code. you need to learn a bit of javascript and look int the code
by
Now I see we are talking about different things. I have not installed any additional plugin. I have only the official WYSIWYG Editor plugin that comes with Q2A Core.

Since the WYSIWYG Editor is listed as a plug in, I've asked my question (http://www.question2answer.org/qa/43723/ckeditor-no-buttons) in the plugins section. Maybe it's my fault.
by
oh! goto Admin>Posting>Default editor for questions:  and select wysiwyg editor
by
Thanks, wysiwyg editor is already selected. The issue is with the stock wysiwyg editor

Please log in or register to answer this question.

...