mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-04 00:24:29 +08:00
feat: 增加编辑和导出互相跳转
This commit is contained in:
@@ -80,17 +80,12 @@
|
||||
</head>
|
||||
|
||||
<body class="layui-layout-body">
|
||||
|
||||
<div class="layui-layout layui-layout-admin">
|
||||
{include file="common/_header"}
|
||||
|
||||
{include file="common/left_post"}
|
||||
|
||||
<div class="layui-body">
|
||||
|
||||
<div style="">
|
||||
<div class="">
|
||||
|
||||
<div style="border: 1px solid #e8e8e8;">
|
||||
<div id="editor-toolbar"></div>
|
||||
</div>
|
||||
@@ -107,28 +102,20 @@
|
||||
<span id="settle-content-mark">
|
||||
智能优化标点
|
||||
</span>
|
||||
<a href="{:url('output',['id'=>$post.id])}">
|
||||
去导出
|
||||
</a>
|
||||
</div>
|
||||
<div id="content-data" style="display: none;">{:rawurlencode($post->content_html??'')}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{include file="common/_footer"}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
var lastContent = '';
|
||||
|
||||
var contentSaveLock = true;
|
||||
|
||||
function autoSaveContent() {
|
||||
|
||||
|
||||
if (contentSaveLock) {
|
||||
setTimeout(() => {
|
||||
autoSaveContent();
|
||||
@@ -145,8 +132,6 @@
|
||||
}, 2600);
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
autoSaveContent();
|
||||
|
||||
Reference in New Issue
Block a user