How to use
Install
$ npm i vue-poor-editor
Use in browser
index.html
el: '#app' data: html: 'write something' methods: { thishtml = html } { axios }
Options
- borderLess
type Boolean
default true
remove border box editor
- instantSend
type Boolean
default true
activated submit on enter event
- autoFormat
type Boolean
default true
auto format when you paste text from clipboard
- minHeight
type String
default 100px
resize height box editor
- width
type String
default 100%
resize width box editor
Event
- Input
listen change html content
- Submit:enter
get content when entered (which 13 without shift key)
this event active when instantSend option is true