wontlost-ltd / vaadin-litelement-ckeditor

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

Styling issues in read-only mode. #44

Open nbabb opened 1 year ago

nbabb commented 1 year ago

I've had some luck styling the component using regular css. However when I use the component in read only mode, there is no css added to the component that detects this. As a result I am not able to condition styles that I added, to modify the components appearance in non read only mode, to not appear when the component is in readonly mode. The request is for a class, or some other css indicator, to be added to the vaadin-ckeditor when in read only mode.

As a more long-term goal, it'd be nice if the component used the typical vaadin styles approach (see https://github.com/vaadin/vaadin-themable-mixin).

Also some styling guidelines would be helpful in the documentation. I did just notice a classname is applied of ck-read-only but this is placed on a div within the component.

eroself commented 1 year ago

Good point, I'll try to add this feature in future release. Cheers