Back to Devexpress

RichEditCommands.insertPicture Property

aspnet-js-richeditcommands-7112e254.md

latest1.2 KB
Original Source

RichEditCommands.insertPicture Property

Gets a command to insert an inline picture stored by the specified web address.

Declaration

ts
get insertPicture(): InsertPictureCommand

Property Value

TypeDescription
InsertPictureCommand

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

|

Remarks

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

javascript
var imageUrl = "https://demos.devexpress.com/ASPxImageAndDataNavigationDemos/Content/Images/landscapes/07.jpg";
richEdit.commands.insertPicture.execute(imageUrl);

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

See Also

RichEditCommands Class

RichEditCommands Members