Search code examples
phptinymcetextarea

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.


Solution

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