Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mingchiuli committed Jun 29, 2024
1 parent f3bbc32 commit fc97b01
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions src/components/sys/EditorItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'md-editor-v3/lib/style.css'
import '@vavt/v3-extension/lib/asset/ExportPDF.css'
import { ExportPDF, Emoji } from '@vavt/v3-extension'
import '@vavt/v3-extension/lib/asset/Emoji.css'
import { ref } from 'vue'
import { onMounted, ref } from 'vue'
const emit = defineEmits<{
composing: [payload: boolean]
Expand All @@ -26,17 +26,22 @@ const toolbars: ToolbarNames[] = [
]
const footers: Footers[] = ['markdownTotal', '=', 0, 'scrollSwitch']
console.log("!!!!!!!!!", editorRef.value)
editorRef.value?.domEventHandlers({
compositionstart: () => {
console.log("composing start")
emit('composing', true)
},
compositionend: () => {
console.log("composing end")
emit('composing', false)
}
});
onMounted(() => {
console.log("!!!!!!!!!", editorRef.value)
editorRef.value?.domEventHandlers({
compositionstart: () => {
console.log("composing start")
emit('composing', true)
},
compositionend: () => {
console.log("composing end")
emit('composing', false)
}
});
})
const onUploadImg = async (files: File[], callback: Function) => {
const formdata = new FormData()
Expand Down

0 comments on commit fc97b01

Please sign in to comment.