image.png

    1. <template>
    2. <div>
    3. <rich-text :text="content" @editorChange="editorChange" />
    4. {{ content }}
    5. </div>
    6. </template>
    7. <script>
    8. import RichText from "@/components/Common/RichText";
    9. export default {
    10. components: { RichText },
    11. data() {
    12. return {
    13. content: "",
    14. };
    15. },
    16. methods: {
    17. editorChange: function (html) {
    18. this.content = html;
    19. },
    20. },
    21. };
    22. </script>