diff --git a/core/factory.php b/core/factory.php
index cdfc22e..7794018 100644
--- a/core/factory.php
+++ b/core/factory.php
@@ -172,7 +172,7 @@ class Editor
-
+
-
+
- `),$(".cm-modal__wrapper-footer--cancle, .cm-modal__wrapper-header--close").on("click",()=>$(".cm-modal").removeClass("active")),$(".cm-modal__wrapper-footer--confirm").on("click",()=>{this.options.confirm(),$(".cm-modal").removeClass("active")})}_openModal(t={}){this.options=Object.assign({title:"提示",innerHtml:"内容",hasFooter:!0,confirm:()=>{},handler:()=>{}},t),$(".cm-modal__wrapper-header--text").html(this.options.title),$(".cm-modal__wrapper-bodyer").html(this.options.innerHtml),this.options.hasFooter?$(".cm-modal__wrapper-footer").show():$(".cm-modal__wrapper-footer").hide(),$(".cm-modal").addClass("active"),this.options.handler()}_getLineCh(t){var e=t.state.selection.main.head;return e-t.state.doc.lineAt(e).from}_replaceSelection(t,e){t.dispatch(t.state.replaceSelection(e))}_setCursor(t,e){t.dispatch({selection:{anchor:e}})}_getSelection(t){return t.state.sliceDoc(t.state.selection.main.from,t.state.selection.main.to)}_insetAmboText(t,e){var i=t.state.selection.main.head,n=this._getSelection(t);this._replaceSelection(t,` ${e+n+e} `),""===n&&this._setCursor(t,i+e.length+1),t.focus()}_createTableLists(s,t,o="",a){$.ajax({url:t,dataType:"json",success:t=>{let e="",i="";for(var n in t){const r=t[n].split(" ");e+=`
${n}
`,i+=`${r.map(t=>`
${t}
`).join(" ")}
`}this._openModal({title:a,hasFooter:!1,innerHtml:`${e}
${i}`,handler:()=>{$(".cm-modal__wrapper-bodyer .tabbar-item").on("click",function(){const t=$(this);var e=t.attr("data-show");const i=$(".cm-modal__wrapper-bodyer .tabbar");t.addClass("active").siblings().removeClass("active"),i.stop().animate({scrollLeft:t[0].offsetLeft-i[0].offsetWidth/2+t[0].offsetWidth/2-15}),$(".cm-modal__wrapper-bodyer .lists").removeClass("active"),$(".cm-modal__wrapper-bodyer .lists[data-show='"+e+"']").addClass("active")});const e=this;$(".cm-modal__wrapper-bodyer .lists-item").on("click",function(){var t=$(this).attr("data-text");e._replaceSelection(s,` ${t} `),$(".cm-modal").removeClass("active"),s.focus()})}})}})}handleFullScreen(t){t.toggleClass("active"),$("body").toggleClass("fullscreen"),$(".cm-container").toggleClass("fullscreen"),$(".cm-preview").width(0)}handlePublish(){$("#btn-submit").click()}handleUndo(t){So(t),t.focus()}handleRedo(t){Po(t),t.focus()}handleIndent(t){this._replaceSelection(t," "),t.focus()}handleTime(t){const e=new Date;var i=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,0),r=String(e.getDate()).padStart(2,0),s=String(e.getHours()).padStart(2,0),o=String(e.getMinutes()).padStart(2,0),a=String(e.getSeconds()).padStart(2,0),l=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][e.getDay()],l=`${this._getLineCh(t)?"\n":""}${i}-${n}-${r} ${s}:${o}:${a} ${l}\n`;this._replaceSelection(t,l),t.focus()}handleHr(t){var e=`${this._getLineCh(t)?"\n":""}\n------------\n\n`;this._replaceSelection(t,e),t.focus()}handleClean(t){t.dispatch({changes:{from:0,to:t.state.doc.length,insert:""}}),t.focus()}handleOrdered(t){const e=this._getSelection(t);if(""===e){var i=(this._getLineCh(t)?"\n\n":"")+"1. ";this._replaceSelection(t,i)}else{const n=e.split("\n");for(let t=0,e=n.length;t `);else{const n=e.split("\n");for(let t=0,e=n.length;t "+n[t];var i=(this._getLineCh(t)?"\n":"")+n.join("\n");this._replaceSelection(t,i)}t.focus()}handleDownload(t){var e=$("#title").val()||"新文章";const i=document.createElement("a");t=new Blob([t.state.doc.toString()]);i.download=e+".md",i.href=URL.createObjectURL(t),i.click(),URL.revokeObjectURL(t)}handleTitle(e,t){const i=$(`
+ `),$(".cm-modal__wrapper-footer--cancle, .cm-modal__wrapper-header--close").on("click",()=>$(".cm-modal").removeClass("active")),$(".cm-modal__wrapper-footer--confirm").on("click",()=>{this.options.confirm(),$(".cm-modal").removeClass("active")})}_openModal(t={}){this.options=Object.assign({title:"提示",innerHtml:"内容",hasFooter:!0,confirm:()=>{},handler:()=>{}},t),$(".cm-modal__wrapper-header--text").html(this.options.title),$(".cm-modal__wrapper-bodyer").html(this.options.innerHtml),this.options.hasFooter?$(".cm-modal__wrapper-footer").show():$(".cm-modal__wrapper-footer").hide(),$(".cm-modal").addClass("active"),this.options.handler()}_getLineCh(t){var e=t.state.selection.main.head;return e-t.state.doc.lineAt(e).from}_replaceSelection(t,e){t.dispatch(t.state.replaceSelection(e))}_setCursor(t,e){t.dispatch({selection:{anchor:e}})}_getSelection(t){return t.state.sliceDoc(t.state.selection.main.from,t.state.selection.main.to)}_insetAmboText(t,e){var i=t.state.selection.main.head,n=this._getSelection(t);this._replaceSelection(t,` ${e+n+e} `),""===n&&this._setCursor(t,i+e.length+1),t.focus()}_createTableLists(s,t,o="",a){$.ajax({url:t,dataType:"json",success:t=>{let e="",i="";for(var n in t){const r=t[n].split(" ");e+=`${n}
`,i+=`${r.map(t=>`
${t}
`).join(" ")}
`}this._openModal({title:a,hasFooter:!1,innerHtml:`${e}
${i}`,handler:()=>{$(".cm-modal__wrapper-bodyer .tabbar-item").on("click",function(){const t=$(this);var e=t.attr("data-show");const i=$(".cm-modal__wrapper-bodyer .tabbar");t.addClass("active").siblings().removeClass("active"),i.stop().animate({scrollLeft:t[0].offsetLeft-i[0].offsetWidth/2+t[0].offsetWidth/2-15}),$(".cm-modal__wrapper-bodyer .lists").removeClass("active"),$(".cm-modal__wrapper-bodyer .lists[data-show='"+e+"']").addClass("active")});const e=this;$(".cm-modal__wrapper-bodyer .lists-item").on("click",function(){var t=$(this).attr("data-text");e._replaceSelection(s,` ${t} `),$(".cm-modal").removeClass("active"),s.focus()})}})}})}_updateScroller(t,e){t=t.scrollTop/(t.scrollHeight-t.offsetHeight);e.scrollTop=t*(e.scrollHeight-e.offsetHeight)}handleFullScreen(t){t.toggleClass("active"),$("body").toggleClass("fullscreen"),$(".cm-container").toggleClass("fullscreen"),$(".cm-preview").width(0)}handlePublish(){$("#btn-submit").click()}handleUndo(t){So(t),t.focus()}handleRedo(t){Po(t),t.focus()}handleIndent(t){this._replaceSelection(t," "),t.focus()}handleTime(t){const e=new Date;var i=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,0),r=String(e.getDate()).padStart(2,0),s=String(e.getHours()).padStart(2,0),o=String(e.getMinutes()).padStart(2,0),a=String(e.getSeconds()).padStart(2,0),l=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][e.getDay()],l=`${this._getLineCh(t)?"\n":""}${i}-${n}-${r} ${s}:${o}:${a} ${l}\n`;this._replaceSelection(t,l),t.focus()}handleHr(t){var e=`${this._getLineCh(t)?"\n":""}\n------------\n\n`;this._replaceSelection(t,e),t.focus()}handleClean(t){t.dispatch({changes:{from:0,to:t.state.doc.length,insert:""}}),t.focus()}handleOrdered(t){const e=this._getSelection(t);if(""===e){var i=(this._getLineCh(t)?"\n\n":"")+"1. ";this._replaceSelection(t,i)}else{const n=e.split("\n");for(let t=0,e=n.length;t `);else{const n=e.split("\n");for(let t=0,e=n.length;t "+n[t];var i=(this._getLineCh(t)?"\n":"")+n.join("\n");this._replaceSelection(t,i)}t.focus()}handleDownload(t){var e=$("#title").val()||"新文章";const i=document.createElement("a");t=new Blob([t.state.doc.toString()]);i.download=e+".md",i.href=URL.createObjectURL(t),i.click(),URL.revokeObjectURL(t)}handleTitle(e,t){const i=$(`