Copy and Past in code block fails #327

Closed
opened 2026-02-04 18:29:59 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @fabianwilflingseder on GitHub (May 1, 2017).

For Bug Reports

  • BookStack Version: v0.16.1
  • PHP Version: 5.6.30-0+deb8u1
  • MySQL Version: 5.6.29-1~dotdeb+7.1
Expected Behavior

If I copy some code of a code block and paste it to another position in a code block, the code/text should appear IN the code block.

Actual Behavior

If you copy some code of a code block and paste it to another line in the (same) code block, the old code block gets splitted and a new code block with the pasted code appears! So you have three code blocks at the end.

Images:

2017-05-01_12h44_30

Copy and Paste the line with "some code to copy"

2017-05-01_12h44_13

Originally created by @fabianwilflingseder on GitHub (May 1, 2017). ### For Bug Reports * BookStack Version: v0.16.1 * PHP Version: 5.6.30-0+deb8u1 * MySQL Version: 5.6.29-1~dotdeb+7.1 ##### Expected Behavior If I copy some code of a code block and paste it to another position in a code block, the code/text should appear IN the code block. ##### Actual Behavior If you copy some code of a code block and paste it to another line in the (same) code block, the old code block gets splitted and a new code block with the pasted code appears! So you have three code blocks at the end. ### Images: ![2017-05-01_12h44_30](https://cloud.githubusercontent.com/assets/27973610/25578151/232bfe48-2e6c-11e7-8f8b-e1580d95fbd1.png) Copy and Paste the line with "some code to copy" ![2017-05-01_12h44_13](https://cloud.githubusercontent.com/assets/27973610/25578155/3149a246-2e6c-11e7-8a26-8b39b985d143.png)
OVERLORD added the 🐛 Bug label 2026-02-04 18:29:59 +03:00
Author
Owner

@Shackelford-Arden commented on GitHub (May 19, 2017):

Just adding that running the latest version of BookStack 16.2, this is still an issue.

@Shackelford-Arden commented on GitHub (May 19, 2017): Just adding that running the latest version of BookStack 16.2, this is still an issue.
Author
Owner

@ssddanbrown commented on GitHub (Jul 2, 2017):

Thanks both for confirming this issue. This is now fixed as of 968e7b8 as part of the revamped code editing experience. It will be released as part of the upcoming v0.17 release. Therefore I will go ahead and close this issue.

@ssddanbrown commented on GitHub (Jul 2, 2017): Thanks both for confirming this issue. This is now fixed as of 968e7b8 as part of the revamped code editing experience. It will be released as part of the upcoming v0.17 release. Therefore I will go ahead and close this issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#327