@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.
- package/bundles/wizishop-wizi-block.umd.js +13 -9
- package/bundles/wizishop-wizi-block.umd.js.map +1 -1
- package/bundles/wizishop-wizi-block.umd.min.js +1 -1
- package/bundles/wizishop-wizi-block.umd.min.js.map +1 -1
- package/esm2015/lib/shared/components/editorjs/tools/paragraph/tool-type/text-edition.component.js +14 -10
- package/fesm2015/wizishop-wizi-block.js +13 -9
- package/fesm2015/wizishop-wizi-block.js.map +1 -1
- package/package.json +2 -1
- package/wizi-block.scss +215 -220
|
@@ -24675,15 +24675,19 @@
|
|
|
24675
24675
|
modal.appendChild(buttonContainer);
|
|
24676
24676
|
container.appendChild(modal);
|
|
24677
24677
|
document.querySelector('body').appendChild(container);
|
|
24678
|
-
|
|
24679
|
-
|
|
24680
|
-
|
|
24681
|
-
|
|
24682
|
-
|
|
24683
|
-
|
|
24684
|
-
|
|
24685
|
-
|
|
24686
|
-
|
|
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);
|