dialog.html 905 字节
<!doctype html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>Dialog Examples</title>
		<link rel="stylesheet" href="../themes/default/default.css" />
		<script src="../kindeditor.js"></script>
		<script>
			KindEditor.ready(function(K) {
				K('#create1').click(function() {
					var dialog = K.dialog({
						width : 500,
						title : '测试窗口',
						body : '<div style="margin:10px;"><strong>内容</strong></div>',
						closeBtn : {
							name : '关闭',
							click : function(e) {
								dialog.remove();
							}
						},
						yesBtn : {
							name : '确定',
							click : function(e) {
								alert(this.value);
							}
						},
						noBtn : {
							name : '取消',
							click : function(e) {
								dialog.remove();
							}
						}
					});
				});
			});
		</script>
	</head>
	<body>
		<input type="button" id="create1" value="打开弹出框" />
	</body>
</html>