A standalone class that provides a highly flexible rich text editing experience with HTML support.
Built on Quill 2.0.2 for XOJO users, RTEdit extends its capabilities by processing pasted clipboard data according to defined styling settings using a custom markup parser. It offers enhanced event handling and full access to all CSS and JavaScript elements—all within a single class instance with no dependencies.
REditor.Document = "<b>Bold Text Here</b>" REditor.Initialize
Introduction & showcase video https://www.youtube.com/watch?v=j4tDSoc2MWk
Below is a list of its main properties, methods, and events.
AllowTables AllowTextDragDrop AllowVariables AutoFormatLinks KeyboardBindStyles
AllowAlignment AllowBold AllowBulletins AllowCleanFormatting AllowCode AllowFontSelection AllowHeaders AllowIndentation AllowItalic AllowLinks AllowList AllowQuote AllowStrikeThrough AllowSubscript AllowSuperscript AllowTextBackgroundColor AllowTextColor AllowTextDirection AllowTextDragDrop AllowUnderline AllowVideo
ColorBackground ColorBackgroundSelection ColorBlockQuote ColorBlockQuoteLine ColorCodeBlock ColorCodeBlockBackground Colorlink ColorPlaceholder ColorScrollbar ColorScrollbarHover ColorText ColorTextItalic ColorTextSelection ColorToolbar ColorToolbarDisabled ColorToolbarHover ColorVariablesPopupBackground ColorVariablesPopupBackgroundSelected ColorVariablesPopupScrollbarBackground ColorVariablesPopupScrollbarThumb ColorVariablesPopupScrollbarThumbHover ColorVariablesPopupText ColorVariablesPopupTextHover ColorVariablesText
Document EnableRightClick ColorScheme EditMode FontSize PlaceHolder Toolbar ToolbarAlignment ToolbarBackground UserGuide VariablesTextBold VariablesTextItalic Version
Getting document data
AutoInitialize ExportDocumentAsJSON getDocumentHTML getDocumentLength getDocumentMentions getDocumentText ImportDocumentFromJSON InsertVariable NewDocument RemoveFocus SaveColorsAsScheme SelectAll
AppendText ClipboardPaste Close CopySelectionToClipboard PrintDocument RetrieveValue ScrollToBottom ScrollToTop StoreValue VariablesAt VariablesBraces VariablesBrackets VariablesDollar VariablesHash VariablesPercent UpdateVariableValue
Some customized events include
ClipboardPaste ContextualMenuItemSelected DebugCSSData DocumentChanged EditorReady ErrorMessage FocusReceived MouseLeftClick MouseRightClick UserSelectedURL
Initialize
Acknowledgement and license
This control is free to use, but requires proper acknowledgment in any derived work or application. You must mention the original author and provide a link to this repository in your documentation or credits. A part of this control is based on Quill 2.0+ https://github.com/slab/quill/blob/main/LICENSETerms
Free to Use: You are allowed to use this control in your projects without charge. Acknowledgment Required: You must provide proper attribution in any work that uses this control. No Decryption or Modification: You are not allowed to decrypt, reverse-engineer, or modify the control in any way.