Is there way to configure (not extend) the email preview to a larger area?

Hi.

I´m getting requests asking if the red circle in the picture can be made bigger. The email module is not in Studio. So is there a way?

Thanks,

KGM

Parents Reply Children
  • Björn Canales Pfisterer

    I added an empty file names studio.php to /modules/Emails/metadata/ then ran QR&R, and sure enough, the Email module now appears in my Studio:

    Very nice indeed!

    However, the field that needs to be enlarged (description_html) isn´t in that list :/

    So I guess this field can´t be changed with configuration...

    Thanks, KGM

  • Hi,

    You should do this programmatically:

    Find the file: 

    /modules/Emails/clients/base/fields/htmleditable_tinymce/htmleditable_tinymce.js

     

    Create a custom version of it into path (meaning copy the file into this path):

    custom/modules/Emails/clients/base/fields/htmleditable_tinymce/htmleditable_tinymce.js

     

    Then, find the line:

    _renderView: function() 

     Scroll down to this block of code:

    if (this.$el.find('iframe').length === 0) {
        iFrame = $('<iframe>', {
            src: '',
            class: 'htmleditable' + (this.def.span ? ' span' + this.def.span : ''),
            frameborder: 0,
            name: this.name
        });

    and directly below this line:

    frameborder: 0,

    add the following line of code:

    height: 500,

    (or change 500 to whatever size you wish)