Skip to content

fix(inline-tools): inline tools shortcuts now works in read-only mode#2891

Merged
neSpecc merged 2 commits into
nextfrom
inline-tools-readonly-shortcuts
Dec 21, 2024
Merged

fix(inline-tools): inline tools shortcuts now works in read-only mode#2891
neSpecc merged 2 commits into
nextfrom
inline-tools-readonly-shortcuts

Conversation

@neSpecc

@neSpecc neSpecc commented Dec 18, 2024

Copy link
Copy Markdown
Member

Problem

Inline Tools (with isReadOnlySupported=true) shortcuts does not work in the Read-Only mode

Cause

Their shortcut was bound to Ui.nodes.redactor, but in Read-Only mode this element is not focused, since there is no focus at all.

Solution

Now we bind Inline Tools shortcuts to the document

@neSpecc neSpecc merged commit 6893462 into next Dec 21, 2024
@neSpecc neSpecc deleted the inline-tools-readonly-shortcuts branch December 21, 2024 08:28
VolgaIgor pushed a commit to VolgaIgor/editor.js that referenced this pull request Nov 11, 2025
…codex-team#2891)

* fix(inline-tools): inline tools shortcuts now works in read-only mode

* use ubuntu-20.04 instead of latest
Comment on lines +552 to +555
/**
* We need to bind shortcut to the document to make it work in read-only mode
*/
on: document,

This comment was marked as resolved.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the feedback. Please, create an issue for that.

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 this pull request may close these issues.

2 participants