View Full Version : How to add WYSIWYG editor in admincp

02 Feb 2008, 09:39
I saw a couple of posts about inquiries on adding an editor in admincp. It's actually quite simple, using an external editor. Downloadd the free TinyMCE (http://tinymce.moxiecode.com/) editor.

To most people that should be sufficient. If you need upload power (images, flash, movies etc...) they are also selling a couple of extensions to do so, or you could install the free jQuery ajax upload for that editor.

In your application, insert at the top below the print_cp_header. Consult the TinyMCE documentation for adding/removing elements in editor. The one below will insert everything.

<link href="../PATH_TO/tinymce/themes/advanced/css/editor_ui.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="../PATH_TO/tinymce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
mode : "textareas",
theme : "advanced"});
In your print_textarea_row, make sure that you disable the large edit text button. You don't need it anymore and it will not work anyway.

print_textarea_row($vbphrase['yourphrase'], 'name_of_field', $item[database_column], '','',1,0);That's it. Every textarea in your application will now have a powerful WYSIWYG editor.

It's really a nice editor, you can use preset templates to do your inserts etc ...

19 Feb 2008, 08:42
This is a great article - very handy to add tiny mce to the admincp

16 Mar 2008, 15:01
Thank u , but after installation where i could find the editor ?!!!

26 Mar 2008, 21:55
I hate to say this but the instructions to install this are not very clear. What file(s) need to be modified? Where should the MCE files be uploaded to? etc.

Could you add more detail to this please?


26 Mar 2008, 22:03
This is meant for developers

29 Mar 2008, 18:55
This would have been better if it utilised the vBulletin WYSIWIG editor, instead of requiring the addition of another script.

Was it not possible?

30 Mar 2008, 00:04
I don't think anyone have figured that yet. Specially some scripts would require multiple editors, which so far no one has been able to implement

27 Aug 2008, 10:44
Hello Lionel,

I hope it’s ok to ask, since I’m not completely sure what it does.
It gives an alternative for the default vB wysiwyg editor right?

18 Nov 2009, 05:59
this is great idea ..

dose it work with vb 3.8.4 and vbadvanced ..

thank you

23 Jun 2011, 16:31
how i can use it with 3.8.5
i hope some one explain more :(

cuz really i need it .,,.