wontlost-ltd / vaadin-litelement-ckeditor

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

Would it be possible to see how you created the code on https://wontlost-demo.azurewebsites.net/ckeditor/classic #53

Closed FollowSteph closed 1 year ago

FollowSteph commented 1 year ago

Specifically I'm trying to re-create the read only version with no toolbar. I tried to set it up new Constants.Toolbar[]{} but that just ended up going with the default toolbar. I also tried the inline and styling it through addClassname(stylename) but that caused some weird styling issues (using for example border: 1px solid black;). In any case how does one go about creating the read only ckeditor you created in your demo on that page at the top that has a border but no toolbar?

Thank you.

eroself commented 1 year ago

VaadinCKEditor editor = new VaadinCKEditorBuilder().with(builder -> { ... builder.readOnly = true; builder.hideToolbar=true; ... }).createVaadinCKEditor();

On 28/08/2023, at 8:59 AM, FollowSteph @.***> wrote:

Specifically I'm trying to re-create the read only version with no toolbar. I tried to set it up new Constants.Toolbar[]{} but that just ended up going with the default toolbar. I also tried the inline and styling it through addClassname(stylename) but that caused some weird styling issues (using for example border: 1px solid black;). In any case how does one go about creating the read only ckeditor you created in your demo on that page at the top that has a border but no toolbar?

Thank you.

— Reply to this email directly, view it on GitHub https://github.com/wontlost-ltd/vaadin-litelement-ckeditor/issues/53, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6BLXQAY3XVVIXPTSTK7LLXXOYLZANCNFSM6AAAAAA4ARQOPM. You are receiving this because you are subscribed to this thread.

FollowSteph commented 1 year ago

That was exactly what I was looking for. Thank you very much.

FollowSteph commented 1 year ago

Forgot to close