Readonly for richtexteditor

I am using richtexteditor, now I want to display my text without allowing editing and hide toolbar and border. Can you help me?




3 Replies

GK Gunasekar Kuppusamy Syncfusion Team July 18, 2021 01:34 PM UTC

Hi Toan,


Greetings from Syncfusion support.


We have validated your reported query "I want to display my text without allowing editing and hide toolbar and border. Can you help me?"

We can achieve your requirement by setting the RichTextEditor readOnly property as true and using customized styles.

We have prepared a sample for your reference.

Code snippets:
<ejs-richtexteditor height="200px" readonly="true">
    . . .
  </ejs-richtexteditor>

.e-toolbar-wrapper {
  height0px !important;
}

.e-control.e-richtexteditor {
  bordernone;
}

.e-control.e-richtexteditor .e-rte-content {
  bordernone;
}

Sample: https://stackblitz.com/edit/angular-nvf4zk-opg3pc?file=app.component.html

Please check the sample and let us know if the solution helps,

Regards,
Gunasekar



TB Toan Bui July 19, 2021 02:46 AM UTC

I did it. Thank you so much!



GK Gunasekar Kuppusamy Syncfusion Team July 19, 2021 12:40 PM UTC

Hi Toan,
 
 
We are glad that you have resolved the issue from your endPlease let us know if you need further assistance.   

Regards,  
Gunasekar

Loader.
Up arrow icon