“响应式文件管理器”插件不起作用”-TinyMCE 5插件

时间:2019-05-24 16:23:44

标签: javascript responsive-filemanager tinymce-5

我热烈欢迎。

我为我的英语致歉,但我使用Google翻译将其翻译。

我正在尝试安装“响应文件管理器”插件(https://www.responsivefilemanager.com/) 我按照说明移动了文件并进行了配置。当我按下弹出按钮时,控制台中将弹出一个错误。enter image description here

“文件管理器”目录已转移到“ / admin / wysiwyg / new_tinymce / ”。在此目录中有TinyMCE

“插件”目录已转移到“ / admin / wysiwyg / new_tinymce / js / tinymce / plugins / ”。

我将其他文件和目录移到了 / admin / wysiwyg / new_tinymce / ”。

这是文件和目录的结构:

website
-admin
--wyswig
---new_tinymce
----filemanager
-----config
-----css
-----img
-----include
-----js
-----Other files and directories from filemanager
----js
-----tinymce
------langs
------plugins
-------responsivefilemanager
------skins
------jquery.tinymce.min
------license.txt
------tinymce.js
------tinymce.min.js
----source
----src
----tools
----changelog.txt
----Gruntfile.js
----LICENSE.TXT
----packpage.json
----packpage-lock.json
----readme.md
----yarn.lock

我省略了一些不重要的文件和目录。

致电TinyMce。我特别省略了不必要的条目以使代码更具可读性:

tinymce.init({
        selector: 'textarea',
        image_prepend_url: file_dir, // ścieżka do katalogu z plikami / zdjeciami itp
        image_caption: true, //Dodaje możliwość podpisania obrazu. Używa do tego znaczników html5
        image_advtab: true, // dodanie karty z zaawansowanymi opcjami do okna dodawania obrazka
        image_title: true, // Dodanie opcji tytułu do obrazka do okna dodawania obrazka

        external_filemanager_path:"/admin/wysiwyg/new_tinymce/filemanager/",
        filemanager_title:"Responsive Filemanager" ,
        external_plugins: { "filemanager" : "/admin/wysiwyg/new_tinymce/js/tinymce/plugins/responsivefilemanager/plugin.min.js"},
        //filemanager_crossdomain: true,

        plugins: [
            'importcss', //Gdy jest aktywowane, nie działa zakładka akapit //TODO
            'advlist autoresize autolink lists link image imagetools charmap preview hr anchor pagebreak spellchecker',
            //'responsivefilemanager',
            'searchreplace wordcount visualblocks visualchars responsivefilemanager code autosave',
            'insertdatetime media nonbreaking table directionality',
            'emoticons template paste textcolor colorpicker textpattern codesample print',
            'directionality emoticons help hr'
            //toc - todo -  trzeba ostylować wszystko w css - generalnie dodaje spis trzesci na podstawie nagłówków znalezionych w tekscie. - https://www.tiny.cloud/docs/plugins/toc/
            //directionality - pisanie od lewej do prawej i na odwrót
        ],
        toolbar: [
            'bold italic underline strikethrough | forecolor backcolor | bullist numlist outdent indent | alignleft aligncenter alignright alignjustify | removeformat subscript superscript',
            'blockquote template codesample restoredraft| code print preview | cut copy paste searchreplace spellchecker toc',
            'ltr rtl',
            //pisanie od lewej do prawej i na odwrót
            'undo redo | hr emoticons media link responsivefilemanager image nonbreaking pagebreak |styleselect  fontselect fontsizeselect| mybutton mybutton2 mybutton3'
        ],

    });

单击文件管理器图标时,错误在控制台enter image description here中显示给我:

plugin.js:84 Uncaught TypeError: editor.windowManager.openUrl is not a function
    at Object.openmanager [as onAction] (plugin.js:84)
    at theme.js:21482
    at theme.js:9575
    at theme.js:21480
    at theme.js:2457
    at each (theme.js:267)
    at run (theme.js:2456)
    at theme.js:2969
    at theme.js:56
    at theme.js:10825

0 个答案:

没有答案