Bug bij het toevoegen van een link aan bestaande tekst via het toetsenbord in de WYSIWYG-editor

AI-generated summary

Users reported a bug in the WYSIWYG composer where adding a link via keyboard shortcuts (e.g., pressing Enter after highlighting text) caused both the text and link to be deleted. alehandrof initially reproduced the issue on Meta using Safari 18.5 and Chrome 137.0.7151.122 in safe mode, noting it occurred when clicking the Insert button instead of pressing Enter. Lilly couldn’t reproduce it and asked for screenshots, error logs, or browser details. j.jaffeux also requested browser/version info. sam confirmed the bug, noting it involved pressing Enter in the modal. renato tried to reproduce but couldn’t on Chrome+Mac. alehandrof later confirmed the issue was resolved on Meta, thanking the team with a :slightly_smiling_face: emoji.

Wanneer ik een link toevoeg aan bestaande tekst via het toetsenbord in de WYSIWYG-editor, worden zowel de tekst als de link verwijderd.

Hoe te repliceren:

  • Schakel over naar de WYSIWYG-editor
  • Typ een woord, markeer het en druk op open het linkdialoogvenster (via de werkbalk of de sneltoets).
  • Typ iets voor een link
  • Druk op enter
1 like

hello this is a link which was added via highlighting a word in the rich text composer.

sorry I cannot reproduce this here on Meta. can you make sure you are on the latest Discourse version? if it persists, try to provide a screen recording or screenshots. Are there any errors in console? does it work in safe mode ?

2 likes

Vertel ons ook uw browser/versie/OS, bedankt.

2 likes

Ik kan het probleem repliceren op Meta met Safari 18.5 en Chrome 137.0.7151.122 in veilige modus.

De laatste stap – de enter-toets indrukken in plaats van op de knop “Invoegen” te klikken met de muis – is belangrijk.

1 like

Bevestigd @renato dit repros, er is iets mis met onze afhandeling van ENTER in de modal.

1 like

Can you still reproduce this @alehandrof?

I just tried it on Mac+Chrome and the text/link were not deleted.

1 like

It now works fine here on Meta. Thanks for the fix ! :slight_smile:

1 like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.