blog
This commit is contained in:
@ -173,6 +173,8 @@ func (c Blog) Set() revel.Result {
|
||||
|
||||
c.getRecentBlogs(userId)
|
||||
|
||||
c.SetLocale();
|
||||
|
||||
return c.RenderTemplate("blog/set.html")
|
||||
}
|
||||
|
||||
|
@ -168,7 +168,7 @@ $(function() {
|
||||
selector : "#AboutMe",
|
||||
content_css : [ "/css/bootstrap.css", "/css/editor/editor.css" ],
|
||||
skin : "custom",
|
||||
language : "zh",
|
||||
language : "{{.locale}}",
|
||||
height : 300,
|
||||
width : "100%",
|
||||
skin : "custom",
|
||||
|
@ -76,6 +76,7 @@ myNotebook=My notebook
|
||||
addNotebook=Add notebook
|
||||
all=Newest
|
||||
trash=Trash
|
||||
delete=Delete
|
||||
unTitled=UnTitled
|
||||
defaultShare=Default sharing
|
||||
leftHidden=Hidden slide bar
|
||||
|
@ -77,6 +77,7 @@ myNotebook=我的笔记本
|
||||
addNotebook=添加笔记本
|
||||
all=最新
|
||||
trash=废纸篓
|
||||
delete=删除
|
||||
unTitled=无标题
|
||||
defaultShare=默认共享
|
||||
leftHidden=隐藏左侧
|
||||
|
@ -28,9 +28,9 @@ tinymce.PluginManager.add('leanote_code', function(editor, url) {
|
||||
}
|
||||
if(!text) {
|
||||
text = $(node).text();
|
||||
$(node).replaceWith('<pre class="brush:' + value + '"> '+ text + "</pre>");
|
||||
$(node).replaceWith('<pre class="brush:' + value + '">'+ text + "</pre>");
|
||||
} else {
|
||||
ed.insertContent('<pre class="brush:' + value + '"> ' + text + "</pre>");
|
||||
ed.insertContent('<pre class="brush:' + value + '">' + text + "</pre>");
|
||||
}
|
||||
}
|
||||
ed.selection.moveToBookmark(everBookmark);
|
||||
|
Reference in New Issue
Block a user