vueup / vue-quill

Rich Text Editor Component for Vue 3.
https://vueup.github.io/vue-quill/
MIT License
1.13k stars 282 forks source link

How do I insert text at a specified range.index? #495

Closed ueiheng closed 6 months ago

ueiheng commented 9 months ago

How do I insert html at a specified range.index? Currently, the document only supports getting HTMLat range.index

svipchao commented 9 months ago
<QuillEditor ref="QuillEditorRef" :options="editorOption"></QuillEditor>

const quill = QuillEditorRef.value.getQuill();
quill.insertText(0, 'Hello', 'bold', true);

希望可以帮到你

stale[bot] commented 7 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.