Skip to content

JSON fields cannot be added to Vizy blocks and JSON text cannot be entered into a plain text field in a Vizy block #352

@rmales

Description

@rmales

Describe the bug

It seems like there is no way to add a blob of JSON to field inside a Vizy block. If I try to add a JSON field this throws a JS error Uncaught TypeError: Id.defineSimpleMode is not a function when rendering the Vizy field. If I try to add JSON as text inside a plain text field in a Vizy block this throws a PHP error craft\helpers\StringHelper::shortcodesToEmoji(): Argument #1 ($str) must be of type string, array given when saving/loading the entry.

Steps to reproduce

  1. Add a JSON field to Vizy block and try to load the edit entry page
  2. Add a plain text field to a Vizy block, enter JSON text into it and try to save the entry

Craft CMS version

5.8.15

Plugin version

3.0.10

Multi-site?

No

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions