eWebEditor Home >> eWebEditor Manual V11.2 >> Developer Guide >> JavaScript API

3.7.6 insertHTML

Description

Inserts HTML at the current cursor position

Syntax

object.insertHTML (string html);

Parameter

The single parameter is a string containing the code you want to insert.

Notes

This function will insert code at the current cursor position or overwrite the current selection.

Example:

The following example will insert code into the editor named 'myEditor':

myEditor.insertHTML ('The code I want to insert');