Page 1 of 1

Change font of Source Code editor in MicroTiny

Posted: Tue Oct 06, 2020 12:10 pm
by rooon
Hi all,

The font of the Source Code editor in MicroTiny is not monospace. I want to change this.
In the past I did this in the style.css of the Admin theme like this

Code: Select all

.mce-container-body textarea.mce-textbox.mce-multiline,
textarea.mce-textbox.mce-multiline {
    font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
But I understand that it is better to do such things throught the assets folder.
I copied style.css of the admin theme in assets/admin_custom/themes/OneEleven/css/ but for some reason this is not working.

My questioni: how to change the admin css throught the assets folder?

Re: Change font of Source Code editor in MicroTiny

Posted: Tue Oct 06, 2020 3:29 pm
by DIGI3
I think the admin_custom is of limited use at the moment - I could be wrong, but I seem to recall it was in preparation for more robust use in future versions.

If you can't make it work, you could try the ext_css method outlined here: https://cmscanbesimple.org/blog/customi ... king-files

[SOLVED] Change font of Source Code editor in MicroTiny

Posted: Tue Oct 06, 2020 4:23 pm
by rooon
Great!! A simple nice way without peek & poke to change a few style properties. Thanx ;)