Support » Plugin: Gutenberg » Unable to edit a page

  • Resolved turinqui

    (@turinqui)


    I am no longer able to edit pages with a custom HTML embed (in my specific case, it’s a twitch embed, see code below). It appears that the style information never gets loaded in the editor (see https://i.imgur.com/PfmVrPb.png – left side is a page that works, right side loads a blank screen).

    Here is the custom HTML I am using:

    <!-- Add a placeholder for the Twitch embed -->
    <div id="twitch-embed"></div>
    
    <!-- Load the Twitch embed script -->
    <script src="https://player.twitch.tv/js/embed/v1.js"></script>
    
    <!-- Create a Twitch.Player object. This will render within the placeholder div -->
    <script type="text/javascript">
      new Twitch.Player("twitch-embed", {
        channel: "catmasterop"
      });
    </script>

    Is there any way I can edit this page to remove the embed? Would temporarily disabling Gutenberg and then re-enabling it break the rest of my site?

    Edit: Further info – there appears to be an error in the highlighted line: https://i.imgur.com/HQtaadw.png

    • This topic was modified 3 months, 3 weeks ago by turinqui.
Viewing 1 replies (of 1 total)
  • Plugin Author Jorge Costa

    (@jorgefilipecosta)

    Hi there!

    It seems like the custom HTML block interacts with external scripts, and a crash happens making it impossible to use the editor.

    I guess a possible way to fix the issue would be to create a new post (not publishing it), switch to “Code Editor” on the “ellipsis menu”. Then load the problematic post with the embed. When loading that post, we should load the code editor without loading the external scripts, where you should be able to delete the HTML block code.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.