We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Set background color when control has ReadOnly property

Thread ID:





150468 Jan 8,2020 09:21 AM UTC Jan 9,2020 01:40 PM UTC Vue 1
Tags: RichTextEditor
Konrad Lowczak
Asked On January 8, 2020 09:21 AM UTC


How to set background color of editor when readonly property is set to true (similar like disabled state)?

Best regards

Indrajith Srinivasan [Syncfusion]
Replied On January 9, 2020 01:40 PM UTC

Hi Konrad, 
Greetings from Syncfusion support 
In order to set the background color for the editor if readonly property is enabled, you can use the following styles. 
As like disabled state, you can set for readonly property through .e-rte-readonly class 
    .e-rte-readonly.e-richtexteditor .e-rte-content .e-content { 
      /* You can also set the background color  */ 
      /* background: red; */ 
Could you please try out the above solution and confirm whether it meets your requirement, please contact us if you need further assistance on this. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon