From d24531dc78cf8ecee02d76195b65962764a1778c Mon Sep 17 00:00:00 2001 From: life Date: Thu, 8 Jan 2015 00:38:54 +0800 Subject: [PATCH] update messages --- messages/msg.en | 3 ++- messages/msg.zh | 3 ++- public/tinymce/plugins/leanote_nav/plugin.min.js | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 public/tinymce/plugins/leanote_nav/plugin.min.js 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=

1. Short cuts

ctrl+shift+c Toggle code
ctrl+shift+i Insert/edit image

2. shift+enter Get out of current block

eg. in this situation you can use shift+enter to get out of current code block. +editorTipsInfo=

1. Short cuts

ctrl+shift+c Toggle code

2. shift+enter Get out of current block

eg. 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=

1. 快捷键

ctrl+shift+c 代码块切换
ctrl+shift+i 插入/修改图片

2. shift+enter 跳出当前区域

比如在代码块中按shift+enter可跳出当前代码块. +editorTipsInfo=

1. 快捷键

ctrl+shift+c 代码块切换

2. shift+enter 跳出当前区域

比如在代码块中按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="",$("#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