Problem/Motivation
The EditComponentForm only moves fields that begin with 'field_* into the Mercury Editor dialog 'Content' tab.
@see mercury_editor_form_layout_paragraphs_component_form_alter()
Drupal core only supports field names that begin with 'field_*,' but technically, a field can be any name (with a few name conflict exceptions like nid, created, status, etc...). The Schema.org Blueprints module prefixes Schema.org fields with 'schema_*' and Field Prefix module allows sites to customize the field prefix or remove the default prefix field_.
Steps to reproduce
Create a field on a Mercury Editor paragraph whose name does not start with 'field_*' using the Schema.org Blueprints module or Field Prefix module.
Proposed resolution
Allow fields that do not start with 'field_' to be included in the edit component 'Content' tab.
Adjust mercury_editor_form_layout_paragraphs_component_form_alter() to move all field definitions (not base field) to the 'Content' tab.
Remaining tasks
- Create MR
- Review MR
- Commit MR
User interface changes
N/A
API changes
N/A
Data model changes
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | mercury_editor-issues-3468531-comment-3.patch | 1.36 KB | jrockowitz |
Issue fork mercury_editor-3468531
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
jrockowitz commentedComment #4
jrockowitz commentedComment #5
sethhill commentedI tested the MR against 2.1.x and it resolves the behavior reported, it should be good to merge. Setting to RTBC.
Comment #7
sethhill commented