vue-quill icon indicating copy to clipboard operation
vue-quill copied to clipboard

[Question] Try to use <div> instead <p> in content

Open Kanglinwu opened this issue 4 years ago • 1 comments

Version "@vueup/vue-quill": "^1.0.0-beta.7",

Describe the bug When i use the v-model (value type: string) to bind the string on VueQuill component, default value ( by setHTML() method ) will be

, is it possible to use the
tag to replace it? i do the pre-search on google, i found only Quill document mention about this, but on vue-quill i can't find any solution

refer - https://github.com/quilljs/quill/issues/861

Kindly let me know if any idea for this, thanks : )

Kanglinwu avatar Aug 08 '21 13:08 Kanglinwu

@Kanglinwu this can be achieved the exact same way as in the issue you referred. Here is a vue 3 example:

<script setup lang="ts">
import { Quill, QuillEditor } from '@vueup/vue-quill';

const Block = Quill.import('blots/block');
Block.tagName = 'DIV';
Quill.register(Block, true);
</script>

TylerMRoderick avatar Jul 07 '22 01:07 TylerMRoderick

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.

stale[bot] avatar Sep 05 '22 03:09 stale[bot]