mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: allow using html in markdown
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user