ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / HTML Editor functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Inserts text or HTML code at the cursor position in an HTML Editor control.
Example
// Insert today's date in bold
HTMLEditorInsert(HTMEDT_MyHTMLEditor, "'''" + DateToString(DateSys()) + "'''")
 
// Insert a smiley
HTMLEditorInsert(HTMEDT_MyHTMLEditor, "<p style=""font-size:64px"">&#128512;</p>")
Syntax
HTMLEditorInsert(<HTML Editor control> , <HTML to insert>)
<HTML Editor control>: Control name
Name of the HTML Editor control used.
<HTML to insert>: Character string
HTML text or code to insert at the cursor position.
Remarks
  • If any elements are selected in the HTML Editor control, this selection is deleted.
  • The user can undo the insert via the Undo option or by pressing Ctrl + Z.
  • The current insert position is returned by the Selection or Cursor properties.
Business / UI classification: UI Code
Component: wd290obj.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help