Skip to content

Instantly share code, notes, and snippets.

@nomadjimbob
nomadjimbob / vuetrix.vue
Last active November 18, 2024 04:13
Vue3-Trix
<template>
<div class="editor">
<label v-if="label" :class="{required: required}">{{ label }}</label>
<trix-editor
:contenteditable="!disabledEditor"
:class="['trix-content']"
:placeholder="placeholder"
:input="computedId"
ref="trix"
@trix-change="handleContentChange"