fixed bug
This commit is contained in:
@@ -19,6 +19,11 @@ function sendValue() {
|
||||
emit('update', data.value)
|
||||
}
|
||||
|
||||
function sendNewValue(newValue : string) {
|
||||
data.value = newValue
|
||||
emit('update', data.value)
|
||||
}
|
||||
|
||||
function updateData(newData: string) {
|
||||
data.value = newData;
|
||||
sendValue();
|
||||
@@ -47,6 +52,6 @@ function canBeFormatted() {
|
||||
</div>
|
||||
</div>
|
||||
<!-- <textarea id="xmlField" v-model="data" @input="sendValue()" class="text-field h-full"></textarea> -->
|
||||
<CodeEditor @input="sendValue()" v-model="data" :code="data" :config="{disabled:false, language:stylizedName}"></CodeEditor>
|
||||
<CodeEditor @update:updated-code="sendNewValue" v-model="data" :code="data" :config="{disabled:false, language:stylizedName}"></CodeEditor>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user