id}').val(),
251 | clickFn : function(url, title) {
252 | K('#{$this->id}').val(url);
253 | editor.hideDialog();
254 | }
255 | });
256 | });
257 | });
258 | });
259 | EOT;
260 |
261 | break;
262 | default:
263 | $script = "KindEditor.ready(function(K) {
264 | K.create('#" . $this->id . "', " . $clientOptions . ");
265 | });";
266 | break;
267 | }
268 |
269 | $this->view->registerJs($script, View::POS_READY);
270 | }
271 |
272 | }
273 |
--------------------------------------------------------------------------------
/KindEditorAsset.php:
--------------------------------------------------------------------------------
1 |
7 | * @link http://www.pjkui.com
8 | * @QQ 714428042
9 | * @date 2015-3-4
10 |
11 | */
12 | namespace pjkui\kindeditor;
13 | use yii\web\AssetBundle;
14 | class KindEditorAsset extends AssetBundle {
15 | //put your code here
16 | public $js=[
17 | 'kindeditor-min.js',
18 | 'lang/zh_CN.js',//configure UI language, if you want to use english, then configure it to "lang/en.js"
19 | // 'kindeditor.js'
20 | ];
21 | public $css=[
22 | 'themes/default/default.css'
23 | ];
24 |
25 | public $jsOptions=[
26 | 'charset'=>'utf8',
27 | ];
28 |
29 |
30 | public function init() {
31 | //资源所在目录
32 | $this->sourcePath = dirname(__FILE__) . DIRECTORY_SEPARATOR ;
33 | }
34 | }
35 |
36 | ?>
37 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | KindEditor
2 | ===========
3 | **修复了linux下的一些bug,由于Yii China 无法更新这些信息,抱歉。使用方法务必参考本文,YiiChina上的方法有拼写问题,因为无法修改,所以一定要看这个!!!***
4 |
5 |
6 | 中文的使用说明在页面下部
7 | # install
8 | Either run
9 |
10 | ```bash
11 | $ php composer.phar require pjkui/kindeditor "*"
12 | ```
13 |
14 | or add
15 |
16 | ```php
17 | "pjkui/kindeditor": "*"
18 | ```
19 | to the `require` section of your `composer.json` file.
20 |
21 | ```php
22 | 'pjkui\\kindeditor\\'=>array($vendorDir . '/pjkui/kindeditor')
23 | ```
24 |
25 | # Usage example
26 |
27 | ## add an actions() method in controller
28 |
29 | ```php
30 | public function actions()
31 | {
32 | return [
33 | 'Kupload' => [
34 | 'class' => 'pjkui\kindeditor\KindEditorAction',
35 | ]
36 | ];
37 | }
38 | ```
39 |
40 | ## used in view :
41 | ```php
42 |
43 | echo \pjkui\kindeditor\KindEditor::widget([]);
44 | ```
45 |
46 | or :
47 |
48 | ```php
49 | echo $form->field($model,'colum')->widget('pjkui\kindeditor\KindEditor',[]);
50 | ```
51 |
52 | or :
53 | ```php
54 | = $form->field($model, 'content')->widget('pjkui\kindeditor\KindEditor',
55 | [
56 | 'clientOptions'=>[
57 | 'allowFileManager'=>'true',
58 | 'allowUpload'=>'true'
59 | ]
60 | ])
61 | ?>
62 | ```
63 | ## configure
64 | you can configure `clientOption` and `editorType` to change the kindeditor's preference, the detail configure see the official website[KindEditor website](http://kindeditor.net/doc.php)
65 |
66 | ###`editorType` configure
67 | 1. Work as text editor,default configure.
68 |
69 | usage:
70 | ```php
71 | = $form->field($model, 'content')->widget('pjkui\kindeditor\KindEditor',
72 | [
73 | 'clientOptions'=>[
74 | 'allowFileManager'=>'true',
75 | 'allowUpload'=>'true'
76 | ]
77 | ])
78 | ?>
79 | ```
80 |
81 | 2. `uploadButton` Kindediotr work as a upload file button ,can upload file/picture to the server automatic
82 |
83 | usage:
84 | ```php
85 | = $form->field($model, 'article_pic')->widget('pjkui\kindeditor\KindEditor',
86 | [
87 | 'clientOptions'=>[
88 | 'allowFileManager'=>'true',
89 | 'allowUpload'=>'true'
90 | ],
91 | 'editorType'=>'uploadButton
92 | ])
93 | ?>
94 | ```
95 | 3. `colorpicker`kindeditor work as color picker
96 |
97 | usage:
98 | ```php
99 | = $form->field($model, 'content')->widget('pjkui\kindeditor\KindEditor',
100 | 'editorType'=>'colorpicker'])
101 | ?>
102 | ```
103 | 4. `file-manager`kindeditor work as file manager,can view and select the file which uploaded by it .
104 |
105 | usage:
106 | ```php
107 | = $form->field($model, 'article_pic')->widget('pjkui\kindeditor\KindEditor',
108 | [
109 | 'clientOptions'=>[
110 | 'allowFileManager'=>'true',
111 | 'allowUpload'=>'true'
112 | ],
113 | 'editorType'=>'file-manager'
114 | ])
115 | ?>
116 | ```
117 | 5. `image-dialog`kindeditor work as image upload dialog.
118 |
119 | usage:
120 | ```php
121 | = $form->field($model, 'article_pic')->widget('pjkui\kindeditor\KindEditor',
122 | [
123 | 'clientOptions'=>[
124 | 'allowFileManager'=>'true',
125 | 'allowUpload'=>'true'
126 | ],
127 | 'editorType'=>'image-dialog'
128 | ])
129 | ?>
130 | ```
131 | 6. `file-dialog`kindeditor work as file upload dialog.
132 |
133 | usage:
134 | ```php
135 | = $form->field($model, 'article_pic')->widget('pjkui\kindeditor\KindEditor',
136 | [
137 | 'clientOptions'=>[
138 | 'allowFileManager'=>'true',
139 | 'allowUpload'=>'true'
140 | ],
141 | 'editorType'=>'file-dialog'
142 | ])
143 | ?>
144 | ```
145 |
146 | simple demo:
147 | ```php
148 | use \pjkui\kindeditor\KindEditor;
149 | echo KindEditor::widget([
150 | 'clientOptions' => [
151 | //editor size
152 | 'height' => '500',
153 | //custom menu
154 | 'items' => [
155 | 'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste',
156 | 'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
157 | 'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
158 | 'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
159 | 'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
160 | 'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage',
161 | 'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap', 'pagebreak',
162 | 'anchor', 'link', 'unlink', '|', 'about'
163 | ]
164 | ]);
165 | ```
166 |
167 | KindEditor中文手册
168 | ===========
169 |
170 | # 如何安装
171 | 第一种方法:
172 | 如果装了composer,可以运行这个命令
173 |
174 | ```php
175 | $ php composer.phar require pjkui/kindeditor "*"
176 | ```
177 | 第二种方法:
178 | 将
179 | ```php
180 | "pjkui/kindeditor": "*"
181 | ```
182 | 加入到项目 `composer.json` 文件的`require` 部分。
183 |
184 | 第三种方法:
185 | 直接将程序文件放到系统的vendor下面,其实建议用compaser,这个是比较方便和规范的安装方法,如果是拷贝的话,有一个文件需要修改,以保证这个kindeditor类被加载。
186 | 这个文件是`/vendor/composer/autoload_psr4.php`.添加一行
187 | ```php
188 | 'pjkui\\kindeditor\\'=>array($vendorDir . '/pjkui/kindeditor'),
189 | ```
190 | # 使用方法
191 |
192 | ##控制器:
193 | 在控制器中加入这个方法:
194 | ```php
195 | public function actions()
196 | {
197 | return [
198 | 'Kupload' => [
199 | 'class' => 'pjkui\kindeditor\KindEditorAction',
200 | ]
201 | ];
202 | }
203 | ```
204 |
205 | ##视图:
206 | 先在视图中加入
207 |
208 | ```php
209 |
210 | echo \pjkui\kindeditor\KindEditor::widget([]);
211 | ```
212 |
213 | 或者:
214 |
215 | ```php
216 | echo $form->field($model,'colum')->widget('pjkui\kindeditor\KindEditor',[]);
217 | ```
218 |
219 | 或者:
220 | ```php
221 | = $form->field($model, 'content')->widget('pjkui\kindeditor\KindEditor',
222 | ['clientOptions'=>['allowFileManager'=>'true',
223 | 'allowUpload'=>'true']])
224 | ?>
225 | ```
226 | ## 具体相关功能配置
227 |
228 | 编辑器相关配置,请在`view 中配置,参数为`clientOptions,比如定制菜单,编辑器大小等等,具体参数请查看[KindEditor官网文档](http://kindeditor.net/doc.php)。
229 |
230 | ### `editorType`配置
231 | 1. 配置为富文本编辑器,默认配置
232 |
233 | 示例:
234 |
235 | ```php
236 | = $form->field($model, 'content')->widget('pjkui\kindeditor\KindEditor',
237 | [
238 | 'clientOptions'=>[
239 | 'allowFileManager'=>'true',
240 | 'allowUpload'=>'true'
241 | ]
242 | ])
243 | ?>
244 | ```
245 |
246 | 2. 这时候配置kindeditor为上传文件按钮,可以自动上传文件到服务器
247 | 示例:
248 |
249 | ```php
250 | = $form->field($model, 'article_pic')->widget('pjkui\kindeditor\KindEditor',
251 | [
252 | 'clientOptions'=>[
253 | 'allowFileManager'=>'true',
254 | 'allowUpload'=>'true'
255 | ],
256 | 'editorType'=>'uploadButton
257 | ])
258 | ?>
259 | ```
260 | 3. 配置kindeditor为取色器
261 | 示例:
262 |
263 | ```php
264 | = $form->field($model, 'content')->widget('pjkui\kindeditor\KindEditor',
265 | 'editorType'=>'colorpicker')
266 | ?>
267 | ```
268 | 4. 配置kindeditor为文件管理器,可以查看和选着其上传的文件。
269 | 示例:
270 |
271 | ```php
272 | = $form->field($model, 'article_pic')->widget('pjkui\kindeditor\KindEditor',
273 | [
274 | 'clientOptions'=>[
275 | 'allowFileManager'=>'true',
276 | 'allowUpload'=>'true'
277 | ],
278 | 'editorType'=>'file-manager'
279 | ])
280 | ?>
281 | ```
282 | 5. 配置kindeditor为图片上传对话框。
283 | 示例:
284 |
285 | ```php
286 | = $form->field($model, 'article_pic')->widget('pjkui\kindeditor\KindEditor',
287 | [
288 | 'clientOptions'=>[
289 | 'allowFileManager'=>'true',
290 | 'allowUpload'=>'true'
291 | ],
292 | 'editorType'=>'image-dialog'
293 | ])
294 | ?>
295 | ```
296 |
297 | 6. 配置kindeditor为文件上传对话框。
298 | 示例:
299 |
300 | ```php
301 | = $form->field($model, 'article_pic')->widget('pjkui\kindeditor\KindEditor',
302 | [
303 | 'clientOptions'=>[
304 | 'allowFileManager'=>'true',
305 | 'allowUpload'=>'true'
306 | ],
307 | 'editorType'=>'file-dialog'
308 | ])
309 | ?>
310 | ```
311 |
312 |
313 | 简单 示例:
314 | ```php
315 | use \pjkui\kindeditor\KindEditor;
316 | echo KindEditor::widget([
317 | 'clientOptions' => [
318 | //编辑区域大小
319 | 'height' => '500',
320 | //定制菜单
321 | 'items' => [
322 | 'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste',
323 | 'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
324 | 'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
325 | 'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
326 | 'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
327 | 'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage',
328 | 'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap', 'pagebreak',
329 | 'anchor', 'link', 'unlink', '|', 'about'
330 | ],
331 | 'id'=>'thisID',//填写你想给textarea的id
332 | ]);
333 | ```
334 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "pjkui/kindeditor",
3 | "description": "Yii2 可以使用的KindEditor富文本编辑器。 KindEditor for Yii2",
4 | "license": "MIT",
5 | "authors": [
6 | {
7 | "name": "Quinn Pan",
8 | "email": "pjkui@qq.com"
9 | }
10 | ],
11 |
12 | "require": {},
13 | "autoload": {
14 | "psr-4": {
15 | "pjkui\\kindeditor\\": ""
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/examples/auto-height.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Auto Height Examples
6 |
14 |
15 |
16 |
17 |
27 |
28 |
29 | 自动调整高度
30 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/examples/colorpicker.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ColorPicker Examples
6 |
7 |
8 |
40 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/examples/custom-plugin.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Custom Plugin Examples
6 |
26 |
27 |
28 |
29 |
94 |
95 |
96 | 自定义插件
97 |
98 |
99 |
100 |
--------------------------------------------------------------------------------
/examples/custom-theme.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Custom Theme Examples
6 |
14 |
15 |
16 |
17 |
27 |
28 |
29 | 默认风格
30 |
31 | 简单风格
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/examples/default.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Default Examples
6 |
14 |
15 |
16 |
17 |
52 |
53 |
54 | 默认模式
55 |
72 |
73 |
74 |
--------------------------------------------------------------------------------
/examples/dialog.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Dialog Examples
6 |
7 |
8 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/examples/dynamic-load.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Dynamic Load Examples
6 |
14 |
15 |
28 |
29 |
30 | 异步加载
31 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/examples/file-dialog.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | fileDialog Examples
6 |
7 |
8 |
9 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/examples/file-manager.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | FileManager Examples
6 |
7 |
8 |
9 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/examples/filter-mode.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Filter Mode Examples
6 |
14 |
15 |
16 |
17 |
24 |
25 |
26 | 关闭HTML过滤
27 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/examples/image-dialog.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ImageDialog Examples
6 |
7 |
8 |
9 |
51 |
52 |
53 | (网络图片 + 本地上传)
54 | (网络图片)
55 | (本地上传)
56 |
57 |
58 |
--------------------------------------------------------------------------------
/examples/index.css:
--------------------------------------------------------------------------------
1 | .ke-content {
2 | font-size: 12px;
3 | background-color: #ffffff;
4 | }
5 | .ke-content table {
6 | border-collapse:collapse;
7 | }
8 | .red {
9 | color: white;
10 | background-color: red;
11 | }
12 | .green {
13 | color: white;
14 | background-color: green;
15 | }
16 | .yellow {
17 | color: white;
18 | background-color: yellow;
19 | }
--------------------------------------------------------------------------------
/examples/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | KindEditor Examples
6 |
25 |
26 |
27 | 编辑器演示
28 |
29 | - default.html (默认模式)
30 | - simple.html (简单模式)
31 | - dynamic-load.html (异步加载)
32 | - multi-language.html (多语言)
33 | - readonly.html (只读模式)
34 | - newline.html (回车换行设置)
35 | - word-count.html (统计字数)
36 | - filter-mode.html (关闭HTML过滤)
37 | - url-type.html (URL设置)
38 | - paste-type.html (粘贴设置)
39 | - auto-height.html (自动调整高度)
40 | - custom-theme.html (自定义风格)
41 | - qqstyle.html (自定义风格 仿QQ邮箱)
42 | - custom-plugin.html (自定义插件)
43 |
44 | 使用其它类库
45 |
46 | - jquery.html (jQuery)
47 | - jquery-ui.html (jQuery UI)
48 |
49 | 单独调用组件
50 |
51 | - node.html (Node操作)
52 | - uploadbutton.html (上传按钮)
53 | - dialog.html (弹出框)
54 | - colorpicker.html (取色器)
55 | - file-manager.html (浏览服务器)
56 | - image-dialog.html (上传图片弹出框)
57 | - multi-image-dialog.html (批量上传弹出框)
58 | - file-dialog.html (上传文件弹出框)
59 |
60 |
61 |
62 |
--------------------------------------------------------------------------------
/examples/jquery-ui.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | With jQuery UI
6 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
46 |
47 |
48 | 在jQuery UI Dialog里打开编辑器
49 |
50 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/examples/jquery-ui/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pjkui/kindeditor/768c43541793540ded077e80dc6a5560b5f95c87/examples/jquery-ui/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
--------------------------------------------------------------------------------
/examples/jquery-ui/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pjkui/kindeditor/768c43541793540ded077e80dc6a5560b5f95c87/examples/jquery-ui/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
--------------------------------------------------------------------------------
/examples/jquery-ui/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pjkui/kindeditor/768c43541793540ded077e80dc6a5560b5f95c87/examples/jquery-ui/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
--------------------------------------------------------------------------------
/examples/jquery-ui/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pjkui/kindeditor/768c43541793540ded077e80dc6a5560b5f95c87/examples/jquery-ui/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
--------------------------------------------------------------------------------
/examples/jquery-ui/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pjkui/kindeditor/768c43541793540ded077e80dc6a5560b5f95c87/examples/jquery-ui/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png
--------------------------------------------------------------------------------
/examples/jquery-ui/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pjkui/kindeditor/768c43541793540ded077e80dc6a5560b5f95c87/examples/jquery-ui/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
--------------------------------------------------------------------------------
/examples/jquery-ui/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pjkui/kindeditor/768c43541793540ded077e80dc6a5560b5f95c87/examples/jquery-ui/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
--------------------------------------------------------------------------------
/examples/jquery-ui/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pjkui/kindeditor/768c43541793540ded077e80dc6a5560b5f95c87/examples/jquery-ui/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
--------------------------------------------------------------------------------
/examples/jquery-ui/css/smoothness/images/ui-icons_222222_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pjkui/kindeditor/768c43541793540ded077e80dc6a5560b5f95c87/examples/jquery-ui/css/smoothness/images/ui-icons_222222_256x240.png
--------------------------------------------------------------------------------
/examples/jquery-ui/css/smoothness/images/ui-icons_2e83ff_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pjkui/kindeditor/768c43541793540ded077e80dc6a5560b5f95c87/examples/jquery-ui/css/smoothness/images/ui-icons_2e83ff_256x240.png
--------------------------------------------------------------------------------
/examples/jquery-ui/css/smoothness/images/ui-icons_454545_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pjkui/kindeditor/768c43541793540ded077e80dc6a5560b5f95c87/examples/jquery-ui/css/smoothness/images/ui-icons_454545_256x240.png
--------------------------------------------------------------------------------
/examples/jquery-ui/css/smoothness/images/ui-icons_888888_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pjkui/kindeditor/768c43541793540ded077e80dc6a5560b5f95c87/examples/jquery-ui/css/smoothness/images/ui-icons_888888_256x240.png
--------------------------------------------------------------------------------
/examples/jquery-ui/css/smoothness/images/ui-icons_cd0a0a_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pjkui/kindeditor/768c43541793540ded077e80dc6a5560b5f95c87/examples/jquery-ui/css/smoothness/images/ui-icons_cd0a0a_256x240.png
--------------------------------------------------------------------------------
/examples/jquery.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | With jQuery
6 |
14 |
15 |
16 |
17 |
18 |
23 |
24 |
25 | 使用jQuery
26 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/examples/multi-image-dialog.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | MultiImageDialog Examples
6 |
7 |
8 |
9 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/examples/multi-language.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Multi Language Examples
6 |
14 |
15 |
16 |
31 |
32 |
33 | Multi Language
34 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/examples/newline.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Newline Examples
6 |
14 |
15 |
16 |
17 |
32 |
33 |
34 | 回车换行设置
35 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/examples/node.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Node Examples
6 |
7 |
8 |
20 |
33 |
34 |
35 | K('div#id').addClass('cls');
36 | K('div.class').css('margin', '10px');
37 | K('#id img').css('border', '1px solid #000').attr('title', 'hello');
38 | K('#id > div').width(200).height(50).css('border', '1px solid #000');
39 | K('a[href="\\#"]').attr('href', 'http://www.kindsoft.net/');
40 |
41 |
class1
42 |
43 |

44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/examples/paste-type.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Paste Type Examples
6 |
14 |
15 |
16 |
17 |
30 |
31 |
32 | 禁止粘贴
33 |
34 | 纯文本粘贴
35 |
36 | HTML粘贴
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/examples/qqstyle.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Custom Theme Examples
6 |
14 |
15 |
16 |
73 |
74 |
75 | QQ风格
76 |
77 |
78 |
79 |
--------------------------------------------------------------------------------
/examples/readonly.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Readonly Examples
6 |
14 |
15 |
16 |
17 |
32 |
33 |
34 | 只读模式
35 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/examples/simple.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Simple Examples
6 |
14 |
15 |
16 |
17 |
31 |
32 |
33 | 默认模式
34 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/examples/uploadbutton.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Upload Button Examples
6 |
7 |
8 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/examples/url-type.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | URL Type Examples
6 |
14 |
15 |
16 |
17 |
30 |
31 |
32 | 相对URL
33 |
39 | 绝对URL
40 |
46 | 绝对URL(包含域名)
47 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/examples/word-count.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Word Count Examples
6 |
14 |
15 |
16 |
17 |
27 |
28 |
29 | 统计字数
30 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/lang/ar.js:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * KindEditor - WYSIWYG HTML Editor for Internet
3 | * Copyright (C) 2006-2011 kindsoft.net
4 | *
5 | * @author Roddy
6 | * @site http://www.kindsoft.net/
7 | * @licence http://www.kindsoft.net/license.php
8 | * Arabic Translation By daif alotaibi (http://daif.net/)
9 | *******************************************************************************/
10 |
11 | KindEditor.lang({
12 | source : 'عرض المصدر',
13 | preview : 'معاينة الصفحة',
14 | undo : 'تراجع(Ctrl+Z)',
15 | redo : 'إعادة التراجع(Ctrl+Y)',
16 | cut : 'قص(Ctrl+X)',
17 | copy : 'نسخ(Ctrl+C)',
18 | paste : 'لصق(Ctrl+V)',
19 | plainpaste : 'لصق كنص عادي',
20 | wordpaste : 'لصق من مايكروسفت ورد',
21 | selectall : 'تحديد الكل',
22 | justifyleft : 'محاذاه لليسار',
23 | justifycenter : 'محاذاه للوسط',
24 | justifyright : 'محاذاه لليمين',
25 | justifyfull : 'محاذاه تلقائية',
26 | insertorderedlist : 'قائمة مرقمه',
27 | insertunorderedlist : 'قائمة نقطية',
28 | indent : 'إزاحه النص',
29 | outdent : 'إلغاء الازاحة',
30 | subscript : 'أسفل النص',
31 | superscript : 'أعلى النص',
32 | formatblock : 'Paragraph format',
33 | fontname : 'نوع الخط',
34 | fontsize : 'حجم الخط',
35 | forecolor : 'لون النص',
36 | hilitecolor : 'لون خلفية النص',
37 | bold : 'عريض(Ctrl+B)',
38 | italic : 'مائل(Ctrl+I)',
39 | underline : 'خط تحت النص(Ctrl+U)',
40 | strikethrough : 'خط على النص',
41 | removeformat : 'إزالة التنسيق',
42 | image : 'إدراج صورة',
43 | multiimage : 'Multi image',
44 | flash : 'إدراج فلاش',
45 | media : 'إدراج وسائط متعددة',
46 | table : 'إدراج جدول',
47 | tablecell : 'خلية',
48 | hr : 'إدراج خط أفقي',
49 | emoticons : 'إدراج وجه ضاحك',
50 | link : 'رابط',
51 | unlink : 'إزالة الرابط',
52 | fullscreen : 'محرر ملئ الشاشة',
53 | about : 'حول',
54 | print : 'طباعة',
55 | filemanager : 'مدير الملفات',
56 | code : 'إدراج نص برمجي',
57 | map : 'خرائط قووقل',
58 | baidumap : 'خرائط قووقل',
59 | lineheight : 'إرتفاع السطر',
60 | clearhtml : 'مسح كود HTML',
61 | pagebreak : 'إدراج فاصل صفحات',
62 | quickformat : 'تنسيق سريع',
63 | insertfile : 'إدراج ملف',
64 | template : 'إدراج قالب',
65 | anchor : 'رابط',
66 | yes : 'موافق',
67 | no : 'إلغاء',
68 | close : 'إغلاق',
69 | editImage : 'خصائص الصورة',
70 | deleteImage : 'حذفالصورة',
71 | editFlash : 'خصائص الفلاش',
72 | deleteFlash : 'حذف الفلاش',
73 | editMedia : 'خصائص الوسائط',
74 | deleteMedia : 'حذف الوسائط',
75 | editLink : 'خصائص الرابط',
76 | deleteLink : 'إزالة الرابط',
77 | tableprop : 'خصائص الجدول',
78 | tablecellprop : 'خصائص الخلية',
79 | tableinsert : 'إدراج جدول',
80 | tabledelete : 'حذف جدول',
81 | tablecolinsertleft : 'إدراج عمود لليسار',
82 | tablecolinsertright : 'إدراج عمود لليسار',
83 | tablerowinsertabove : 'إدراج صف للأعلى',
84 | tablerowinsertbelow : 'إدراج صف للأسفل',
85 | tablerowmerge : 'دمج للأسفل',
86 | tablecolmerge : 'دمج لليمين',
87 | tablerowsplit : 'تقسم الصف',
88 | tablecolsplit : 'تقسيم العمود',
89 | tablecoldelete : 'حذف العمود',
90 | tablerowdelete : 'حذف الصف',
91 | noColor : 'إفتراضي',
92 | pleaseSelectFile : 'Please select file.',
93 | invalidImg : "الرجاء إدخال رابط صحيح.\nالملفات المسموح بها: jpg,gif,bmp,png",
94 | invalidMedia : "الرجاء إدخال رابط صحيح.\nالملفات المسموح بها: swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb",
95 | invalidWidth : "العرض يجب أن يكون رقم.",
96 | invalidHeight : "الإرتفاع يجب أن يكون رقم.",
97 | invalidBorder : "عرض الحد يجب أن يكون رقم.",
98 | invalidUrl : "الرجاء إدخال رابط حيح.",
99 | invalidRows : 'صفوف غير صحيح.',
100 | invalidCols : 'أعمدة غير صحيحة.',
101 | invalidPadding : 'The padding must be number.',
102 | invalidSpacing : 'The spacing must be number.',
103 | invalidJson : 'Invalid JSON string.',
104 | uploadSuccess : 'تم رفع الملف بنجاح.',
105 | cutError : 'حاليا غير مدعومة من المتصفح, إستخدم إختصار لوحة المفاتيح (Ctrl+X).',
106 | copyError : 'حاليا غير مدعومة من المتصفح, إستخدم إختصار لوحة المفاتيح (Ctrl+C).',
107 | pasteError : 'حاليا غير مدعومة من المتصفح, إستخدم إختصار لوحة المفاتيح (Ctrl+V).',
108 | ajaxLoading : 'Loading ...',
109 | uploadLoading : 'Uploading ...',
110 | uploadError : 'Upload Error',
111 | 'plainpaste.comment' : 'إستخدم إختصار لوحة المفاتيح (Ctrl+V) للصق داخل النافذة.',
112 | 'wordpaste.comment' : 'إستخدم إختصار لوحة المفاتيح (Ctrl+V) للصق داخل النافذة.',
113 | 'code.pleaseInput' : 'Please input code.',
114 | 'link.url' : 'الرابط',
115 | 'link.linkType' : 'الهدف',
116 | 'link.newWindow' : 'نافذة جديدة',
117 | 'link.selfWindow' : 'نفس النافذة',
118 | 'flash.url' : 'الرابط',
119 | 'flash.width' : 'العرض',
120 | 'flash.height' : 'الإرتفاع',
121 | 'flash.upload' : 'رفع',
122 | 'flash.viewServer' : 'أستعراض',
123 | 'media.url' : 'الرابط',
124 | 'media.width' : 'العرض',
125 | 'media.height' : 'الإرتفاع',
126 | 'media.autostart' : 'تشغيل تلقائي',
127 | 'media.upload' : 'رفع',
128 | 'media.viewServer' : 'أستعراض',
129 | 'image.remoteImage' : 'إدراج الرابط',
130 | 'image.localImage' : 'رفع',
131 | 'image.remoteUrl' : 'الرابط',
132 | 'image.localUrl' : 'الملف',
133 | 'image.size' : 'الحجم',
134 | 'image.width' : 'العرض',
135 | 'image.height' : 'الإرتفاع',
136 | 'image.resetSize' : 'إستعادة الأبعاد',
137 | 'image.align' : 'محاذاة',
138 | 'image.defaultAlign' : 'الإفتراضي',
139 | 'image.leftAlign' : 'اليسار',
140 | 'image.rightAlign' : 'اليمين',
141 | 'image.imgTitle' : 'العنوان',
142 | 'image.upload' : 'أستعراض',
143 | 'image.viewServer' : 'أستعراض',
144 | 'multiimage.uploadDesc' : 'Allows users to upload <%=uploadLimit%> images, single image size not exceeding <%=sizeLimit%>',
145 | 'multiimage.startUpload' : 'Start upload',
146 | 'multiimage.clearAll' : 'Clear all',
147 | 'multiimage.insertAll' : 'Insert all',
148 | 'multiimage.queueLimitExceeded' : 'Queue limit exceeded.',
149 | 'multiimage.fileExceedsSizeLimit' : 'File exceeds size limit.',
150 | 'multiimage.zeroByteFile' : 'Zero byte file.',
151 | 'multiimage.invalidFiletype' : 'Invalid file type.',
152 | 'multiimage.unknownError' : 'Unknown upload error.',
153 | 'multiimage.pending' : 'Pending ...',
154 | 'multiimage.uploadError' : 'Upload error',
155 | 'filemanager.emptyFolder' : 'فارغ',
156 | 'filemanager.moveup' : 'المجلد الأب',
157 | 'filemanager.viewType' : 'العرض: ',
158 | 'filemanager.viewImage' : 'مصغرات',
159 | 'filemanager.listImage' : 'قائمة',
160 | 'filemanager.orderType' : 'الترتيب: ',
161 | 'filemanager.fileName' : 'بالإسم',
162 | 'filemanager.fileSize' : 'بالحجم',
163 | 'filemanager.fileType' : 'بالنوع',
164 | 'insertfile.url' : 'الرابط',
165 | 'insertfile.title' : 'العنوان',
166 | 'insertfile.upload' : 'رفع',
167 | 'insertfile.viewServer' : 'أستعراض',
168 | 'table.cells' : 'خلايا',
169 | 'table.rows' : 'صفوف',
170 | 'table.cols' : 'أعمدة',
171 | 'table.size' : 'الأبعاد',
172 | 'table.width' : 'العرض',
173 | 'table.height' : 'الإرتفاع',
174 | 'table.percent' : '%',
175 | 'table.px' : 'px',
176 | 'table.space' : 'الخارج',
177 | 'table.padding' : 'الداخل',
178 | 'table.spacing' : 'الفراغات',
179 | 'table.align' : 'محاذاه',
180 | 'table.textAlign' : 'افقى',
181 | 'table.verticalAlign' : 'رأسي',
182 | 'table.alignDefault' : 'إفتراضي',
183 | 'table.alignLeft' : 'يسار',
184 | 'table.alignCenter' : 'وسط',
185 | 'table.alignRight' : 'يمين',
186 | 'table.alignTop' : 'أعلى',
187 | 'table.alignMiddle' : 'منتصف',
188 | 'table.alignBottom' : 'أسفل',
189 | 'table.alignBaseline' : 'Baseline',
190 | 'table.border' : 'الحدود',
191 | 'table.borderWidth' : 'العرض',
192 | 'table.borderColor' : 'اللون',
193 | 'table.backgroundColor' : 'الخلفية',
194 | 'map.address' : 'العنوان: ',
195 | 'map.search' : 'بحث',
196 | 'baidumap.address' : 'العنوان: ',
197 | 'baidumap.search' : 'بحث',
198 | 'baidumap.insertDynamicMap' : 'Dynamic Map',
199 | 'anchor.name' : 'إسم الرابط',
200 | 'formatblock.formatBlock' : {
201 | h1 : 'عنوان 1',
202 | h2 : 'عنوان 2',
203 | h3 : 'عنوان 3',
204 | h4 : 'عنوان 4',
205 | p : 'عادي'
206 | },
207 | 'fontname.fontName' : {
208 | 'Arial' : 'Arial',
209 | 'Arial Black' : 'Arial Black',
210 | 'Comic Sans MS' : 'Comic Sans MS',
211 | 'Courier New' : 'Courier New',
212 | 'Garamond' : 'Garamond',
213 | 'Georgia' : 'Georgia',
214 | 'Tahoma' : 'Tahoma',
215 | 'Times New Roman' : 'Times New Roman',
216 | 'Trebuchet MS' : 'Trebuchet MS',
217 | 'Verdana' : 'Verdana'
218 | },
219 | 'lineheight.lineHeight' : [
220 | {'1' : 'إرتفاع السطر 1'},
221 | {'1.5' : 'إرتفاع السطر 1.5'},
222 | {'2' : 'إرتفاع السطر 2'},
223 | {'2.5' : 'إرتفاع السطر 2.5'},
224 | {'3' : 'إرتفاع السطر 3'}
225 | ],
226 | 'template.selectTemplate' : 'قالب',
227 | 'template.replaceContent' : 'إستبدال المحتوى الحالي',
228 | 'template.fileList' : {
229 | '1.html' : 'صورة ونص',
230 | '2.html' : 'جدول',
231 | '3.html' : 'قائمة'
232 | }
233 | }, 'ar');
234 |
--------------------------------------------------------------------------------
/lang/en.js:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * KindEditor - WYSIWYG HTML Editor for Internet
3 | * Copyright (C) 2006-2011 kindsoft.net
4 | *
5 | * @author Roddy
6 | * @site http://www.kindsoft.net/
7 | * @licence http://www.kindsoft.net/license.php
8 | *******************************************************************************/
9 |
10 | KindEditor.lang({
11 | source : 'Source',
12 | preview : 'Preview',
13 | undo : 'Undo(Ctrl+Z)',
14 | redo : 'Redo(Ctrl+Y)',
15 | cut : 'Cut(Ctrl+X)',
16 | copy : 'Copy(Ctrl+C)',
17 | paste : 'Paste(Ctrl+V)',
18 | plainpaste : 'Paste as plain text',
19 | wordpaste : 'Paste from Word',
20 | selectall : 'Select all',
21 | justifyleft : 'Align left',
22 | justifycenter : 'Align center',
23 | justifyright : 'Align right',
24 | justifyfull : 'Align full',
25 | insertorderedlist : 'Ordered list',
26 | insertunorderedlist : 'Unordered list',
27 | indent : 'Increase indent',
28 | outdent : 'Decrease indent',
29 | subscript : 'Subscript',
30 | superscript : 'Superscript',
31 | formatblock : 'Paragraph format',
32 | fontname : 'Font family',
33 | fontsize : 'Font size',
34 | forecolor : 'Text color',
35 | hilitecolor : 'Highlight color',
36 | bold : 'Bold(Ctrl+B)',
37 | italic : 'Italic(Ctrl+I)',
38 | underline : 'Underline(Ctrl+U)',
39 | strikethrough : 'Strikethrough',
40 | removeformat : 'Remove format',
41 | image : 'Image',
42 | multiimage : 'Multi image',
43 | flash : 'Flash',
44 | media : 'Embeded media',
45 | table : 'Table',
46 | tablecell : 'Cell',
47 | hr : 'Insert horizontal line',
48 | emoticons : 'Insert emoticon',
49 | link : 'Link',
50 | unlink : 'Unlink',
51 | fullscreen : 'Toggle fullscreen mode',
52 | about : 'About',
53 | print : 'Print',
54 | filemanager : 'File Manager',
55 | code : 'Insert code',
56 | map : 'Google Maps',
57 | baidumap : 'Baidu Maps',
58 | lineheight : 'Line height',
59 | clearhtml : 'Clear HTML code',
60 | pagebreak : 'Insert Page Break',
61 | quickformat : 'Quick Format',
62 | insertfile : 'Insert file',
63 | template : 'Insert Template',
64 | anchor : 'Anchor',
65 | yes : 'OK',
66 | no : 'Cancel',
67 | close : 'Close',
68 | editImage : 'Image properties',
69 | deleteImage : 'Delete image',
70 | editFlash : 'Flash properties',
71 | deleteFlash : 'Delete flash',
72 | editMedia : 'Media properties',
73 | deleteMedia : 'Delete media',
74 | editLink : 'Link properties',
75 | deleteLink : 'Unlink',
76 | tableprop : 'Table properties',
77 | tablecellprop : 'Cell properties',
78 | tableinsert : 'Insert table',
79 | tabledelete : 'Delete table',
80 | tablecolinsertleft : 'Insert column left',
81 | tablecolinsertright : 'Insert column right',
82 | tablerowinsertabove : 'Insert row above',
83 | tablerowinsertbelow : 'Insert row below',
84 | tablerowmerge : 'Merge down',
85 | tablecolmerge : 'Merge right',
86 | tablerowsplit : 'Split row',
87 | tablecolsplit : 'Split column',
88 | tablecoldelete : 'Delete column',
89 | tablerowdelete : 'Delete row',
90 | noColor : 'Default',
91 | pleaseSelectFile : 'Please select file.',
92 | invalidImg : "Please type valid URL.\nAllowed file extension: jpg,gif,bmp,png",
93 | invalidMedia : "Please type valid URL.\nAllowed file extension: swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb",
94 | invalidWidth : "The width must be number.",
95 | invalidHeight : "The height must be number.",
96 | invalidBorder : "The border must be number.",
97 | invalidUrl : "Please type valid URL.",
98 | invalidRows : 'Invalid rows.',
99 | invalidCols : 'Invalid columns.',
100 | invalidPadding : 'The padding must be number.',
101 | invalidSpacing : 'The spacing must be number.',
102 | invalidJson : 'Invalid JSON string.',
103 | uploadSuccess : 'Upload success.',
104 | cutError : 'Currently not supported by your browser, use keyboard shortcut(Ctrl+X) instead.',
105 | copyError : 'Currently not supported by your browser, use keyboard shortcut(Ctrl+C) instead.',
106 | pasteError : 'Currently not supported by your browser, use keyboard shortcut(Ctrl+V) instead.',
107 | ajaxLoading : 'Loading ...',
108 | uploadLoading : 'Uploading ...',
109 | uploadError : 'Upload Error',
110 | 'plainpaste.comment' : 'Use keyboard shortcut(Ctrl+V) to paste the text into the window.',
111 | 'wordpaste.comment' : 'Use keyboard shortcut(Ctrl+V) to paste the text into the window.',
112 | 'code.pleaseInput' : 'Please input code.',
113 | 'link.url' : 'URL',
114 | 'link.linkType' : 'Target',
115 | 'link.newWindow' : 'New window',
116 | 'link.selfWindow' : 'Same window',
117 | 'flash.url' : 'URL',
118 | 'flash.width' : 'Width',
119 | 'flash.height' : 'Height',
120 | 'flash.upload' : 'Upload',
121 | 'flash.viewServer' : 'Browse',
122 | 'media.url' : 'URL',
123 | 'media.width' : 'Width',
124 | 'media.height' : 'Height',
125 | 'media.autostart' : 'Auto start',
126 | 'media.upload' : 'Upload',
127 | 'media.viewServer' : 'Browse',
128 | 'image.remoteImage' : 'Insert URL',
129 | 'image.localImage' : 'Upload',
130 | 'image.remoteUrl' : 'URL',
131 | 'image.localUrl' : 'File',
132 | 'image.size' : 'Size',
133 | 'image.width' : 'Width',
134 | 'image.height' : 'Height',
135 | 'image.resetSize' : 'Reset dimensions',
136 | 'image.align' : 'Align',
137 | 'image.defaultAlign' : 'Default',
138 | 'image.leftAlign' : 'Left',
139 | 'image.rightAlign' : 'Right',
140 | 'image.imgTitle' : 'Title',
141 | 'image.upload' : 'Browse',
142 | 'image.viewServer' : 'Browse',
143 | 'multiimage.uploadDesc' : 'Allows users to upload <%=uploadLimit%> images, single image size not exceeding <%=sizeLimit%>',
144 | 'multiimage.startUpload' : 'Start upload',
145 | 'multiimage.clearAll' : 'Clear all',
146 | 'multiimage.insertAll' : 'Insert all',
147 | 'multiimage.queueLimitExceeded' : 'Queue limit exceeded.',
148 | 'multiimage.fileExceedsSizeLimit' : 'File exceeds size limit.',
149 | 'multiimage.zeroByteFile' : 'Zero byte file.',
150 | 'multiimage.invalidFiletype' : 'Invalid file type.',
151 | 'multiimage.unknownError' : 'Unknown upload error.',
152 | 'multiimage.pending' : 'Pending ...',
153 | 'multiimage.uploadError' : 'Upload error',
154 | 'filemanager.emptyFolder' : 'Blank',
155 | 'filemanager.moveup' : 'Parent folder',
156 | 'filemanager.viewType' : 'Display: ',
157 | 'filemanager.viewImage' : 'Thumbnails',
158 | 'filemanager.listImage' : 'List',
159 | 'filemanager.orderType' : 'Sorting: ',
160 | 'filemanager.fileName' : 'By name',
161 | 'filemanager.fileSize' : 'By size',
162 | 'filemanager.fileType' : 'By type',
163 | 'insertfile.url' : 'URL',
164 | 'insertfile.title' : 'Title',
165 | 'insertfile.upload' : 'Upload',
166 | 'insertfile.viewServer' : 'Browse',
167 | 'table.cells' : 'Cells',
168 | 'table.rows' : 'Rows',
169 | 'table.cols' : 'Columns',
170 | 'table.size' : 'Dimensions',
171 | 'table.width' : 'Width',
172 | 'table.height' : 'Height',
173 | 'table.percent' : '%',
174 | 'table.px' : 'px',
175 | 'table.space' : 'Space',
176 | 'table.padding' : 'Padding',
177 | 'table.spacing' : 'Spacing',
178 | 'table.align' : 'Align',
179 | 'table.textAlign' : 'Horizontal',
180 | 'table.verticalAlign' : 'Vertical',
181 | 'table.alignDefault' : 'Default',
182 | 'table.alignLeft' : 'Left',
183 | 'table.alignCenter' : 'Center',
184 | 'table.alignRight' : 'Right',
185 | 'table.alignTop' : 'Top',
186 | 'table.alignMiddle' : 'Middle',
187 | 'table.alignBottom' : 'Bottom',
188 | 'table.alignBaseline' : 'Baseline',
189 | 'table.border' : 'Border',
190 | 'table.borderWidth' : 'Width',
191 | 'table.borderColor' : 'Color',
192 | 'table.backgroundColor' : 'Background',
193 | 'map.address' : 'Address: ',
194 | 'map.search' : 'Search',
195 | 'baidumap.address' : 'Address: ',
196 | 'baidumap.search' : 'Search',
197 | 'baidumap.insertDynamicMap' : 'Dynamic Map',
198 | 'anchor.name' : 'Anchor name',
199 | 'formatblock.formatBlock' : {
200 | h1 : 'Heading 1',
201 | h2 : 'Heading 2',
202 | h3 : 'Heading 3',
203 | h4 : 'Heading 4',
204 | p : 'Normal'
205 | },
206 | 'fontname.fontName' : {
207 | 'Arial' : 'Arial',
208 | 'Arial Black' : 'Arial Black',
209 | 'Comic Sans MS' : 'Comic Sans MS',
210 | 'Courier New' : 'Courier New',
211 | 'Garamond' : 'Garamond',
212 | 'Georgia' : 'Georgia',
213 | 'Tahoma' : 'Tahoma',
214 | 'Times New Roman' : 'Times New Roman',
215 | 'Trebuchet MS' : 'Trebuchet MS',
216 | 'Verdana' : 'Verdana'
217 | },
218 | 'lineheight.lineHeight' : [
219 | {'1' : 'Line height 1'},
220 | {'1.5' : 'Line height 1.5'},
221 | {'2' : 'Line height 2'},
222 | {'2.5' : 'Line height 2.5'},
223 | {'3' : 'Line height 3'}
224 | ],
225 | 'template.selectTemplate' : 'Template',
226 | 'template.replaceContent' : 'Replace current content',
227 | 'template.fileList' : {
228 | '1.html' : 'Image and Text',
229 | '2.html' : 'Table',
230 | '3.html' : 'List'
231 | }
232 | }, 'en');
233 |
--------------------------------------------------------------------------------
/lang/ko.js:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * KindEditor - WYSIWYG HTML Editor for Internet
3 | * Copyright (C) 2006-2011 kindsoft.net
4 | *
5 | * @author Composite
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 : '워드 문서로 붙여넣기',
20 | selectall : '전체 선택',
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 | multiimage : '여러 이미지 추가',
43 | flash : '플래시 추가',
44 | media : '미디어 추가',
45 | table : '표',
46 | tablecell : '열',
47 | hr : '구분선 추가',
48 | emoticons : '이모티콘 추가',
49 | link : '링크',
50 | unlink : '링크 제거',
51 | fullscreen : '전체 화면 모드',
52 | about : '이 에디터는...',
53 | print : '인쇄',
54 | filemanager : '파일 관리자',
55 | code : '코드 추가',
56 | map : '구글 맵 추가',
57 | baidumap : '바이두 맵 추가',
58 | lineheight : '행 간격',
59 | clearhtml : 'HTML 코드 정리',
60 | pagebreak : '페이지 구분 추가',
61 | quickformat : '빠른 형식',
62 | insertfile : '파일 추가',
63 | template : '템플릿 추가',
64 | anchor : '책갈피',
65 | yes : '확인',
66 | no : '취소',
67 | close : '닫기',
68 | editImage : '이미지 속성',
69 | deleteImage : '이미지 삭제',
70 | editFlash : '플래시 속성',
71 | deleteFlash : '플래시 삭제',
72 | editMedia : '미디어 속성',
73 | deleteMedia : '미디어 삭제',
74 | editLink : '링크 속성',
75 | deleteLink : '링크 삭제',
76 | tableprop : '표 속성',
77 | tablecellprop : '열 속성',
78 | tableinsert : '표 추가',
79 | tabledelete : '표 삭제',
80 | tablecolinsertleft : '왼쪽으로 열 추가',
81 | tablecolinsertright : '오른쪽으로 열 추가',
82 | tablerowinsertabove : '위쪽으로 열 추가',
83 | tablerowinsertbelow : '아래쪽으로 열 추가',
84 | tablerowmerge : '아래로 병합',
85 | tablecolmerge : '오른쪽으로 병합',
86 | tablerowsplit : '행 나누기',
87 | tablecolsplit : '열 나누기',
88 | tablecoldelete : '열 삭제',
89 | tablerowdelete : '행 삭제',
90 | noColor : '기본색',
91 | pleaseSelectFile : '파일 선택',
92 | invalidImg : "올바른 주소를 입력하세요.\njpg,gif,bmp,png 형식이 가능합니다.",
93 | invalidMedia : "올바른 주소를 입력하세요.\nswf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb 형식이 가능합니다.",
94 | invalidWidth : "넓이 값은 숫자여야 합니다.",
95 | invalidHeight : "높이 값은 숫자여야 합니다.",
96 | invalidBorder : "굵기 값은 숫자여야 합니다.",
97 | invalidUrl : "올바른 주소를 입력하세요.",
98 | invalidRows : '올바른 행이 아닙니다.',
99 | invalidCols : '올바른 열이 아닙니다.',
100 | invalidPadding : '안쪽 여백 값은 숫자여야 합니다.',
101 | invalidSpacing : '간격 길이 값은 숫자여야 합니다.',
102 | invalidJson : '올바른 JSON 형식이 아닙니다.',
103 | uploadSuccess : '업로드가 완료되었습니다.',
104 | cutError : '브라우저가 잘라내기 기능을 지원하지 않습니다, 단축키로 대신 사용하세요. (Ctrl+X)',
105 | copyError : '브라우저가 복사 기능을 지원하지 않습니다, 단축키로 대신 사용하세요. (Ctrl+X)',
106 | pasteError : '브라우저가 붙여넣기 기능을 지원하지 않습니다, 단축키로 대신 사용하세요. (Ctrl+X)',
107 | ajaxLoading : '불러오는 중 ...',
108 | uploadLoading : '업로드 중 ...',
109 | uploadError : '업로드 오류',
110 | 'plainpaste.comment' : '단축키(Ctrl+V)를 통하여 여기에 텍스트를 붙여넣으세요.',
111 | 'wordpaste.comment' : '단축키(Ctrl+V)를 통하여 여기에 워드 텍스트를 붙여넣으세요.',
112 | 'code.pleaseInput' : 'Please input code.',
113 | 'link.url' : '주소',
114 | 'link.linkType' : '창',
115 | 'link.newWindow' : '새 창',
116 | 'link.selfWindow' : '현재 창',
117 | 'flash.url' : '주소',
118 | 'flash.width' : '넓이',
119 | 'flash.height' : '높이',
120 | 'flash.upload' : '업로드',
121 | 'flash.viewServer' : '찾아보기',
122 | 'media.url' : '주소',
123 | 'media.width' : '넓이',
124 | 'media.height' : '높이',
125 | 'media.autostart' : '자동 시작',
126 | 'media.upload' : '업로드',
127 | 'media.viewServer' : '찾아보기',
128 | 'image.remoteImage' : '외부 이미지',
129 | 'image.localImage' : '내부 이미지',
130 | 'image.remoteUrl' : '주소',
131 | 'image.localUrl' : '파일',
132 | 'image.size' : '크기',
133 | 'image.width' : '넓이',
134 | 'image.height' : '높이',
135 | 'image.resetSize' : '기본 크기로',
136 | 'image.align' : '정렬',
137 | 'image.defaultAlign' : '기본',
138 | 'image.leftAlign' : '왼쪽',
139 | 'image.rightAlign' : '오른쪽',
140 | 'image.imgTitle' : '제목',
141 | 'image.upload' : '찾아보기',
142 | 'image.viewServer' : '찾아보기',
143 | 'multiimage.uploadDesc' : '최대 이미지 개수: <%=uploadLimit%>개, 개당 이미지 크기: <%=sizeLimit%>',
144 | 'multiimage.startUpload' : '업로드 시작',
145 | 'multiimage.clearAll' : '모두 삭제',
146 | 'multiimage.insertAll' : '모두 삽입',
147 | 'multiimage.queueLimitExceeded' : '업로드 개수가 초과되었습니다.',
148 | 'multiimage.fileExceedsSizeLimit' : '업로드 크기가 초과되었습니다.',
149 | 'multiimage.zeroByteFile' : '파일 크기가 없습니다.',
150 | 'multiimage.invalidFiletype' : '올바른 이미지가 아닙니다.',
151 | 'multiimage.unknownError' : '알 수 없는 업로드 오류가 발생하였습니다.',
152 | 'multiimage.pending' : '처리 중 ...',
153 | 'multiimage.uploadError' : '업로드 오류',
154 | 'filemanager.emptyFolder' : '빈 폴더',
155 | 'filemanager.moveup' : '위로',
156 | 'filemanager.viewType' : '보기 방식: ',
157 | 'filemanager.viewImage' : '미리 보기',
158 | 'filemanager.listImage' : '목록',
159 | 'filemanager.orderType' : '정렬 방식: ',
160 | 'filemanager.fileName' : '이름별',
161 | 'filemanager.fileSize' : '크기별',
162 | 'filemanager.fileType' : '종류별',
163 | 'insertfile.url' : '주소',
164 | 'insertfile.title' : '제목',
165 | 'insertfile.upload' : '업로드',
166 | 'insertfile.viewServer' : '찾아보기',
167 | 'table.cells' : '열',
168 | 'table.rows' : '행',
169 | 'table.cols' : '열',
170 | 'table.size' : '표 크기',
171 | 'table.width' : '넓이',
172 | 'table.height' : '높이',
173 | 'table.percent' : '%',
174 | 'table.px' : 'px',
175 | 'table.space' : '간격',
176 | 'table.padding' : '안쪽여백',
177 | 'table.spacing' : '간격',
178 | 'table.align' : '정렬',
179 | 'table.textAlign' : '수직',
180 | 'table.verticalAlign' : '수평',
181 | 'table.alignDefault' : '기본',
182 | 'table.alignLeft' : '왼쪽',
183 | 'table.alignCenter' : '가운데',
184 | 'table.alignRight' : '오른쪽',
185 | 'table.alignTop' : '위쪽',
186 | 'table.alignMiddle' : '중간',
187 | 'table.alignBottom' : '아래쪽',
188 | 'table.alignBaseline' : '글자기준',
189 | 'table.border' : '테두리',
190 | 'table.borderWidth' : '크기',
191 | 'table.borderColor' : '색상',
192 | 'table.backgroundColor' : '배경',
193 | 'map.address' : '주소: ',
194 | 'map.search' : '검색',
195 | 'baidumap.address' : '주소: ',
196 | 'baidumap.search' : '검색',
197 | 'baidumap.insertDynamicMap' : '동적 지도',
198 | 'anchor.name' : '책갈피명',
199 | 'formatblock.formatBlock' : {
200 | h1 : '제목 1',
201 | h2 : '제목 2',
202 | h3 : '제목 3',
203 | h4 : '제목 4',
204 | p : '본문'
205 | },
206 | 'fontname.fontName' : {
207 | 'Gulim' : '굴림',
208 | 'Dotum' : '돋움',
209 | 'Batang' : '바탕',
210 | 'Gungsuh' : '궁서',
211 | 'Malgun Gothic' : '맑은 고딕',
212 | 'Arial' : 'Arial',
213 | 'Arial Black' : 'Arial Black',
214 | 'Comic Sans MS' : 'Comic Sans MS',
215 | 'Courier New' : 'Courier New',
216 | 'Garamond' : 'Garamond',
217 | 'Georgia' : 'Georgia',
218 | 'Tahoma' : 'Tahoma',
219 | 'Times New Roman' : 'Times New Roman',
220 | 'Trebuchet MS' : 'Trebuchet MS',
221 | 'Verdana' : 'Verdana'
222 | },
223 | 'lineheight.lineHeight' : [
224 | {'1' : '행간 1'},
225 | {'1.5' : '행간 1.5'},
226 | {'2' : '행간 2'},
227 | {'2.5' : '행간 2.5'},
228 | {'3' : '행간 3'}
229 | ],
230 | 'template.selectTemplate' : '템플릿',
231 | 'template.replaceContent' : '내용 바꾸기',
232 | 'template.fileList' : {
233 | '1.html' : '이미지와 텍스트',
234 | '2.html' : '표',
235 | '3.html' : '목록'
236 | }
237 | }, 'ko');
238 |
--------------------------------------------------------------------------------
/lang/zh_CN.js:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * KindEditor - WYSIWYG HTML Editor for Internet
3 | * Copyright (C) 2006-2011 kindsoft.net
4 | *
5 | * @author Roddy
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 | multiimage : '批量图片上传',
43 | flash : 'Flash',
44 | media : '视音频',
45 | table : '表格',
46 | tablecell : '单元格',
47 | hr : '插入横线',
48 | emoticons : '插入表情',
49 | link : '超级链接',
50 | unlink : '取消超级链接',
51 | fullscreen : '全屏显示',
52 | about : '关于',
53 | print : '打印(Ctrl+P)',
54 | filemanager : '文件空间',
55 | code : '插入程序代码',
56 | map : 'Google地图',
57 | baidumap : '百度地图',
58 | lineheight : '行距',
59 | clearhtml : '清理HTML代码',
60 | pagebreak : '插入分页符',
61 | quickformat : '一键排版',
62 | insertfile : '插入文件',
63 | template : '插入模板',
64 | anchor : '锚点',
65 | yes : '确定',
66 | no : '取消',
67 | close : '关闭',
68 | editImage : '图片属性',
69 | deleteImage : '删除图片',
70 | editFlash : 'Flash属性',
71 | deleteFlash : '删除Flash',
72 | editMedia : '视音频属性',
73 | deleteMedia : '删除视音频',
74 | editLink : '超级链接属性',
75 | deleteLink : '取消超级链接',
76 | editAnchor : '锚点属性',
77 | deleteAnchor : '删除锚点',
78 | tableprop : '表格属性',
79 | tablecellprop : '单元格属性',
80 | tableinsert : '插入表格',
81 | tabledelete : '删除表格',
82 | tablecolinsertleft : '左侧插入列',
83 | tablecolinsertright : '右侧插入列',
84 | tablerowinsertabove : '上方插入行',
85 | tablerowinsertbelow : '下方插入行',
86 | tablerowmerge : '向下合并单元格',
87 | tablecolmerge : '向右合并单元格',
88 | tablerowsplit : '拆分行',
89 | tablecolsplit : '拆分列',
90 | tablecoldelete : '删除列',
91 | tablerowdelete : '删除行',
92 | noColor : '无颜色',
93 | pleaseSelectFile : '请选择文件。',
94 | invalidImg : "请输入有效的URL地址。\n只允许jpg,gif,bmp,png格式。",
95 | invalidMedia : "请输入有效的URL地址。\n只允许swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb格式。",
96 | invalidWidth : "宽度必须为数字。",
97 | invalidHeight : "高度必须为数字。",
98 | invalidBorder : "边框必须为数字。",
99 | invalidUrl : "请输入有效的URL地址。",
100 | invalidRows : '行数为必选项,只允许输入大于0的数字。',
101 | invalidCols : '列数为必选项,只允许输入大于0的数字。',
102 | invalidPadding : '边距必须为数字。',
103 | invalidSpacing : '间距必须为数字。',
104 | invalidJson : '服务器发生故障。',
105 | uploadSuccess : '上传成功。',
106 | cutError : '您的浏览器安全设置不允许使用剪切操作,请使用快捷键(Ctrl+X)来完成。',
107 | copyError : '您的浏览器安全设置不允许使用复制操作,请使用快捷键(Ctrl+C)来完成。',
108 | pasteError : '您的浏览器安全设置不允许使用粘贴操作,请使用快捷键(Ctrl+V)来完成。',
109 | ajaxLoading : '加载中,请稍候 ...',
110 | uploadLoading : '上传中,请稍候 ...',
111 | uploadError : '上传错误',
112 | 'plainpaste.comment' : '请使用快捷键(Ctrl+V)把内容粘贴到下面的方框里。',
113 | 'wordpaste.comment' : '请使用快捷键(Ctrl+V)把内容粘贴到下面的方框里。',
114 | 'code.pleaseInput' : '请输入程序代码。',
115 | 'link.url' : 'URL',
116 | 'link.linkType' : '打开类型',
117 | 'link.newWindow' : '新窗口',
118 | 'link.selfWindow' : '当前窗口',
119 | 'flash.url' : 'URL',
120 | 'flash.width' : '宽度',
121 | 'flash.height' : '高度',
122 | 'flash.upload' : '上传',
123 | 'flash.viewServer' : '文件空间',
124 | 'media.url' : 'URL',
125 | 'media.width' : '宽度',
126 | 'media.height' : '高度',
127 | 'media.autostart' : '自动播放',
128 | 'media.upload' : '上传',
129 | 'media.viewServer' : '文件空间',
130 | 'image.remoteImage' : '网络图片',
131 | 'image.localImage' : '本地上传',
132 | 'image.remoteUrl' : '图片地址',
133 | 'image.localUrl' : '上传文件',
134 | 'image.size' : '图片大小',
135 | 'image.width' : '宽',
136 | 'image.height' : '高',
137 | 'image.resetSize' : '重置大小',
138 | 'image.align' : '对齐方式',
139 | 'image.defaultAlign' : '默认方式',
140 | 'image.leftAlign' : '左对齐',
141 | 'image.rightAlign' : '右对齐',
142 | 'image.imgTitle' : '图片说明',
143 | 'image.upload' : '浏览...',
144 | 'image.viewServer' : '图片空间',
145 | 'multiimage.uploadDesc' : '允许用户同时上传<%=uploadLimit%>张图片,单张图片容量不超过<%=sizeLimit%>',
146 | 'multiimage.startUpload' : '开始上传',
147 | 'multiimage.clearAll' : '全部清空',
148 | 'multiimage.insertAll' : '全部插入',
149 | 'multiimage.queueLimitExceeded' : '文件数量超过限制。',
150 | 'multiimage.fileExceedsSizeLimit' : '文件大小超过限制。',
151 | 'multiimage.zeroByteFile' : '无法上传空文件。',
152 | 'multiimage.invalidFiletype' : '文件类型不正确。',
153 | 'multiimage.unknownError' : '发生异常,无法上传。',
154 | 'multiimage.pending' : '等待上传',
155 | 'multiimage.uploadError' : '上传失败',
156 | 'filemanager.emptyFolder' : '空文件夹',
157 | 'filemanager.moveup' : '移到上一级文件夹',
158 | 'filemanager.viewType' : '显示方式:',
159 | 'filemanager.viewImage' : '缩略图',
160 | 'filemanager.listImage' : '详细信息',
161 | 'filemanager.orderType' : '排序方式:',
162 | 'filemanager.fileName' : '名称',
163 | 'filemanager.fileSize' : '大小',
164 | 'filemanager.fileType' : '类型',
165 | 'insertfile.url' : 'URL',
166 | 'insertfile.title' : '文件说明',
167 | 'insertfile.upload' : '上传',
168 | 'insertfile.viewServer' : '文件空间',
169 | 'table.cells' : '单元格数',
170 | 'table.rows' : '行数',
171 | 'table.cols' : '列数',
172 | 'table.size' : '大小',
173 | 'table.width' : '宽度',
174 | 'table.height' : '高度',
175 | 'table.percent' : '%',
176 | 'table.px' : 'px',
177 | 'table.space' : '边距间距',
178 | 'table.padding' : '边距',
179 | 'table.spacing' : '间距',
180 | 'table.align' : '对齐方式',
181 | 'table.textAlign' : '水平对齐',
182 | 'table.verticalAlign' : '垂直对齐',
183 | 'table.alignDefault' : '默认',
184 | 'table.alignLeft' : '左对齐',
185 | 'table.alignCenter' : '居中',
186 | 'table.alignRight' : '右对齐',
187 | 'table.alignTop' : '顶部',
188 | 'table.alignMiddle' : '中部',
189 | 'table.alignBottom' : '底部',
190 | 'table.alignBaseline' : '基线',
191 | 'table.border' : '边框',
192 | 'table.borderWidth' : '边框',
193 | 'table.borderColor' : '颜色',
194 | 'table.backgroundColor' : '背景颜色',
195 | 'map.address' : '地址: ',
196 | 'map.search' : '搜索',
197 | 'baidumap.address' : '地址: ',
198 | 'baidumap.search' : '搜索',
199 | 'baidumap.insertDynamicMap' : '插入动态地图',
200 | 'anchor.name' : '锚点名称',
201 | 'formatblock.formatBlock' : {
202 | h1 : '标题 1',
203 | h2 : '标题 2',
204 | h3 : '标题 3',
205 | h4 : '标题 4',
206 | p : '正 文'
207 | },
208 | 'fontname.fontName' : {
209 | 'SimSun' : '宋体',
210 | 'NSimSun' : '新宋体',
211 | 'FangSong_GB2312' : '仿宋_GB2312',
212 | 'KaiTi_GB2312' : '楷体_GB2312',
213 | 'SimHei' : '黑体',
214 | 'Microsoft YaHei' : '微软雅黑',
215 | 'Arial' : 'Arial',
216 | 'Arial Black' : 'Arial Black',
217 | 'Times New Roman' : 'Times New Roman',
218 | 'Courier New' : 'Courier New',
219 | 'Tahoma' : 'Tahoma',
220 | 'Verdana' : 'Verdana'
221 | },
222 | 'lineheight.lineHeight' : [
223 | {'1' : '单倍行距'},
224 | {'1.5' : '1.5倍行距'},
225 | {'2' : '2倍行距'},
226 | {'2.5' : '2.5倍行距'},
227 | {'3' : '3倍行距'}
228 | ],
229 | 'template.selectTemplate' : '可选模板',
230 | 'template.replaceContent' : '替换当前内容',
231 | 'template.fileList' : {
232 | '1.html' : '图片和文字',
233 | '2.html' : '表格',
234 | '3.html' : '项目编号'
235 | }
236 | }, 'zh_CN');
237 |
--------------------------------------------------------------------------------
/lang/zh_TW.js:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * KindEditor - WYSIWYG HTML Editor for Internet
3 | * Copyright (C) 2006-2011 kindsoft.net
4 | *
5 | * @author Roddy
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 | multiimage : '批量影像上傳',
43 | flash : 'Flash',
44 | media : '多媒體',
45 | table : '表格',
46 | hr : '插入水平線',
47 | emoticons : '插入表情',
48 | link : '超連結',
49 | unlink : '移除超連結',
50 | fullscreen : '最大化',
51 | about : '關於',
52 | print : '列印(Ctrl+P)',
53 | fileManager : '瀏覽伺服器',
54 | code : '插入程式代碼',
55 | map : 'Google地圖',
56 | baidumap : 'Baidu地圖',
57 | lineheight : '行距',
58 | clearhtml : '清理HTML代碼',
59 | pagebreak : '插入分頁符號',
60 | quickformat : '快速排版',
61 | insertfile : '插入文件',
62 | template : '插入樣板',
63 | anchor : '錨點',
64 | yes : '確定',
65 | no : '取消',
66 | close : '關閉',
67 | editImage : '影像屬性',
68 | deleteImage : '刪除影像',
69 | editFlash : 'Flash屬性',
70 | deleteFlash : '删除Flash',
71 | editMedia : '多媒體屬性',
72 | deleteMedia : '删除多媒體',
73 | editLink : '超連結屬性',
74 | deleteLink : '移除超連結',
75 | tableprop : '表格屬性',
76 | tablecellprop : '儲存格屬性',
77 | tableinsert : '插入表格',
78 | tabledelete : '刪除表格',
79 | tablecolinsertleft : '向左插入列',
80 | tablecolinsertright : '向右插入列',
81 | tablerowinsertabove : '向上插入欄',
82 | tablerowinsertbelow : '下方插入欄',
83 | tablerowmerge : '向下合併單元格',
84 | tablecolmerge : '向右合併單元格',
85 | tablerowsplit : '分割欄',
86 | tablecolsplit : '分割列',
87 | tablecoldelete : '删除列',
88 | tablerowdelete : '删除欄',
89 | noColor : '自動',
90 | pleaseSelectFile : '請選擇文件。',
91 | invalidImg : "請輸入有效的URL。\n只允許jpg,gif,bmp,png格式。",
92 | invalidMedia : "請輸入有效的URL。\n只允許swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb格式。",
93 | invalidWidth : "寬度必須是數字。",
94 | invalidHeight : "高度必須是數字。",
95 | invalidBorder : "邊框必須是數字。",
96 | invalidUrl : "請輸入有效的URL。",
97 | invalidRows : '欄數是必須輸入項目,只允許輸入大於0的數字。',
98 | invalidCols : '列數是必須輸入項目,只允許輸入大於0的數字。',
99 | invalidPadding : '內距必須是數字。',
100 | invalidSpacing : '間距必須是數字。',
101 | invalidBorder : '边框必须为数字。',
102 | pleaseInput : "請輸入內容。",
103 | invalidJson : '伺服器發生故障。',
104 | uploadSuccess : '上傳成功。',
105 | cutError : '您的瀏覽器安全設置不允許使用剪下操作,請使用快捷鍵(Ctrl+X)完成。',
106 | copyError : '您的瀏覽器安全設置不允許使用剪下操作,請使用快捷鍵(Ctrl+C)完成。',
107 | pasteError : '您的瀏覽器安全設置不允許使用剪下操作,請使用快捷鍵(Ctrl+V)完成。',
108 | ajaxLoading : '加載中,請稍候 ...',
109 | uploadLoading : '上傳中,請稍候 ...',
110 | uploadError : '上傳錯誤',
111 | 'plainpaste.comment' : '請使用快捷鍵(Ctrl+V)把內容貼到下方區域裡。',
112 | 'wordpaste.comment' : '請使用快捷鍵(Ctrl+V)把內容貼到下方區域裡。',
113 | 'code.pleaseInput' : 'Please input code.',
114 | 'link.url' : 'URL',
115 | 'link.linkType' : '打開類型',
116 | 'link.newWindow' : '新窗口',
117 | 'link.selfWindow' : '本頁窗口',
118 | 'flash.url' : 'URL',
119 | 'flash.width' : '寬度',
120 | 'flash.height' : '高度',
121 | 'flash.upload' : '上傳',
122 | 'flash.viewServer' : '瀏覽',
123 | 'media.url' : 'URL',
124 | 'media.width' : '寬度',
125 | 'media.height' : '高度',
126 | 'media.autostart' : '自動播放',
127 | 'media.upload' : '上傳',
128 | 'media.viewServer' : '瀏覽',
129 | 'image.remoteImage' : '網絡影像',
130 | 'image.localImage' : '上傳影像',
131 | 'image.remoteUrl' : '影像URL',
132 | 'image.localUrl' : '影像URL',
133 | 'image.size' : '影像大小',
134 | 'image.width' : '寬度',
135 | 'image.height' : '高度',
136 | 'image.resetSize' : '原始大小',
137 | 'image.align' : '對齊方式',
138 | 'image.defaultAlign' : '未設定',
139 | 'image.leftAlign' : '向左對齊',
140 | 'image.rightAlign' : '向右對齊',
141 | 'image.imgTitle' : '影像說明',
142 | 'image.upload' : '瀏覽...',
143 | 'image.viewServer' : '瀏覽...',
144 | 'multiimage.uploadDesc' : 'Allows users to upload <%=uploadLimit%> images, single image size not exceeding <%=sizeLimit%>',
145 | 'multiimage.startUpload' : 'Start upload',
146 | 'multiimage.clearAll' : 'Clear all',
147 | 'multiimage.insertAll' : 'Insert all',
148 | 'multiimage.queueLimitExceeded' : 'Queue limit exceeded.',
149 | 'multiimage.fileExceedsSizeLimit' : 'File exceeds size limit.',
150 | 'multiimage.zeroByteFile' : 'Zero byte file.',
151 | 'multiimage.invalidFiletype' : 'Invalid file type.',
152 | 'multiimage.unknownError' : 'Unknown upload error.',
153 | 'multiimage.pending' : 'Pending ...',
154 | 'multiimage.uploadError' : 'Upload error',
155 | 'filemanager.emptyFolder' : '空文件夾',
156 | 'filemanager.moveup' : '至上一級文件夾',
157 | 'filemanager.viewType' : '顯示方式:',
158 | 'filemanager.viewImage' : '縮略圖',
159 | 'filemanager.listImage' : '詳細信息',
160 | 'filemanager.orderType' : '排序方式:',
161 | 'filemanager.fileName' : '名稱',
162 | 'filemanager.fileSize' : '大小',
163 | 'filemanager.fileType' : '類型',
164 | 'insertfile.url' : 'URL',
165 | 'insertfile.title' : '文件說明',
166 | 'insertfile.upload' : '上傳',
167 | 'insertfile.viewServer' : '瀏覽',
168 | 'table.cells' : '儲存格數',
169 | 'table.rows' : '欄數',
170 | 'table.cols' : '列數',
171 | 'table.size' : '表格大小',
172 | 'table.width' : '寬度',
173 | 'table.height' : '高度',
174 | 'table.percent' : '%',
175 | 'table.px' : 'px',
176 | 'table.space' : '內距間距',
177 | 'table.padding' : '內距',
178 | 'table.spacing' : '間距',
179 | 'table.align' : '對齊方式',
180 | 'table.textAlign' : '水平對齊',
181 | 'table.verticalAlign' : '垂直對齊',
182 | 'table.alignDefault' : '未設定',
183 | 'table.alignLeft' : '向左對齊',
184 | 'table.alignCenter' : '置中',
185 | 'table.alignRight' : '向右對齊',
186 | 'table.alignTop' : '靠上',
187 | 'table.alignMiddle' : '置中',
188 | 'table.alignBottom' : '靠下',
189 | 'table.alignBaseline' : '基線',
190 | 'table.border' : '表格邊框',
191 | 'table.borderWidth' : '邊框',
192 | 'table.borderColor' : '顏色',
193 | 'table.backgroundColor' : '背景顏色',
194 | 'map.address' : '住所: ',
195 | 'map.search' : '尋找',
196 | 'baidumap.address' : '住所: ',
197 | 'baidumap.search' : '尋找',
198 | 'baidumap.insertDynamicMap' : '插入動態地圖',
199 | 'anchor.name' : '錨點名稱',
200 | 'formatblock.formatBlock' : {
201 | h1 : '標題 1',
202 | h2 : '標題 2',
203 | h3 : '標題 3',
204 | h4 : '標題 4',
205 | p : '一般'
206 | },
207 | 'fontname.fontName' : {
208 | 'MingLiU' : '細明體',
209 | 'PMingLiU' : '新細明體',
210 | 'DFKai-SB' : '標楷體',
211 | 'SimSun' : '宋體',
212 | 'NSimSun' : '新宋體',
213 | 'FangSong' : '仿宋體',
214 | 'Arial' : 'Arial',
215 | 'Arial Black' : 'Arial Black',
216 | 'Times New Roman' : 'Times New Roman',
217 | 'Courier New' : 'Courier New',
218 | 'Tahoma' : 'Tahoma',
219 | 'Verdana' : 'Verdana'
220 | },
221 | 'lineheight.lineHeight' : [
222 | {'1' : '单倍行距'},
223 | {'1.5' : '1.5倍行距'},
224 | {'2' : '2倍行距'},
225 | {'2.5' : '2.5倍行距'},
226 | {'3' : '3倍行距'}
227 | ],
228 | 'template.selectTemplate' : '可選樣板',
229 | 'template.replaceContent' : '取代當前內容',
230 | 'template.fileList' : {
231 | '1.html' : '影像和文字',
232 | '2.html' : '表格',
233 | '3.html' : '项目清單'
234 | }
235 | }, 'zh_TW');
236 |
--------------------------------------------------------------------------------
/plugins/anchor/anchor.js:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * KindEditor - WYSIWYG HTML Editor for Internet
3 | * Copyright (C) 2006-2011 kindsoft.net
4 | *
5 | * @author Roddy
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 = ['',
15 | '
',
16 | '',
17 | '',
18 | '
',
19 | '
'].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('').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 | });
47 |
--------------------------------------------------------------------------------
/plugins/autoheight/autoheight.js:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * KindEditor - WYSIWYG HTML Editor for Internet
3 | * Copyright (C) 2006-2011 kindsoft.net
4 | *
5 | * @author Roddy
6 | * @site http://www.kindsoft.net/
7 | * @licence http://www.kindsoft.net/license.php
8 | *******************************************************************************/
9 |
10 | KindEditor.plugin('autoheight', function(K) {
11 | var self = this;
12 |
13 | if (!self.autoHeightMode) {
14 | return;
15 | }
16 |
17 | var minHeight;
18 |
19 | function hideScroll() {
20 | var edit = self.edit;
21 | var body = edit.doc.body;
22 | edit.iframe[0].scroll = 'no';
23 | body.style.overflowY = 'hidden';
24 | }
25 |
26 | function resetHeight() {
27 | var edit = self.edit;
28 | var body = edit.doc.body;
29 | edit.iframe.height(minHeight);
30 | self.resize(null, Math.max((K.IE ? body.scrollHeight : body.offsetHeight) + 76, minHeight));
31 | }
32 |
33 | function init() {
34 | minHeight = K.removeUnit(self.height);
35 |
36 | self.edit.afterChange(resetHeight);
37 | hideScroll();
38 | resetHeight();
39 | }
40 |
41 | if (self.isCreated) {
42 | init();
43 | } else {
44 | self.afterCreate(init);
45 | }
46 | });
47 |
48 | /*
49 | * 如何实现真正的自动高度?
50 | * 修改编辑器高度之后,再次获取body内容高度时,最小值只会是当前iframe的设置高度,这样就导致高度只增不减。
51 | * 所以每次获取body内容高度之前,先将iframe的高度重置为最小高度,这样就能获取body的实际高度。
52 | * 由此就实现了真正的自动高度
53 | * 测试:chrome、firefox、IE9、IE8
54 | * */
55 |
--------------------------------------------------------------------------------
/plugins/baidumap/baidumap.js:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * KindEditor - WYSIWYG HTML Editor for Internet
3 | * Copyright (C) 2006-2011 kindsoft.net
4 | *
5 | * @author Roddy
6 | * @site http://www.kindsoft.net/
7 | * @licence http://www.kindsoft.net/license.php
8 | *******************************************************************************/
9 |
10 | // Baidu Maps: http://dev.baidu.com/wiki/map/index.php?title=%E9%A6%96%E9%A1%B5
11 |
12 | KindEditor.plugin('baidumap', function(K) {
13 | var self = this, name = 'baidumap', lang = self.lang(name + '.');
14 | var mapWidth = K.undef(self.mapWidth, 558);
15 | var mapHeight = K.undef(self.mapHeight, 360);
16 | self.clickToolbar(name, function() {
17 | var html = ['',
18 | '',
32 | '
',
33 | '
'].join('');
34 | var dialog = self.createDialog({
35 | name : name,
36 | width : mapWidth + 42,
37 | title : self.lang(name),
38 | body : html,
39 | yesBtn : {
40 | name : self.lang('yes'),
41 | click : function(e) {
42 | var map = win.map;
43 | var centerObj = map.getCenter();
44 | var center = centerObj.lng + ',' + centerObj.lat;
45 | var zoom = map.getZoom();
46 | var url = [checkbox[0].checked ? self.pluginsPath + 'baidumap/index.html' : 'http://api.map.baidu.com/staticimage',
47 | '?center=' + encodeURIComponent(center),
48 | '&zoom=' + encodeURIComponent(zoom),
49 | '&width=' + mapWidth,
50 | '&height=' + mapHeight,
51 | '&markers=' + encodeURIComponent(center),
52 | '&markerStyles=' + encodeURIComponent('l,A')].join('');
53 | if (checkbox[0].checked) {
54 | self.insertHtml('');
55 | } else {
56 | self.exec('insertimage', url);
57 | }
58 | self.hideDialog().focus();
59 | }
60 | },
61 | beforeRemove : function() {
62 | searchBtn.remove();
63 | if (doc) {
64 | doc.write('');
65 | }
66 | iframe.remove();
67 | }
68 | });
69 | var div = dialog.div,
70 | addressBox = K('[name="address"]', div),
71 | searchBtn = K('[name="searchBtn"]', div),
72 | checkbox = K('[name="insertDynamicMap"]', dialog.div),
73 | win, doc;
74 | var iframe = K('');
75 | function ready() {
76 | win = iframe[0].contentWindow;
77 | doc = K.iframeDoc(iframe);
78 | }
79 | iframe.bind('load', function() {
80 | iframe.unbind('load');
81 | if (K.IE) {
82 | ready();
83 | } else {
84 | setTimeout(ready, 0);
85 | }
86 | });
87 | K('.ke-map', div).replaceWith(iframe);
88 | // search map
89 | searchBtn.click(function() {
90 | win.search(addressBox.val());
91 | });
92 | });
93 | });
94 |
--------------------------------------------------------------------------------
/plugins/baidumap/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 百度地图API自定义地图
8 |
9 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
83 |
--------------------------------------------------------------------------------
/plugins/baidumap/map.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Baidu Maps
6 |
10 |
11 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/plugins/clearhtml/clearhtml.js:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * KindEditor - WYSIWYG HTML Editor for Internet
3 | * Copyright (C) 2006-2011 kindsoft.net
4 | *
5 | * @author Roddy
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(/(
11 |
53 |
54 |
55 |
56 |
57 |