-
Notifications
You must be signed in to change notification settings - Fork 15
Add option to enable/disable Codemirror #29
Comments
Thanks @rianrietveld, I'll add some opt-out design ideas in here. Where in the Customizer CSS panel and the code editors would you expect to find this checkbox? |
Alternately — would you expect this checkbox to live somewhere else entirely, like user settings? |
Maybe an "Enable accessibility mode" link in Screen Options, like on Widgets screen? |
@SergeyBiryukov yeah, that's an idea for the theme/plugin editor, not sure about the "Enable accessibility mode", maybe just "disable syntax highlighter"? What about adding it to the the user settings (your profile) as it has more checkboxes for customisation like Disable the visual editor when writing and such (or will those settings all be removed in the future?). In the customiser CSS help text we then could add something like: The syntax highlighter can be disabled with the settings in Your Profile. I've put this question in the accessibility Slack channel, maybe more people can come up with ideas |
Screen options is kind of hard to find. I didn't even know there was accessibility mode for widgets couple months ago. User profile seems better idea next to Disable visual editor like Rian mentioned.
Good idea. |
I know that @afercia wants to get rid of the "accessibility mode" screen option for widgets. I like the setting being on the user profile screen like the opt-out setting exists for the visual editor. |
I thought about screen options at first too, but it turns out none of the pages that contain code editors have them. User setting + notification letting folks know they can disable on each Editor screen seems like a good idea 👍 |
I'll open a PR with this. |
I'm not sure does it have to say if you're using a screen reader. I rather not point out some group of people. |
I'm fine with removing the second sentence if it feels too much like singling out a particular group 👍 We should also remove the period from the end to match the other settings. |
Please review #31. |
I'm not a fan of having screen reader users be the ones to jump through an extra hoop though. Having opt-out makes them do just that. I would prefer it be an opt-in on the screen @melchoyce posted. Maybe add a one-time announcement to the editor too, hidden from screen readers(?), that allows them to enable it from there when they use it for the first time. |
If it is opt-in then the vast majority of users who would benefit from the new feature would likely never encounter it, since I'll wager most users aren't visiting their profile frequently to discover new settings to tweak (also given, “Decisions, not options”). Since the majority of users would benefit from having syntax highlighting/checking, I think it should be opt-in by default with screen-reader-text that informs of the user preference to disable the syntax highlighting. |
@westonruter That's why I also suggested the one-time announcement thing that pops up on initial use. That way it draws attention to the fact this feature exists. Under normal circumstances, I would be in favor of it being opt-out. But since it's an accessibility issue, I would rather err on the side of assistive technology users having the path of least resistance. It's kind of like a business putting a ramp at the back of the building. A person in a wheelchair can get inside the building but it's an added hurdle for them. |
BTW: the one-time announcements are called “pointers” in WP. What if there was a one-time pointer announcing syntax highlighting, which then instructs how to opt-out? Note that the pointer wouldn't help in either case for new installs, as pointers normally only appear upon upgrading. |
Can it be set to show on first use of the editor as well? Once the accessibility issues are resolved it should definitely go to opt-out though. |
CodeMirror is not being proposed here for the post editor yet. For that we wait for Gutenberg and CodeMirror accessibility issues being resolved. |
A few things:
|
Thanks @westonruter for the PR and the merge.
And make Location:
|
@westonruter |
I might switch around the order of your sentence:
|
If it's just going to be the code editor on the back end, than an opt out would be fine in that case. Here's a best-of-both-worlds thought... could something be added to Also, would having |
@rianrietveld @melchoyce Please review: #34 |
I don't really see a compelling reason for adding a new constant to configure this. If the feature truly is to be disabled for all users, then this could be implemented via a plugin which could filter
No, because |
Please see #37 for follow-up questions on accessibility. |
The accessibility team has concerns about the implementation of this functionality by default, as we expressed previously in ticket https://core.trac.wordpress.org/ticket/12423.
On a personal note: I've installed the plugin and it's really good work, as a coder I like it very much.
My personal points of view are at: https://core.trac.wordpress.org/ticket/12423#comment:133
The text was updated successfully, but these errors were encountered: