Adjusted solution to support Quill V2.0.0
parent
69d0407fe6
commit
dbe6d2cae3
|
@ -5,7 +5,7 @@
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Editor v-model="value" editorStyle="height: 320px" />
|
<Editor v-model="value" editorStyle="height: 320px" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" :dependencies="{ quill: '1.3.7' }" component="Editor" />
|
<DocSectionCode :code="code" :dependencies="{ quill: '2.0.0' }" component="Editor" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Editor v-model="value" editorStyle="height: 320px" readonly />
|
<Editor v-model="value" editorStyle="height: 320px" readonly />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" :dependencies="{ quill: '1.3.7' }" component="Editor" />
|
<DocSectionCode :code="code" :dependencies="{ quill: '2.0.0' }" component="Editor" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
</template>
|
</template>
|
||||||
</Editor>
|
</Editor>
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" :dependencies="{ quill: '1.3.7' }" component="Editor" />
|
<DocSectionCode :code="code" :dependencies="{ quill: '2.0.0' }" component="Editor" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
"postcss": "^8.4.31",
|
"postcss": "^8.4.31",
|
||||||
"prettier": "2.7.1",
|
"prettier": "2.7.1",
|
||||||
"primeicons": "^7.0.0",
|
"primeicons": "^7.0.0",
|
||||||
"quill": "^1.3.7",
|
"quill": "2.0.0",
|
||||||
"sass": "^1.45.0",
|
"sass": "^1.45.0",
|
||||||
"sass-loader": "^8.0.2",
|
"sass-loader": "^8.0.2",
|
||||||
"tailwindcss": "^3.4.1",
|
"tailwindcss": "^3.4.1",
|
||||||
|
@ -64,4 +64,4 @@
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12.11.0"
|
"node": ">=12.11.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,7 +124,7 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
renderValue(value) {
|
renderValue(value) {
|
||||||
if (this.quill) {
|
if (this.quill) {
|
||||||
if (value) this.quill.setContents(this.quill.clipboard.convert(value));
|
if (value) this.quill.clipboard.dangerouslyPasteHTML(value);
|
||||||
else this.quill.setText('');
|
else this.quill.setText('');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
581
pnpm-lock.yaml
581
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue