Charles Scully Posted September 2, 2022 Share Posted September 2, 2022 We are trying to set the default font size on the editor. The email template editor uses TinyMCE 4 - https://www.tiny.cloud/docs-4x/ . Changing the default font size set on the TinyMCE editor may be possible using custom javascript which could potentially be added via our AdminAreaFooterOutput hook point - - https://developers.whmcs.com/hooks-reference/output/#adminareafooteroutput Any suggestions? 0 Quote Link to comment Share on other sites More sharing options...
leemahoney3 Posted September 6, 2022 Share Posted September 6, 2022 Hi Charles, The following hook should work, save it as a file in your /includes/hooks/ folder: <?php function change_editor_font_size($vars) { $fontSize = '18pt'; if ($vars['filename'] == 'configemailtemplates') { return ' <script type="text/javascript"> tinymceSettings.content_style = "body {font-size: ' . $fontSize . ';}"; tinymce.init(tinymceSettings); </script> '; } } add_hook('AdminAreaFooterOutput', 1, 'change_editor_font_size'); 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.