Skip to content

Conversation

@ChristophWurst
Copy link
Member

Fixes #12178

  1. Restore the undefined additionalTrapElements data (regression of fix(NewMessageModal): remove null focus trap selectors #12118)
  2. Push the ckeditor body element to the trap elements once it's ready

This makes it possible to inserts links with CKEditor again, while also avoiding the focus trap issues on mobile.

How to test link insertion

  1. Open the app
  2. Click New message
  3. Enable formatting
  4. Insert link via CKEditor

main: you can't focus link text or URL
here: you can focus the inputs and type a value

How to test mobile editing

  1. Open the app on phone or desktop responsive view
  2. Click New message
  3. Click into the To field

main: multiselect opens and closes instantly. You can't enter anything
here: multiselect opens and you can enter a value

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@ChristophWurst ChristophWurst self-assigned this Dec 17, 2025
@ChristophWurst ChristophWurst added bug 3. to review regression feature:editor All bugs, features and pull requests about the (HTML) editor labels Dec 17, 2025
@ChristophWurst
Copy link
Member Author

/backport to stable5.6

},
onEditorReady({ additionalFocusTrap }) {
if (additionalFocusTrap && this.additionalTrapElements.indexOf() === -1) {
Copy link
Contributor

Choose a reason for hiding this comment

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

indexOf without an argument? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

I even tested it 🤦

@ChristophWurst ChristophWurst marked this pull request as draft December 18, 2025 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing backport-request bug feature:editor All bugs, features and pull requests about the (HTML) editor regression

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple Javascript Erros - Not able to link text

3 participants