Skip to Content
avatar image
Former Member

RichTextEditor Font Size

Hi,

I'm having problems with using the RichTextEditor. The initial font-size of the editor is very small. Is there any way to change it to a bigger default font size? I can't seem to figure out how to send information to the TinyMCE editor. The documentation seems to suggest using the onBeforeInit event, but it doesn't give any example on how to use it.

Regards

Albert Volschenk

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Aug 12, 2016 at 11:34 AM

    Just an update, I found this to be the answer.

    Take note this is for TinyMCE4

    attachBeforeEditorInit(function{oEvent){
    var config = oEvent.getParameter("configuration");
    
    config["setup] = function(ed){
    {
    ed.on('init', function(){
    {
    this.getBody().style.fontSize = '10pt'; //Set the font size here
    }
    }
    });
    
    Add comment
    10|10000 characters needed characters exceeded