Hi,
For example:
<template>
<smart-editor :value="content" @change="onChange"></smart-editor>
<p>Editor content: {{ content }}</p>
</template>
<script>
export default {
data() {
return {
content: "<p>Hello World</p>"
};
},
methods: {
onChange(event) {
this.content = event.detail.value; // Smart.Editor emits the new value here
}
}
};
</script>
Hope this helps.
Best regards,
Markov
Smart UI Team
https://www.htmlelements.com/