Open mafina opened 2 years ago
same issue
same issue
same issue
same issue. Any suggestions how to fix it?
I fixed this issue by copy this plugin source code src/*
to custom build folder /src/lineheight/*
.
And install this plugin dependencies (notice: keep them same version), then import it import LineHeight from './lineheight/lineheight.js';
,
/* src/ckeditor.js */
// ...
import LineHeight from './lineheight/lineheight.js';
// ...
Editor.builtinPlugins = [
// ...
LineHeight,
// ...
];
// ...
Editor.defaultConfig = {
toolbar: {
items: [
// ...
"lineHeight",
// ...
],
},
};
// ...
rebuild custom folder at last.
I've used the custom builder generator: https://ckeditor.com/ckeditor-5/online-builder/ and everything works fine up until now.
But when I try to add this package as dependency and rebuild the custom build i get this error in console log and my app doesn't work.
core.mjs:6485 ERROR Error: Uncaught (in promise): CKEditorError: ckeditor-duplicated-modules Read more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-ckeditor-duplicated-modules CKEditorError: ckeditor-duplicated-modules
Any help would be appreciated. Thanks.