1
0
This commit is contained in:
Illya Marchenko 2022-12-30 13:23:24 +02:00
parent bd56f475a5
commit a573f91fcd

@ -668,13 +668,17 @@ require(['vs/editor/editor.main'], function () {
// On preview // On preview
let el_btn_preview = document.querySelector('#wpPreview'); let el_btn_preview = document.querySelector('#wpPreview');
if (el_btn_preview) {
el_btn_preview.addEventListener('click', event => { el_btn_preview.addEventListener('click', event => {
el_stock_editor.value = window.monaco_editor.getValue(); el_stock_editor.value = window.monaco_editor.getValue();
}); });
}
// On save // On save
let el_btn_save = document.querySelector('#wpSave'); let el_btn_save = document.querySelector('#wpSave');
if (el_btn_save) {
el_btn_save.addEventListener('click', event => { el_btn_save.addEventListener('click', event => {
el_stock_editor.value = window.monaco_editor.getValue(); el_stock_editor.value = window.monaco_editor.getValue();
}); });
}
}); });