Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/360.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 使用CDN,如何设置正确的自定义插件路径?_Javascript_Java_Ckeditor_Rich Text Editor - Fatal编程技术网

Javascript 使用CDN,如何设置正确的自定义插件路径?

Javascript 使用CDN,如何设置正确的自定义插件路径?,javascript,java,ckeditor,rich-text-editor,Javascript,Java,Ckeditor,Rich Text Editor,我是新手,第一次尝试制作插件。我正在尝试创建一个简单的按钮,如图所示 我遇到了以下错误: Uncaught Error: [CKEDITOR.resourceManager.load] Resource name "timestamp" was not found at "/WEB-INF/recursos/javascript/plugins/timestamp/plugin.js?t=H0CF". at window.CKEDITOR.window.CKEDITOR.dom.CKED

我是新手,第一次尝试制作插件。我正在尝试创建一个简单的按钮,如图所示

我遇到了以下错误:

Uncaught Error: [CKEDITOR.resourceManager.load] Resource name "timestamp" was not found at "/WEB-INF/recursos/javascript/plugins/timestamp/plugin.js?t=H0CF".
    at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.resourceManager.<anonymous> (ckeditor.js:234)
    at h (ckeditor.js:230)
    at Array.n (ckeditor.js:230)
    at q (ckeditor.js:230)
    at HTMLScriptElement.CKEDITOR.env.ie.f.$.onerror (ckeditor.js:231)
我将Java与Tomcat(和Eclipse IDE)一起使用,我的目录结构如下:

我已尝试设置以下路径:

plugins/timestamp/
/plugins/timestamp/
但这给了我:

Error: [CKEDITOR.resourceManager.load] Resource name "timestamp" was not found at "https://cdn.ckeditor.com/4.6.2/full-all/plugins/timestamp/plugin.js?t=H0CF".
我还尝试了以下路径:

plugins/timestamp/
/plugins/timestamp/
以及:

我的HTML页面:

<!DOCTYPE html>
<html>
    <head>

        <title>Page</title>

        <!-- JQuery. -->
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>

        <!-- MY FILES -->
        <link rel="stylesheet" type="text/css" media="all" th:href="@{/css/estilos.css}" />
        <script th:src="@{/js/codigo.js}"></script>

        <!-- CKEDITOR -->
        <script src="https://cdn.ckeditor.com/4.6.2/full-all/ckeditor.js"></script>

    </head>
    <body>
        <div class="papel-simples">

            <!-- CONTENT -->
            <textarea th:text="${paragrafo}" id="area-paragrafo"></textarea>
        </div>
    </body>
</html>
谁能帮帮我吗?提前谢谢

<!DOCTYPE html>
<html>
    <head>

        <title>Page</title>

        <!-- JQuery. -->
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>

        <!-- MY FILES -->
        <link rel="stylesheet" type="text/css" media="all" th:href="@{/css/estilos.css}" />
        <script th:src="@{/js/codigo.js}"></script>

        <!-- CKEDITOR -->
        <script src="https://cdn.ckeditor.com/4.6.2/full-all/ckeditor.js"></script>

    </head>
    <body>
        <div class="papel-simples">

            <!-- CONTENT -->
            <textarea th:text="${paragrafo}" id="area-paragrafo"></textarea>
        </div>
    </body>
</html>