Skip to content
Discussion options

You must be logged in to vote

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_PLUGINS or COMMON_PLUGINS) in packages/ckeditor5/src/plugins.ts, and also imported in index.ts so it's bundled for both dev and production builds. If you only import MathLive in a module (like mathui.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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Meinzzzz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant