&引用;未捕获的语法错误:意外标记<&引用;在Angular2的index.html中加载Ckeditor javascript库时

&引用;未捕获的语法错误:意外标记<&引用;在Angular2的index.html中加载Ckeditor javascript库时,angular,import,ckeditor,Angular,Import,Ckeditor,我想集成ckeditor而不使用角ckeditor组件。所以我添加了代码来加载index.html中的ckeditor js文件。 这是项目结构 root public ckeditor ckeditor.js ... client index.html 这是我在index.html中添加的内容 <script type="text/javascript" src="../public/ckeditor/ckeditor.js">

我想集成ckeditor而不使用角ckeditor组件。所以我添加了代码来加载index.html中的ckeditor js文件。 这是项目结构

root
  public
    ckeditor
       ckeditor.js
       ...
  client
    index.html
这是我在index.html中添加的内容

<script type="text/javascript" src="../public/ckeditor/ckeditor.js"></script>

chrome显示了这个错误

Uncaught SyntaxError: Unexpected token <                  ckeditor.js:1
Uncaught语法错误:意外标记
我不认为这是因为走错了路。 我尝试了错误的路径,它显示了相同的错误 所以我加上这个,

<script type="text/javascript" src="../public/ckeditor/ckeditor_wrong.js"></script>

它显示了这个错误

Uncaught SyntaxError: Unexpected token <                  ckeditor_wrong.js:1
Uncaught语法错误:意外标记
那么这是什么原因呢?如何正确导入?
期待尽快收到您的来信。

在我看来,HTML标记中的错误键入不正确,但如果没有看到所有代码,就很难判断。你能把文件的内容放在什么地方吗?导入ckeditor时会发生错误?这是编译器错误还是运行时错误