@wizishop/wizi-block 4.2.27-beta → 4.2.30-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24675,15 +24675,19 @@
24675
24675
  modal.appendChild(buttonContainer);
24676
24676
  container.appendChild(modal);
24677
24677
  document.querySelector('body').appendChild(container);
24678
- var monacoEditor = monaco.editor.create(editorContainer, {
24679
- value: content,
24680
- language: 'html',
24681
- });
24682
- saveButton.addEventListener('click', function () {
24683
- var content = monacoEditor.getValue();
24684
- saveCodeEditModal(content);
24685
- }, true);
24686
- buttonContainer.appendChild(saveButton);
24678
+ setTimeout(function () {
24679
+ console.log('monacoeditor init');
24680
+ var monacoEditor = monaco.editor.create(editorContainer, {
24681
+ value: content,
24682
+ language: 'html',
24683
+ ariaContainerElement: container
24684
+ });
24685
+ saveButton.addEventListener('click', function () {
24686
+ var content = monacoEditor.getValue();
24687
+ saveCodeEditModal(content);
24688
+ }, true);
24689
+ buttonContainer.appendChild(saveButton);
24690
+ }, 200);
24687
24691
  };
24688
24692
  TextEditionTool.prototype.getSavedEditorContent = function (name) {
24689
24693
  return localStorage.getItem(name);