Example of Type in Javascript Rich Text Editor Control

/
/
Type

This sample demonstrates the different behavior of toolbar support in the Rich Text Editor. Change the toolbar type as multiRow or expand from the property panel to see its appearance . Check or uncheck the floating toolbar in property panel to look on its behavior.

More Details...

The Rich Text Editor is a WYSIWYG ("what you see is what you get") editor useful to create and edit content and return the valid HTML markup or markdown of the content

Toolbar

  1. The Toolbar contains commands to align the text, insert a link, insert an image, insert list, undo/redo operations, HTML view, etc

  2. The Toolbar is fully customizable

Links

  1. You can insert a hyperlink with its corresponding dialog

  2. Attach a hyperlink to the displayed text.

  3. Customize the quick toolbar based on the hyperlink

Validation

  • The editor’s content can be validated on form submission by applying validation rules and validation message

Locale.

  • The editor provides an option to localize its static strings to adapt the editor to a local language.

Image.

  1. Allows you to insert images from an online source as well as the local computer

  2. You can upload an image

  3. Provides an option to customize the quick toolbar for an image

Logo
Description

Floating: set boolean value to toolbarSettings.enableFloating property to enable or disable the floating toolbar. The Rich Text Editor allows you to configure different types of toolbar using toolbarSettings.type property. The types of toolbar are: Expand: The toolbar hides the overflowing items in the next row. Click the expand arrow to view overflowing toolbar items Multi Row: The toolbar hides the overflowing items in the next row. Scrollable: All the elements are displayed in a single line with horizontal scrolling enabled. Injecting Module The above features built as modules have to be included in your application. For example, to use image and link, inject the specific module using RichTextEditor.Inject (Toolbar, Link, Image, HtmlEditor, QuickToolbar, EmojiPicker, PasteCleanup, Audio ,Video, FormatPainter, Table).