Page 1 of 1

MicroTiny font in Source code

Posted: Wed Apr 22, 2020 1:47 pm
by rooon
Hi all,

My question is about the default MicroTiny editor in CMSMS 2.2

The person who is working with this editor in the Content Manager is asking for a 'monospace' font in menu Tools -> Source code.

I searched a lot and tried different answers but nothing works.
How to do this? (only for the source code)

CMSMS
- CMS Version 2.2.13
- MicroTiny 2.2.4

Modules
- CGBetterForms 1.10.4
- CGExtensions 1.65.2
- Captcha 1.0

Thanx in advance

Ronald

[SOLVED] MicroTiny font in Source code

Posted: Wed Apr 22, 2020 3:47 pm
by rooon
In folder admin/thems :
1. Copy folder /OneEleven to folder /TwoEleven
2. Open file TwoEleven/css/style.css
3. Add after the last line the following css code:

Code: Select all

/* TinyMCE override source code font */
.mce-container-body textarea.mce-textbox.mce-multiline {
font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
4. Rename file thems/TwoEleven/OneElevenTheme.php in TwoElevenTheme.php
5. In this file, change "class OneElevenTheme" to "class TwoElevenTheme"

Upload folder "TwoEleven" to the website in folder admin/themes
In CMSMS, goto User Preferences and change the theme in TwoEleven

In this way the core files are not changed.