diff --git a/ayanova/src/views/ay-report-edit.vue b/ayanova/src/views/ay-report-edit.vue index 7a81e7ef..c9ddc834 100644 --- a/ayanova/src/views/ay-report-edit.vue +++ b/ayanova/src/views/ay-report-edit.vue @@ -48,6 +48,16 @@ //////////////////////////////////////////////////////////////////////////////////////////////////////////// import * as monaco from "monaco-editor"; +//jsreport demo +//https://playground.jsreport.net/w/admin/hBfqC7af +//jsreport text editor source +//https://github.com/jsreport/jsreport-studio/blob/master/src/components/Editor/TextEditor.js + +//Monaco editor info page with links +//https://microsoft.github.io/monaco-editor/ + +//vue-monaco component source +//https://github.com/egoist/vue-monaco/blob/master/src/MonacoEditor.js const FORM_KEY = "ay-report-edit"; export default { @@ -144,13 +154,14 @@ import router from "./router"; //https://github.com/Microsoft/monaco-editor/issues/604 //https://github.com/Microsoft/monaco-editor/blob/bad3c34056624dca34ac8be5028ae3454172125c/website/playground/playground.js#L108 //https://github.com/microsoft/monaco-editor-samples/tree/master/browser-esm-webpack-monaco-plugin + // onViewChange() { let vm = this; let editor = vm.$refs.editor ? vm.$refs.editor.getEditor() : null; // console.log(`Switching from ${vm.lastTab} to ${vm.activeTab}`); // console.log("editor", editor); - //todo: use function below for inspiration to save editor state and contents as necessary and switch views + todo: use function below for inspiration to save editor state and contents as necessary and switch views //Note that properties tab doesn't mean need to dump editor as user could be switching back and forth //so really the lasttab needs to be the last edited tab because we don't need to save when going to properties from script and back again @@ -217,6 +228,8 @@ import router from "./router"; */ }, onResize() { + //resize related links: + //https://github.com/Microsoft/monaco-editor/issues/28 let el = document.getElementById("editContainer"); el.style = `width:100%;height:${window.innerHeight * 0.77}px`; if (this.editor != null) {