How to Use HTML Editor Library v3.64 for Delphi Applications
If you are looking for a native HTML editor for Delphi, you might want to check out HTML Editor Library v3.64. This library is a WYSIWYG HTML editor that does not use IE or other external libraries. It supports all Delphi versions from Delphi 5 to Delphi 10.2 Tokyo and both VCL and FMX platforms.
In this article, we will show you how to install and use HTML Editor Library v3.64 in your Delphi projects. We will also demonstrate some of the features and benefits of this library, such as live spellchecking, RTF and DOCX import, PDF export, Markdown and syntax highlighting, and more.
Installing HTML Editor Library v3.64
To install HTML Editor Library v3.64, you need to download the package from the official website: https://developer.team/delphi/22999-html-editor-library-v364.html. The package contains the source code, demos, documentation, and license files.
After downloading the package, you need to unzip it to a folder of your choice. Then, you need to open the project group file (HtmlEditor.dproj) in Delphi and compile the packages for your target platform. You can find the packages in the Packages folder.
Once you compile the packages, you need to install them in the IDE. To do that, go to Component > Install Packages and click on Add. Then, browse to the BPL folder and select the HtmlEditor.bpl file. Click on OK and you should see the HtmlEditor components in the Tool Palette.
Using HTML Editor Library v3.64
To use HTML Editor Library v3.64 in your Delphi projects, you need to drop a THtmlEditor component on a form and set its HTML property or call its LoadFromFile method to load an HTML file. You can also use other components such as THtFontCombo, THtFontSizeCombo, THtColorCombo, etc. to customize the editor's appearance and functionality.
The THtmlEditor component has many properties and methods that allow you to manipulate the HTML content and access the DOM and styles. You can also use the Actions property to assign predefined actions for common editing commands such as bold, italic, underline, align, list, etc.
The THtmlEditor component also supports various events that let you handle user input and editor changes. For example, you can use the OnChange event to update other controls or save the HTML content automatically. You can also use the OnSelectionChange event to update the status bar or toolbar according to the current selection.
Features and Benefits of HTML Editor Library v3.64
HTML Editor Library v3.64 offers many features and benefits for Delphi developers who need a native HTML editor for their applications. Here are some of them:
WYSIWYG editing: You can edit HTML content visually without worrying about the underlying code.
Cross-platform support: You can use HTML Editor Library v3.64 for both VCL and FMX applications on Windows, OSX, Android, iOS, and Linux.
Touch-screen support: You can use HTML Editor Library v3.64 on touch-screen devices with gestures, text selection, and smooth scrolling.
Unicode support: You can use HTML Editor Library v3.64 with any language and character set.
Live spellchecking and autocorrection: You can use HTML Editor Library v3.64 with Addict Spell Check & Thesaurus component to check spelling and grammar errors and correct them automatically.
RTF and DOCX import: You can import RTF and MS Word documents into HTML Editor Library v3.64 with a single line of code.
PDF export: You can export HTML content to PDF files on Windows, Android, OSX, and iOS with a single line of code.
DB-Aware version: You can use HTML Editor Library v3.64 with any database component that supports TStrings fields.
Full support for HTML tags and CSS properties: You can use any HTML tag or CSS property in HTML Editor Library v3.64 without aa16f39245