ISSUE-2 (#3)
Co-authored-by: stuzer05 <stuzer05@gmail.com> Reviewed-on: #3
This commit is contained in:
parent
bd56f475a5
commit
4969f73bd3
@ -668,13 +668,17 @@ require(['vs/editor/editor.main'], function () {
|
||||
|
||||
// On preview
|
||||
let el_btn_preview = document.querySelector('#wpPreview');
|
||||
if (el_btn_preview) {
|
||||
el_btn_preview.addEventListener('click', event => {
|
||||
el_stock_editor.value = window.monaco_editor.getValue();
|
||||
});
|
||||
}
|
||||
|
||||
// On save
|
||||
let el_btn_save = document.querySelector('#wpSave');
|
||||
if (el_btn_save) {
|
||||
el_btn_save.addEventListener('click', event => {
|
||||
el_stock_editor.value = window.monaco_editor.getValue();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user