A custom CKEditor 5 build made by the CKEditor 5 online builder.
npm install ckeditor5-classic-with-mathtypeThis is CKeditor 5 build with MathType integration.
This repository presents a CKEditor 5 editor build generated by the Online builder tool
First, install the build from npm:
``npm install ckeditor5-classic-with-mathtype`
And use it in your website: This is the editor content.
``
`
Or in your JavaScript application:`
import ClassicEditor from 'ckeditor5-classic-with-mathtype';
// Or using the CommonJS version:
// const ClassicEditor = require( 'ckeditor5-classic-with-mathtype' );
ClassicEditor
.create( document.querySelector( '#editor' ) )
.then( editor => {
window.editor = editor;
} )
.catch( error => {
console.error( 'There was a problem initializing the editor.', error );
} );
Here's an example of using it with react:
`
import CKEditor from '@ckeditor/ckeditor5-react';
import ClassicEditor from 'ckeditor5-classic-with-mathtype';
...
render() {
return (
config={{
toolbar: {
items: [
'heading', 'MathType', 'ChemType',
'|',
'bold',
'italic',
'link',
'bulletedList',
'numberedList',
'imageUpload',
'mediaEmbed',
'insertTable',
'blockQuote',
'undo',
'redo'
]
},
}}
data="
Hello from CKEditor 5 with MathType!
"Note: You can configure the block toolbar items using the config.blockToolbar option.