Support » Plugin: 10Web Instagram Feed - Instagram Gallery » Conflict with Gutenberg

  • Resolved dziudek

    (@dziudek)


    Hi,

    It seems that your plugin causes a conflict with Gutenberg. It adds some script before opening <doctype> what leads the browser to go into quirks mode. In Quirks mode the metaboxes are displayed wrongly:

    https://github.com/WordPress/gutenberg/pull/12575
    https://github.com/WordPress/gutenberg/issues/11378#issuecomment-441840688

    I got the following script at the beginning of my HTML under gutenberg editor page in dashboard:

    
    <script>
        if ( !window['tw_gb_wdi'] ) {
          window['tw_gb_wdi'] = {};
        }
        if ( !window['tw_gb_wdi']['tw/wdi'] ) {
          window['tw_gb_wdi']['tw/wdi'] = {
            title: 'Instagram WD',
            iconUrl: 'http://localhost/test/wp-content/plugins/wd-instagram-feed/images/insta_2.svg',
            iconSvg: {
              width: '30',
              height: '30',
              src: 'http://localhost/test/wp-content/plugins/wd-instagram-feed/images/insta.svg'
            },
            data: '{"shortcode_prefix":"wdi_feed","inputs":[{"type":"select","id":"wdi_id","name":"wdi_id","shortcode_attibute_name":"id","options":[{"id":"1","name":"Instagram footer"}]}]}',
          };
        }
      </script>
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Tigran Nazaryan

    (@progmastery)

    hi @dziudek,

    thank you very much for reporting this issue.
    We will check this bug and fix it ASAP.

    yzoja

    (@yzoja)

    ANY news? it breaks metaboxes position (that’s kinda-easy CSS fix) but it’s also breaking the galleries and it’s super not cool.

    Plugin Support Agapi

    (@agharibyan)

    Hey!

    I’m happy to announce, that we have fixed this problem in Instagram Feed plugin. It is almost ready to go live, just a few final touches left.

    Cheers!

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