Page tree
Skip to end of metadata
Go to start of metadata

content is a grouping of methods related to the content of a Textbox.io Editor instance. 

Methods

editor.content.get()Retrieves the HTML contents of an instance's content <body> element.
editor.content.set()Sets the HTML contents of an instance's content <body> element.
editor.content.documentElement()Retrieves the editors HTML Document Object.
editor.content.insertHtmlAtCursor()Inserts HTML at the last known cursor position in an instance.
editor.content.isDirty()
Check if the content has been updated or changed since it was set.
editor.content.setDirty()
Set the content dirty state.
editor.content.uploadImages()Adds Base64 images to the Textbox.io Services upload queue.
editor.content.getSelectedText()Returns a string containing the editors current selection. If the selection does not span multiple characters, an empty string is returned
  • No labels