rails_kindeditor 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +1 -1
- data/README.rdoc +77 -2
- data/config/routes.rb +2 -3
- data/lib/generators/rails_kindeditor/install/install_generator.rb +6 -2
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/kindeditor-init.js +0 -1
- data/lib/rails_kindeditor/version.rb +1 -1
- data/vendor/assets/javascripts/kindeditor.js +158 -0
- data/vendor/assets/javascripts/lang/en.js +208 -0
- data/vendor/assets/javascripts/lang/zh_CN.js +210 -0
- data/vendor/assets/javascripts/lang/zh_TW.js +210 -0
- data/vendor/assets/javascripts/plugins/clearhtml/clearhtml.js +28 -0
- data/vendor/assets/javascripts/plugins/code/code.js +57 -0
- data/vendor/assets/javascripts/plugins/code/prettify.css +13 -0
- data/vendor/assets/javascripts/plugins/code/prettify.js +28 -0
- data/vendor/assets/javascripts/plugins/emoticons/emoticons.js +129 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/0.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/1.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/10.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/100.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/101.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/102.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/103.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/104.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/105.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/106.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/107.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/108.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/109.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/11.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/110.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/111.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/112.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/113.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/114.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/115.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/116.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/117.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/118.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/119.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/12.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/120.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/121.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/122.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/123.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/124.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/125.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/126.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/127.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/128.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/129.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/13.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/130.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/131.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/132.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/133.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/134.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/14.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/15.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/16.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/17.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/18.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/19.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/2.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/20.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/21.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/22.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/23.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/24.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/25.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/26.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/27.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/28.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/29.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/3.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/30.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/31.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/32.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/33.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/34.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/35.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/36.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/37.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/38.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/39.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/4.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/40.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/41.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/42.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/43.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/44.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/45.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/46.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/47.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/48.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/49.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/5.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/50.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/51.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/52.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/53.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/54.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/55.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/56.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/57.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/58.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/59.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/6.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/60.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/61.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/62.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/63.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/64.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/65.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/66.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/67.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/68.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/69.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/7.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/70.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/71.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/72.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/73.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/74.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/75.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/76.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/77.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/78.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/79.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/8.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/80.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/81.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/82.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/83.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/84.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/85.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/86.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/87.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/88.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/89.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/9.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/90.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/91.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/92.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/93.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/94.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/95.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/96.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/97.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/98.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/99.gif +0 -0
- data/vendor/assets/javascripts/plugins/emoticons/images/static.gif +0 -0
- data/vendor/assets/javascripts/plugins/filemanager/filemanager.js +189 -0
- data/vendor/assets/javascripts/plugins/filemanager/images/file-16.gif +0 -0
- data/vendor/assets/javascripts/plugins/filemanager/images/file-64.gif +0 -0
- data/vendor/assets/javascripts/plugins/filemanager/images/folder-16.gif +0 -0
- data/vendor/assets/javascripts/plugins/filemanager/images/folder-64.gif +0 -0
- data/vendor/assets/javascripts/plugins/filemanager/images/go-up.gif +0 -0
- data/vendor/assets/javascripts/plugins/flash/flash.js +128 -0
- data/vendor/assets/javascripts/plugins/image/image.js +226 -0
- data/vendor/assets/javascripts/plugins/image/images/align_left.gif +0 -0
- data/vendor/assets/javascripts/plugins/image/images/align_right.gif +0 -0
- data/vendor/assets/javascripts/plugins/image/images/align_top.gif +0 -0
- data/vendor/assets/javascripts/plugins/image/images/refresh.gif +0 -0
- data/vendor/assets/javascripts/plugins/insertfile/insertfile.js +104 -0
- data/vendor/assets/javascripts/plugins/lineheight/lineheight.js +38 -0
- data/vendor/assets/javascripts/plugins/link/link.js +59 -0
- data/vendor/assets/javascripts/plugins/map/map.html +57 -0
- data/vendor/assets/javascripts/plugins/map/map.js +135 -0
- data/vendor/assets/javascripts/plugins/media/media.js +136 -0
- data/vendor/assets/javascripts/plugins/pagebreak/pagebreak.js +26 -0
- data/vendor/assets/javascripts/plugins/plainpaste/plainpaste.js +41 -0
- data/vendor/assets/javascripts/plugins/preview/preview.js +31 -0
- data/vendor/assets/javascripts/plugins/quickformat/quickformat.js +71 -0
- data/vendor/assets/javascripts/plugins/table/table.js +661 -0
- data/vendor/assets/javascripts/plugins/template/html/1.html +14 -0
- data/vendor/assets/javascripts/plugins/template/html/2.html +42 -0
- data/vendor/assets/javascripts/plugins/template/html/3.html +36 -0
- data/vendor/assets/javascripts/plugins/template/template.js +58 -0
- data/vendor/assets/javascripts/plugins/wordpaste/wordpaste.js +57 -0
- data/vendor/assets/stylesheets/bg.gif +0 -0
- data/vendor/assets/stylesheets/default.gif +0 -0
- data/vendor/assets/stylesheets/kindeditor.css +942 -0
- data/vendor/assets/stylesheets/themes/common/blank.gif +0 -0
- data/vendor/assets/stylesheets/themes/common/flash.gif +0 -0
- data/vendor/assets/stylesheets/themes/common/loading.gif +0 -0
- data/vendor/assets/stylesheets/themes/common/media.gif +0 -0
- data/vendor/assets/stylesheets/themes/common/rm.gif +0 -0
- data/vendor/assets/stylesheets/themes/simple/simple.css +148 -0
- metadata +186 -4
@@ -0,0 +1,210 @@
|
|
1
|
+
/*******************************************************************************
|
2
|
+
* KindEditor - WYSIWYG HTML Editor for Internet
|
3
|
+
* Copyright (C) 2006-2011 kindsoft.net
|
4
|
+
*
|
5
|
+
* @author Roddy <luolonghao@gmail.com>
|
6
|
+
* @site http://www.kindsoft.net/
|
7
|
+
* @licence http://www.kindsoft.net/license.php
|
8
|
+
*******************************************************************************/
|
9
|
+
|
10
|
+
KindEditor.lang({
|
11
|
+
source : 'HTML代码',
|
12
|
+
preview : '预览',
|
13
|
+
undo : '后退(Ctrl+Z)',
|
14
|
+
redo : '前进(Ctrl+Y)',
|
15
|
+
cut : '剪切(Ctrl+X)',
|
16
|
+
copy : '复制(Ctrl+C)',
|
17
|
+
paste : '粘贴(Ctrl+V)',
|
18
|
+
plainpaste : '粘贴为无格式文本',
|
19
|
+
wordpaste : '从Word粘贴',
|
20
|
+
selectall : '全选(Ctrl+A)',
|
21
|
+
justifyleft : '左对齐',
|
22
|
+
justifycenter : '居中',
|
23
|
+
justifyright : '右对齐',
|
24
|
+
justifyfull : '两端对齐',
|
25
|
+
insertorderedlist : '编号',
|
26
|
+
insertunorderedlist : '项目符号',
|
27
|
+
indent : '增加缩进',
|
28
|
+
outdent : '减少缩进',
|
29
|
+
subscript : '下标',
|
30
|
+
superscript : '上标',
|
31
|
+
formatblock : '段落',
|
32
|
+
fontname : '字体',
|
33
|
+
fontsize : '文字大小',
|
34
|
+
forecolor : '文字颜色',
|
35
|
+
hilitecolor : '文字背景',
|
36
|
+
bold : '粗体(Ctrl+B)',
|
37
|
+
italic : '斜体(Ctrl+I)',
|
38
|
+
underline : '下划线(Ctrl+U)',
|
39
|
+
strikethrough : '删除线',
|
40
|
+
removeformat : '删除格式',
|
41
|
+
image : '图片',
|
42
|
+
flash : 'Flash',
|
43
|
+
media : '视音频',
|
44
|
+
table : '表格',
|
45
|
+
tablecell : '单元格',
|
46
|
+
hr : '插入横线',
|
47
|
+
emoticons : '插入表情',
|
48
|
+
link : '超级链接',
|
49
|
+
unlink : '取消超级链接',
|
50
|
+
fullscreen : '全屏显示(Esc)',
|
51
|
+
about : '关于',
|
52
|
+
print : '打印(Ctrl+P)',
|
53
|
+
filemanager : '浏览服务器',
|
54
|
+
code : '插入程序代码',
|
55
|
+
map : 'Google地图',
|
56
|
+
lineheight : '行距',
|
57
|
+
clearhtml : '清理HTML代码',
|
58
|
+
pagebreak : '插入分页符',
|
59
|
+
quickformat : '一键排版',
|
60
|
+
insertfile : '插入文件',
|
61
|
+
template : '插入模板',
|
62
|
+
yes : '确定',
|
63
|
+
no : '取消',
|
64
|
+
close : '关闭',
|
65
|
+
editImage : '图片属性',
|
66
|
+
deleteImage : '删除图片',
|
67
|
+
editFlash : 'Flash属性',
|
68
|
+
deleteFlash : '删除Flash',
|
69
|
+
editMedia : '视音频属性',
|
70
|
+
deleteMedia : '删除视音频',
|
71
|
+
editLink : '超级链接属性',
|
72
|
+
deleteLink : '取消超级链接',
|
73
|
+
tableprop : '表格属性',
|
74
|
+
tablecellprop : '单元格属性',
|
75
|
+
tableinsert : '插入表格',
|
76
|
+
tabledelete : '删除表格',
|
77
|
+
tablecolinsertleft : '左侧插入列',
|
78
|
+
tablecolinsertright : '右侧插入列',
|
79
|
+
tablerowinsertabove : '上方插入行',
|
80
|
+
tablerowinsertbelow : '下方插入行',
|
81
|
+
tablerowmerge : '向下合并单元格',
|
82
|
+
tablecolmerge : '向右合并单元格',
|
83
|
+
tablerowsplit : '拆分行',
|
84
|
+
tablecolsplit : '拆分列',
|
85
|
+
tablecoldelete : '删除列',
|
86
|
+
tablerowdelete : '删除行',
|
87
|
+
noColor : '无颜色',
|
88
|
+
invalidImg : "请输入有效的URL地址。\n只允许jpg,gif,bmp,png格式。",
|
89
|
+
invalidMedia : "请输入有效的URL地址。\n只允许swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb格式。",
|
90
|
+
invalidWidth : "宽度必须为数字。",
|
91
|
+
invalidHeight : "高度必须为数字。",
|
92
|
+
invalidBorder : "边框必须为数字。",
|
93
|
+
invalidUrl : "请输入有效的URL地址。",
|
94
|
+
invalidRows : '行数为必选项,只允许输入大于0的数字。',
|
95
|
+
invalidCols : '列数为必选项,只允许输入大于0的数字。',
|
96
|
+
invalidPadding : '边距必须为数字。',
|
97
|
+
invalidSpacing : '间距必须为数字。',
|
98
|
+
invalidJson : '服务器发生故障。',
|
99
|
+
uploadSuccess : '上传成功。',
|
100
|
+
cutError : '您的浏览器安全设置不允许使用剪切操作,请使用快捷键(Ctrl+X)来完成。',
|
101
|
+
copyError : '您的浏览器安全设置不允许使用复制操作,请使用快捷键(Ctrl+C)来完成。',
|
102
|
+
pasteError : '您的浏览器安全设置不允许使用粘贴操作,请使用快捷键(Ctrl+V)来完成。',
|
103
|
+
'plainpaste.comment' : '请使用快捷键(Ctrl+V)把内容粘贴到下面的方框里。',
|
104
|
+
'wordpaste.comment' : '请使用快捷键(Ctrl+V)把内容粘贴到下面的方框里。',
|
105
|
+
'link.url' : 'URL',
|
106
|
+
'link.linkType' : '打开类型',
|
107
|
+
'link.newWindow' : '新窗口',
|
108
|
+
'link.selfWindow' : '当前窗口',
|
109
|
+
'flash.url' : 'URL',
|
110
|
+
'flash.width' : '宽度',
|
111
|
+
'flash.height' : '高度',
|
112
|
+
'flash.upload' : '上传',
|
113
|
+
'flash.viewServer' : '浏览',
|
114
|
+
'media.url' : 'URL',
|
115
|
+
'media.width' : '宽度',
|
116
|
+
'media.height' : '高度',
|
117
|
+
'media.autostart' : '自动播放',
|
118
|
+
'media.upload' : '上传',
|
119
|
+
'media.viewServer' : '浏览',
|
120
|
+
'image.remoteImage' : '远程图片',
|
121
|
+
'image.localImage' : '本地上传',
|
122
|
+
'image.remoteUrl' : '图片地址',
|
123
|
+
'image.localUrl' : '图片地址',
|
124
|
+
'image.size' : '图片大小',
|
125
|
+
'image.width' : '宽',
|
126
|
+
'image.height' : '高',
|
127
|
+
'image.resetSize' : '重置大小',
|
128
|
+
'image.align' : '对齐方式',
|
129
|
+
'image.defaultAlign' : '默认方式',
|
130
|
+
'image.leftAlign' : '左对齐',
|
131
|
+
'image.rightAlign' : '右对齐',
|
132
|
+
'image.imgTitle' : '图片说明',
|
133
|
+
'image.viewServer' : '浏览...',
|
134
|
+
'filemanager.emptyFolder' : '空文件夹',
|
135
|
+
'filemanager.moveup' : '移到上一级文件夹',
|
136
|
+
'filemanager.viewType' : '显示方式:',
|
137
|
+
'filemanager.viewImage' : '缩略图',
|
138
|
+
'filemanager.listImage' : '详细信息',
|
139
|
+
'filemanager.orderType' : '排序方式:',
|
140
|
+
'filemanager.fileName' : '名称',
|
141
|
+
'filemanager.fileSize' : '大小',
|
142
|
+
'filemanager.fileType' : '类型',
|
143
|
+
'insertfile.url' : 'URL',
|
144
|
+
'insertfile.title' : '文件说明',
|
145
|
+
'insertfile.upload' : '上传',
|
146
|
+
'insertfile.viewServer' : '浏览',
|
147
|
+
'table.cells' : '单元格数',
|
148
|
+
'table.rows' : '行数',
|
149
|
+
'table.cols' : '列数',
|
150
|
+
'table.size' : '大小',
|
151
|
+
'table.width' : '宽度',
|
152
|
+
'table.height' : '高度',
|
153
|
+
'table.percent' : '%',
|
154
|
+
'table.px' : 'px',
|
155
|
+
'table.space' : '边距间距',
|
156
|
+
'table.padding' : '边距',
|
157
|
+
'table.spacing' : '间距',
|
158
|
+
'table.align' : '对齐方式',
|
159
|
+
'table.textAlign' : '水平对齐',
|
160
|
+
'table.verticalAlign' : '垂直对齐',
|
161
|
+
'table.alignDefault' : '默认',
|
162
|
+
'table.alignLeft' : '左对齐',
|
163
|
+
'table.alignCenter' : '居中',
|
164
|
+
'table.alignRight' : '右对齐',
|
165
|
+
'table.alignTop' : '顶部',
|
166
|
+
'table.alignMiddle' : '中部',
|
167
|
+
'table.alignBottom' : '底部',
|
168
|
+
'table.alignBaseline' : '基线',
|
169
|
+
'table.border' : '边框',
|
170
|
+
'table.borderWidth' : '边框',
|
171
|
+
'table.borderColor' : '颜色',
|
172
|
+
'table.backgroundColor' : '背景颜色',
|
173
|
+
'map.address' : '地址: ',
|
174
|
+
'map.search' : '搜索',
|
175
|
+
'formatblock.formatBlock' : {
|
176
|
+
h1 : '标题 1',
|
177
|
+
h2 : '标题 2',
|
178
|
+
h3 : '标题 3',
|
179
|
+
h4 : '标题 4',
|
180
|
+
p : '正 文'
|
181
|
+
},
|
182
|
+
'fontname.fontName' : {
|
183
|
+
'SimSun' : '宋体',
|
184
|
+
'NSimSun' : '新宋体',
|
185
|
+
'FangSong_GB2312' : '仿宋_GB2312',
|
186
|
+
'KaiTi_GB2312' : '楷体_GB2312',
|
187
|
+
'SimHei' : '黑体',
|
188
|
+
'Microsoft YaHei' : '微软雅黑',
|
189
|
+
'Arial' : 'Arial',
|
190
|
+
'Arial Black' : 'Arial Black',
|
191
|
+
'Times New Roman' : 'Times New Roman',
|
192
|
+
'Courier New' : 'Courier New',
|
193
|
+
'Tahoma' : 'Tahoma',
|
194
|
+
'Verdana' : 'Verdana'
|
195
|
+
},
|
196
|
+
'lineheight.lineHeight' : [
|
197
|
+
{'1' : '单倍行距'},
|
198
|
+
{'1.5' : '1.5倍行距'},
|
199
|
+
{'2' : '2倍行距'},
|
200
|
+
{'2.5' : '2.5倍行距'},
|
201
|
+
{'3' : '3倍行距'}
|
202
|
+
],
|
203
|
+
'template.selectTemplate' : '可选模板',
|
204
|
+
'template.replaceContent' : '替换当前内容',
|
205
|
+
'template.fileList' : {
|
206
|
+
'1.html' : '图片和文字',
|
207
|
+
'2.html' : '表格',
|
208
|
+
'3.html' : '项目编号'
|
209
|
+
}
|
210
|
+
}, 'zh_CN');
|
@@ -0,0 +1,210 @@
|
|
1
|
+
/*******************************************************************************
|
2
|
+
* KindEditor - WYSIWYG HTML Editor for Internet
|
3
|
+
* Copyright (C) 2006-2011 kindsoft.net
|
4
|
+
*
|
5
|
+
* @author Roddy <luolonghao@gmail.com>
|
6
|
+
* @site http://www.kindsoft.net/
|
7
|
+
* @licence http://www.kindsoft.net/license.php
|
8
|
+
*******************************************************************************/
|
9
|
+
|
10
|
+
KindEditor.lang({
|
11
|
+
source : '原始碼',
|
12
|
+
preview : '預覽',
|
13
|
+
undo : '復原(Ctrl+Z)',
|
14
|
+
redo : '重複(Ctrl+Y)',
|
15
|
+
cut : '剪下(Ctrl+X)',
|
16
|
+
copy : '複製(Ctrl+C)',
|
17
|
+
paste : '貼上(Ctrl+V)',
|
18
|
+
plainpaste : '貼為純文字格式',
|
19
|
+
wordpaste : '自Word貼上',
|
20
|
+
selectall : '全選(Ctrl+A)',
|
21
|
+
justifyleft : '靠左對齊',
|
22
|
+
justifycenter : '置中',
|
23
|
+
justifyright : '靠右對齊',
|
24
|
+
justifyfull : '左右對齊',
|
25
|
+
insertorderedlist : '編號清單',
|
26
|
+
insertunorderedlist : '項目清單',
|
27
|
+
indent : '增加縮排',
|
28
|
+
outdent : '減少縮排',
|
29
|
+
subscript : '下標',
|
30
|
+
superscript : '上標',
|
31
|
+
formatblock : '標題',
|
32
|
+
fontname : '字體',
|
33
|
+
fontsize : '文字大小',
|
34
|
+
forecolor : '文字顏色',
|
35
|
+
hilitecolor : '背景顏色',
|
36
|
+
bold : '粗體(Ctrl+B)',
|
37
|
+
italic : '斜體(Ctrl+I)',
|
38
|
+
underline : '底線(Ctrl+U)',
|
39
|
+
strikethrough : '刪除線',
|
40
|
+
removeformat : '清除格式',
|
41
|
+
image : '影像',
|
42
|
+
flash : 'Flash',
|
43
|
+
media : '多媒體',
|
44
|
+
table : '表格',
|
45
|
+
hr : '插入水平線',
|
46
|
+
emoticons : '插入表情',
|
47
|
+
link : '超連結',
|
48
|
+
unlink : '移除超連結',
|
49
|
+
fullscreen : '最大化',
|
50
|
+
about : '關於',
|
51
|
+
print : '列印(Ctrl+P)',
|
52
|
+
fileManager : '瀏覽伺服器',
|
53
|
+
code : '插入程式代碼',
|
54
|
+
map : 'Google地圖',
|
55
|
+
lineheight : '行距',
|
56
|
+
clearhtml : '清理HTML代碼',
|
57
|
+
pagebreak : '插入分頁符號',
|
58
|
+
quickformat : '快速排版',
|
59
|
+
insertfile : '插入文件',
|
60
|
+
template : '插入樣板',
|
61
|
+
yes : '確定',
|
62
|
+
no : '取消',
|
63
|
+
close : '關閉',
|
64
|
+
editImage : '影像屬性',
|
65
|
+
deleteImage : '刪除影像',
|
66
|
+
editFlash : 'Flash屬性',
|
67
|
+
deleteFlash : '删除Flash',
|
68
|
+
editMedia : '多媒體屬性',
|
69
|
+
deleteMedia : '删除多媒體',
|
70
|
+
editLink : '超連結屬性',
|
71
|
+
deleteLink : '移除超連結',
|
72
|
+
tableprop : '表格屬性',
|
73
|
+
tablecellprop : '儲存格屬性',
|
74
|
+
tableinsert : '插入表格',
|
75
|
+
tabledelete : '刪除表格',
|
76
|
+
tablecolinsertleft : '向左插入列',
|
77
|
+
tablecolinsertright : '向右插入列',
|
78
|
+
tablerowinsertabove : '向上插入欄',
|
79
|
+
tablerowinsertbelow : '下方插入欄',
|
80
|
+
tablerowmerge : '向下合併單元格',
|
81
|
+
tablecolmerge : '向右合併單元格',
|
82
|
+
tablerowsplit : '分割欄',
|
83
|
+
tablecolsplit : '分割列',
|
84
|
+
tablecoldelete : '删除列',
|
85
|
+
tablerowdelete : '删除欄',
|
86
|
+
noColor : '自動',
|
87
|
+
invalidImg : "請輸入有效的URL。\n只允許jpg,gif,bmp,png格式。",
|
88
|
+
invalidMedia : "請輸入有效的URL。\n只允許swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb格式。",
|
89
|
+
invalidWidth : "寬度必須是數字。",
|
90
|
+
invalidHeight : "高度必須是數字。",
|
91
|
+
invalidBorder : "邊框必須是數字。",
|
92
|
+
invalidUrl : "請輸入有效的URL。",
|
93
|
+
invalidRows : '欄數是必須輸入項目,只允許輸入大於0的數字。',
|
94
|
+
invalidCols : '列數是必須輸入項目,只允許輸入大於0的數字。',
|
95
|
+
invalidPadding : '內距必須是數字。',
|
96
|
+
invalidSpacing : '間距必須是數字。',
|
97
|
+
invalidBorder : '边框必须为数字。',
|
98
|
+
pleaseInput : "請輸入內容。",
|
99
|
+
invalidJson : '伺服器發生故障。',
|
100
|
+
cutError : '您的瀏覽器安全設置不允許使用剪下操作,請使用快捷鍵(Ctrl+X)完成。',
|
101
|
+
copyError : '您的瀏覽器安全設置不允許使用剪下操作,請使用快捷鍵(Ctrl+C)完成。',
|
102
|
+
pasteError : '您的瀏覽器安全設置不允許使用剪下操作,請使用快捷鍵(Ctrl+V)完成。',
|
103
|
+
'plainpaste.comment' : '請使用快捷鍵(Ctrl+V)把內容貼到下方區域裡。',
|
104
|
+
'wordpaste.comment' : '請使用快捷鍵(Ctrl+V)把內容貼到下方區域裡。',
|
105
|
+
'link.url' : 'URL',
|
106
|
+
'link.linkType' : '打開類型',
|
107
|
+
'link.newWindow' : '新窗口',
|
108
|
+
'link.selfWindow' : '本頁窗口',
|
109
|
+
'flash.url' : 'URL',
|
110
|
+
'flash.width' : '寬度',
|
111
|
+
'flash.height' : '高度',
|
112
|
+
'flash.upload' : '上傳',
|
113
|
+
'flash.viewServer' : '瀏覽',
|
114
|
+
'media.url' : 'URL',
|
115
|
+
'media.width' : '寬度',
|
116
|
+
'media.height' : '高度',
|
117
|
+
'media.autostart' : '自動播放',
|
118
|
+
'media.upload' : '上傳',
|
119
|
+
'media.viewServer' : '瀏覽',
|
120
|
+
'image.remoteImage' : '影像URL',
|
121
|
+
'image.localImage' : '上傳影像',
|
122
|
+
'image.remoteUrl' : '影像URL',
|
123
|
+
'image.localUrl' : '影像URL',
|
124
|
+
'image.size' : '影像大小',
|
125
|
+
'image.width' : '寬度',
|
126
|
+
'image.height' : '高度',
|
127
|
+
'image.resetSize' : '原始大小',
|
128
|
+
'image.align' : '對齊方式',
|
129
|
+
'image.defaultAlign' : '未設定',
|
130
|
+
'image.leftAlign' : '向左對齊',
|
131
|
+
'image.rightAlign' : '向右對齊',
|
132
|
+
'image.imgTitle' : '影像說明',
|
133
|
+
'image.viewServer' : '瀏覽...',
|
134
|
+
'filemanager.emptyFolder' : '空文件夾',
|
135
|
+
'filemanager.moveup' : '至上一級文件夾',
|
136
|
+
'filemanager.viewType' : '顯示方式:',
|
137
|
+
'filemanager.viewImage' : '縮略圖',
|
138
|
+
'filemanager.listImage' : '詳細信息',
|
139
|
+
'filemanager.orderType' : '排序方式:',
|
140
|
+
'filemanager.fileName' : '名稱',
|
141
|
+
'filemanager.fileSize' : '大小',
|
142
|
+
'filemanager.fileType' : '類型',
|
143
|
+
'insertfile.url' : 'URL',
|
144
|
+
'insertfile.title' : '文件說明',
|
145
|
+
'insertfile.upload' : '上傳',
|
146
|
+
'insertfile.viewServer' : '瀏覽',
|
147
|
+
'table.cells' : '儲存格數',
|
148
|
+
'table.rows' : '欄數',
|
149
|
+
'table.cols' : '列數',
|
150
|
+
'table.size' : '表格大小',
|
151
|
+
'table.width' : '寬度',
|
152
|
+
'table.height' : '高度',
|
153
|
+
'table.percent' : '%',
|
154
|
+
'table.px' : 'px',
|
155
|
+
'table.space' : '內距間距',
|
156
|
+
'table.padding' : '內距',
|
157
|
+
'table.spacing' : '間距',
|
158
|
+
'table.align' : '對齊方式',
|
159
|
+
'table.textAlign' : '水平對齊',
|
160
|
+
'table.verticalAlign' : '垂直對齊',
|
161
|
+
'table.alignDefault' : '未設定',
|
162
|
+
'table.alignLeft' : '向左對齊',
|
163
|
+
'table.alignCenter' : '置中',
|
164
|
+
'table.alignRight' : '向右對齊',
|
165
|
+
'table.alignTop' : '靠上',
|
166
|
+
'table.alignMiddle' : '置中',
|
167
|
+
'table.alignBottom' : '靠下',
|
168
|
+
'table.alignBaseline' : '基線',
|
169
|
+
'table.border' : '表格邊框',
|
170
|
+
'table.borderWidth' : '邊框',
|
171
|
+
'table.borderColor' : '顏色',
|
172
|
+
'table.backgroundColor' : '背景顏色',
|
173
|
+
'map.address' : '住所: ',
|
174
|
+
'map.search' : '尋找',
|
175
|
+
'formatblock.formatBlock' : {
|
176
|
+
h1 : '標題 1',
|
177
|
+
h2 : '標題 2',
|
178
|
+
h3 : '標題 3',
|
179
|
+
h4 : '標題 4',
|
180
|
+
p : '一般'
|
181
|
+
},
|
182
|
+
'fontname.fontName' : {
|
183
|
+
'MingLiU' : '細明體',
|
184
|
+
'PMingLiU' : '新細明體',
|
185
|
+
'DFKai-SB' : '標楷體',
|
186
|
+
'SimSun' : '宋體',
|
187
|
+
'NSimSun' : '新宋體',
|
188
|
+
'FangSong' : '仿宋體',
|
189
|
+
'Arial' : 'Arial',
|
190
|
+
'Arial Black' : 'Arial Black',
|
191
|
+
'Times New Roman' : 'Times New Roman',
|
192
|
+
'Courier New' : 'Courier New',
|
193
|
+
'Tahoma' : 'Tahoma',
|
194
|
+
'Verdana' : 'Verdana'
|
195
|
+
},
|
196
|
+
'lineheight.lineHeight' : [
|
197
|
+
{'1' : '单倍行距'},
|
198
|
+
{'1.5' : '1.5倍行距'},
|
199
|
+
{'2' : '2倍行距'},
|
200
|
+
{'2.5' : '2.5倍行距'},
|
201
|
+
{'3' : '3倍行距'}
|
202
|
+
],
|
203
|
+
'template.selectTemplate' : '可選樣板',
|
204
|
+
'template.replaceContent' : '取代當前內容',
|
205
|
+
'template.fileList' : {
|
206
|
+
'1.html' : '影像和文字',
|
207
|
+
'2.html' : '表格',
|
208
|
+
'3.html' : '项目清單'
|
209
|
+
}
|
210
|
+
}, 'zh_TW');
|
@@ -0,0 +1,28 @@
|
|
1
|
+
/*******************************************************************************
|
2
|
+
* KindEditor - WYSIWYG HTML Editor for Internet
|
3
|
+
* Copyright (C) 2006-2011 kindsoft.net
|
4
|
+
*
|
5
|
+
* @author Roddy <luolonghao@gmail.com>
|
6
|
+
* @site http://www.kindsoft.net/
|
7
|
+
* @licence http://www.kindsoft.net/license.php
|
8
|
+
*******************************************************************************/
|
9
|
+
|
10
|
+
KindEditor.plugin('clearhtml', function(K) {
|
11
|
+
var self = this, name = 'clearhtml';
|
12
|
+
self.clickToolbar(name, function() {
|
13
|
+
self.focus();
|
14
|
+
var html = self.html();
|
15
|
+
html = html.replace(/(<script[^>]*>)([\s\S]*?)(<\/script>)/ig, '');
|
16
|
+
html = html.replace(/(<style[^>]*>)([\s\S]*?)(<\/style>)/ig, '');
|
17
|
+
html = K.formatHtml(html, {
|
18
|
+
a : ['href', 'target'],
|
19
|
+
embed : ['src', 'width', 'height', 'type', 'loop', 'autostart', 'quality', '.width', '.height', 'align', 'allowscriptaccess'],
|
20
|
+
img : ['src', 'width', 'height', 'border', 'alt', 'title', '.width', '.height'],
|
21
|
+
table : ['border'],
|
22
|
+
'div,td,th,hr,br,tbody,tr,p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6' : []
|
23
|
+
});
|
24
|
+
self.html(html);
|
25
|
+
self.cmd.selection(true);
|
26
|
+
self.addBookmark();
|
27
|
+
});
|
28
|
+
});
|
@@ -0,0 +1,57 @@
|
|
1
|
+
/*******************************************************************************
|
2
|
+
* KindEditor - WYSIWYG HTML Editor for Internet
|
3
|
+
* Copyright (C) 2006-2011 kindsoft.net
|
4
|
+
*
|
5
|
+
* @author Roddy <luolonghao@gmail.com>
|
6
|
+
* @site http://www.kindsoft.net/
|
7
|
+
* @licence http://www.kindsoft.net/license.php
|
8
|
+
*******************************************************************************/
|
9
|
+
|
10
|
+
// google code prettify: http://google-code-prettify.googlecode.com/
|
11
|
+
// http://google-code-prettify.googlecode.com/
|
12
|
+
|
13
|
+
KindEditor.plugin('code', function(K) {
|
14
|
+
var self = this, name = 'code';
|
15
|
+
self.clickToolbar(name, function() {
|
16
|
+
var lang = self.lang(name + '.'),
|
17
|
+
html = ['<div style="padding:10px 20px;">',
|
18
|
+
'<div class="ke-dialog-row">',
|
19
|
+
'<select class="ke-code-type">',
|
20
|
+
'<option value="js">JavaScript</option>',
|
21
|
+
'<option value="html">HTML</option>',
|
22
|
+
'<option value="css">CSS</option>',
|
23
|
+
'<option value="php">PHP</option>',
|
24
|
+
'<option value="pl">Perl</option>',
|
25
|
+
'<option value="py">Python</option>',
|
26
|
+
'<option value="rb">Ruby</option>',
|
27
|
+
'<option value="java">Java</option>',
|
28
|
+
'<option value="vb">ASP/VB</option>',
|
29
|
+
'<option value="cpp">C/C++</option>',
|
30
|
+
'<option value="cs">C#</option>',
|
31
|
+
'<option value="xml">XML</option>',
|
32
|
+
'<option value="bsh">Shell</option>',
|
33
|
+
'<option value="">Other</option>',
|
34
|
+
'</select>',
|
35
|
+
'</div>',
|
36
|
+
'<textarea class="ke-textarea" style="width:408px;height:260px;"></textarea>',
|
37
|
+
'</div>'].join(''),
|
38
|
+
dialog = self.createDialog({
|
39
|
+
name : name,
|
40
|
+
width : 450,
|
41
|
+
title : self.lang(name),
|
42
|
+
body : html,
|
43
|
+
yesBtn : {
|
44
|
+
name : self.lang('yes'),
|
45
|
+
click : function(e) {
|
46
|
+
var type = K('.ke-code-type', dialog.div).val(),
|
47
|
+
code = textarea.val(),
|
48
|
+
cls = type === '' ? '' : ' lang-' + type,
|
49
|
+
html = '<pre class="prettyprint' + cls + '">\n' + K.escape(code) + '</pre> ';
|
50
|
+
self.insertHtml(html).hideDialog().focus();
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}),
|
54
|
+
textarea = K('textarea', dialog.div);
|
55
|
+
textarea[0].focus();
|
56
|
+
});
|
57
|
+
});
|