ckeditor5-mathtype

1.0.4 • Public • Published

ckeditor5-mathtype

Ckeditor5 build classic with support of mathtype plugin.

Installation

Install the plugin with NPM or Yarn

npm install ckeditor5-mathtype
 
OR
 
yarn add ckeditor5-mathtype

Usage

import "ckeditor5-mathtype/build/ckeditor";
 
ClassicEditor.create( document.querySelector( '#editor' ) )
 .then(editor => {
    window.editor = editor;
  })
 .catch(error => {
    console.error( 'There was a problem initializing the editor.', error );
 });

If using with CKEditor with react

First install @ckeditor/ckeditor5-react

npm install @ckeditor/ckeditor5-react

OR

yarn add @ckeditor/ckeditor5-react
import CKEditor from "@ckeditor/ckeditor5-react";
const ClassicEditor = require("ckeditor5-mathtype/build/ckeditor");

<CKEditor
 editor={ClassicEditor}
 data={value}
 onInit={editor => { 
  // do something
 }}
 onChange={(event, editor) => {
  // do something
 }}
/>

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update the tests as appropriate.

Package Sidebar

Install

npm i ckeditor5-mathtype

Weekly Downloads

16

Version

1.0.4

License

GPL-2.0-or-later

Unpacked Size

6 MB

Total Files

66

Last publish

Collaborators

  • sanket_karve