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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ImageView): Fix detection of editable editor #5020

Merged
merged 1 commit into from Nov 22, 2023
Merged

Conversation

mejo-
Copy link
Member

@mejo- mejo- commented Nov 22, 2023

Fixes images always being displayed as editable, even in readonly editor.

Also set contenteditable to false in readonly mode. This fixes image captions being editable in readonly editor without session.

馃弫 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits

Fixes images always being displayed as editable, even in readonly
editor.

Also set `contenteditable` to false in readonly mode. This fixes
image captions being editable in readonly editor without session.

Signed-off-by: Jonas <jonas@freesources.org>
@mejo- mejo- added bug Something isn't working ux labels Nov 22, 2023
@mejo-
Copy link
Member Author

mejo- commented Nov 22, 2023

/backport to stable27

@mejo- mejo- merged commit 5d0f647 into main Nov 22, 2023
35 checks passed
@mejo- mejo- deleted the fix/readonly_image branch November 22, 2023 15:06
@blizzz blizzz mentioned this pull request Nov 23, 2023
5 tasks
@mejo-
Copy link
Member Author

mejo- commented Nov 28, 2023

/backport b99c810 to stable27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants