Example of API in ASP.NET Core Rich Text Editor Control
This sample demonstrate the usage of API in Rich Text Editor, use the properties panel to change the maximum length, read only mode, disable status, to get value, enable HTML encode, select all content and get selected HTML from the Rich Text Editor.
DEMO
SOURCE
|
Max Length
|
|
|
Readonly
|
|
|
Enable
|
|
|
Enable HTML Encode
|
|
|
|
|
|
|
|
|
|
In this demos, Ensuring the API'S behavious by doing
- Change the value of
maxLengthtextbox to change maximum Length of character. - Click the
readOnlycheck box to enable/disable editable and non-editable mode of the RTE. - Click the
enabledcheck box to enable/disable the RTE component. - Click the
enableHtmlEncodecheck box to enableHtmlEncode/disableHtmlEncode the RTE component. - Click the
getValuebutton which shows the RTE values in the alert window. - Click the
getSelectionbutton which shows the selectedText in the alert window. - Click the
selectAllbutton selecting all text content in the RTE.