Put the CKEditor into our MYBB_ROOT/ckeditor/ folder. We don't need to upload all of the files from the package.
At our newthread/template_prefix_newthread/editpost_first/template_prefix_editpost_first or/and forumdisplay_quick_thread/template_prefix_forumdisplay_quick_thread template, where we want to use the editor, put this code before the </head> tags:
|
Then, the simplest way is (I think), we only need to put this kind of code at the templates above, before the </form> tags:
|
Where the key is the XThreads textarea (Multiline Textbox) custom thread field key.
For example, if we have ta1 as the key for the textarea, then we need to put this code:
|
The editor supports for more than one textareas at the same page.
Example:
|
Then, we need to edit the ckeditor/config.js file. The settings depend on our needs. All settings in this file will be act as default settings. So, if we want a different settings for each textarea, probably we don't need to put it here.
Example:
|
It will loads the default BBCode editor for our XThreads textarea.
Well, that's our experimental
Screenshot:
New Thread:
[attachment=550]
Preview Post:
[attachment=551]
Post (after the thread posted):
[attachment=552]
Edit Thread:
[attachment=553]
Thread Result:
http://www.14.mynie.co.cc/showthread.php?tid=414
(The text in Tabs 2 and Tabs 3 using XThreads textarea + CKEditor).
Try it:
http://www.14.mynie.co.cc/newthread.php?fid=33
(The CKEditor is in Tabs 2 and Tabs 3).