destroyReturns: jquery element

Remove editor functionality from the element.

Examples

sample

    
 <button class="gj-button-md" onclick="editor.destroy()">Destroy</button><br/>
 <textarea id="editor"></textarea>
 <script>
     var editor = $('#editor').editor();
 </script>