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

Double click to edit #185

Open
el-quick opened this issue Feb 23, 2016 · 2 comments
Open

Double click to edit #185

el-quick opened this issue Feb 23, 2016 · 2 comments

Comments

@el-quick
Copy link

Please add a custom option to enable edition on click or doble click.

@jakiestfu
Copy link
Owner

Couldn't you attach your own double click handler that will instantiate Medium and focus in the field? This seems like auxiliary logic that doesn't belong in Medium.

@robertleeplummerjr
Copy link
Collaborator

Maybe this will work:

el.addEventListener('dblclick', function elDblClick() {
  el.removeEventListener('dblclick', elDblClick);
  new Medium({ element: el });
});

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

3 participants