Skip to content

Cannot delete text with backspace or navigate with arrow keys in Firefox #67

@AlexFRAN

Description

@AlexFRAN

When you load already saved data into the editor and there is a code-block, you cannot delete characters with backspace (with del you can), neither can you navigate with the arrow-keys inside the code-block. It simply jumps to the block above instantly (in my example a header block).

Example:

const editor = new EditorJS({  
        data: {  
        "time":1700475383740,
        "blocks":[
            {"id":"aRMoZePSTD","type":"header","data":{"text":"My title","level":2}},
            {"id":"fcG8CCR5F8","type":"code","data":{"code":"here is some code"}}
        ],
        "version":"2.28.2"
    },
    tools: {
        code: CodeTool,
        header: Header
    }
});

Versions:

  • editorjs: 2.28.2
  • code: 2.9.0
  • header: 2.8.1
  • esbuild: 0.19.6
  • Firefox: 119.0.1

Bundled with: esbuild, like this: ./node_modules/.bin/esbuild src/index.js --bundle --outfile=dist/index.js
Browser: Latest Firefox, it works in Chrome

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions