Skip to content
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

AtD: ensure that it gets triggered and can check text in Gutenberg blocks #9128

Closed
jeffpaul opened this issue Mar 22, 2018 · 7 comments · Fixed by #11772
Closed

AtD: ensure that it gets triggered and can check text in Gutenberg blocks #9128

jeffpaul opened this issue Mar 22, 2018 · 7 comments · Fixed by #11772
Assignees
Labels
[Feature] AtD [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack [Pri] Normal [Type] Bug When a feature is broken and / or not performing as intended

Comments

@jeffpaul
Copy link

Steps to reproduce the issue

Source issue is in the Gutenberg repo.

What I expected

AtD should not throw errors when utilizing Gutenberg.

What happened instead

Error edit.getParam().join is not a function on opening a post with Gutenberg.

@designsimply designsimply added [Type] Bug When a feature is broken and / or not performing as intended [Feature] AtD [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack labels Mar 22, 2018
@stale
Copy link

stale bot commented Sep 19, 2018

This issue has been marked as stale. This happened because:

  • It has been inactive in the past 6 months.
  • It hasn’t been labeled `[Pri] Blocker`, `[Pri] High`.

No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.

@stale stale bot added the [Status] Stale label Sep 19, 2018
@jeffpaul
Copy link
Author

@nosolosw are you still seeing this issue with AtD when using Gutenberg?

@stale stale bot removed the [Status] Stale label Sep 19, 2018
@oandregal
Copy link

I enabled the "Check your spelling, style, and grammar" section (and all the items within) and I don't see any error now. Let me know if I should anything else.

@jeherve jeherve changed the title AtD: Error edit.getParam().join is not a function on opening a post with Gutenberg AtD: ensure that it gets triggered and can check text in Gutenberg blocks Sep 19, 2018
@jeherve
Copy link
Member

jeherve commented Sep 19, 2018

Thanks for giving it another try. I'll leave this issue open for now, but rephrase the title, as we still have some work to do to make sure AtD is fully compatible with Gutenberg.

@oandregal
Copy link

oandregal commented Sep 19, 2018

Ha! I've accidentally found how to reproduce it: it the post/page has a classic block I get the edit.getParam() is not a function error.

@johngodley
Copy link
Member

Adding that I also experienced this when using Gutenberg to open an old post that gets converted to a classic block:

atdCore.setIgnoreStrings( editor.getParam( 'atd_ignore_strings', [] ).join(',') );

From

core.setIgnoreStrings(editor.getParam('atd_ignore_strings', [] ).join(','));

The problem seems to be that the editor.getParam( 'atd_ignore_strings', [] ) is returning the string [""] (i.e an array encoded as a string). The .join is then incorrectly applied.

If I add something to the Jetpack 'ignored phrases' setting then the string is ["test"]

Disabling AtD stops the problem.

@bazza
Copy link
Contributor

bazza commented Nov 17, 2018

@mdawaffe - can you take a look at this one? Looks like you worked on it previously :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] AtD [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack [Pri] Normal [Type] Bug When a feature is broken and / or not performing as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants