ISSUE-2 #3
@ -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');
|
||||||
el_btn_preview.addEventListener('click', event => {
|
if (el_btn_preview) {
|
||||||
el_stock_editor.value = window.monaco_editor.getValue();
|
el_btn_preview.addEventListener('click', event => {
|
||||||
});
|
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');
|
||||||
el_btn_save.addEventListener('click', event => {
|
if (el_btn_save) {
|
||||||
el_stock_editor.value = window.monaco_editor.getValue();
|
el_btn_save.addEventListener('click', event => {
|
||||||
});
|
el_stock_editor.value = window.monaco_editor.getValue();
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user