Include TinyMCE in a module

TinyMCE is the WYSIWYG-editor, used while editing pages and blog posts, for example. For some modules, it might be needed to include this editor in (one of) the module pages.

Including TinyMCE in a module page is quite simple. First you need to inform pluck that your module wants to use TinyMCE. You can do this by adding the following code to your modules module_info.php:

$tinymce = 'yes';

Now, the TinyMCE libraries are loaded. These libraries will convert all textareas with class tinymce to a TinyMCE-instance. So, to add a TinyMCE-instance, you can use this code:

<textarea class="tinymce"></textarea>
 
dev/modules/tinymce.txt · Last modified: 2008/11/09 13:27 by sander
 
Recent changes RSS feed Creative Commons License Driven by DokuWiki