-
|
Hello, What I changed:
Tried to build it with: Questions My fork with all the changes: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi @Meinzzzz! I'm Dosu and I’m helping the Trilium team. The most likely reason your custom MathLive CKEditor5 plugin works in dev but not in the packaged Electron app is that it isn't fully registered in the CKEditor build used by Trilium. For a custom plugin to appear in production, it must be imported and added to the correct plugin array (like Also, check that your Electron build isn't missing any static assets or initialization code for web components like To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Hi @Meinzzzz! I'm Dosu and I’m helping the Trilium team.
The most likely reason your custom MathLive CKEditor5 plugin works in dev but not in the packaged Electron app is that it isn't fully registered in the CKEditor build used by Trilium. For a custom plugin to appear in production, it must be imported and added to the correct plugin array (like
EXTERNAL_PLUGINSorCOMMON_PLUGINS) inpackages/ckeditor5/src/plugins.ts, and also imported inindex.tsso it's bundled for both dev and production builds. If you only import MathLive in a module (likemathui.ts), it may work in dev due to module hot-reloading, but won't be included in the production bundle unless it's registered in these array…