How could we reduce the height of the BodyPart

Topics: General, Writing modules
Sep 26, 2015 at 8:46 PM
Well, well, well,

I spent a long time on trying to reduce the size of the textarea used by tinyMCE to do its job.
I tried copying the Body-Editor.cshtml from common to my view module folder, same folder as in common.
Because in this file, there is
@Html.TextArea("Text", (string)Model.Text, 10, 80, htmlAttributes)
where we could change the row and col values to a reduced number.
No success.
Then I copied the Parts.Common.body.chtml also.
No success ????
Here I am puzzled because the debugger tells me that I am loading my new body-editor.cshtml, but nothing changes on display.

Is there a more simple way to do it ?

It would be nice to be able to enter this in the BodyPart from the ContentItem editor.

Thanks for help.
Sep 28, 2015 at 8:29 AM
I think that is because TinyMCE uses its own height configuration. You might want to override the orchard-tinymce.js in your theme to configure it to your needs.