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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Customization of Image Browser

Thread ID:

Created:

Updated:

Platform:

Replies:

124234 May 25,2016 08:38 PM UTC May 27,2016 05:26 AM UTC JavaScript 3
loading
Tags: ejRTE
Randy Craven
Asked On May 25, 2016 08:38 PM UTC

Hello,

Is it possible to suppress the image properties portion of the ejRTE Image Browser (i.e., don't show the General and Advanced tabs)?  

And, is it possible to suppress the Add Folder button in the Image Browser?

Thank you,

Randy Craven



Prince Oliver [Syncfusion]
Replied On May 26, 2016 01:27 PM UTC

Hi Randy, 
 
Thanks for contacting Syncfusion Support. 
 
You can remove the General and Advanced tabs in the RTE Image browser by setting its corresponding display CSS property to none. Have a look at the following code snippet. 
 
 
<style type="text/css" class="cssStyles"> 
       div.e-rte-imageTab.e-tab.e-js.e-widget { 
            display: none; 
        } 
    </style> 
 
You can remove the Add Newfolder button by using removeToolbarItem property of Image Browser in the RTE create event. 
 
 
<script> 
$("#rteSample").ejRTE({ 
    toolsList: ["images"], 
    tools: { images: ["image"] }, 
    width: "100%", 
    minWidth: "10px", 
    imageBrowser: { filePath: "http://mvc.syncfusion.com/OdataServices/FileBrowser/", ajaxAction: fileService, extensionAllow: "*.png, *.gif, *.jpg, *.jpeg, *.docx", ajaxSettings: ajaxSettings }, 
    fileBrowser: { filePath: "http://mvc.syncfusion.com/OdataServices/FileBrowser/", ajaxAction: fileService, extensionAllow: "*.txt, *.png, *.pdf,*.jpeg", ajaxSettings: ajaxSettings1 }, 
    create: function (args) { 
        this._explorerObj.removeToolbarItem("NewFolder"); 
   } 
 
}); 
</script> 
 
 
 
Refer to the following Playground sample: 
 
Let us know if you require further queries. 
 
Regards, 
Prince 


Randy Craven
Replied On May 26, 2016 05:04 PM UTC

Hello Prince,

This worked exactly as expected.  Thank you very much.

Randy Craven

Prince Oliver [Syncfusion]
Replied On May 27, 2016 05:26 AM UTC

Hi Randy, 

Thanks for your update. 

We are glad to help you out with your queries, please let us know if you require further assistance. 

Regards, 
Prince 


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.

Please sign in to access our forum

or the page will be automatically redirected to 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

;