Rich Text Widget Custom Style for Images

I am trying to do a border-radius and/or box shadow custom style in the rich text widget to be used on images with little success. It does not apply it to the whole image just the bottom. Has anyone else tried to do this?

Be sure to check the markup that the rich text editor is adding when applying custom styles. It’s likely not doing what you expect. There seems to be no way to apply a class to an element directly. The editor does neat things like wrapping the element (tag) in a span then applying the class to the span. Experiment with it and watch the source. I think you’ll find you’re getting an image tag wrapped in a span with your class applied instead of your class applied to the image tag. Try adding a class to an unordered list and see what happens. Hint: You’ll get spans wrapped around the list items…