chmln / vue-wysiwyg

A lightweight WYSIWYG HTML editor for Vue.js
https://chmln.github.io/vue-wysiwyg/
MIT License
555 stars 134 forks source link

@dragover and @drop events not works #65

Open mymtw opened 6 years ago

mymtw commented 6 years ago

Hi, currently I cannot customize editor with drag and drop events. They not works

<wysiwyg  @dragover="handleDragOver" v-model="myHTML" @drop="handleDrop" />
  1. can you add handling events dragover and drop ? (I need that for reading the data from e.dataTransfer.getData('text') and pasting in editor my own html)
  2. would be good to have ability for customizing generated html, (e.g. I want to wrap all paragraphs(blocks of text) in div with any css-class) thx