@wizishop/wizi-block 4.2.29-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,16 +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
- ariaContainerElement: container
24682
- });
24683
- saveButton.addEventListener('click', function () {
24684
- var content = monacoEditor.getValue();
24685
- saveCodeEditModal(content);
24686
- }, true);
24687
- 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);
24688
24691
  };
24689
24692
  TextEditionTool.prototype.getSavedEditorContent = function (name) {
24690
24693
  return localStorage.getItem(name);