-
Notifications
You must be signed in to change notification settings - Fork 897
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
[block editor] The highlighting feature does not highlight text in image captions #19479
Comments
Let’s re-start work on this one once the WordPress team is available – we’ve asked about this in #devchat: https://yoast.slack.com/archives/C0361PEK4/p1671546374439399 |
I think we need to compare |
Breakthrough: found that in After that, we can apply the code in the attached PR. |
Thanks @hannaw93 for reviewing! I'll ask QA how to proceed given that the PR is dependent upon an unreleased enhancement in Gutenberg. |
Hi @tatasha2004! We were wondering if and how to proceed with this task, as the PR is dependent upon an upon an unreleased enhancement in Gutenberg, which will probably be part of Gutenberg 15.0, which will in turn probably be part of WordPress 6.2. There are three possibilities:
I have a slight preference for option (2), so users running Gutenberg could already profit from this enhancement. But I would love to hear your opinion! |
Conclusion: we can go for option (1). But: let's also check if the classic editor is truly unaffected by this change. I'll adapt the PR accordingly tomorrow. |
Jira issue
This is a clone of #19414, but for the block editor. The description is the same.
What behavior were you expecting?
In the default/block editor, the Yoast SEO analysis is able to analyze image captions for the SEO, the readability, and the inclusive language analysis. As such, I would expect the highlighting feature to be able to highlight words/sentences that should be acted upon.
What actually happened?
However, the highlighting feature does not highlight the affected words/sentences. See the images and videos below.
How can we reproduce the current behavior?
Create a new post (with the default editor)
Add a keyphrase.
Add an image with a caption containing the keyphrase.
Note that the keyphrase is detected (The focus keyphrase was found n times. This is great!), but when you click the eye icon, the keyphrase is not highlighted.
Similarly, readability analyses like that for transition words do detect those, but fail to highlight them when clicking the eye icon.
And similarly, the inclusive language analysis do detect phrases in those blocks, but do not allow to highlight these phrases.
If available: what are the tips for fixing the problem or possible solutions?
We should also check whether this issue plays a role for the Classic Editor, and if so, fix that in this issue.
The file that handles the highlighting feature for the default/block editor is packages/js/src/decorator/gutenberg.js.
Below, please find some examples of the highlighting feature not working:
SEO analysis: keyphrase assessment
The Yoast analysis is able to detect the focus keyphrase on the image caption and takes it into account for the keyword density assessment. However, the highlighting feature does not highlight it (see screenshot below).
Inclusive language analysis
Install and activate Yoast SEO Premium 19.2 RC2 and Free 19.6 RC2
Create a post in Default Editor
Add an image
Add non-inclusive phrase as an image caption
Actual result: Non-inclusive phrase is recognized, but it’s not highlighted.
Readability analysis
See video.
The text was updated successfully, but these errors were encountered: