Skip to main content

RichEditCommands.insertSymbol Property

Gets a command to insert characters into a document instead of a selected range.


readonly insertSymbol: InsertSymbolCommand

Property Value

Type Description

An object that provides methods that execute the command and check its state.


Call the execute(symbol, fontName) method to invoke the command. The method checks the command state (obtained via the getState method) to determine whether the action can be performed.

You can get the full list of the supported fonts by calling the following command:


Usage example:

richEdit.commands.insertSymbol.execute("an example text", "Arial");
richEdit.commands.insertSymbol.execute("an example text", richEdit.commands.changeFontName[1]);

Refer to the following section for more information: Client Commands.

See Also