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>