How to integrate TinyMCE editor with php

How do I integrate TinyMCE editor with php? I downloaded the editor and placed it in the js folder in the root directory. The following implementation is implemented 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, where is the area of ​​the text box:

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

When I browse a web page, the text editor does not appear.

+4
source share
1 answer

Remove moxiemanager from your plugins: record. (last record)

+4
source

Source: https://habr.com/ru/post/1533160/


All Articles