Use Gutenberg's native `anchor` support for setting the pym parent element ID
@claudiulodro is already working on this.
Since Sep 21, 2020.
Assessment
This issue has not been assessed yet.
Description
We didn't do this in the initial implementation of Gutenberg blocks in #34 because, at the time, it appeared as if there was no way to use Gutenberg's anchor property with a block that was dynamically rendered.
For more history, see the following comments:
- https://github.com/INN/pym-shortcode/pull/34#issuecomment-417355256
- https://github.com/WordPress/gutenberg/issues/6356#issuecomment-417176119
- https://github.com/WordPress/gutenberg/pull/8154/files, the current version of which is https://wordpress.org/gutenberg/handbook/block-api/#supports-optional
Elements of this ticket:
- remove the shim introduced in #34
- add a
supportsdeclaration foranchor - add the
anchoroutput to the pym_shortcode function.
- Dominant language
- PHP
- Stars
- 15
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Automattic/pym-shortcode
-
Workflow
Automattic/pym-shortcode#76 · 1 assignee ·
-
good for beginners help wanted priority: normal type: pre-launch todo
Automattic/pym-shortcode#73 · 1 assignee ·
-
priority: normal status: needs docs type: bug
Automattic/pym-shortcode#69 · 1 assignee ·
-
type: bug type: improvement
Automattic/pym-shortcode#67 · 1 assignee ·
-
priority: low type: improvement
Automattic/pym-shortcode#60 · 6 comments · 1 assignee ·
All issues in Automattic/pym-shortcode
Similar issues
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/fulltextsearch#1011 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
phpstan/phpstan-doctrine#794 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Automattic/static-site-importer#1767 ·