0.0.3 • Published 3 years ago

@halo-dev/halo-richtext-editor v0.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Halo Richtext Editor

In development, not for production use

demo: https://halo-richtext-editor.netlify.app

Installation

npm install @halo-dev/halo-richtext-editor

or

yarn add @halo-dev/halo-richtext-editor

Usage

Global Registration

import { createApp } from "vue";
import HaloRichtextEditor from "@halo-dev/halo-richtext-editor";
import "@halo-dev/halo-richtext-editor/dist/lib/style.css";

const app = createApp(/* */);

app.use(HaloRichtextEditor);

Local Registration

<template>
  <HaloRichtextEditor />
</template>

<script>
import { defineComponent } from "vue";
import { HaloRichtextEditor } from "@halo-dev/halo-richtext-editor";
import "@halo-dev/halo-richtext-editor/dist/lib/style.css";

export default defineComponent({
  components: {
    HaloRichtextEditor,
  },
  setup() {
    return {};
  },
});
</script>

Vite

https://github.com/vitejs/vite/issues/2249

export default defineConfig({
  plugins: [vue()],
  resolve: { dedupe: ["vue"] },
});