Skip to content

Commit

Permalink
feat: 支持设置编辑器的值
Browse files Browse the repository at this point in the history
  • Loading branch information
Saraph1nes committed Sep 11, 2024
1 parent 47a84ae commit bcb1b23
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -725,4 +725,11 @@ export default class Editor {
this.options.writingStyle = writingStyle;
this.initWritingStyle();
}

/**
* 设置编辑器值
*/
setValue(value = '') {
this.editor.setOption('value', value);
}
}

0 comments on commit bcb1b23

Please sign in to comment.