Integrate Editor WYSIWYG with MyBB
#1
This user has been denied support. This user has been denied support.
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]
[Image: logo.png]
MYBB Vietnamese Support Community
Reply
#2
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
#
MyBB is the best forum software! Exclamation

Reply
#3
This user has been denied support. This user has been denied support.
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> 
[Image: logo.png]
MYBB Vietnamese Support Community
Reply
#4
:O
This is great. I will try it.
Thanks!

Edit: Don't work for me. =/
Reply
#5
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
Reply
#6
this was very helpful
Reply
#7
Too many buttons Confused
Reply
#8
(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]
Reply
#9
Basic toolbar is perfect. Just add some custom MyCodes and good to go. May use it hm.
Reply
#10
ckeditor its the Vbulletin editor right?
Exclamation MyBB-Es.Com, spanish support for MyBB Wink
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)