codex-team / editor.js

A block-style editor with clean JSON output
https://editorjs.io
Apache License 2.0
28.69k stars 2.08k forks source link

Error in firefox when selecting the whole paragraph block #926

Closed carakas closed 4 years ago

carakas commented 5 years ago

Hello,

I'm currently looking at integrating this in Fork CMS

When I'm selecting all text in a paragraph in firefox I get the following error

TypeError: this.items[n] is undefined
carakas commented 5 years ago

Just tested this. I only have this when I use the out of the box editor without any extra tools registered

pdfrod commented 5 years ago

I'm having the same issue on Google Chrome and Editor.js v2.15.1. Here's a minimum reproducible example:

<html>
  <head>
    <title>Hello</title>
  </head>
  <body>
    <div id="editorjs"></div>
    <script src="https://cdn.jsdelivr.net/npm/@editorjs/editorjs@latest"></script>
    <script>
      var editor = new EditorJS();
    </script>
  </body>
</html>
  1. write some text (e.g., "Hi")
  2. double-click on the text to select it -> error happens
khaydarov commented 4 years ago

@pdfrod @carakas thanks for the report. WIll be fixed in 2.16

carakas commented 4 years ago

awesome :D Thank you for the fast response

neSpecc commented 4 years ago

Resolved by #966