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.

How to remove the tool bar from the rich text editor but leave the empty textbox alone?

How to hide the tool bar from the rich text editor but leave the empty editor alone?

We can hide the toolbar from Rich Text Editor and leave the empty textbox alone using our API “showToolBar”.

This API used to show/hide the tool bar in rte. Default value of this API is “true”. We can hide the tool bar by setting this property value as false.

Please refer the below code snippet to hide the toolbar in RTE at that initialization.

[script]

$("#rteSample").ejRTE({ showToolbar: false });//hide the toolbar at that time initialization

               

Please refer the below code snippet to hide the toolbar in RTE dynamically or using object after the control is rendered.

[script]

 

var rteObj = $("#rteSample").data("ejRTE");

 rteObj.option("showToolbar", false);//to hide the toolbar dynamically/using object

 

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
4307 03/19/2015 03/19/2015 JavaScript ejRTE
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.