code icon indicating copy to clipboard operation
code copied to clipboard

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

Open AlexFRAN opened this issue 1 year ago • 3 comments

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

AlexFRAN avatar Nov 20 '23 10:11 AlexFRAN

Same problem

wonder-image avatar Jan 06 '24 16:01 wonder-image

I have also the same problem, is this something worth solving?

CasFreriks avatar Jul 13 '24 16:07 CasFreriks

Facing same issue, any solution?

jigneshzala avatar Sep 02 '24 06:09 jigneshzala

same issue +1

hushulin avatar Sep 30 '24 02:09 hushulin