Ctrl+Z after hyperlinking text shows link rather than original text #3673

Open
opened 2026-02-05 07:11:17 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @rgkirch on GitHub (Mar 21, 2023).

Describe the Bug

If I highlight some text and then paste via Ctrl+V with a link in my clipboard then the text becomes hyperlinked. If I undo with Ctrl+Z then I see just the link (that was in the clipboard) and an additional undo with Ctrl+Z gives me the original text.

Steps to Reproduce

original text
image
highlight
image
paste with Ctrl+V
image
undo with Ctrl+Z
image
undo with Ctrl+Z
image

Expected Behaviour

undo should just remove the hyperlink

Screenshots or Additional Context

No response

Browser Details

chrome 111.0.5563.65 windows 10

Exact BookStack Version

BookStack v23.02.1

PHP Version

8.2.3

Hosting Environment

solidnerd/bookstack:23.2.1

Originally created by @rgkirch on GitHub (Mar 21, 2023). ### Describe the Bug If I highlight some text and then paste via Ctrl+V with a link in my clipboard then the text becomes hyperlinked. If I undo with Ctrl+Z then I see just the link (that was in the clipboard) and an additional undo with Ctrl+Z gives me the original text. ### Steps to Reproduce original text ![image](https://user-images.githubusercontent.com/6143833/226487228-f0622376-ab7b-49ec-963a-c5253cd75fc5.png) highlight ![image](https://user-images.githubusercontent.com/6143833/226487255-ea3d1e28-b277-47ec-b24f-9ba01e48de37.png) paste with Ctrl+V ![image](https://user-images.githubusercontent.com/6143833/226487284-cc679e91-f9bd-4a6a-a16c-c0a30d605158.png) undo with Ctrl+Z ![image](https://user-images.githubusercontent.com/6143833/226487345-a8f0322b-2baf-4ee5-9421-ecfc1eb901e0.png) undo with Ctrl+Z ![image](https://user-images.githubusercontent.com/6143833/226487361-ab21f006-9054-41bb-ade7-6e8471c035c3.png) ### Expected Behaviour undo should just remove the hyperlink ### Screenshots or Additional Context _No response_ ### Browser Details chrome 111.0.5563.65 windows 10 ### Exact BookStack Version BookStack v23.02.1 ### PHP Version 8.2.3 ### Hosting Environment solidnerd/bookstack:23.2.1
OVERLORD added the 🐛 Bug Upstream labels 2026-02-05 07:11:17 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3673