mavonEditor icon indicating copy to clipboard operation
mavonEditor copied to clipboard

$imgAdd不触发

Open hangjob opened this issue 4 years ago • 2 comments

<!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>

hangjob avatar May 21 '20 03:05 hangjob

如何解决的呢, 我的也遇到不触发事件

JavaRoadFight avatar Jun 14 '20 09:06 JavaRoadFight

同问

zizhuxuaner avatar Apr 17 '22 09:04 zizhuxuaner