0.0.17 • Published 3 years ago

@hannanmiah/light-editor v0.0.17

Weekly downloads
-
License
MIT
Repository
-
Last release
3 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

3 years ago

0.0.16

3 years ago

0.0.17

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago