@kukejs/kkeditor-build-mathml

0.0.26 • Public • Published

@kukejs/kkeditor-build-mathml

自定义构建编辑器的包

集成富文本的基础插件和公式插件的预定义编辑器

本地调试

// 执行一个脚本
lerna exec --scope @kukejs/kkeditor-build-mathml -- yarn run start
或
// 执行 npm 命令
lerna run --scope @kukejs/kkeditor-build-mathml start

使用方式

// 引入编辑器
import CustomEditor from ‘@kukejs/kkeditor-build-mathml

const { ClassicEditorMathML } = CustomEditor

// 创建编辑器在 plugins 中引入插件
ClassicEditorAll
    .create( document.querySelector( '#editor' )
    .then( editor => {
			window.editor = editor;
		})
		.catch( error => {
		});

// 链接引入
<script src="https://kuke-utils.kuke99.com/common/js/ckeditor/35.2.0/mathml/ckeditor.js" defer></script>

const { ClassicEditorMathML } = CustomEditor
// ...

Readme

Keywords

Package Sidebar

Install

npm i @kukejs/kkeditor-build-mathml

Weekly Downloads

0

Version

0.0.26

License

ISC

Unpacked Size

1.72 MB

Total Files

4

Last publish

Collaborators

  • xiaohengwang
  • zhaoleyuan
  • kukefe