Open troopson opened 1 week ago
3.16
3
示例代码:
<template> <div> <tiny-button @click="setValue">change</tiny-button> <tiny-rich-text-editor v-model="value"></tiny-rich-text-editor> <div class="result"> <hr /> <pre>{{ value }}</pre> </div> </div> </template> <script lang="ts"> import { RichTextEditor, Button } from '@opentiny/vue' export default { components: { TinyRichTextEditor: RichTextEditor, TinyButton: Button }, data() { return { value: '你好 Opentiny!' } }, methods: { setValue(){ this.value="==changed==" } } } </script> <style scoped> .result { margin-top: 16px; font-size: 14px; line-height: 1.3; word-break: break-all; } </style>
期望改变modal value的值,编辑器中显示的内容也会发生改变
No response
RichTextEditor
Bot detected the issue body's language is not English, translate it automatically. Title: 🐛 [Bug]: RichTextEditor is loading content, modifying the modal value does not take effect
Bot detected the issue body's language is not English, translate it automatically.
Title: 🐛 [Bug]: RichTextEditor is loading content, modifying the modal value does not take effect
Version
3.16
Vue Version
3
Link to minimal reproduction
Step to reproduce
示例代码:
What is expected
期望改变modal value的值,编辑器中显示的内容也会发生改变
What is actually happening
No response
What is your project name
RichTextEditor
Any additional comments (optional)
No response