editeur-vue

1.0.15 • Public • Published

Editeur-Vue

a implement of editeur.js in vue Component

Version Downloads License

installusagepropertynote

install

npm install editeur-vue --save

usage

Ant Design is used in component. If you want to use it, you need to import Ant Design as well. you can import the component I use in it like this:

// main.js
import { Dropdown, Input, Tooltip, Icon } from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css';
 
import editor from 'editeur-vue'
 
Vue.use(Dropdown)
Vue.use(Input)
Vue.use(Tooltip)
Vue.use(Icon)
 
Vue.component(editor.name, editor)

or import whole ant design like this:

// main.js
import antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css';
import editor from 'editeur-vue'
 
Vue.use(antd)
Vue.component(editor.name, editor)

then you can use it in template just like this:

<editeur width="600px" height="400px"></editeur>

property

name type defalut instruction
width string 600px width of the editor element
height string 400px height of the editor element

Note

this repostry is just an example to implement editeur.js's fuction.

font-family and init function is not use in this component.

In this component there are some problems in it.They are caused by editeur.js and maybe fixed later.

If you have any custmized event of methods request, you can add it yourself

Readme

Keywords

none

Package Sidebar

Install

npm i editeur-vue

Weekly Downloads

2

Version

1.0.15

License

MIT

Unpacked Size

359 kB

Total Files

18

Last publish

Collaborators

  • jh1990