Nothing comes for free, features take bandwidth, so the RTE component has two versions—SimpleEditor, which provides the basic editing functionality, and Editor,
which is a subclass of SimpleEditor. Editor
adds several features at a cost of close to 40% more size, plus several more dependencies, which we might have already loaded and might not add to the total.
A look at their toolbars can help us to see the differences:
The preceding screenshot shows the standard toolbar of SimpleEditor
. The toolbar allows selection of fonts, sizes, and styles. Also, it lets you select the color both for the text and the background, create lists, and insert links and pictures.
The full editor adds subscript and superscript, remove formatting, show source, undo, and redo to the top toolbar and text alignment, <Hn>
paragraph styles, and indenting commands to the bottom toolbar. The full editor requires, beyond the common dependencies for both, Button and Menu so that the regular HTML...