editor i18n

This commit is contained in:
life
2014-05-10 16:28:09 +08:00
parent 3baa31d44c
commit 0e45f2c17f
11 changed files with 385 additions and 5 deletions
app/views/Note
public
js
tinymce
langs
plugins
codemirror
langs
leanote_code

@ -1,3 +1,9 @@
/**
* leanote code plugin
*/
tinymce.PluginManager.requireLangPack('leanote_code');
tinymce.PluginManager.add('leanote_code', function(editor, url) {
var ed = editor;
@ -75,8 +81,8 @@ tinymce.PluginManager.add('leanote_code', function(editor, url) {
}
return {
type: 'listbox',
text: "代码语言",
tooltip: "ctrl+shift+c 切换代码",
text: "codeLang",
tooltip: "toggleCode",
values: items,
fixedWidth: true,
onselect: function(e) {