editeur-vue
v1.0.15
Published
a richtext component implement from editeurjs
Downloads
6
Readme
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