TinyMCE:FUSE PHP
From Moxiecode Documentation Wiki
[edit]
Introduction
As of version 1.1 of the FUSE MVC Framework , there are helper methods that enable fast integration of TinyMCE for designing HTML content.
[edit]
Instructions
- Extract the TinyMCE files so that the js/ directory in the TinyMCE archive lives in script/tiny_mce. This means that you'll have to move the js/ directory one level up (e.g. tiny_mce_src.js and tiny_mce_init.js will be in script/tiny_mce/).
- Edit tiny_mce_init.js as required. You can probably leave the defaults as they are - Do not change the textarea class name. Also, note that the javascript variable js_SITE_BASE_URI will be available to you if you need it, and will contain your application's base URI
- Use the following code in your view to embed the TinyMCE area (In this example, BlogEntry is your model name and body is the field name)
<{HTML/FormHelper::Tinymce_area('BlogEntry', 'body')}>
