0.0.17 • Published 2 years ago

@hannanmiah/light-editor v0.0.17

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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>
0.0.15

2 years ago

0.0.16

2 years ago

0.0.17

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago