Helper tinyMCE

You can refer manual at : http://blog.javamonday.com/2016/06/using-helper-tinymce-in-cakephp-12.html Create file app/views/helpers/tinymce.php with content : <?php class TinyMceHelper extends AppHelper { // Take advantage of other helpers var $helpers = array(‘Javascript’, ‘Form’); // Check if the tiny_mce.js file has been added or not var $_script = false; /** * Adds the tiny_mce.js file and constructs the options *…

Read More

Using TinyMCE, iBrowser With CakePHP

TinyMCE Setup Download TinyMCE in Here After downloaded, extract to TinyMCE folder and copy /tiny_mce folder into /webroot/js in cakePHP. Config Putting this code to layout (or view if you don’t want to use default for all layout) <?php if(isset($javascript)): echo $javascript->link(‘tiny_mce/tiny_mce.js’); endif; ?> Define to use javascript helper in Controller: <script type=”text/javascript”> tinyMCE.init({ theme :…

Read More