Class CustomPlugin.Builder
java.lang.Object
com.wontlost.ckeditor.CustomPlugin.Builder
- Enclosing class:
CustomPlugin
Custom plugin builder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build custom pluginpremium()Mark as premium feature (import from ckeditor5-premium-features)withDependencies(String... deps) Set dependency pluginswithImportPath(String importPath) Set import path (e.g., 'my-ckeditor-plugin' or '@scope/my-plugin')withToolbarItems(String... items) Set toolbar items provided by this plugin
-
Method Details
-
withImportPath
Set import path (e.g., 'my-ckeditor-plugin' or '@scope/my-plugin')- Parameters:
importPath- npm package name or relative path- Throws:
IllegalArgumentException- if the path format is invalid
-
withToolbarItems
Set toolbar items provided by this plugin -
withDependencies
Set dependency plugins -
build
Build custom plugin
-