Vue UI Components Documentation
The Vue Editor represents a ready-for-use HTML text editor which can simplify web content creation or be a replacement of your HTML Text Areas. This guide adds the Vue Editor (jqxEditor) to an app, then shows how to set its options, handle its events and call its methods.
jqwidgets-scriptsjqwidgets-scripts/jqwidgets-vue3/vue_jqxeditor.vue 
In a Vue 3 project (to start one, see Getting started with Vue), add the package:
npm install jqwidgets-scripts
import JqxEditor from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxeditor.vue';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css';
With <script setup>, an imported component is ready to use in the template. jqx.base.css is required; the second file is a theme, selected with the theme attribute.
The Default Functionality demo as a Single-File Component:
<template>
<JqxEditor :width="width" :height="400">
<b>jqxEditor</b> is a HTML text editor designed to simplify web content
creation. You can use it as a replacement of your Textarea. <br /> <br />
Features include: <br /> <ul> <li>Text formatting</li>
<li>Text alignment</li> <li>Hyperlink dialog</li> <li>Image
dialog</li> <li>Bulleted list</li> <li>Numbered list</li>
</ul>
</JqxEditor>
</template>
<script setup>
import { ref } from 'vue';
import JqxEditor from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxeditor.vue';
const width = ref('90%');
</script>
<style></style>
Options are attributes. Bind values from the script with :, for example :width="850".
Listen to an event with @ and its name. For example, change: This is triggered when the jqxEditor's value is changed.
<script setup>
function onChange(event) {
console.log(event.args);
}
</script>
<template>
<JqxEditor @change="onChange" />
</template>
Call methods through a template ref. For example, val: Sets or gets the value.
<script setup>
import { ref, onMounted } from 'vue';
const myEditor = ref(null);
onMounted(() => {
const value = myEditor.value.val('New Editor Value!');
console.log(value);
});
</script>
<template>
<JqxEditor ref="myEditor" />
</template>
Every component also has setOptions({ … }) and getOptions('name').