wontlost-ltd / vaadin-litelement-ckeditor

Vaadin14+LitElement+CKEditor5
Other
17 stars 13 forks source link

Disabling premium features gives an error "Path to the script is not specified" #63

Open deep-space-explorer opened 5 months ago

deep-space-explorer commented 5 months ago

Disabling premium features gives an error "Path to the script is not specified". Code below:

Config config = new Config();
List<Constants.Plugins> plugins = List.of(Constants.Plugins.ExportPdf, Constants.Plugins.ExportWord);//premium feature which needs a license
config.setRemovePlugins(plugins);

VaadinCKEditor classicEditor = new VaadinCKEditorBuilder().with(builder -> {
    builder.editorData = "This is a classic editor sample.";
    builder.editorType = Constants.EditorType.CLASSIC;
    builder.theme = Constants.ThemeType.DARK;
    builder.config = config;
}).createVaadinCKEditor();

error: Error: Path to the script is not specified. at JS._validateSrc (VAADIN/build/generated-flow-imports-CYMl0Y6c.js:16562:1478) at new JS (VAADIN/build/generated-flow-imports-CYMl0Y6c.js:16562:1276) at yt._loadWscbundle (VAADIN/build/generated-flow-imports-CYMl0Y6c.js:16747:1923) at yt.init (VAADIN/build/generated-flow-imports-CYMl0Y6c.js:16747:982)

How to correctly disabe premium features?

With premium features turned on everyting works fine!

In application.properties I have: vaadin.allowed-packages=com.vaadin,org.vaadin,dev.hilla,com.wontlost