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

[Proposal] Disable returns and/or Toolbar on elements #41

Closed
tkjaergaard opened this issue Oct 3, 2013 · 1 comment
Closed

[Proposal] Disable returns and/or Toolbar on elements #41

tkjaergaard opened this issue Oct 3, 2013 · 1 comment

Comments

@tkjaergaard
Copy link

Disable the availability for the user to use return-key on element(s).

This would disable the use of return-key on a specific element.

<div class="editable" data-disable-returns="true"></div>

This will disable the use of return keys on all elements.

var elements = document.querySelectorAll('.editable');
new MediumEditor( elements, { enableReturn: false });

Disable the toolbar when user selects text

This would disable the toolbar on a specific element.

<div class="editable" data-disable-toolbar="true"></div>

This will disable the use of the toolbar on all elements.

var elements = document.querySelectorAll('.editable');
new MediumEditor( elements, { disableToolbar: true });

__

Let me know if you want the pull-request.

@daviferreira
Copy link
Member

Hey Thomas, sure, just send it away. Thanks! 😃

daviferreira added a commit that referenced this issue Oct 3, 2013
…d-toolbar-on-elements

Added feature updates and tests #41
nysk pushed a commit to nysk/medium-editor that referenced this issue Aug 10, 2015
…rn-and-toolbar-on-elements

Added feature updates and tests yabwe#41
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

2 participants