mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 18:42:54 +00:00
fix: 修复输入框无法点击添加链接的情况
This commit is contained in:
parent
3bdfaab158
commit
928235eac8
@ -1062,6 +1062,27 @@ export default {
|
||||
return delta
|
||||
})
|
||||
|
||||
// Link handler
|
||||
const toolbar = this.quill.getModule('toolbar')
|
||||
if (toolbar?.handlers?.link) {
|
||||
toolbar.addHandler('link', (value) => {
|
||||
if (value) {
|
||||
$A.modalInput({
|
||||
title: "插入链接",
|
||||
placeholder: "请输入完整的链接地址",
|
||||
onOk: (link) => {
|
||||
if (!link) {
|
||||
return false;
|
||||
}
|
||||
this.quill.format('link', link);
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.quill.format('link', false);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Set enterkeyhint
|
||||
this.$nextTick(_ => {
|
||||
if (this.$isEEUiApp && this.cacheKeyboard.send_button_app === 'enter') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user