I've created a custom RTE object to use in a grid content. I was wondering if there's anyway to add a background color to this object in the backoffice.
<div ng-controller="Umbraco.PropertyEditors.Grid.RichTextEditorController as vm">
<grid-rte
configuration="model.config.rte"
value="control.value"
unique-id="control.$uniqueId"
style="background: red"
>
</grid-rte>
</div>
I wouldn't be able to give you an Umbraco 8 specific answer but on Umbraco 7 I made a plugin to change the style of the back office.
I added a folder into the /App_Plugins folder named BackOfficeStyles then added JS and CSS files there with a package.manifest file that looked like this:
How to customize RTE editor style in backoffice
Hello!
I've created a custom RTE object to use in a grid content. I was wondering if there's anyway to add a background color to this object in the backoffice.
Hi Marc-André,
I wouldn't be able to give you an Umbraco 8 specific answer but on Umbraco 7 I made a plugin to change the style of the back office.
I added a folder into the /App_Plugins folder named BackOfficeStyles then added JS and CSS files there with a package.manifest file that looked like this:
With this setup you could add a class name to your rte div and change the styles in CSS.
Hope this helps!
Kind Regards, Lewis
Thanks! I added a css file and a class to my "ng-controller" div and it did the trick
is working on a reply...