We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9bc289c + 5bc3c90 commit 6caed15Copy full SHA for 6caed15
src/components/Editor/src/Editor.vue
@@ -58,6 +58,16 @@ watch(
58
emit('update:modelValue', val)
59
}
60
)
61
+watch(
62
+ () => props.readonly,
63
+ (val) => {
64
+ if (val) {
65
+ editorRef.value?.disable()
66
+ } else {
67
+ editorRef.value?.enable()
68
+ }
69
70
+)
71
72
const handleCreated = (editor: IDomEditor) => {
73
editorRef.value = editor
@@ -90,6 +100,12 @@ const editorConfig = computed((): IEditorConfig => {
90
100
},
91
101
autoFocus: false,
92
102
scroll: true,
103
+ EXTEND_CONF: {
104
+ mentionConfig: {
105
+ showModal: () => {},
106
+ hideModal: () => {}
107
108
+ },
93
109
MENU_CONF: {
94
110
['uploadImage']: {
95
111
server: getUploadUrl(),
0 commit comments