完善文章读取和编辑;

This commit is contained in:
2022-03-05 08:53:14 +08:00
parent 2806c7c204
commit 491d968d40
6 changed files with 190 additions and 80 deletions

View File

@@ -97,7 +97,7 @@
<div id="content-state" style="height: 30px;line-height: 30px;padding-left: 15px;border-top: 1px solid #e8e8e8;color: #666;">
内容变动自动提交
</div>
<div id="content-data" style="display: none;">{:urlencode($post->content_html)}</div>
<div id="content-data" style="display: none;">{:rawurldecode($post->content_html)}</div>
</div>
</div>
</div>
@@ -153,7 +153,6 @@
}
}
editorConfig.onChange = (editor) => {
console.log('content', editor)
contentSaveLock = false;
$('#content-state').text('等待自动提交')

View File

@@ -7,9 +7,8 @@
<title>{$post.title}</title>
<meta name="description" content="{$post.desc|default=$post.title}" />
{include file='common/_require'/}
<link rel="stylesheet" href="/static/lib/quill/quill.snow.css">
<link rel="stylesheet" href="/static/lib/highlight/styles/vs.css">
<script src="/static/lib/highlight/highlight.pack.js"></script>
<link rel="stylesheet" href="/static/lib/prismjs/prism.css">
<script src="/static/lib/prismjs/prism.js"></script>
<script src="/static/lib/clipboard/clipboard.js"></script>
<style>
.ql-editor {
@@ -124,8 +123,10 @@
</script>
{/if}
{/if}
<div class="ql-snow">
<article class="ql-editor">{$post->content_html|raw}</article>
<div class="">
<div class="ul-content ">
{$post->content_html|raw}
</div>
</div>
<div class="copyright">
{:get_system_config('post_copyright')}