@navasia/editor
v1.0.9
Published
[Demo](https://navan101.github.io/vue-fabric-design-editor/)
Downloads
1
Readme
Vue Design editor
Installation
$ yarn add @navasia/editor
$ npm install --save @navasia/editor
Usage
Plugin registration
Add it as a plugin to your app:
import { createApp } from "vue";
import Editor from "@navasia/editor";
// Import the CSS or use your own!
import '@navasia/editor/styles.css'
const app = createApp(...);
const options = {
// You can set your default options here
};
app.use(Editor, options);
Or, if you are using Typescript:
import { createApp } from "vue";
import Editor from "@navasia/editor";
// Import the CSS or use your own!
import '@navasia/editor/styles.css'
const app = createApp(...);
const options: any = {
// You can set your default options here
};
app.use(Editor, options);
Using with Vue 3
<template>
<Editor />
</template>