MobilePhoneWeb/kindeditor-4.1.7/examples/jquery-ui.html
(完整代码) 1KB<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>With jQuery UI</title>
<style>
body {
font-size: 12px;
}
form {
margin: 0;
}
textarea {
display: block;
}
#J_editorDialog {
display: none;
}
</style>
<link rel="stylesheet" href="jquery-ui/css/smoothness/jquery-ui-1.9.2.custom.css" />
<link rel="stylesheet" href="../themes/default/default.css" />
<script charset="utf-8" src="jquery.js"></script>
<script charset="utf-8" src="jquery-ui/js/jquery-ui-1.9.2.custom.js"></script>
<script charset="utf-8" src="../kindeditor.js"></script>
<script charset="utf-8" src="../lang/zh_CN.js"></script>
<script>
$(function() {
$('#J_openDialog').click(function() {
$('#J_editorDialog').dialog({
title : 'KindEditor',
width : 700,
open : function(event, ui) {
// 打开Dialog后创建编辑器
KindEditor.create('textarea[name="content"]', {
resizeType : 1
});
},
beforeClose : function(event, ui) {
// 关闭Dialog前移除编辑器
KindEditor.remove('textarea[name="content"]');
}
});
});
});
</script>
</head>
<body>
<h3>在jQuery UI Dialog里打开编辑器</h3>
<div id="J_editorDialog">
<textarea name="content" style="width:100%;height:200px;"></textarea>
</div>
<button type="button" id="J_openDialog">打开Dialog</button>
<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cspan id='cnzz_stat_icon_1253145807'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s95.cnzz.com/stat.php%3Fid%3D1253145807%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script></body>
</html>
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。