Unable to copy out of CodeMirror editor #363

Closed
opened 2026-02-04 19:01:46 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @domainzero on GitHub (Jul 3, 2017).

For Bug Reports

  • BookStack Version: v0.17.0
  • PHP Version: PHP 5.6.30 (fpm-fcgi) (built: Jan 19 2017 07:45:04)
  • MySQL Version: mysql Ver 15.1 Distrib 10.1.24-MariaDB, for Linux (x86_64) using EditLine wrapper
Expected Behavior

Able to copy out of the Codemirror editor and paste elsewhere.

Actual Behavior

Issue exists only in Chrome from what I have seen. I'm running Chrome Version 59.0.3071.115 (Official Build) (64-bit). This problem does not exist in Firefox 54.0.1. It also doesn't exist in Chromium Version 58.0.3029.110 (64-bit).

Unable to copy from the Codemirror editor and paste elsewhere. Note that I can paste into the Codemirror editor. Using Ctrl+C or using right click + copy yields same results.

Originally created by @domainzero on GitHub (Jul 3, 2017). ### For Bug Reports * BookStack Version: v0.17.0 * PHP Version: PHP 5.6.30 (fpm-fcgi) (built: Jan 19 2017 07:45:04) * MySQL Version: mysql Ver 15.1 Distrib 10.1.24-MariaDB, for Linux (x86_64) using EditLine wrapper ##### Expected Behavior Able to copy out of the Codemirror editor and paste elsewhere. ##### Actual Behavior Issue exists only in Chrome from what I have seen. I'm running Chrome Version 59.0.3071.115 (Official Build) (64-bit). This problem **does not** exist in Firefox 54.0.1. It also doesn't exist in Chromium Version 58.0.3029.110 (64-bit). Unable to copy from the Codemirror editor and paste elsewhere. Note that I can paste into the Codemirror editor. Using Ctrl+C or using right click + copy yields same results.
OVERLORD added the 🐛 Bug label 2026-02-04 19:01:46 +03:00
Author
Owner

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

@domainzero Thanks for reporting. I'm seeing the same results. From my testing it only seems to be an issue for the markdown input? I can seem to copy fine within the WYSIWYG editor and from code blocks when viewing pages.

Very strange issue...

@ssddanbrown commented on GitHub (Jul 3, 2017): @domainzero Thanks for reporting. I'm seeing the same results. From my testing it only seems to be an issue for the markdown input? I can seem to copy fine within the WYSIWYG editor and from code blocks when viewing pages. Very strange issue...
Author
Owner

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

For any devs in the future experience issues with copying from codemirror and come across this issue, The issue was custom styling on textareas in codemirror. Remove any custom CSS rules for textareas inside codemirror and that should fix things.

The fix for this will be in the next bugfix release.

@ssddanbrown commented on GitHub (Jul 10, 2017): For any devs in the future experience issues with copying from codemirror and come across this issue, The issue was custom styling on textareas in codemirror. Remove any custom CSS rules for textareas inside codemirror and that should fix things. The fix for this will be in the next bugfix release.
Author
Owner

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

Update now out to cover this.

@ssddanbrown commented on GitHub (Jul 10, 2017): Update now out to cover this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#363