perf: 聊天输入框粘贴格式优化

This commit is contained in:
kuaifan 2024-04-20 16:04:22 +08:00
parent 106c011f6b
commit 8ca021df6a

View File

@ -163,7 +163,7 @@
</div> </div>
<div class="chat-input-popover-item" @click="onSend('normal')"> <div class="chat-input-popover-item" @click="onSend('normal')">
<i class="taskfont">&#xe71b;</i> <i class="taskfont">&#xe71b;</i>
{{$L('正常发送')}} {{$L('普通格式发送')}}
</div> </div>
</EPopover> </EPopover>
</li> </li>
@ -273,7 +273,7 @@ export default {
toolbar: { toolbar: {
type: Array, type: Array,
default: () => { default: () => {
return ['bold', 'strike', 'italic', 'underline', {'list': 'ordered'}, {'list': 'bullet'}, 'blockquote', 'code-block'] return ['bold', 'strike', 'italic', 'underline', 'blockquote', {'list': 'ordered'}, {'list': 'bullet'}]
}, },
}, },
maxlength: { maxlength: {
@ -637,6 +637,7 @@ export default {
// Options // Options
this._options = Object.assign({ this._options = Object.assign({
theme: 'bubble', theme: 'bubble',
formats: ['bold', 'strike', 'italic', 'underline', 'blockquote', 'list', 'link', 'image'],
readOnly: false, readOnly: false,
placeholder: this.placeholder, placeholder: this.placeholder,
modules: { modules: {