Error using TinyMCE with JustBoil

I have successfully used TinyMCE and I am pleased with that. Now I need users to be able to embed images in their written text. For this, I wanted to use JustBoil so that they could upload and eventually embed their images in text. This is my current setup.tinymce.init()

<script type="text/javascript">
tinymce.init({
    selector: "textarea",
    theme: "modern",
    plugins: [
        "advlist autolink lists link image preview hr",
        "searchreplace wordcount visualblocks visualchars fullscreen",
        "insertdatetime media nonbreaking save table contextmenu directionality",
        "paste textcolor colorpicker textpattern imagetools jbimages"
    ],
    toolbar1: "insertfile undo redo | bold italic | forecolor backcolor | link image jbimages",
    toolbar2: "alignleft aligncenter alignright alignjustify | bullist numlist | outdent indent ",
    image_advtab: true,
    relative_urls: false
});
</script>

An image download button exists now, but as soon as I click the button, index.php gets a download suggestion, which obviously shouldn't be. When I refuse to download and try to use the image download via the Browse button, I end up with the following message:

Loading ...

This takes longer than usual.

An error may have occurred.

View script output

, script:

reset

reset .

. .

, , , , ? ! , , .

+4
1

'init' 'editor_plugin.js'. 'editor_plugin_src.js' .

js , , dialog.htm '. dialog.htm . . , codeigniter github repo.

0

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


All Articles