<div id="main"></div> /* 封装为 javascript 控件 使用方法 */ window.onload = function() { var editor = new $C({ parent: "#main" }); $C.getEl("#getHtml").click(function() { alert(editor.getHtml()); }); }
<div id="main"></div>
/* 封装为 javascript 控件 使用方法 */ window.onload = function() { var editor = new $C({ parent: "#main" }); $C.getEl("#getHtml").click(function() { alert(editor.getHtml()); }); }