|
@@ -65,9 +65,7 @@ const emit = defineEmits(['update:modelValue'])
|
|
|
|
|
|
|
|
function edit() {
|
|
function edit() {
|
|
|
show.value = true;
|
|
show.value = true;
|
|
|
- setTimeout(() => {
|
|
|
|
|
-
|
|
|
|
|
- }, 200);
|
|
|
|
|
|
|
+ currentContent = props.modelValue;
|
|
|
}
|
|
}
|
|
|
function cancel() {
|
|
function cancel() {
|
|
|
confirm({
|
|
confirm({
|
|
@@ -79,6 +77,7 @@ function cancel() {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
function save() {
|
|
function save() {
|
|
|
|
|
+
|
|
|
emit('update:modelValue', currentContent);
|
|
emit('update:modelValue', currentContent);
|
|
|
show.value = false;
|
|
show.value = false;
|
|
|
}
|
|
}
|
|
@@ -102,6 +101,7 @@ function overMax(e: { html: string; text: string; }) {
|
|
|
console.log('==== overMax :', e)
|
|
console.log('==== overMax :', e)
|
|
|
}
|
|
}
|
|
|
function initEditor(editor: any) {
|
|
function initEditor(editor: any) {
|
|
|
|
|
+ currentEditor = editor;
|
|
|
editor.setContents({
|
|
editor.setContents({
|
|
|
html: props.modelValue
|
|
html: props.modelValue
|
|
|
})
|
|
})
|