diff --git a/public/index.html b/public/index.html index 77f243b..4e1cfd4 100644 --- a/public/index.html +++ b/public/index.html @@ -12,6 +12,8 @@ + +
diff --git a/src/view/CodemirrorEditor.vue b/src/view/CodemirrorEditor.vue index 3a195fb..7b5c9d5 100644 --- a/src/view/CodemirrorEditor.vue +++ b/src/view/CodemirrorEditor.vue @@ -216,6 +216,7 @@ export default { }, onEditorRefresh() { this.editorRefresh(); + setTimeout(()=> PR.prettyPrint(), 0); }, endCopy() { this.backLight = false; @@ -232,6 +233,9 @@ export default { }, mounted() { this.leftAndRightScroll(); + setTimeout(() => { + PR.prettyPrint() + }, 300); } }