Итак, я пытаюсь добавить этот плагин MathType https://www.npmjs.com/package/@wiris / mathtype-ckeditor4 следующим образом:
<CKEditor
// onBeforeLoad={CKEDITOR => (CKEDITOR.disableAutoInline = true)}
onBeforeLoad={CKEDITOR => {
CKEDITOR.plugins.addExternal(
"ckeditor_wiris",
"../node_modules/@wiris/mathtype-ckeditor4/",
"plugin.js"
);
CKEDITOR.editorConfig = function(config) {
config.extraPlugins = "ckeditor_wiris";
// Allow MathML content.
config.allowedContent = true;
config.height='80px'
console.log('from editorconfig')
};
CKEDITOR.disableAutoInline = true;
console.log(CKEDITOR);
}}
data={explanationData}
onChange={(event, editor) => {
const data = event.editor.getData();
handleExplanationEditor(data);
}}
/>
Итак, что я делаю не так?