-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
display the selected extra css classes of a plugin in structure view #147
Comments
Yes, makes sense. |
I do understand your concern because overflowing text is not wrapping and shortened with ellipsis, but tooltips would not help getting a quick overview of the selected classes/resulting DOM structure. I see two possible solutions:
While we're on the topic of extra classes, is it possible for extra classes to be shareable between Plugins? The benefit of this would be that common class names only have to be entered once and not manually for every Plugin. Furthermore, if a class name needs to be changed, it automatically updates every Plugin where the class is used. With the current behaviour, if I change the class "myClass" to "myNewClass" in the admin config, the Plugin still uses the old "myClass". I know this is very tricky because of the underlying JSON storage of the cascade plugins, but maybe you see a way to achieve this, if you deem it useful. (Actually, many of the above requests would not be needed if I was able to implement my own plugins the way I want, in this case a flexible Bootstrap4 card plugin, but unfortunately I'm not nearly skilled enough :P) |
@rfleschenberg what do you think about this proposal? |
I am fine with showing the extra CSS classes. About shareable classes: I think we need to be careful not to introduce feature creep. On first thought, it seems to me that implementing your own plugin is the cleaner solution. Maybe we should make it easier to implement your own plugin? Maybe all this needs is better documentation? |
By inheriting from an existing plugin and overriding classmethod I still have to rethink about it, and how to make that hook function configurable. Any proposals? |
It would be very helpful to display the selected extra css classes of a plugin in the structure view. An example is given in this screenshot:
The text was updated successfully, but these errors were encountered: