Rss Feed

  1. Adding tinymce in admin_edit page

    Go and grab TinyMCE from its website http://tinymce.moxiecode.com/download.php and copy the /tinymce/jscripts/tiny_mce folder to the /app/webroot/js
    Include js in app/views/layout/admin.ctp  

    <?php  echo $javascript->link('tiny_mce/tiny_mce.js'); ?>

    Set up the editor in view file 

    //set up the editor
    <script type="text/javascript"> 
        tinyMCE.init({ 
            theme : "simple", 
            mode : "textareas", 
            convert_urls : false 
        });
    </script>


    Refer: http://stackoverflow.com/questions/11056450/cakephp-and-wysiwyg-editor

  2. 0 comments:

    Post a Comment