181 Star 1.2K Fork 291

GVP叛道/editor.md

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
onwatch-onunwatch.html 1.70 KB
一键复制 编辑 原始数据 按行查看 历史
pandao 提交于 2015-03-23 08:22 +08:00 . Releases v1.4.0
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8" />
<title>Onwatch / Onunwatch - Editor.md examples</title>
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="../css/editormd.css" />
<link rel="shortcut icon" href="https://pandao.github.io/editor.md/favicon.ico" type="image/x-icon" />
</head>
<body>
<div id="layout">
<header>
<h1>Onwatch / Onunwatch event handle</h1>
<p>Plaese press F12, open the develop tools.</p>
</header>
<div id="test-editormd">
<textarea style="display:none;">#### Settings
```javascript
{
onwatch : function() {
// console.log("onwatch =>", this, this.id, this.settings);
},
onunwatch : function() {
// console.log("onunwatch =>", this, this.id, this.settings);
}
}
```
</textarea>
</div>
</div>
<script src="js/jquery.min.js"></script>
<script src="../editormd.js"></script>
<script type="text/javascript">
$(function() {
var testEditor = editormd("test-editormd", {
width : "90%",
height : 720,
path : '../lib/',
onwatch : function() {
console.log("onwatch =>", this, this.id, this.settings);
},
onunwatch : function() {
console.log("onunwatch =>", this, this.id, this.settings);
}
});
});
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/pandao/editor.md.git
git@gitee.com:pandao/editor.md.git
pandao
editor.md
editor.md
4c0a4ab469d3eba8525d1dfe35d6f37982438c2b

搜索帮助