This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

xlink-editor

1.0.0 • Public • Published

xlink-editor

Getting Started

使用npm package

npm i xlink-editor

在网站上使用xlink-editor:

<div id="editor">
  <p>This is the editor content.</p>
</div>
<script src="./node_modules/xlink-editor/ckeditor.js"></script>
<script>
  CKEDITOR.replace( 'editor' );
</script>

CKEditor4有自己的插件加载系统,可以参考使用ckeditor4-webpack-template GitHub template仓库配置webpack,它将node_modules/ckeditor4/所有必要的文件直接复制到dist/目录。加载ckeditor4的一个更好的方法是把它放到webpack构建之外,然后异步加载它。 CKEditor4加载所需的额外文件需引用线上或本地服务器上的路径。

使用cdn

从cdn加载xlink-editor脚本:

<div id="editor">
  <p>This is the editor content.</p>
</div>
<script src="https://cdn.jsdelivr.net/npm/xlink-editor@0.1.4/ckeditor.js"></script>
<script>
  CKEDITOR.replace( 'editor' );
</script>

使用Git submodule

当想把文件放在静态资源目录上访问时,项目使用git,并且希望集成xlink-editor, 建议将此仓库作为子模块submodule添加

Package Sidebar

Install

npm i xlink-editor

Weekly Downloads

126

Version

1.0.0

License

none

Unpacked Size

3.92 MB

Total Files

697

Last publish

Collaborators

  • shengzhi