mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 新插入文字直接操作样式异常(#33)
This commit is contained in:
parent
b86ff7dfd3
commit
f713957048
@ -167,8 +167,9 @@ export default defineComponent({
|
|||||||
|
|
||||||
const handleFocus = () => {
|
const handleFocus = () => {
|
||||||
if (props.elementInfo.content === '请输入内容') {
|
if (props.elementInfo.content === '请输入内容') {
|
||||||
editorView.dom.innerHTML = ''
|
setTimeout(() => {
|
||||||
handleInput()
|
selectAll(editorView.state, editorView.dispatch)
|
||||||
|
}, 0)
|
||||||
}
|
}
|
||||||
store.commit(MutationTypes.SET_DISABLE_HOTKEYS_STATE, true)
|
store.commit(MutationTypes.SET_DISABLE_HOTKEYS_STATE, true)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user