codex-team / codex-team/editor.js

[Bug] Keyboard shortcuts are broken on firefox

Open
#2,168 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Describe a bug.
Can't use shortcuts for inline tools on firefox and firefox-based browsers except when highlighting.

Steps to reproduce:
(Fastest way but it doesn't matter)
**EDIT**: Fastest way: go to the website with Firefox or Firefox-based browser running version 107.0. Page info will come up when pressing `ctrl+i`.

1. Create a vanilla vite project
2. Install editorjs
3. Paste the following code (using typescript for this example)
```typescript
import EditorJS from '@editorjs/editorjs'

const holder = document.querySelector('holder')
let editor = new EditorJS({
holder
})
```
4. Start the dev server and try ctrl+I in firefox. You will bring up a page info window by default. Pressing ctrl +b will bring up the bookmarks.

Expected behavior:
Italics and bold behavior as usual with chrome.

Screenshots:
none

Device, Browser, OS:
Firefox 107.0

Editor.js version:
2.25.0
Plugins you use with their versions:
Didn't even make past the default paragraph.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.