mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: problem_edit: fix multi-lang
This commit is contained in:
1 parent
a5e3cf2c9b
commit
0c5f941203
5 files changed
+59
-62
No files matched your search
@@ -119,7 +119,7 @@ export default class Editor extends DOMAttachedObject {
|
||||
|
||||
value(val) {
|
||||
this.ensureValid();
|
||||
if (val) return this.editor.setValue(val);
|
||||
if (typeof val === 'string') return this.editor.setValue(val);
|
||||
return this.editor.getValue();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user