[wp-trac] [WordPress Trac] #57393: CodeMirror Features Disabled by wp_enqueue_code_editor Activation Conditions
WordPress Trac
noreply at wordpress.org
Tue Jan 31 19:02:00 UTC 2023
#57393: CodeMirror Features Disabled by wp_enqueue_code_editor Activation
Conditions
--------------------------------+------------------------------
Reporter: mjdewitt | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: External Libraries | Version: 6.1.1
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
--------------------------------+------------------------------
Comment (by mjdewitt):
Thank you for your time and consideration of this issue.
You are absolutely right that when syntax_highlighting is true, codemirror
loads up with all the features. But can this really be considered as
correct without considering the prompt which it reflects?
My issue here is that the way it is now is counter-intuitive or backwards:
if disabled is checked, disabled is true meaning that codemirror does not
load up features.
I use the plugin code-snippets a lot. A year ago or so, many of the
codemirror features just stopped working. It was inconvenient, but hardly
a show stopper. I finally got fed up with it's brokenness to look into why
was this happening.
After I came to the conclusion that the problem was not in the plugin, I
turned to WordPress. Much to my surprise, disabling syntax highlighting
fixed codemirror's features. If you have the time, try it yourself.
Thanks again,
Mike
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57393#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list