Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Integrate TinyMCE editor with php

how do I integrate TinyMCE editor with php? I have downloaded the editor and put it in the js folder in my root directory. I have the following implementation in my code.

    <script type="text/javascript" src="js/tinymce/tinymce.min.js"></script>
    <script type="text/javascript">
    tinymce.init({
        selector: "textarea",
        themes: "modern",   
        plugins: [
            "advlist autolink lists link image charmap print preview anchor",
            "searchreplace visualblocks code fullscreen",
            "insertdatetime media table contextmenu paste moxiemanager"
        ],
        toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"   
    });
    </script>

And here's where the text box area is:

     <textarea name="pageBody" id="pageBody" rows="4"></textarea>

When I view the webpage, the text editor is not showing.

like image 562
Guzzyman Avatar asked Mar 24 '14 12:03

Guzzyman


1 Answers

Remove the moxiemanager from your plugins: entry. (last entry)

like image 169
Kneecht Avatar answered Sep 23 '22 18:09

Kneecht