enableResize options?

Would it be possible to control the resizing behavior?


We would like to allow only vertical resize ( height ) and also set a maximum height when this is happening.


Your suggestion would be appreciated.  :0


Thanks in advance


3 Replies

VJ Vinitha Jeyakumar Syncfusion Team March 25, 2022 02:12 PM UTC

Hi Thierry,


To have a restricted resizable area for the Rich Text Editor, you need to specify the min-width, max-width, min-height, and max-height CSS properties for the control’s wrapper element
To resize only on vertical(height), you need to specify similar min and max width. please check the below code for your reference,

Code snippet:
let defaultRTERichTextEditor = new RichTextEditor({
  enableResize: true,
  height: 250,
});
defaultRTE.appendTo('#defaultRTE');

<style>
        .e-richtexteditor {
          max-width1000px;
          min-width1000px;
          max-height700px;
        }
 </style>


You can also set maximum height for the Rich Text Editor by using max-height property.


Regards,
Vinitha




TT Thierry Tremblay March 25, 2022 06:14 PM UTC

Thank you! This will work. I should have thought about this myself  ;)


Have a great weekend



BS Buvana Sathasivam Syncfusion Team March 28, 2022 11:14 AM UTC

Welcome, we are glad that your reported issues are resolved. Please get back to us if you need any further assistance. 


Loader.
Up arrow icon