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>
|
</head>
|
||||||
|
|
||||||
<body class="layui-layout-body">
|
<body class="layui-layout-body">
|
||||||
|
|
||||||
<div class="layui-layout layui-layout-admin">
|
<div class="layui-layout layui-layout-admin">
|
||||||
{include file="common/_header"}
|
{include file="common/_header"}
|
||||||
|
|
||||||
{include file="common/left_post"}
|
{include file="common/left_post"}
|
||||||
|
|
||||||
<div class="layui-body">
|
<div class="layui-body">
|
||||||
|
|
||||||
<div style="">
|
<div style="">
|
||||||
<div class="">
|
<div class="">
|
||||||
|
|
||||||
<div style="border: 1px solid #e8e8e8;">
|
<div style="border: 1px solid #e8e8e8;">
|
||||||
<div id="editor-toolbar"></div>
|
<div id="editor-toolbar"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -107,28 +102,20 @@
|
|||||||
<span id="settle-content-mark">
|
<span id="settle-content-mark">
|
||||||
智能优化标点
|
智能优化标点
|
||||||
</span>
|
</span>
|
||||||
|
<a href="{:url('output',['id'=>$post.id])}">
|
||||||
|
去导出
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="content-data" style="display: none;">{:rawurlencode($post->content_html??'')}</div>
|
<div id="content-data" style="display: none;">{:rawurlencode($post->content_html??'')}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{include file="common/_footer"}
|
{include file="common/_footer"}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
var lastContent = '';
|
var lastContent = '';
|
||||||
|
|
||||||
var contentSaveLock = true;
|
var contentSaveLock = true;
|
||||||
|
|
||||||
function autoSaveContent() {
|
function autoSaveContent() {
|
||||||
|
|
||||||
|
|
||||||
if (contentSaveLock) {
|
if (contentSaveLock) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
autoSaveContent();
|
autoSaveContent();
|
||||||
@@ -145,8 +132,6 @@
|
|||||||
}, 2600);
|
}, 2600);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
autoSaveContent();
|
autoSaveContent();
|
||||||
|
|||||||
@@ -116,6 +116,7 @@
|
|||||||
target="_blank"
|
target="_blank"
|
||||||
href="{$post.read_url}"
|
href="{$post.read_url}"
|
||||||
>打开原文</a>
|
>打开原文</a>
|
||||||
|
<a href="{:url('post/editContent',['id'=>$post.id,'type'=>3])}">去编辑</a>
|
||||||
<hr>
|
<hr>
|
||||||
<a
|
<a
|
||||||
class="copy-option "
|
class="copy-option "
|
||||||
|
|||||||
Reference in New Issue
Block a user