How can I change the background color for the html source code editor?

cottercat

Member
Hi @twisted1919 , I work in the source code of my emails a lot. And I find the black/blue background in the html source code editor to be very hard on my eyes (my eyes are blurry for a few minutes after I use it every tme).

Is there a control somewhere that will allow me to change the background for the html source code editor to a white or light gray which would be easier on my eyes?
 
Believe it or not, this is possible :D
Create a file called init-custom.php in the /apps/ folder and put this into it:
PHP:
<?php
    
Yii::app()->hooks->addFilter('wysiwyg_editor_global_options', function ($options) {
    $options['codemirror']['theme'] = 'default';
    return $options;
});
 
Back
Top