mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-03 16:24:28 +08:00
完善文章读取和编辑;
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
.left-bottom-options {
|
.left-bottom-options {
|
||||||
position : fixed;
|
position : fixed;
|
||||||
left : 20px;
|
left : 20px;
|
||||||
@@ -44,6 +42,7 @@
|
|||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
width : 20%;
|
width : 20%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table-card-item .item-value {
|
.table-card-item .item-value {
|
||||||
padding : 5px;
|
padding : 5px;
|
||||||
margin : 5px;
|
margin : 5px;
|
||||||
@@ -52,6 +51,7 @@
|
|||||||
white-space : normal;
|
white-space : normal;
|
||||||
word-break : break-all;
|
word-break : break-all;
|
||||||
}
|
}
|
||||||
|
|
||||||
.layui-form-radio {
|
.layui-form-radio {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
@@ -115,3 +115,9 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.w-e-text-container ul li {
|
||||||
|
list-style: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -176,6 +176,8 @@
|
|||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@media screen and (max-width: 768px) {
|
@media screen and (max-width: 768px) {
|
||||||
.nav-left-list {
|
.nav-left-list {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@@ -210,3 +212,76 @@
|
|||||||
a.post-item:visited{
|
a.post-item:visited{
|
||||||
color: #bbb;
|
color: #bbb;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.ul-content p{
|
||||||
|
margin: 15px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ul-content p,
|
||||||
|
.ul-content li,
|
||||||
|
.ul-content td,
|
||||||
|
.ul-content th,
|
||||||
|
.ul-content blockquote {
|
||||||
|
white-space: pre-wrap;
|
||||||
|
line-height: 1.5;
|
||||||
|
/* 显示空格 */
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.ul-content h2{
|
||||||
|
margin:20px 0
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 表格 */
|
||||||
|
.ul-content table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ul-content table th,
|
||||||
|
.ul-content table td {
|
||||||
|
border : 1px solid #ccc;
|
||||||
|
min-width : 50px;
|
||||||
|
height : 20px;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ul-content table th {
|
||||||
|
background-color: #f1f1f1;
|
||||||
|
text-align : center
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* 引用 */
|
||||||
|
.ul-content blockquote {
|
||||||
|
display : block;
|
||||||
|
border-left : 8px solid #d0e5f2;
|
||||||
|
padding : 10px 10px;
|
||||||
|
margin : 10px 0;
|
||||||
|
background-color: #f1f1f1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 列表 */
|
||||||
|
.ul-content ul,
|
||||||
|
.ul-content ol {
|
||||||
|
margin: 10px 0 10px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ul-content ul li{
|
||||||
|
list-style: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 分割线 */
|
||||||
|
.ul-content hr {
|
||||||
|
display : block;
|
||||||
|
width : 90%;
|
||||||
|
margin : 20px auto;
|
||||||
|
border : 0;
|
||||||
|
height : 1px;
|
||||||
|
background-color: #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ul-content img {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
3
public/static/lib/prismjs/prism.css
Normal file
3
public/static/lib/prismjs/prism.css
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
/* PrismJS 1.27.0
|
||||||
|
https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+bash+git+javadoclike+jq+jsdoc+js-extras+json+json5+markdown+markup-templating+php+phpdoc+php-extras+plsql+sqf+sql+typescript+uri&plugins=normalize-whitespace */
|
||||||
|
code[class*=language-],pre[class*=language-]{color:#000;background:0 0;text-shadow:0 1px #fff;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}
|
||||||
26
public/static/lib/prismjs/prism.js
Normal file
26
public/static/lib/prismjs/prism.js
Normal file
File diff suppressed because one or more lines are too long
@@ -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 id="content-state" style="height: 30px;line-height: 30px;padding-left: 15px;border-top: 1px solid #e8e8e8;color: #666;">
|
||||||
内容变动自动提交
|
内容变动自动提交
|
||||||
</div>
|
</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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -153,7 +153,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
editorConfig.onChange = (editor) => {
|
editorConfig.onChange = (editor) => {
|
||||||
console.log('content', editor)
|
|
||||||
contentSaveLock = false;
|
contentSaveLock = false;
|
||||||
|
|
||||||
$('#content-state').text('等待自动提交')
|
$('#content-state').text('等待自动提交')
|
||||||
|
|||||||
@@ -7,9 +7,8 @@
|
|||||||
<title>{$post.title}</title>
|
<title>{$post.title}</title>
|
||||||
<meta name="description" content="{$post.desc|default=$post.title}" />
|
<meta name="description" content="{$post.desc|default=$post.title}" />
|
||||||
{include file='common/_require'/}
|
{include file='common/_require'/}
|
||||||
<link rel="stylesheet" href="/static/lib/quill/quill.snow.css">
|
<link rel="stylesheet" href="/static/lib/prismjs/prism.css">
|
||||||
<link rel="stylesheet" href="/static/lib/highlight/styles/vs.css">
|
<script src="/static/lib/prismjs/prism.js"></script>
|
||||||
<script src="/static/lib/highlight/highlight.pack.js"></script>
|
|
||||||
<script src="/static/lib/clipboard/clipboard.js"></script>
|
<script src="/static/lib/clipboard/clipboard.js"></script>
|
||||||
<style>
|
<style>
|
||||||
.ql-editor {
|
.ql-editor {
|
||||||
@@ -124,8 +123,10 @@
|
|||||||
</script>
|
</script>
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
<div class="ql-snow">
|
<div class="">
|
||||||
<article class="ql-editor">{$post->content_html|raw}</article>
|
<div class="ul-content ">
|
||||||
|
{$post->content_html|raw}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="copyright">
|
<div class="copyright">
|
||||||
{:get_system_config('post_copyright')}
|
{:get_system_config('post_copyright')}
|
||||||
|
|||||||
Reference in New Issue
Block a user