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

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

Open
AlexFRAN opened this issue Nov 20, 2023 · 4 comments · May be fixed by #76
Open

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

AlexFRAN opened this issue Nov 20, 2023 · 4 comments · May be fixed by #76

Comments

@AlexFRAN
Copy link

AlexFRAN commented Nov 20, 2023

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

@wonder-image
Copy link

Same problem

@CasFreriks
Copy link

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

@jigneshzala
Copy link

Facing same issue, any solution?

@hushulin
Copy link

same issue +1

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

Successfully merging a pull request may close this issue.

5 participants