Category / Section
How to remove the tool bar from the rich text editor but leave the empty textbox alone?
2 mins read
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
|