rails_kindeditor 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +14 -99
- data/lib/generators/rails_kindeditor/install/install_generator.rb +2 -2
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/kindeditor-min.js +165 -158
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/lang/en.js +210 -208
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/lang/zh_CN.js +214 -210
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/lang/zh_TW.js +212 -210
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/anchor/anchor.js +46 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/clearhtml/clearhtml.js +29 -28
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/filemanager/filemanager.js +185 -189
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/flash/flash.js +145 -128
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/image/image.js +242 -226
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/insertfile/insertfile.js +109 -104
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/link/link.js +65 -59
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/map/map.js +137 -135
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/media/media.js +153 -136
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/pagebreak/pagebreak.js +26 -26
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/table/table.js +715 -661
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/wordpaste/wordpaste.js +51 -57
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/themes/common/anchor.gif +0 -0
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/themes/default/default.css +980 -941
- data/lib/generators/rails_kindeditor/install/templates/kindeditor/themes/default/default.gif +0 -0
- data/lib/rails_kindeditor/helper.rb +9 -10
- data/lib/rails_kindeditor/version.rb +1 -1
- metadata +29 -231
- data/vendor/assets/javascripts/kindeditor.js +0 -158
- data/vendor/assets/javascripts/lang/en.js +0 -208
- data/vendor/assets/javascripts/lang/zh_CN.js +0 -210
- data/vendor/assets/javascripts/lang/zh_TW.js +0 -210
- data/vendor/assets/javascripts/plugins/clearhtml/clearhtml.js +0 -28
- data/vendor/assets/javascripts/plugins/code/code.js +0 -57
- data/vendor/assets/javascripts/plugins/code/prettify.css +0 -13
- data/vendor/assets/javascripts/plugins/code/prettify.js +0 -28
- data/vendor/assets/javascripts/plugins/emoticons/emoticons.js +0 -129
- 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 +0 -189
- 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 +0 -128
- data/vendor/assets/javascripts/plugins/image/image.js +0 -226
- 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 +0 -104
- data/vendor/assets/javascripts/plugins/lineheight/lineheight.js +0 -38
- data/vendor/assets/javascripts/plugins/link/link.js +0 -59
- data/vendor/assets/javascripts/plugins/map/map.html +0 -57
- data/vendor/assets/javascripts/plugins/map/map.js +0 -135
- data/vendor/assets/javascripts/plugins/media/media.js +0 -136
- data/vendor/assets/javascripts/plugins/pagebreak/pagebreak.js +0 -26
- data/vendor/assets/javascripts/plugins/plainpaste/plainpaste.js +0 -41
- data/vendor/assets/javascripts/plugins/preview/preview.js +0 -31
- data/vendor/assets/javascripts/plugins/quickformat/quickformat.js +0 -71
- data/vendor/assets/javascripts/plugins/table/table.js +0 -661
- data/vendor/assets/javascripts/plugins/template/html/1.html +0 -14
- data/vendor/assets/javascripts/plugins/template/html/2.html +0 -42
- data/vendor/assets/javascripts/plugins/template/html/3.html +0 -36
- data/vendor/assets/javascripts/plugins/template/template.js +0 -58
- data/vendor/assets/javascripts/plugins/wordpaste/wordpaste.js +0 -57
- data/vendor/assets/stylesheets/bg.gif +0 -0
- data/vendor/assets/stylesheets/default.gif +0 -0
- data/vendor/assets/stylesheets/kindeditor.css +0 -942
- 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 +0 -148
@@ -1,210 +1,212 @@
|
|
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
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
'
|
105
|
-
'
|
106
|
-
'link.
|
107
|
-
'link.
|
108
|
-
'link.
|
109
|
-
'
|
110
|
-
'flash.
|
111
|
-
'flash.
|
112
|
-
'flash.
|
113
|
-
'flash.
|
114
|
-
'
|
115
|
-
'media.
|
116
|
-
'media.
|
117
|
-
'media.
|
118
|
-
'media.
|
119
|
-
'media.
|
120
|
-
'
|
121
|
-
'image.
|
122
|
-
'image.
|
123
|
-
'image.
|
124
|
-
'image.
|
125
|
-
'image.
|
126
|
-
'image.
|
127
|
-
'image.
|
128
|
-
'image.
|
129
|
-
'image.
|
130
|
-
'image.
|
131
|
-
'image.
|
132
|
-
'image.
|
133
|
-
'image.
|
134
|
-
'
|
135
|
-
'filemanager.
|
136
|
-
'filemanager.
|
137
|
-
'filemanager.
|
138
|
-
'filemanager.
|
139
|
-
'filemanager.
|
140
|
-
'filemanager.
|
141
|
-
'filemanager.
|
142
|
-
'filemanager.
|
143
|
-
'
|
144
|
-
'insertfile.
|
145
|
-
'insertfile.
|
146
|
-
'insertfile.
|
147
|
-
'
|
148
|
-
'table.
|
149
|
-
'table.
|
150
|
-
'table.
|
151
|
-
'table.
|
152
|
-
'table.
|
153
|
-
'table.
|
154
|
-
'table.
|
155
|
-
'table.
|
156
|
-
'table.
|
157
|
-
'table.
|
158
|
-
'table.
|
159
|
-
'table.
|
160
|
-
'table.
|
161
|
-
'table.
|
162
|
-
'table.
|
163
|
-
'table.
|
164
|
-
'table.
|
165
|
-
'table.
|
166
|
-
'table.
|
167
|
-
'table.
|
168
|
-
'table.
|
169
|
-
'table.
|
170
|
-
'table.
|
171
|
-
'table.
|
172
|
-
'table.
|
173
|
-
'
|
174
|
-
'map.
|
175
|
-
'
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
'
|
186
|
-
'
|
187
|
-
'
|
188
|
-
'
|
189
|
-
'
|
190
|
-
'
|
191
|
-
'
|
192
|
-
'
|
193
|
-
'
|
194
|
-
'
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
{'
|
200
|
-
{'
|
201
|
-
{'
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
'template.
|
206
|
-
|
207
|
-
|
208
|
-
'
|
209
|
-
|
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
|
+
anchor : '錨點',
|
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
|
+
invalidBorder : '边框必须为数字。',
|
99
|
+
pleaseInput : "請輸入內容。",
|
100
|
+
invalidJson : '伺服器發生故障。',
|
101
|
+
cutError : '您的瀏覽器安全設置不允許使用剪下操作,請使用快捷鍵(Ctrl+X)完成。',
|
102
|
+
copyError : '您的瀏覽器安全設置不允許使用剪下操作,請使用快捷鍵(Ctrl+C)完成。',
|
103
|
+
pasteError : '您的瀏覽器安全設置不允許使用剪下操作,請使用快捷鍵(Ctrl+V)完成。',
|
104
|
+
'plainpaste.comment' : '請使用快捷鍵(Ctrl+V)把內容貼到下方區域裡。',
|
105
|
+
'wordpaste.comment' : '請使用快捷鍵(Ctrl+V)把內容貼到下方區域裡。',
|
106
|
+
'link.url' : 'URL',
|
107
|
+
'link.linkType' : '打開類型',
|
108
|
+
'link.newWindow' : '新窗口',
|
109
|
+
'link.selfWindow' : '本頁窗口',
|
110
|
+
'flash.url' : 'URL',
|
111
|
+
'flash.width' : '寬度',
|
112
|
+
'flash.height' : '高度',
|
113
|
+
'flash.upload' : '上傳',
|
114
|
+
'flash.viewServer' : '瀏覽',
|
115
|
+
'media.url' : 'URL',
|
116
|
+
'media.width' : '寬度',
|
117
|
+
'media.height' : '高度',
|
118
|
+
'media.autostart' : '自動播放',
|
119
|
+
'media.upload' : '上傳',
|
120
|
+
'media.viewServer' : '瀏覽',
|
121
|
+
'image.remoteImage' : '影像URL',
|
122
|
+
'image.localImage' : '上傳影像',
|
123
|
+
'image.remoteUrl' : '影像URL',
|
124
|
+
'image.localUrl' : '影像URL',
|
125
|
+
'image.size' : '影像大小',
|
126
|
+
'image.width' : '寬度',
|
127
|
+
'image.height' : '高度',
|
128
|
+
'image.resetSize' : '原始大小',
|
129
|
+
'image.align' : '對齊方式',
|
130
|
+
'image.defaultAlign' : '未設定',
|
131
|
+
'image.leftAlign' : '向左對齊',
|
132
|
+
'image.rightAlign' : '向右對齊',
|
133
|
+
'image.imgTitle' : '影像說明',
|
134
|
+
'image.viewServer' : '瀏覽...',
|
135
|
+
'filemanager.emptyFolder' : '空文件夾',
|
136
|
+
'filemanager.moveup' : '至上一級文件夾',
|
137
|
+
'filemanager.viewType' : '顯示方式:',
|
138
|
+
'filemanager.viewImage' : '縮略圖',
|
139
|
+
'filemanager.listImage' : '詳細信息',
|
140
|
+
'filemanager.orderType' : '排序方式:',
|
141
|
+
'filemanager.fileName' : '名稱',
|
142
|
+
'filemanager.fileSize' : '大小',
|
143
|
+
'filemanager.fileType' : '類型',
|
144
|
+
'insertfile.url' : 'URL',
|
145
|
+
'insertfile.title' : '文件說明',
|
146
|
+
'insertfile.upload' : '上傳',
|
147
|
+
'insertfile.viewServer' : '瀏覽',
|
148
|
+
'table.cells' : '儲存格數',
|
149
|
+
'table.rows' : '欄數',
|
150
|
+
'table.cols' : '列數',
|
151
|
+
'table.size' : '表格大小',
|
152
|
+
'table.width' : '寬度',
|
153
|
+
'table.height' : '高度',
|
154
|
+
'table.percent' : '%',
|
155
|
+
'table.px' : 'px',
|
156
|
+
'table.space' : '內距間距',
|
157
|
+
'table.padding' : '內距',
|
158
|
+
'table.spacing' : '間距',
|
159
|
+
'table.align' : '對齊方式',
|
160
|
+
'table.textAlign' : '水平對齊',
|
161
|
+
'table.verticalAlign' : '垂直對齊',
|
162
|
+
'table.alignDefault' : '未設定',
|
163
|
+
'table.alignLeft' : '向左對齊',
|
164
|
+
'table.alignCenter' : '置中',
|
165
|
+
'table.alignRight' : '向右對齊',
|
166
|
+
'table.alignTop' : '靠上',
|
167
|
+
'table.alignMiddle' : '置中',
|
168
|
+
'table.alignBottom' : '靠下',
|
169
|
+
'table.alignBaseline' : '基線',
|
170
|
+
'table.border' : '表格邊框',
|
171
|
+
'table.borderWidth' : '邊框',
|
172
|
+
'table.borderColor' : '顏色',
|
173
|
+
'table.backgroundColor' : '背景顏色',
|
174
|
+
'map.address' : '住所: ',
|
175
|
+
'map.search' : '尋找',
|
176
|
+
'anchor.name' : '錨點名稱',
|
177
|
+
'formatblock.formatBlock' : {
|
178
|
+
h1 : '標題 1',
|
179
|
+
h2 : '標題 2',
|
180
|
+
h3 : '標題 3',
|
181
|
+
h4 : '標題 4',
|
182
|
+
p : '一般'
|
183
|
+
},
|
184
|
+
'fontname.fontName' : {
|
185
|
+
'MingLiU' : '細明體',
|
186
|
+
'PMingLiU' : '新細明體',
|
187
|
+
'DFKai-SB' : '標楷體',
|
188
|
+
'SimSun' : '宋體',
|
189
|
+
'NSimSun' : '新宋體',
|
190
|
+
'FangSong' : '仿宋體',
|
191
|
+
'Arial' : 'Arial',
|
192
|
+
'Arial Black' : 'Arial Black',
|
193
|
+
'Times New Roman' : 'Times New Roman',
|
194
|
+
'Courier New' : 'Courier New',
|
195
|
+
'Tahoma' : 'Tahoma',
|
196
|
+
'Verdana' : 'Verdana'
|
197
|
+
},
|
198
|
+
'lineheight.lineHeight' : [
|
199
|
+
{'1' : '单倍行距'},
|
200
|
+
{'1.5' : '1.5倍行距'},
|
201
|
+
{'2' : '2倍行距'},
|
202
|
+
{'2.5' : '2.5倍行距'},
|
203
|
+
{'3' : '3倍行距'}
|
204
|
+
],
|
205
|
+
'template.selectTemplate' : '可選樣板',
|
206
|
+
'template.replaceContent' : '取代當前內容',
|
207
|
+
'template.fileList' : {
|
208
|
+
'1.html' : '影像和文字',
|
209
|
+
'2.html' : '表格',
|
210
|
+
'3.html' : '项目清單'
|
211
|
+
}
|
212
|
+
}, 'zh_TW');
|
@@ -0,0 +1,46 @@
|
|
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('anchor', function(K) {
|
11
|
+
var self = this, name = 'anchor', lang = self.lang(name + '.');
|
12
|
+
self.plugin.anchor = {
|
13
|
+
edit : function() {
|
14
|
+
var html = ['<div style="padding:10px 20px;">',
|
15
|
+
'<div class="ke-dialog-row">',
|
16
|
+
'<label for="keName">' + lang.name + '</label>',
|
17
|
+
'<input class="ke-input-text" type="text" id="keName" name="name" value="" style="width:100px;" />',
|
18
|
+
'</div>',
|
19
|
+
'</div>'].join('');
|
20
|
+
var dialog = self.createDialog({
|
21
|
+
name : name,
|
22
|
+
width : 300,
|
23
|
+
title : self.lang(name),
|
24
|
+
body : html,
|
25
|
+
yesBtn : {
|
26
|
+
name : self.lang('yes'),
|
27
|
+
click : function(e) {
|
28
|
+
self.insertHtml('<a name="' + nameBox.val() + '">').hideDialog().focus();
|
29
|
+
}
|
30
|
+
}
|
31
|
+
});
|
32
|
+
var div = dialog.div,
|
33
|
+
nameBox = K('input[name="name"]', div);
|
34
|
+
var img = self.plugin.getSelectedAnchor();
|
35
|
+
if (img) {
|
36
|
+
nameBox.val(unescape(img.attr('data-ke-name')));
|
37
|
+
}
|
38
|
+
nameBox[0].focus();
|
39
|
+
nameBox[0].select();
|
40
|
+
},
|
41
|
+
'delete' : function() {
|
42
|
+
self.plugin.getSelectedAnchor().remove();
|
43
|
+
}
|
44
|
+
};
|
45
|
+
self.clickToolbar(name, self.plugin.anchor.edit);
|
46
|
+
});
|