Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to disable the editor #19

Closed
bergie opened this issue Sep 20, 2013 · 4 comments
Closed

Make it possible to disable the editor #19

bergie opened this issue Sep 20, 2013 · 4 comments

Comments

@bergie
Copy link

bergie commented Sep 20, 2013

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.

@daviferreira
Copy link
Member

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

@brujo-rojas
Copy link

How I can use that function?

@brujo-rojas
Copy link

I try

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

but it not work

@HeinZawHtet
Copy link

HeinZawHtet commented Apr 24, 2017

@brujo-rojas
try destroy() instead.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants