mavonEditor
mavonEditor copied to clipboard
$imgAdd不触发
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
</style>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/index.min.css">
</head>
<body>
<div id='app'>
<mavon-editor ref='md' @imgAdd="$imgAdd"></mavon-editor>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/mavon-editor.min.js"></script>
<div>div按钮</div>
<button>button按钮</button>
<script type="text/javascript">
Vue.use(MavonEditor)
new Vue({
el:'#app',
data:{
text:''
},
methods: {
// 绑定@imgAdd event
$imgAdd(pos, $file){
alert('这里没生效')
}
}
})
</script>
</body>
</html>
如何解决的呢, 我的也遇到不触发事件
同问