Opened 9 years ago
Last modified 9 years ago
#13829 closed Bug
Add class based on widget type to the widget wrapper — at Initial Version
Reported by: | Marek Lewandowski | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.6.0 |
Component: | General | Version: | |
Keywords: | Cc: |
Description
As @Reinmar writes:
Inability to write rules matching certain widget wrapper + widget class
Once classes will be moved to wrappers it would be good if it was possible to write rules like:
.image.centered { ... } .embed.centered { ... }As I experienced recently centered image's wrapper may need very different styles than that of an embed widget. E.g. image's wrapper must have text-align: center. This affects embed widgets which may be unwanted if we only want to use margin-left/right: auto.
Hence, it will be useful if widget wrapper had classes based on widgets names - e.g. "widget-image", "widget-embed", etc.