import {render} from '@wordpress/element'; import './style.scss'; import IsolatedBlockEditor, {ToolbarSlot} from '@automattic/isolated-block-editor'; import {Button} from '@wordpress/components'; const settings = { iso: { sidebar: { inspector: true, inserter: true, }, toolbar: { inspector: true, navigation: true, }, moreMenu: { editor: true, preview: true, }, }, }; const textarea = document.getElementById('content'); textarea.style.display = 'none'; const editor = document.createElement('div'); editor.classList.add('editor'); document.body.appendChild(editor); function onLoad(content, parser, rawHandler) { // Does the content contain blocks? if (content.indexOf('