This sample demonstrate the usage of API in RichTextEditor, 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 RichTextEditor.
In this demos, Ensuring the API'S behavious by doing
maxLengthtextbox to change maximum Length of character.
readOnlycheck box to enable/disable editable and non-editable mode of the RTE.
enabledcheck box to enable/disable the RTE component.
enableHtmlEncodecheck box to enableHtmlEncode/disableHtmlEncode the RTE component.
getValuebutton which shows the RTE values in the alert window.
getSelectionbutton which shows the selectedText in the alert window.
selectAllbutton selecting all text content in the RTE.
RichTextEditor component features are segregated into individual feature-wise modules.
To use richtexteditor feature, we need to inject
Toolbar, Link, Image, Count, HtmlEditor modules into the services.