![]() ![]() Open /VCL/htmlinc.inc file, uncomment $WIDESTRINGS define and recompile library package. To use Unicode in old Delphi you should have TntUnicode library installed. Simply alter THtmlEditor.Scale and the document and its contents will be fully rescaled.įor examaple, place TTrackBar on form, set its Position to 100 and Min/Max to 50-200.Īdd TrackBar.OnChange handler: procedure TForm1.TrackBar1Change(Sender: tobject) Įnd Enabling Unicode for non-Unicode Delphi THtmlEditor has a dedicated property to make it simple to alter the scale of the document. Property TextTransform: TCSSTextTransform Ĭhanging these properties will change style of current selection, or current word at cursor (if nothing is selected) or style of subsequent text entered by user. It has the following properties property Bold: boolean Many text style functions are accessible via the THtmlEditor.TextStyle class. You can enable/disable live spellchecking and autocorrection by using the Spellchecking and WordCorrection properties. To use another spellchecking library you will need to write handlers for the OnSpellCheck and OnWordCorrection events. To use Addict library enable $DEFINE ADDICT in \VCL\htmlinc.inc before installing the package.Īdd TAddictSpell component on the form and set THtmlEditor.AddictSpell property. Default =100 (%) History: THtEditorStateStack Undo history Spellchecking Scale: integer Current document scale in percent. Just place them on toolbar and set Editor property if there is more than one THtmlEditor component on form.īasic Editor properties: Doc: THtDocument Current document object (see HTML Component Library documentation) Caret: THtCaret Current caret positon and state TextStyle: THtTextStyle Current text styles (at caret) OffsetX, OffsetY: integer Offset (in screen pixels) of document (equal to negative scrollbars positions) DesignerElement: TElement Highligted block element containing caret. To control font name and size use THtFontCombo and THtFontSizeC ombo components. THtActionMarkdownHighlight - perform Markdown conversion on selection THtActionPascalHighlight - highlight selection as Pascal code THtActionHTMLHighlight - highlight selection as HTML code THtActionSetHeader- convert current block to header (header level are defined by ActionComponent tag). THtActionAddUrl - convert selection to URL (link). THtActionDecreaseIndent - decrease block or list indent. THtActionIncreaseIndent - increase block or list indent. THtActionOrderedList - convert selection to ordered list. THtActionUnorderedList - convert selection to unordered list. THtActionAlignCenter - set paragraph alignment to center. THtActionAlignRight - set paragraph alignment to right. THtActionAlignLeft - set paragraph alignment to left. THtActionFontStrikeout - set font strikeout. THtActionFontUnderline - set font underline. THtActionPasteImage - paste image from clipboard. THtActionCopy - copy to clipboard THtActionPaste -paste from clipboard. THtActionNew - new document THtFileOpen,- open file. Place an ActionList on the form and use the New standard action command to add actions from the HtmlEdit group. Using Editor commandsĪll basic commands are accessible via actions. THtmlEditor is ready to use and most of it's function are accessible via keyboard (f.e. To start using the editor simply drop a THtmlEditor component on a form and set its HTML:TStrings property or call function in code.ĭon't leave HTML blank, at least code is required. HTML-based editor controls (HtFontCombo, HtFontSizeCombo, HtColorCombo, HtTableAddCombo, HtBorderCombo, HtTableBorderCombo)ĭownload Trial for Delphi 5 - Delphi 11 Alexandria Getting started.Embedded Markdown, Pascal and HTML syntax highlighting.Copy from/paste to MS Word, browsers and other applications.Embedded Find dialog, Text search, Document Index generation.Full access from Delphi code to DOM and Styles. ![]() Full support for HTML tags and CSS properties.PDF export on Windows, Android, OSX and iOS.RTF and MS Word DOCX Import on all platforms.Live text styles preview (font family,size, color, background).Live spellchecking and autocorrection (built-in support for Addict).Unicode support for Delphi 6 - 2007 (requires TNTUnicode).Full support for touch-screen devices - gestures, text selection (Windows Tablets/Screens, iOS, Android, OSX).VCL (Win32/64) FMX ( Windows / OSX / Android / iOS / Linux).Supports all Delphi versions from Delphi 5 to Delphi 11 Alexandria.Does not use IE or other libraries ( 100% native Delphi code).Yes, it is real (and currently the only one) WYSIWYG and 100% native HTML editor written in Delphi. HTML Editor Library - WYSIWYG HTML Editor for Delphi Note : This document has been entirely created using the HTML Editor demo application. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |