1 Star 1 Fork 85

umdol/iceEditor

forked from 冰优/iceEditor 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
demo.html 1.62 KB
一键复制 编辑 原始数据 按行查看 历史
冰优 提交于 2020-04-10 09:25 +08:00 . 修改文档
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<title>iceEditor-演示DEMO</title>
</head>
<body style="margin: 100px;">
<div style="text-align: center;font-size:20px;margin-bottom: 20px;">演示DEMO</div>
<div style="text-align: center;font-size:15px;margin-bottom: 20px;">官方:<a href="https://www.iceui.net/iceEditor.html" target="_blank">https://www.iceui.net/iceEditor.html</div>
<div id="content"></div>
<script type="text/JavaScript" src="iceEditor.js"></script>
<script>
//自定义编辑器菜单
var edit = new ice.editor("content");
edit.menu=['fontSize','foreColor','bold','italic','underline','strikeThrough','line','justifyLeft','justifyCenter','justifyRight','line','table','insertImage'];
edit.create();
edit.setValue('<p>本实例 js脚本:</p><p><br></p><p><br></p><p><font color="#00b050" size="2">//实例化(传递一个id)</font></p><p><font color="#595959" size="2">var edit = new ice.editor("content");</font></p><p><br></p><p><font color="#00b050" size="2">//自定义编辑器工具栏菜单(默认展示所有功能)</font></p><p><font color="#595959" size="2">edit.menu=["fontSize","foreColor","bold","italic","underline","strikeThrough","line","justifyLeft","justifyCenter","justifyRight","line","table","insertImage"];</font></p><p><br></p><p><font color="#00b050" size="2">//编辑器创建</font></p><p><font color="#595959" size="2">edit.create();</font></p>');
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/umdol/iceEditor.git
git@gitee.com:umdol/iceEditor.git
umdol
iceEditor
iceEditor
master

搜索帮助