MicroTiny font in Source code

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
rooon
Forum Members
Forum Members
Posts: 113
Joined: Mon Dec 05, 2011 4:40 pm

MicroTiny font in Source code

Post 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
rooon
Forum Members
Forum Members
Posts: 113
Joined: Mon Dec 05, 2011 4:40 pm

[SOLVED] MicroTiny font in Source code

Post 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.
Post Reply

Return to “CMSMS Core”