Skip to main content

Api

Represents the Api class.

Methods

MethodReturnsDescription
CoAuthoringChatSendMessageNoneSends a message to the co-authoring chat.
EndActionNoneSpecifies the end action for long operations.
FocusEditorNoneReturns focus to the editor.
GetAllCommentscomment[]Returns all the comments from the document.
GetCurrentPagenumberReturns the current page index.
GetFileToDownloadstringReturns the current file to download in the specified format.
GetFontListFontInfo[]Returns the fonts list.
GetInstalledPluginsPluginData[]Returns all the installed plugins.
GetMacrosMacrosReturns the document macros.
GetPageImagecanvasReturns the page image.
GetSelectedTextstringReturns the selected text from the document.
GetVersionstringReturns the editor version.
InstallPluginobjectInstalls a plugin using the specified plugin config.
MouseMoveWindowNoneSends an event to the plugin when the mouse button is moved inside the plugin iframe.
MouseUpWindowNoneSends an event to the plugin when the mouse button is released inside the plugin iframe.
OnDropEventNoneImplements the external drag&drop emulation.
PasteHtmlNonePastes text in the HTML format into the document.
PasteTextNonePastes text into the document.
RemovePluginobjectRemoves a plugin with the specified GUID.
ReplacePageContentbooleanReplaces the page content with the specified parameters.
SetMacrosNoneSets macros to the document.
SetPluginsOptionsNoneConfigures plugins from an external source. The settings can be set for all plugins or for a specific plugin. For example, this method can be used to pass an authorization token to the plugin. This method can be used only with the connector class.
SetPropertiesNoneSets the properties to the document.
ShowButtonNoneShows or hides buttons in the header.
ShowErrorNoneShows an error/warning message.
ShowInputHelperNoneShows the input helper.
StartActionNoneSpecifies the start action for long operations.
UnShowInputHelperNoneUnshows the input helper.
UpdatePluginobjectUpdates a plugin using the specified plugin config.