-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editor: Proofreading #3468
Editor: Proofreading #3468
Conversation
I've spent a considerable part of my morning trying to debug why Safari iOS appears to be ignoring spellcheck attributes. Even in the following minimally reproducible page, I'm still encountering spelling suggestions upon tapping words, despite having all of the standard supported spellcheck disabling attributes present: http://output.jsbin.com/tosebedofa Currently downloading iOS 9.3 SDK beta in hopes that this may be resolved in the upcoming release. |
* atd.core.js - A building block to create a front-end for AtD | ||
* Author : Raphael Mudge & Andrew Duthie, Automattic | ||
* License : LGPL | ||
* Project : http://www.afterthedeadline.com/developers.slp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This URL is invalid - I think it should be http://www.afterthedeadline.com/development.slp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This URL is invalid
Good eyes! Fixed in rebased c312168
I've pushed some changes which should be a slight improvement of behavior on mobile. Unfortunately, this does not include any fix for the default browser spellcheck in iOS, and the browser spellcheck appears to interfere with the plugin suggestions menu. Improvements include:
With regards to iOS Safari default browser spellcheck, the workaround I've found is dismissing the keyboard via "Done", then tapping on the next highlighted term. |
* Module variables | ||
*/ | ||
const SERVICE_HOSTNAME = 'service.afterthedeadline.com'; | ||
const SERVICE_LOCALIZED_SUBDOMAINS = [ 'en', 'pt', 'de', 'es', 'fr' ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not knowing much about this service at all, should the button only be shown it the user's locale is available here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not knowing much about this service at all, should the button only be shown it the user's locale is available here?
Admittedly I'm following the precedent here, as the Jetpack implementation falls back to the non-localized subdomain when it cannot determine a supported locale.
There's also the question of whether we detect based on the user's locale, or the site's locale? I might imagine that we'd still want to show the option even if the user's specific locale is not supported, as they may be still be writing for an English site.
The same issue remains present for me in iOS 9.3 Safari. |
I took this for a spin on the windows touch device, and it worked well. I'd say we get this in if you are ready to roll with it @aduth |
Built-in “autohide” does not correctly account for and interferes with hiding on tap of elsewhere within editor.
Closes #306
This pull request seeks to enable a user to proofread their writing via the AfterTheDeadline service.
Implementation notes:
The plugin is largely a port of the
atd.core.js
andeditor_plugin.js
modules, adapted for use in Calypso.Main points of divergence include:
lib/mixins/i18n
for string translation [1]Because this is a port of large preexisting files, it's recommended that you focus review on the items listed above. It is not the intention at this time to convert existing files to ES6 standards.
Testing instructions:
Verify that proofreading behaves as expected, particularly with regard to the items listed above in Implementation Notes.
Open questions: