File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
fluent-editor/src/modules/shortcut-key Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ onMounted(async () => {
2929
3030 editor = new FluentEditor (editorRef .value , {
3131 theme: ' snow' ,
32+ placeholder: ' 请输入内容...' ,
3233 modules: {
3334 toolbar ,
3435 file: true ,
Original file line number Diff line number Diff line change @@ -27,8 +27,9 @@ export class ShortCutKey extends QuillShortcutKey {
2727
2828 resolveOptions ( options : Partial < ShortCutKeyInputOptions > ) {
2929 const defaultMenuItems = this . defaultMenuList ( )
30+ const placeholder = this . quill . options . placeholder ? this . quill . options . placeholder : this . quill . getLangText ( 'input-recall-menu-placeholder' )
3031 const value : ShortCutKeyOptions = Object . assign ( {
31- placeholder : this . quill . getLangText ( 'input-recall-menu-placeholder' ) ,
32+ placeholder,
3233 menuItems : defaultMenuItems ,
3334 isMenuItemsAdd : false ,
3435 menuKeyboardControls : ( ) => false ,
You can’t perform that action at this time.
0 commit comments