wontlost-ltd / vaadin-litelement-ckeditor

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

Support for custom Plugins #55

Open MarkusPorti opened 1 year ago

MarkusPorti commented 1 year ago

Hello together!

I just tried to use your Component in my project, because I need to implement a RichTextEditor where I can add my own Button with own functionality to the Toolbar. Another Developer showed me old code of an old project where he used your Component and implemented it with some own JavaScript and could just add his Plugin to your Configuration.

As I'm using newer versions now (Vaadin 24.1.12 and CkEditorVaadin 3.2.1) I encountered the issue that you refactored this part of your code into the use of enums. For this reason I now cannot just add my own Plugin into the Toolbar by using its name anymore.

Is there a new way of implementing a custom Plugin within your component? Or could you add some way to add a Plugin and Toolbar element via String on my own?

Kind regards, Markus Portugall

eroself commented 7 months ago

Hi Markus, custom Plugin is not supported. Only those in the Enum are supported. Sorry for my late reply and the inconvenience.