@hannanmiah/light-editor
@hannanmiah/light-editor is built on top of tiptap (a popular rich text editor).
687
| Install | |
|---|---|
npm install @hannanmiah/light-editor |
|
| Latest Version: | 0.0.18 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Sep 21, 2022 |
| Links: | npm |
Maintainer: hannanmiah
A Light Vue 3 rich text editor
@hannanmiah/light-editor is built on top of tiptap (a popular rich text editor).
Project Setup
npm install @hannanmiah/light-editor
Using as a plugin or Component
//main.js
import { createApp } from "vue";
import { LightEditor, LightEditorPlugin } from "@hannanmiah/light-editor"
import App from "./App.vue";
//styles
import "@hannanmiah/light-editor/dist/style.css"
const app = createApp(App);
//use as a plugin
app.use(LightEditorPlugin);
//or use as a global component
app.component(LightEditor)
app.mount("#app");
//App.vue
<script setup lang="ts">
import { ref } from "vue";
const content = ref("");
</script>
<template>
<div class="about">
<light-editor v-model="content" />
<div class="prose lg:prose-xl" v-html="content"></div>
</div>
</template>
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.0.18 | ^3.2 | MIT | |
| 0.0.17 | ^3.2 | MIT | |
| 0.0.16 | ^3.2 | MIT | |
| 0.0.15 | ^3.2 | MIT | |
| 0.0.14 | ^3.2 | MIT | |
| 0.0.13 | ^3.2 | MIT | |
| 0.0.12 | ^3.2 | MIT | |
| 0.0.11 | ^3.2 | ||
| 0.0.10 | ^3.2 | ||
| 0.0.9 | ^3.2 | ||
| 0.0.8 | ^3.2 | ||
| 0.0.7 | ^3.2 | ||
| 0.0.6 | ^3.2 | ||
| 0.0.5 | ^3.2 | ||
| 0.0.4 | ^3.2 | ||
| 0.0.3 | ^3.2 | ||
| 0.0.2 | ^3.2 | ||
| 0.0.1 | ^3.2 |