Textbox.io 2.x Documentation : editor.restore

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.