medium-editor icon indicating copy to clipboard operation
medium-editor copied to clipboard

Make it possible to disable the editor

Open bergie opened this issue 13 years ago • 4 comments

Currently you can start the editor, but there is no easy way to turn it off after user has finished editing. This would be helpful for Create.js integration where users can switch between editing and browsing mode.

bergie avatar Sep 20 '13 13:09 bergie

Done, there is a .deactivate() method now.

daviferreira avatar Sep 21 '13 22:09 daviferreira

How I can use that function?

brujo-rojas avatar Jun 25 '14 22:06 brujo-rojas

I try

$(".class_text_editor").first().deactivate();

but it not work

brujo-rojas avatar Jun 25 '14 22:06 brujo-rojas

@brujo-rojas try destroy() instead.

var editor = new MediumEditor('#your-element');
editor.destroy();

heinafk avatar Apr 24 '17 16:04 heinafk