StepicOrg / katex-ckeditor-plugin

KaTeX plugin for CKEditor 4
https://ckeditor.com/cke4/addon/katex
0 stars 0 forks source link

I have a problem when add katex plugin #1

Open sontt-1215 opened 3 years ago

sontt-1215 commented 3 years ago

Hello @nag5000 !!! I'm using vuejs and vue-ckeditor4. I'm following https://ckeditor.com/docs/ckeditor4/latest/guide/dev_vue.html?fbclid=IwAR3Cw3W5q-azh9vRPEq7TGHgHEDFvFSLXsOTSyuHCJwMuXlv60yoLCgcKjo#namespaceloaded to import your plugin My function

onNamespaceLoaded(CKEDITOR) {
    CKEDITOR.plugins.addExternal('katex', '/node_modules/katex-ckeditor-plugin/plugin.js', 'plugin.js' );
},

But i got this error back Screenshot from 2020-12-25 12-33-36 Please help me !!!

nag5000 commented 3 years ago

Hello @sontt-1215,

Are you sure CKEDITOR is able to load the plugin from /node_modules/katex-ckeditor-plugin/plugin.js? Please check the Network tab in browser devtools. With error Uncaught SyntaxError: expected expression, got '<' it looks like a 404 html page is actually loading.