Skip to content

This plugin is based on popular vue 3 rich text editor called tiptap.

License

Notifications You must be signed in to change notification settings

hannanmiah/light-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

217abc5 · Sep 21, 2022

History

14 Commits
Jul 24, 2022
Jul 24, 2022
Sep 21, 2022
Jul 24, 2022
Jul 24, 2022
Jul 25, 2022
Jul 24, 2022
Jul 25, 2022
Jul 24, 2022
Sep 14, 2022
Sep 14, 2022
Sep 21, 2022
Jul 24, 2022
Jul 25, 2022
Sep 14, 2022
Jul 24, 2022
Jul 24, 2022
Aug 10, 2022

Repository files navigation

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>

About

This plugin is based on popular vue 3 rich text editor called tiptap.

Resources

License

Stars

Watchers

Forks

Packages

No packages published