diff --git a/messages/msg.en b/messages/msg.en index 976f480..7923f28 100644 --- a/messages/msg.en +++ b/messages/msg.en @@ -79,7 +79,7 @@ myBlog=Blog history=Histories save=Save editorTips=Tips -editorTipsInfo=<h4>1. Short cuts</h4>ctrl+shift+c Toggle code <br /> ctrl+shift+i Insert/edit image <h4>2. shift+enter Get out of current block</h4> eg. <img src="/images/outofcode.png" style="width: 90px"/> in this situation you can use shift+enter to get out of current code block. +editorTipsInfo=<h4>1. Short cuts</h4>ctrl+shift+c Toggle code<h4>2. shift+enter Get out of current block</h4> eg. <img src="/images/outofcode.png" style="width: 90px"/> in this situation you can use shift+enter to get out of current code block. newNote=New note newMarkdownNote=New Markdown Note noNoteNewNoteTips=The notebook is empty, why not... @@ -238,6 +238,7 @@ subDomainExisted=Sub domain is already existed domainNotPointToLeanote=The custom domin hasn't pointed to d.leanote.com errorPerPageSize=Page size is error errorSortField=Sort Field is error +themeValidHasRoundInclude=WARNING: Templates have circular references! # lea++ leaDesc=leanote blog platform diff --git a/messages/msg.zh b/messages/msg.zh index b93b6d1..85e855f 100644 --- a/messages/msg.zh +++ b/messages/msg.zh @@ -100,7 +100,7 @@ myBlog=我的博客 history=历史记录 save=保存 editorTips=帮助 -editorTipsInfo=<h4>1. 快捷键</h4>ctrl+shift+c 代码块切换 <br /> ctrl+shift+i 插入/修改图片<h4>2. shift+enter 跳出当前区域</h4>比如在代码块中<img src="/images/outofcode.png" style="width: 90px"/>按shift+enter可跳出当前代码块. +editorTipsInfo=<h4>1. 快捷键</h4>ctrl+shift+c 代码块切换 <h4>2. shift+enter 跳出当前区域</h4>比如在代码块中<img src="/images/outofcode.png" style="width: 90px"/>按shift+enter可跳出当前代码块. newNote=新建笔记 newMarkdownNote=新建Markdown笔记 noNoteNewNoteTips=该笔记本下空空如也...何不 @@ -264,6 +264,7 @@ subDomainExisted=博客子域名已存在 domainNotPointToLeanote=该域名还未指向 d.leanote.com, 请稍后再试 errorPerPageSize=每页记录数至少为1 errorSortField=排序类型错误 +themeValidHasRoundInclude=警告: 模板存在循环引用问题! # lea++ leaDesc=leanote博客平台 diff --git a/public/tinymce/plugins/leanote_nav/plugin.min.js b/public/tinymce/plugins/leanote_nav/plugin.min.js new file mode 100644 index 0000000..5ef3c64 --- /dev/null +++ b/public/tinymce/plugins/leanote_nav/plugin.min.js @@ -0,0 +1 @@ +tinymce.PluginManager.add("leanote_nav",function(t){function n(){var n=t.getBody(),o=$(n),a=o.html();if(e!=a){e=a;for(var i=o.find("h1,h2,h3,h4,h5,h6").toArray(),h="<ul>",l=0;l<i.length;++l){var c=$(i[l]).text(),r=i[l].tagName.toLowerCase();h+='<li class="nav-'+r+'"><a data-a="'+r+"-"+encodeURI(c)+'" onclick="scrollTo(this, \''+r+"', '"+c+"')\">"+c+"</a></li>"}h+="</ul>",$("#leanoteNavContent").html(h).height("auto"),i.length||$("#leanoteNavContent").html(" Nothing...");var d=$("#leanoteNavContent").height(),g=$("#editorContent").height()-29;d>g&&$("#leanoteNavContent").height(g)}}var e="";t.on("init",function(){window.setTimeout(function(){n(),t.on("setcontent beforeadd undo paste",n),t.on("ExecCommand",function(){n()}),t.on("click",function(){n(),$("body").trigger("click")})},0)})}); \ No newline at end of file