Having some issues regarding the text editor configuration. How can I add the yellow button to it as per my current CSS?
My CSS is the following:
border: 1px solid #d5d5d5;
-webkit-box-shadow: 0 0 .5em 0 rgba(0, 0, 0, .05);
-moz-box-shadow: 0 0 .5em 0 rgba(0, 0, 0, .05);
box-shadow: 0 0 .5em 0 rgba(0, 0, 0, .05);
padding: .7em 2.5em .7em .7em;
<class name="Button" value=".button" />
<class name="ButtonYellow" value=".button .yellow" /></classes>
I would prefer not to have to create each colour differently.
The issue is that I the class does not render correctly. The 'button' works fine but when I want to add a Yellow button it does not work. Any thoughts highly appreciated.
Try removing the space between ".button .yellow" in your toolbox entry. I know that in html you would be writing it as class="button yellow", but the RadEditor is going to look for an exact match on the context that you enter.
Thanks! Unfortunately it does not solve my issue, the only difference is that I do get the last class through on the apply class dropdownlist, but not the first.
Also, how can I style a list? That one also does not show on the dropdownlist, but it is only one class. I cannot ask the business department to switch to html and add the CSS class name manually, they would struggle and could mess it up. There should be more comprehensive examples for real world scenarios of this. Think this post should be a start for it. Let me know if you know of any.
In the meantime going to rewrite all the classes on my CSS to be separate, although it still leaves me with wrappers and list classes unresolved.