Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-5463

Disable "HTML Edit" from dymanic WYSIWYG blocks

    XporterXMLWordPrintable

    Details

    • Type: Task
    • Status: CLOSED
    • Priority: Should have
    • Resolution: Released
    • Affects Version/s: None
    • Fix Version/s: 2.42.0
    • Labels:
    • Story Points:
      5
    • Sprint:
      Sprint #144, Sprint #145
    • Section:
      Blocks (all), Gutenberg
    • Track:
      Development
    • Epic Link:
    • P4 Test Environment:
      phobos
    • Repositories:
      planet4-plugin-gutenberg-blocks

      Description

      Tested with Counter and Articles blocks, so I assume this happens for all blocks that we converted to WYSIWYG... It's possible to edit them as HTML, but then when leaving the block or trying to switch back to visual editing, it shows "This block contains unexpected or invalid content."

      From there, the user can either:

      • "convert to HTML" (which is not reversible, and doesn't show the block preview)
      • "attempt block recovery" which does bring the visual editor and preview back, but changes made in the HTML are not saved.

      Update
      Ticket re-purposed to match the decided solution. For most of our WYSIWYG blocks editing in HTML doesn't make sense. Some are dynamic (eg. Articles) and other are complex enough to make them prone to errors if HTML Edit is used. Some of the Gutenberg native blocks also have this feature disabled.

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              sdeshmuk Sagar Deshmukh
              Reporter:
              mleray Maud Leray
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: