wscode
Version:
🎉 An Editor Used on the Browser Side.
37 lines (28 loc) • 808 B
HTML
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>不可编辑界面 | 用例测试</title>
<script src="../../dist/wscode.js"></script>
<link rel="shortcut icon" href="../../logo.png">
<style>
div.wscode {
width: 400px;
height: 300px;
border: 1px solid red;
}
</style>
</head>
<body>
<div id="wscode1" class='wscode'></div>
<script>
var wscode1 = new WSCode({
el: document.getElementById('wscode1'),
content: "不可编辑的编辑器\n输入内容",
readonly:true
});
console.log(wscode1);
</script>
</body>
</html>