MyBB Community Forums

Full Version: Integrate Editor WYSIWYG with MyBB
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9
1. Donwload CKEditor - WYSIWYG http://ckeditor.com/download
2. Upload ckeditor folder to ./jscripts/editor_themes/

+ Edit newthread template
Find
</head>
Add above
<script language="javascript" src="jscripts/editor_themes/ckeditor/ckeditor.js" type="text/javascript">

Find
{$codebuttons}
Replace
<script type="text/javascript">CKEDITOR.replace( 'message',
{
extraPlugins : 'bbcode',
toolbar :
[
['Source', '-', 'Save','NewPage','-','Undo','Redo'],
['Find','Replace','-','SelectAll','RemoveFormat'],
['Link', 'Unlink', 'Image'],
'/',
['FontSize', 'Bold', 'Italic','Underline'],
['NumberedList','BulletedList','-','Blockquote'],
['TextColor', '-', 'Smiley','SpecialChar', '-', 'Maximize']
],
});</script>

Edit newreply and editpost

DONE Smile

[Image: MyBB.vn-untitled.JPG]
Nice and easy, thanks.
  • You need to either allow html in all forums or modify the editor settings to use BBcode.

Hey mybboardvietnam,
Have you tested the MyBB smilies (Smile), do they work?
What happens w/ the CKeditor smilies are they also working?
Thanks
it uses BBcode, if you want it to full function must be enabled html in all forums

Use html:
<script type="text/javascript">CKEDITOR.replace( 'message',
{
extraPlugins : 'bbcode',
toolbar :
[
['Source', '-', 'Save','NewPage','-','Undo','Redo'],
['Find','Replace','-','SelectAll','RemoveFormat'],
['Link', 'Unlink', 'Image'],
'/',
['FontSize', 'Bold', 'Italic','Underline'],
['NumberedList','BulletedList','-','Blockquote'],
['TextColor', '-', 'Smiley','SpecialChar', '-', 'Maximize']
],
});</script> 

replace:
<script type="text/javascript">CKEDITOR.replace( 'message'); </script> 
:O
This is great. I will try it.
Thanks!

Edit: Don't work for me. =/
Thanks. Looks great. I found a tinymce too:
http://mods.mybb.com/view/tinymce
Which one do you think is better? Does it support "Right to left" languages? Actually does it have "right to left" and "left to right" button?
My forum is in "Persian" and default writing mode is RTL.

How can I add buttons like attached picture? For me there is only some few buttons. Sad. SOLVED: I was using BBCODE

How can I enable it in quick reply? Actually I prefer to have default editor in quick reply, but now I don't have anything. just a white box is bellow my posts
this was very helpful
Too many buttons Confused
(2012-05-06, 11:10 PM)brad-t Wrote: [ -> ]Too many buttons Confused

True though i do love the basic toolbar:

http://ckeditor.com/demo

Would make a really good quick reply box. And you are apparently able to customize it:

[Image: editor.jpg]
Basic toolbar is perfect. Just add some custom MyCodes and good to go. May use it hm.
ckeditor its the Vbulletin editor right?
Pages: 1 2 3 4 5 6 7 8 9