examples/external-use.html
UndoOpen link dialogInsert BoldInsert Heading 6Insert Inline codeOpen image dialogOpen help dialogOpen html entities dialog
[TOC] ### External use of toolbar handlers / modal dialog javascript testEditor = editormd("test-editormd", { width : "90%", height : 720, path : '../lib/' }); // the first method $("#undo").bind('click', function() { $.proxy(testEditor.toolbarHandlers.undo, testEditor)(); }); // the Second method : using manually loaded dialog plugin // \<script src="../plugins/html-entities/html-entities.js"\>\</script\> $("#open-html-entities-dialog").bind('click', function() { testEditor.htmlEntities(); }); // using toolbar dialog plugin $("#open-link-dialog").bind('click', function() { $.proxy(testEditor.toolbarHandlers.link, testEditor)(); }); // or $("#open-image-dialog").bind('click', function(){ // load and execute plugin testEditor.executePlugin("imageDialog", "../plugins/image-dialog/image-dialog"); });