[wp-trac] [WordPress Trac] #44820: CodeMirror in Customize - copy & paste bug
WordPress Trac
noreply at wordpress.org
Fri Jun 27 13:14:51 UTC 2025
#44820: CodeMirror in Customize - copy & paste bug
-----------------------------+---------------------------------------------
Reporter: dionysous | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Customize | Version: 4.9
Severity: minor | Resolution:
Keywords: has-patch close | Focuses: ui, javascript, administration
-----------------------------+---------------------------------------------
Changes (by SirLouen):
* keywords: has-patch needs-testing => has-patch close
Comment:
Replying to [comment:2 SergeyBiryukov]:
> 1. Does it happen in CodeMirror demos on https://codemirror.net?
This is a problem in CodeMirror, I've been able to replicate it in the
demo
=== Testing Instructions
1. Add this code [https://codemirror.net/try/ to the demo], and copy the
shared URL
{{{
.class .class-2 #id-here {
}
}}}
Important the last space in the code
Or use this URL:
https://codemirror.net/try/#c=LmNsYXNzIC5jbGFzcy0yICNpZC1oZXJlIHsKCn0K
2. Then open the Shared URL and copy this code: `.class .class-2 #id-here
{`
3. 🐞 It will jump
The right thing here is to report upstream this error to CodeMirror. But
since Customizer is in Maintenance mode, I'm not sure if we are going to
be willing to support a forked static version of CodeMirror forever.
Replying to [comment:5 zackpyle]:
> How is this still not fixed 4 years later?
TLTR; Its a CodeMirror issue and as said, Customizer entered this
maintenace mode long time ago. Given that this is happening in upstream
system, and it doesn't seem to be a major bug, its unlikely this will ever
get fixed. My recommendation is that you stop using Customizer's CSS
editor and move all the CSS code you have there to a supported place.
=== Conclusion
I'm not sure if this could be considered a bug or an enhancement but
ultimately is a very low-key bug that is happening upstream also, so I
doubt it has been considered relevant at all. I'm proposing this as a
`close`, `wontfix`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44820#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list