ContentTools
ContentTools copied to clipboard
Add support for setting multiple classes when defining a style
Following code do not work:
ContentTools.StylePalette.add([
new ContentTools.Style('Alert info', 'alert alert-info', ['p']),
new ContentTools.Style('Alert success', 'alert alert-success', ['p']),
new ContentTools.Style('Alert warning', 'alert alert-warning', ['p']),
new ContentTools.Style('Alert danger', 'alert alert-danger', ['p'])
]);
Only one class is possible.
In this code:
ContentTools.StylePalette.add([
new ContentTools.Style('Alert info', ['alert', 'alert-info'], ['p']),
new ContentTools.Style('Alert success', ['alert', 'alert-success'], ['p']),
new ContentTools.Style('Alert warning', ['alert', 'alert-warning'], ['p']),
new ContentTools.Style('Alert danger', ['alert', 'alert-danger'], ['p'])
]);
it isn't working too.
Hi @Teddy95 - yes currently the system only supports for a single class and I agree this is limiting, I know it's been looked at previously (but I'm now struggling to find the issue). However I'm going to flag it as an enhancement, this is something I know my frontend colleagues would really appreciate too.
I'd like to add my request for this feature as well. It would lend itself very well for use with the Tachyons css library and other "Atomic CSS" methodologies.