2

我为我的英语道歉,但我用谷歌翻译翻译它。

我正在尝试安装“响应式文件管理器”插件(https://www.responsivefilemanager.com/)我根据说明移动了文件并进行了配置。当我按下弹出按钮时,控制台中会弹出一个错误。在此处输入图像描述

“filemanager”目录被转移到“ /admin/wysiwyg/new_tinymce/ ”。在这个目录中有 TinyMCE

“plugins”目录被转移到“ /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'
        ],

    });

单击文件管理器图标时,错误在控制台中显示我在此处输入图像描述

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
4

0 回答 0