ui: allow using html in markdown

This commit is contained in:
undefined committed 2021-05-12 13:25:45 +08:00
1 parent 9632b425d5
commit 5c745fff82
8 files changed
+151 -77

No files matched your search

@@ -59,7 +59,6 @@ export default class Editor extends DOMAttachedObject {
lightbulb: { enabled: true },
model: this.model,
automaticLayout: true,
wordWarp: 'bounded',
minimap: { enabled: false },
hideCursorInOverviewRuler: true,
overviewRulerLanes: 0,
@@ -71,6 +70,7 @@ export default class Editor extends DOMAttachedObject {
horizontal: 'hidden',
handleMouseWheel: false,
};
cfg.wordWrap = 'bounded';
cfg.scrollBeyondLastLine = false;
}
this.editor = monaco.editor.create(ele, cfg);