1 Star 0 Fork 136

天问 / AiEditor

forked from chichu / AiEditor 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.html 1.59 KB
一键复制 编辑 原始数据 按行查看 历史
Michael Yang 提交于 2023-11-12 14:09 . build: release prepare
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>AiEditor Demo</title>
</head>
<script>
let isDark = false;
function dark(){
if (!isDark){
document.body.style.background="#1a1b1e"
document.querySelector("#title").style.color="#eee"
document.querySelector("#aiEditor").classList.remove("aie-theme-light");
document.querySelector("#aiEditor").classList.add("aie-theme-dark");
}else {
document.body.style.background=""
document.querySelector("#title").style.color=""
document.querySelector("#aiEditor").classList.remove("aie-theme-dark");
document.querySelector("#aiEditor").classList.add("aie-theme-light");
}
isDark = !isDark;
}
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?9fd447a0f9e62a84d1b752a2cacb2c6b";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<body>
<div style="padding: 10px 20px;font-size: 30px" id="title">
AiEditor,一个面向 AI 的下一代富文本编辑器。 <button onclick="dark()">切换主题</button> <br />
开源网址:<a href="https://gitee.com/aieditor-team/aieditor" target="_blank">https://gitee.com/aieditor-team/aieditor</a>
</div>
<div id="aiEditor" style="height: 550px; margin: 20px"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
1
https://gitee.com/tianwen20/aieditor.git
git@gitee.com:tianwen20/aieditor.git
tianwen20
aieditor
AiEditor
main

搜索帮助

53164aa7 5694891 3bd8fe86 5694891