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

Remove an existing Textbox.io editor from the page, restoring the original element container. Content modified using Textbox.io is preserved within the restored container.

Example

editor.restore()
// Replace the element with id 'replaceMe' 
var editor = textboxio.replace( '#replaceMe' );
// Remove the Textbox.io editor
var element = editor.restore();

Returns

elementHTML element

The element that was previously replaced by Textbox.io. Returned element contents are updated with changes made during an editing session.

 


  • No labels