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
close icon

Background Image for ejRTE

Hello,

Is it possible to set a background image for an ejRTE control?

Thanks,
Randy

1 Reply

KR Keerthana Rajendran Syncfusion Team July 19, 2016 08:50 AM UTC

Hi Randy,   
  
Thank you for contacting Syncfusion support.   
  
We can apply styles to RTE by using iframeAttributes property. Please refer the UG link below  
 
  
<code>   
<script type="text/javascript">   
        $(function () {   
              $("#rteSample").ejRTE({   
width:"100%",    
isResponsive:true,   
iframeAttributes:{ style :"background-image:url(http://js.syncfusion.com/demos/web/content/images/rotator/snow.jpg);" }});   
        });   
    </script>   
</code>   
  
   
   
We have prepared a sample for your reference. Please refer the below given sample link:   
 
   
Please let us know if any concern   
Regards,   
Keerthana.   
 


Loader.
Live Chat Icon For mobile
Up arrow icon