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

Set background color when control has ReadOnly property

Hi

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

Best regards

1 Reply

IS Indrajith Srinivasan Syncfusion Team 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 
   
 
<style> 
    .e-rte-readonly.e-richtexteditor .e-rte-content .e-content { 
      opacity0.35; 
      /* You can also set the background color  */ 
      /* background: red; */ 
    } 
</style> 
 
 
  
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. 
  
Regards,  
Indrajith 


Loader.
Live Chat Icon For mobile
Up arrow icon