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.
Unfortunately, activation email could not send to your email. Please try again.

Background Image for ejRTE

Thread ID:

Created:

Updated:

Platform:

Replies:

125043 Jul 16,2016 09:16 PM Jul 19,2016 04:50 AM JavaScript 1
loading
Tags: ejRTE
Randy Craven
Asked On July 16, 2016 09:16 PM

Hello,

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

Thanks,
Randy

Keerthana Rajendran [Syncfusion]
Replied On July 19, 2016 04:50 AM

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.   
 


CONFIRMATION

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.

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.

;