Skip to content

Fix WYSIWYG toolbar to enable/disable video editor #10684

@alecslupu

Description

@alecslupu

Describe the bug

When a participant uses the WYSIWYG editor, he always has the possibility of adding images or videos, that later will not be rendered.
Also, an admin faces the same issue, when attempts to use the WYSIWYG on a field that does not render the images of videos

To Reproduce

  1. Visit Admin Panel
  2. Go to Assemblies, click edit on one assembly
  3. Observe the Video and Image icons
  4. Fill in Closing date with a date and also "Closing date reason" ( add a video)
  5. Save
  6. Visit public interface
  7. See Closing date reason in the sidebar, without any video being rendered

Expected behavior

When using WYSIWYG, the admin should only be allowed to add content that can be rendered.

Screenshots

Stacktrace

No response

Extra data

  • Device: Desktop
  • Device OS: MacOS 13.3
  • Browser: Chrome
  • Decidim Version: 0.28.0.dev

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions