Hi guys
I always thought and annoyed me a bit over the E-mail compose windows size is quite small so you always have to drag it down a bit and make it a bit larger in height…
Is there a way to make it larger by default and which code element/file controls this?
Thanks in advance.
Kind regards
rsp
11 September 2024 20:54
3
modules/Emails/vardefs.php
'description_html' => array(
'name' => 'description_html',
'type' => 'emailbody',
'vname' => 'description_html',
'source' => 'non-db',
'inline_edit' => false,
),
rsp:
or maybe this:
Hi, I have the same problem on SuiteP(7.11.13) theme. I resolved this problem like below, so I hope this would be your help! add styles on custom/themes/SuiteP/css/Dawn/style.css file (also Day,Dusk,Night) (if you don’t have those directories and files, create them.) .col-xs-12 .col-sm-8.edit-view-field textarea#description {width:100%;} .col-xs-12 .col-sm-8.edit-view-field textarea{width:100%;} Admin, Repair, Quick Repair and Rebuild on editing a Opportunitie, press [F5] to refres…
That one seems to be for text fields in the “Studio” builder though.
rsp:
modules/Emails/metadata/composeviewdefs.php
rsp:
modules/Emails/vardefs.php
'description_html' => array(
'name' => 'description_html',
'type' => 'emailbody',
'vname' => 'description_html',
'source' => 'non-db',
'inline_edit' => false,
),
Thanks for the suggestion, I’ll have look on the code.
Thanks @rsp .
I could increase the height of the editor by the following change.
Created a file at custom/themes/SuiteP/css/Dawn/style.css
Added the following css property as follows
.col-xs-12 .col-sm-8.edit-view-field textarea#description{
height:320px !important;
}
Quick repair and rebuild.
1 Like
Any success, did that code tweak work for you?
Kind regards
Yes it worked. Created the style.css file with the height property. Quick repair and rebuild. It shows the html editor with increased height.
1 Like
rsp
12 September 2024 13:51
8
That’s awesome. @PowerQuest mark answer as solution so it will help others in the future.
1 Like
The above CSS will be applied to every description control. So the following CSS applies to just compose email page editor. It sets the default height of the editor.
#ComposeView * textarea#description{
height:320px !important;
}
1 Like
Tested myself and indeed!
It works flawlessly. Thanks for sharing @Harshad !
It is very appreciated.
I think many people here on the SuiteCRM forums will be very happy for this.
Kind regards