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

Paste Firefox input contenteditable false #1197

Open
epascarello opened this issue Sep 2, 2016 · 0 comments
Open

Paste Firefox input contenteditable false #1197

epascarello opened this issue Sep 2, 2016 · 0 comments

Comments

@epascarello
Copy link

epascarello commented Sep 2, 2016

Paste/arrow keys not working with input inside of editor

I have a template for articles where it has an non content editable region in the middle with an input so they can link to a given twitter embed code. So all it is a single form element. Chrome and Safari appear to work without any issues. Firefox on the otherhand has issues.

<div class="editable">
  <p>Content</p>
  <div contenteditable="false">
      <label>Embed<input type="text" placeholder="embed href"></label>
  </div>
  <p>More content</p>
</div>

Steps to reproduce

  1. In Firefox (standard or dev edition), go to https://jsfiddle.net/t7wddc6e/ or create test page with code above and init editor
  2. Click on textbox
  3. Paste any text into textbox with CTRL + V

Expected behavior: Text to be pasted into textbox

Actual behavior: Text is placed on top of textbox, error Error: Permission denied to access property "nodeType" appears in the console.

Link to an example: https://jsfiddle.net/t7wddc6e/

Versions

  • medium-editor: latest
  • browser: Firefox 47+
  • OS: OSX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants