Skip to content

Commit

Permalink
Merge pull request #6620 from Abassion/master
Browse files Browse the repository at this point in the history
Fix #5606: Adding support for Quill V2
  • Loading branch information
tugcekucukoglu authored Nov 13, 2024
2 parents 4f8127c + 219b91a commit eab946c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/showcase/doc/editor/BasicDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="card">
<Editor v-model="value" editorStyle="height: 320px" />
</div>
<DocSectionCode :code="code" :dependencies="{ quill: '1.3.7' }" component="Editor" />
<DocSectionCode :code="code" :dependencies="{ quill: '2.0.0' }" component="Editor" />
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion apps/showcase/doc/editor/ReadOnlyDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="card">
<Editor v-model="value" editorStyle="height: 320px" readonly />
</div>
<DocSectionCode :code="code" :dependencies="{ quill: '1.3.7' }" component="Editor" />
<DocSectionCode :code="code" :dependencies="{ quill: '2.0.0' }" component="Editor" />
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion apps/showcase/doc/editor/TemplateDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</template>
</Editor>
</div>
<DocSectionCode :code="code" :dependencies="{ quill: '1.3.7' }" component="Editor" />
<DocSectionCode :code="code" :dependencies="{ quill: '2.0.0' }" component="Editor" />
</template>

<script>
Expand Down
4 changes: 2 additions & 2 deletions apps/showcase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"postcss": "^8.4.31",
"prettier": "2.7.1",
"primeicons": "^7.0.0",
"quill": "^1.3.7",
"quill": "2.0.0",
"sass": "1.45.0",
"sass-loader": "8.0.2",
"tailwindcss": "^3.4.1",
Expand All @@ -69,4 +69,4 @@
"engines": {
"node": ">=12.11.0"
}
}
}
2 changes: 1 addition & 1 deletion packages/primevue/src/editor/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default {
methods: {
renderValue(value) {
if (this.quill) {
if (value) this.quill.setContents(this.quill.clipboard.convert(value));
if (value) this.quill.clipboard.dangerouslyPasteHTML(value);
else this.quill.setText('');
}
},
Expand Down

0 comments on commit eab946c

Please sign in to comment.