正在显示
100 个修改的文件
包含
2785 行增加
和
0 行删除
addons/nkeditor/Nkeditor.php
0 → 100644
1 | +<?php | ||
2 | + | ||
3 | +namespace addons\nkeditor; | ||
4 | + | ||
5 | +use app\common\library\Menu; | ||
6 | +use think\Addons; | ||
7 | + | ||
8 | +/** | ||
9 | + * 富文本编辑器插件 | ||
10 | + */ | ||
11 | +class Nkeditor extends Addons | ||
12 | +{ | ||
13 | + | ||
14 | + /** | ||
15 | + * 插件安装方法 | ||
16 | + * @return bool | ||
17 | + */ | ||
18 | + public function install() | ||
19 | + { | ||
20 | + | ||
21 | + return true; | ||
22 | + } | ||
23 | + | ||
24 | + /** | ||
25 | + * 插件卸载方法 | ||
26 | + * @return bool | ||
27 | + */ | ||
28 | + public function uninstall() | ||
29 | + { | ||
30 | + | ||
31 | + return true; | ||
32 | + } | ||
33 | + | ||
34 | + /** | ||
35 | + * 插件启用方法 | ||
36 | + * @return bool | ||
37 | + */ | ||
38 | + public function enable() | ||
39 | + { | ||
40 | + | ||
41 | + return true; | ||
42 | + } | ||
43 | + | ||
44 | + /** | ||
45 | + * 插件禁用方法 | ||
46 | + * @return bool | ||
47 | + */ | ||
48 | + public function disable() | ||
49 | + { | ||
50 | + | ||
51 | + return true; | ||
52 | + } | ||
53 | + | ||
54 | + /** | ||
55 | + * @param $params | ||
56 | + */ | ||
57 | + public function configInit(&$params) | ||
58 | + { | ||
59 | + $config = $this->getConfig(); | ||
60 | + $params['nkeditor'] = ['theme' => $config['theme'], 'wordimageserver' => $config['wordimageserver']]; | ||
61 | + } | ||
62 | + | ||
63 | +} |
addons/nkeditor/README.md
0 → 100644
1 | +# NKeditor | ||
2 | +NKedtior是基于 kindeditor 进行二次开发的项目 | ||
3 | +kindeditor 是一款优秀的开源在线编辑器。轻量级且功能强大,代码量却不到百度的ueditor编辑器的一半。可惜已经4年没有更新了,由于业务的需求我们在kindeditor的基础上开发了 NKeditor, 主要做了一下工作: | ||
4 | +1. 调整编辑器和弹出 dialog 的样式,美化了UI | ||
5 | +2. 重写图片上传和批量图片上传插件,使用 html5 上传代替了 flash,实现了待上传图片预览,优化用户体验 | ||
6 | +3. 修复一些已知的bug,如 ajax 提交无法获取内容等 | ||
7 | +4. 新增涂鸦等功能 | ||
8 | + | ||
9 | +再次感谢 kindeditor 的开发者,为我们提供了如此优秀的在线编辑器,让我们能在前人的基础上继续贡献自己的微薄之力。 | ||
10 | + | ||
11 | +# 开源说明 | ||
12 | +本插件基于Nkeditor进行二次开发,修改的核心文件已开源于 https://gitee.com/karson/kindeditor | ||
13 | + | ||
14 | +# 特别感谢 | ||
15 | +[Kindeditor](https://gitee.com/luolonghao/kindeditor) | ||
16 | +[Nkeditor](https://gitee.com/blackfox/kindeditor) | ||
17 | + |
addons/nkeditor/assets/css/common.css
0 → 100644
addons/nkeditor/assets/img/download.png
0 → 100644
1.1 KB
addons/nkeditor/assets/img/downloading.png
0 → 100644
8.6 KB
addons/nkeditor/assets/js/customplugin.js
0 → 100644
1 | +define(['nkeditor-core'], function (Nkeditor) { | ||
2 | + Nkeditor.plugin('multiimage', function (K) { | ||
3 | + var self = this, name = 'multiimage', lang = self.lang(name + '.'), | ||
4 | + allowImages = K.undef(self.allowImages, false); | ||
5 | + | ||
6 | + var click = function () { | ||
7 | + | ||
8 | + var html = [ | ||
9 | + '<div class="ke-dialog-content-inner">', | ||
10 | + '<div class="ke-dialog-row ke-clearfix">', | ||
11 | + '<div class=""><div class="ke-inline-block ke-upload-button">' + | ||
12 | + '<form class="ke-upload-area ke-form nice-validator n-default" method="post" enctype="multipart/form-data" style="width: 266px;margin:50px auto;">' + | ||
13 | + '<span class="ke-button-common"><input type="button" class="ke-button-common ke-button" value="批量上传图片" style="width:128px;"></span><input type="file" class="ke-upload-file" name="imgFiles" multiple style="width:128px;left:0;right:inherit" tabindex="-1">' + | ||
14 | + '<span class="ke-button-common" style="margin-left:10px;"><input type="button" class="ke-button-common ke-button ke-select-image" style="width:128px;" value="从图片空间选择"></span>' + | ||
15 | + '</form>' + | ||
16 | + '</div></span></div>', | ||
17 | + '</div>', | ||
18 | + '</div>' | ||
19 | + ].join(''); | ||
20 | + var dialog = self.createDialog({ | ||
21 | + name: name, | ||
22 | + width: 450, | ||
23 | + height: 260, | ||
24 | + title: self.lang(name), | ||
25 | + body: html, | ||
26 | + noBtn: { | ||
27 | + name: self.lang('no'), | ||
28 | + click: function (e) { | ||
29 | + self.hideDialog().focus(); | ||
30 | + } | ||
31 | + } | ||
32 | + }), | ||
33 | + div = dialog.div; | ||
34 | + $("input[name=imgFiles]", div).change(function () { | ||
35 | + dialog.showLoading(); | ||
36 | + var files = $(this).prop('files'); | ||
37 | + $.each(files, function (i, file) { | ||
38 | + self.beforeUpload.call(self, function (data) { | ||
39 | + self.exec('insertimage', Fast.api.cdnurl(data.data.url)); | ||
40 | + }, file); | ||
41 | + }); | ||
42 | + setTimeout(function () { | ||
43 | + self.hideDialog().focus(); | ||
44 | + }, 0); | ||
45 | + }); | ||
46 | + $(".ke-select-image", div).click(function () { | ||
47 | + self.loadPlugin('filemanager', function () { | ||
48 | + self.plugin.filemanagerDialog({ | ||
49 | + dirName: 'image', | ||
50 | + multiple: true, | ||
51 | + clickFn: function (urls) { | ||
52 | + $.each(urls, function(i, url){ | ||
53 | + self.exec('insertimage', url); | ||
54 | + }); | ||
55 | + } | ||
56 | + }); | ||
57 | + }); | ||
58 | + self.hideDialog().focus(); | ||
59 | + // parent.Fast.api.open("general/attachment/select?element_id=&multiple=true&mimetype=*", __('Choose'), { | ||
60 | + // callback: function (data) { | ||
61 | + // var urlArr = data.url.split(/\,/); | ||
62 | + // $.each(urlArr, function () { | ||
63 | + // var url = Fast.api.cdnurl(this); | ||
64 | + // self.exec('insertimage', url); | ||
65 | + // }); | ||
66 | + // } | ||
67 | + // }); | ||
68 | + }); | ||
69 | + }; | ||
70 | + self.clickToolbar(name, click); | ||
71 | + }); | ||
72 | + | ||
73 | + return Nkeditor; | ||
74 | +}); |
addons/nkeditor/assets/lang/ar.js
0 → 100644
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 | +* 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 | + editAnchor : 'Anchor properties', | ||
78 | + deleteAnchor : 'Delete Anchor', | ||
79 | + tableprop : 'خصائص الجدول', | ||
80 | + tablecellprop : 'خصائص الخلية', | ||
81 | + tableinsert : 'إدراج جدول', | ||
82 | + tabledelete : 'حذف جدول', | ||
83 | + tablecolinsertleft : 'إدراج عمود لليسار', | ||
84 | + tablecolinsertright : 'إدراج عمود لليسار', | ||
85 | + tablerowinsertabove : 'إدراج صف للأعلى', | ||
86 | + tablerowinsertbelow : 'إدراج صف للأسفل', | ||
87 | + tablerowmerge : 'دمج للأسفل', | ||
88 | + tablecolmerge : 'دمج لليمين', | ||
89 | + tablerowsplit : 'تقسم الصف', | ||
90 | + tablecolsplit : 'تقسيم العمود', | ||
91 | + tablecoldelete : 'حذف العمود', | ||
92 | + tablerowdelete : 'حذف الصف', | ||
93 | + noColor : 'إفتراضي', | ||
94 | + pleaseSelectFile : 'Please select file.', | ||
95 | + invalidImg : "الرجاء إدخال رابط صحيح.\nالملفات المسموح بها: jpg,gif,bmp,png", | ||
96 | + invalidMedia : "الرجاء إدخال رابط صحيح.\nالملفات المسموح بها: swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb", | ||
97 | + invalidWidth : "العرض يجب أن يكون رقم.", | ||
98 | + invalidHeight : "الإرتفاع يجب أن يكون رقم.", | ||
99 | + invalidBorder : "عرض الحد يجب أن يكون رقم.", | ||
100 | + invalidUrl : "الرجاء إدخال رابط حيح.", | ||
101 | + invalidRows : 'صفوف غير صحيح.', | ||
102 | + invalidCols : 'أعمدة غير صحيحة.', | ||
103 | + invalidPadding : 'The padding must be number.', | ||
104 | + invalidSpacing : 'The spacing must be number.', | ||
105 | + invalidJson : 'Invalid JSON string.', | ||
106 | + uploadSuccess : 'تم رفع الملف بنجاح.', | ||
107 | + cutError : 'حاليا غير مدعومة من المتصفح, إستخدم إختصار لوحة المفاتيح (Ctrl+X).', | ||
108 | + copyError : 'حاليا غير مدعومة من المتصفح, إستخدم إختصار لوحة المفاتيح (Ctrl+C).', | ||
109 | + pasteError : 'حاليا غير مدعومة من المتصفح, إستخدم إختصار لوحة المفاتيح (Ctrl+V).', | ||
110 | + ajaxLoading : 'Loading ...', | ||
111 | + uploadLoading : 'Uploading ...', | ||
112 | + uploadError : 'Upload Error', | ||
113 | + 'plainpaste.comment' : 'إستخدم إختصار لوحة المفاتيح (Ctrl+V) للصق داخل النافذة.', | ||
114 | + 'wordpaste.comment' : 'إستخدم إختصار لوحة المفاتيح (Ctrl+V) للصق داخل النافذة.', | ||
115 | + 'code.pleaseInput' : 'Please input code.', | ||
116 | + 'link.url' : 'الرابط', | ||
117 | + 'link.linkType' : 'الهدف', | ||
118 | + 'link.newWindow' : 'نافذة جديدة', | ||
119 | + 'link.selfWindow' : 'نفس النافذة', | ||
120 | + 'flash.url' : 'الرابط', | ||
121 | + 'flash.width' : 'العرض', | ||
122 | + 'flash.height' : 'الإرتفاع', | ||
123 | + 'flash.upload' : 'رفع', | ||
124 | + 'flash.viewServer' : 'أستعراض', | ||
125 | + 'media.url' : 'الرابط', | ||
126 | + 'media.width' : 'العرض', | ||
127 | + 'media.height' : 'الإرتفاع', | ||
128 | + 'media.autostart' : 'تشغيل تلقائي', | ||
129 | + 'media.upload' : 'رفع', | ||
130 | + 'media.viewServer' : 'أستعراض', | ||
131 | + 'image.remoteImage' : 'إدراج الرابط', | ||
132 | + 'image.localImage' : 'رفع', | ||
133 | + 'image.remoteUrl' : 'الرابط', | ||
134 | + 'image.localUrl' : 'الملف', | ||
135 | + 'image.size' : 'الحجم', | ||
136 | + 'image.width' : 'العرض', | ||
137 | + 'image.height' : 'الإرتفاع', | ||
138 | + 'image.resetSize' : 'إستعادة الأبعاد', | ||
139 | + 'image.align' : 'محاذاة', | ||
140 | + 'image.defaultAlign' : 'الإفتراضي', | ||
141 | + 'image.leftAlign' : 'اليسار', | ||
142 | + 'image.rightAlign' : 'اليمين', | ||
143 | + 'image.imgTitle' : 'العنوان', | ||
144 | + 'image.upload' : 'أستعراض', | ||
145 | + 'image.viewServer' : 'أستعراض', | ||
146 | + 'multiimage.uploadDesc' : 'Allows users to upload <%=uploadLimit%> images, single image size not exceeding <%=sizeLimit%>', | ||
147 | + 'multiimage.startUpload' : 'Start upload', | ||
148 | + 'multiimage.clearAll' : 'Clear all', | ||
149 | + 'multiimage.insertAll' : 'Insert all', | ||
150 | + 'multiimage.queueLimitExceeded' : 'Queue limit exceeded.', | ||
151 | + 'multiimage.fileExceedsSizeLimit' : 'File exceeds size limit.', | ||
152 | + 'multiimage.zeroByteFile' : 'Zero byte file.', | ||
153 | + 'multiimage.invalidFiletype' : 'Invalid file type.', | ||
154 | + 'multiimage.unknownError' : 'Unknown upload error.', | ||
155 | + 'multiimage.pending' : 'Pending ...', | ||
156 | + 'multiimage.uploadError' : 'Upload error', | ||
157 | + 'filemanager.emptyFolder' : 'فارغ', | ||
158 | + 'filemanager.moveup' : 'المجلد الأب', | ||
159 | + 'filemanager.viewType' : 'العرض: ', | ||
160 | + 'filemanager.viewImage' : 'مصغرات', | ||
161 | + 'filemanager.listImage' : 'قائمة', | ||
162 | + 'filemanager.orderType' : 'الترتيب: ', | ||
163 | + 'filemanager.fileName' : 'بالإسم', | ||
164 | + 'filemanager.fileSize' : 'بالحجم', | ||
165 | + 'filemanager.fileType' : 'بالنوع', | ||
166 | + 'insertfile.url' : 'الرابط', | ||
167 | + 'insertfile.title' : 'العنوان', | ||
168 | + 'insertfile.upload' : 'رفع', | ||
169 | + 'insertfile.viewServer' : 'أستعراض', | ||
170 | + 'table.cells' : 'خلايا', | ||
171 | + 'table.rows' : 'صفوف', | ||
172 | + 'table.cols' : 'أعمدة', | ||
173 | + 'table.size' : 'الأبعاد', | ||
174 | + 'table.width' : 'العرض', | ||
175 | + 'table.height' : 'الإرتفاع', | ||
176 | + 'table.percent' : '%', | ||
177 | + 'table.px' : 'px', | ||
178 | + 'table.space' : 'الخارج', | ||
179 | + 'table.padding' : 'الداخل', | ||
180 | + 'table.spacing' : 'الفراغات', | ||
181 | + 'table.align' : 'محاذاه', | ||
182 | + 'table.textAlign' : 'افقى', | ||
183 | + 'table.verticalAlign' : 'رأسي', | ||
184 | + 'table.alignDefault' : 'إفتراضي', | ||
185 | + 'table.alignLeft' : 'يسار', | ||
186 | + 'table.alignCenter' : 'وسط', | ||
187 | + 'table.alignRight' : 'يمين', | ||
188 | + 'table.alignTop' : 'أعلى', | ||
189 | + 'table.alignMiddle' : 'منتصف', | ||
190 | + 'table.alignBottom' : 'أسفل', | ||
191 | + 'table.alignBaseline' : 'Baseline', | ||
192 | + 'table.border' : 'الحدود', | ||
193 | + 'table.borderWidth' : 'العرض', | ||
194 | + 'table.borderColor' : 'اللون', | ||
195 | + 'table.backgroundColor' : 'الخلفية', | ||
196 | + 'map.address' : 'العنوان: ', | ||
197 | + 'map.search' : 'بحث', | ||
198 | + 'baidumap.address' : 'العنوان: ', | ||
199 | + 'baidumap.search' : 'بحث', | ||
200 | + 'baidumap.insertDynamicMap' : 'Dynamic Map', | ||
201 | + 'anchor.name' : 'إسم الرابط', | ||
202 | + 'formatblock.formatBlock' : { | ||
203 | + h1 : 'عنوان 1', | ||
204 | + h2 : 'عنوان 2', | ||
205 | + h3 : 'عنوان 3', | ||
206 | + h4 : 'عنوان 4', | ||
207 | + p : 'عادي' | ||
208 | + }, | ||
209 | + 'fontname.fontName' : { | ||
210 | + 'Arial' : 'Arial', | ||
211 | + 'Arial Black' : 'Arial Black', | ||
212 | + 'Comic Sans MS' : 'Comic Sans MS', | ||
213 | + 'Courier New' : 'Courier New', | ||
214 | + 'Garamond' : 'Garamond', | ||
215 | + 'Georgia' : 'Georgia', | ||
216 | + 'Tahoma' : 'Tahoma', | ||
217 | + 'Times New Roman' : 'Times New Roman', | ||
218 | + 'Trebuchet MS' : 'Trebuchet MS', | ||
219 | + 'Verdana' : 'Verdana' | ||
220 | + }, | ||
221 | + 'lineheight.lineHeight' : [ | ||
222 | + {'1' : 'إرتفاع السطر 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 | +}, 'ar'); | ||
236 | + | ||
237 | +KindEditor.each(KindEditor.options.items, function(i, name) { | ||
238 | + if (name == 'baidumap') { | ||
239 | + KindEditor.options.items[i] = 'map'; | ||
240 | + } | ||
241 | +}); | ||
242 | +KindEditor.options.langType = 'ar'; |
addons/nkeditor/assets/lang/en.js
0 → 100644
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 : '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 | + editAnchor : 'Anchor properties', | ||
77 | + deleteAnchor : 'Delete Anchor', | ||
78 | + tableprop : 'Table properties', | ||
79 | + tablecellprop : 'Cell properties', | ||
80 | + tableinsert : 'Insert table', | ||
81 | + tabledelete : 'Delete table', | ||
82 | + tablecolinsertleft : 'Insert column left', | ||
83 | + tablecolinsertright : 'Insert column right', | ||
84 | + tablerowinsertabove : 'Insert row above', | ||
85 | + tablerowinsertbelow : 'Insert row below', | ||
86 | + tablerowmerge : 'Merge down', | ||
87 | + tablecolmerge : 'Merge right', | ||
88 | + tablerowsplit : 'Split row', | ||
89 | + tablecolsplit : 'Split column', | ||
90 | + tablecoldelete : 'Delete column', | ||
91 | + tablerowdelete : 'Delete row', | ||
92 | + noColor : 'Default', | ||
93 | + pleaseSelectFile : 'Please select file.', | ||
94 | + invalidImg : "Please type valid URL.\nAllowed file extension: jpg,gif,bmp,png", | ||
95 | + invalidMedia : "Please type valid URL.\nAllowed file extension: swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb", | ||
96 | + invalidWidth : "The width must be number.", | ||
97 | + invalidHeight : "The height must be number.", | ||
98 | + invalidBorder : "The border must be number.", | ||
99 | + invalidUrl : "Please type valid URL.", | ||
100 | + invalidRows : 'Invalid rows.', | ||
101 | + invalidCols : 'Invalid columns.', | ||
102 | + invalidPadding : 'The padding must be number.', | ||
103 | + invalidSpacing : 'The spacing must be number.', | ||
104 | + invalidJson : 'Invalid JSON string.', | ||
105 | + uploadSuccess : 'Upload success.', | ||
106 | + cutError : 'Currently not supported by your browser, use keyboard shortcut(Ctrl+X) instead.', | ||
107 | + copyError : 'Currently not supported by your browser, use keyboard shortcut(Ctrl+C) instead.', | ||
108 | + pasteError : 'Currently not supported by your browser, use keyboard shortcut(Ctrl+V) instead.', | ||
109 | + ajaxLoading : 'Loading ...', | ||
110 | + uploadLoading : 'Uploading ...', | ||
111 | + uploadError : 'Upload Error', | ||
112 | + 'plainpaste.comment' : 'Use keyboard shortcut(Ctrl+V) to paste the text into the window.', | ||
113 | + 'wordpaste.comment' : 'Use keyboard shortcut(Ctrl+V) to paste the text into the window.', | ||
114 | + 'code.pleaseInput' : 'Please input code.', | ||
115 | + 'link.url' : 'URL', | ||
116 | + 'link.linkType' : 'Target', | ||
117 | + 'link.newWindow' : 'New window', | ||
118 | + 'link.selfWindow' : 'Same window', | ||
119 | + 'flash.url' : 'URL', | ||
120 | + 'flash.width' : 'Width', | ||
121 | + 'flash.height' : 'Height', | ||
122 | + 'flash.upload' : 'Upload', | ||
123 | + 'flash.viewServer' : 'Browse', | ||
124 | + 'media.url' : 'URL', | ||
125 | + 'media.width' : 'Width', | ||
126 | + 'media.height' : 'Height', | ||
127 | + 'media.autostart' : 'Auto start', | ||
128 | + 'media.upload' : 'Upload', | ||
129 | + 'media.viewServer' : 'Browse', | ||
130 | + 'image.remoteImage' : 'Insert URL', | ||
131 | + 'image.localImage' : 'Upload', | ||
132 | + 'image.remoteUrl' : 'URL', | ||
133 | + 'image.localUrl' : 'File', | ||
134 | + 'image.size' : 'Size', | ||
135 | + 'image.width' : 'Width', | ||
136 | + 'image.height' : 'Height', | ||
137 | + 'image.resetSize' : 'Reset dimensions', | ||
138 | + 'image.align' : 'Align', | ||
139 | + 'image.defaultAlign' : 'Default', | ||
140 | + 'image.leftAlign' : 'Left', | ||
141 | + 'image.rightAlign' : 'Right', | ||
142 | + 'image.imgTitle' : 'Title', | ||
143 | + 'image.upload' : 'Browse', | ||
144 | + 'image.viewServer' : 'Browse', | ||
145 | + 'multiimage.uploadDesc' : 'Allows users to upload <%=uploadLimit%> images, single image size not exceeding <%=sizeLimit%>', | ||
146 | + 'multiimage.startUpload' : 'Start upload', | ||
147 | + 'multiimage.clearAll' : 'Clear all', | ||
148 | + 'multiimage.insertAll' : 'Insert all', | ||
149 | + 'multiimage.queueLimitExceeded' : 'Queue limit exceeded.', | ||
150 | + 'multiimage.fileExceedsSizeLimit' : 'File exceeds size limit.', | ||
151 | + 'multiimage.zeroByteFile' : 'Zero byte file.', | ||
152 | + 'multiimage.invalidFiletype' : 'Invalid file type.', | ||
153 | + 'multiimage.unknownError' : 'Unknown upload error.', | ||
154 | + 'multiimage.pending' : 'Pending ...', | ||
155 | + 'multiimage.uploadError' : 'Upload error', | ||
156 | + 'filemanager.emptyFolder' : 'Blank', | ||
157 | + 'filemanager.moveup' : 'Parent folder', | ||
158 | + 'filemanager.viewType' : 'Display: ', | ||
159 | + 'filemanager.viewImage' : 'Thumbnails', | ||
160 | + 'filemanager.listImage' : 'List', | ||
161 | + 'filemanager.orderType' : 'Sorting: ', | ||
162 | + 'filemanager.fileName' : 'By name', | ||
163 | + 'filemanager.fileSize' : 'By size', | ||
164 | + 'filemanager.fileType' : 'By type', | ||
165 | + 'insertfile.url' : 'URL', | ||
166 | + 'insertfile.title' : 'Title', | ||
167 | + 'insertfile.upload' : 'Upload', | ||
168 | + 'insertfile.viewServer' : 'Browse', | ||
169 | + 'table.cells' : 'Cells', | ||
170 | + 'table.rows' : 'Rows', | ||
171 | + 'table.cols' : 'Columns', | ||
172 | + 'table.size' : 'Dimensions', | ||
173 | + 'table.width' : 'Width', | ||
174 | + 'table.height' : 'Height', | ||
175 | + 'table.percent' : '%', | ||
176 | + 'table.px' : 'px', | ||
177 | + 'table.space' : 'Space', | ||
178 | + 'table.padding' : 'Padding', | ||
179 | + 'table.spacing' : 'Spacing', | ||
180 | + 'table.align' : 'Align', | ||
181 | + 'table.textAlign' : 'Horizontal', | ||
182 | + 'table.verticalAlign' : 'Vertical', | ||
183 | + 'table.alignDefault' : 'Default', | ||
184 | + 'table.alignLeft' : 'Left', | ||
185 | + 'table.alignCenter' : 'Center', | ||
186 | + 'table.alignRight' : 'Right', | ||
187 | + 'table.alignTop' : 'Top', | ||
188 | + 'table.alignMiddle' : 'Middle', | ||
189 | + 'table.alignBottom' : 'Bottom', | ||
190 | + 'table.alignBaseline' : 'Baseline', | ||
191 | + 'table.border' : 'Border', | ||
192 | + 'table.borderWidth' : 'Width', | ||
193 | + 'table.borderColor' : 'Color', | ||
194 | + 'table.backgroundColor' : 'Background', | ||
195 | + 'map.address' : 'Address: ', | ||
196 | + 'map.search' : 'Search', | ||
197 | + 'baidumap.address' : 'Address: ', | ||
198 | + 'baidumap.search' : 'Search', | ||
199 | + 'baidumap.insertDynamicMap' : 'Dynamic Map', | ||
200 | + 'anchor.name' : 'Anchor name', | ||
201 | + 'formatblock.formatBlock' : { | ||
202 | + h1 : 'Heading 1', | ||
203 | + h2 : 'Heading 2', | ||
204 | + h3 : 'Heading 3', | ||
205 | + h4 : 'Heading 4', | ||
206 | + p : 'Normal' | ||
207 | + }, | ||
208 | + 'fontname.fontName' : { | ||
209 | + 'Arial' : 'Arial', | ||
210 | + 'Arial Black' : 'Arial Black', | ||
211 | + 'Comic Sans MS' : 'Comic Sans MS', | ||
212 | + 'Courier New' : 'Courier New', | ||
213 | + 'Garamond' : 'Garamond', | ||
214 | + 'Georgia' : 'Georgia', | ||
215 | + 'Tahoma' : 'Tahoma', | ||
216 | + 'Times New Roman' : 'Times New Roman', | ||
217 | + 'Trebuchet MS' : 'Trebuchet MS', | ||
218 | + 'Verdana' : 'Verdana' | ||
219 | + }, | ||
220 | + 'lineheight.lineHeight' : [ | ||
221 | + {'1' : 'Line height 1'}, | ||
222 | + {'1.5' : 'Line height 1.5'}, | ||
223 | + {'2' : 'Line height 2'}, | ||
224 | + {'2.5' : 'Line height 2.5'}, | ||
225 | + {'3' : 'Line height 3'} | ||
226 | + ], | ||
227 | + 'template.selectTemplate' : 'Template', | ||
228 | + 'template.replaceContent' : 'Replace current content', | ||
229 | + 'template.fileList' : { | ||
230 | + '1.html' : 'Image and Text', | ||
231 | + '2.html' : 'Table', | ||
232 | + '3.html' : 'List' | ||
233 | + } | ||
234 | +}, 'en'); | ||
235 | + | ||
236 | +//自动加载代码美化的js插件 | ||
237 | +// KindEditor.loadScript(KindEditor.options.pluginsPath+"code/prettify.js"); | ||
238 | +// KindEditor.each(KindEditor.options.items, function(i, name) { | ||
239 | +// if (name == 'code') { | ||
240 | +// KindEditor.options.items[i] = 'map'; | ||
241 | +// } | ||
242 | +// }); | ||
243 | +KindEditor.options.langType = 'en'; |
addons/nkeditor/assets/lang/ja-JP.js
0 → 100644
1 | +/******************************************************************************* | ||
2 | +* @author 您的名字 お名前 | ||
3 | +*******************************************************************************/ | ||
4 | + | ||
5 | +KindEditor.lang({ | ||
6 | + source : 'HTMLコード', | ||
7 | + preview : 'プレビュー', | ||
8 | + undo : '戻る(Ctrl+Z)', | ||
9 | + redo : '進む(Ctrl+Y)', | ||
10 | + cut : 'カット(Ctrl+X)', | ||
11 | + copy : 'コピー(Ctrl+C)', | ||
12 | + paste : '貼り付け(Ctrl+V)', | ||
13 | + plainpaste : 'フォーマットされていないテキストとして貼り付ける', | ||
14 | + wordpaste : '「word」ドからペースト', | ||
15 | + selectall : 'すべて選択(Ctrl+A)', | ||
16 | + justifyleft : '左揃え', | ||
17 | + justifycenter : '中央揃え', | ||
18 | + justifyright : '右揃え', | ||
19 | + justifyfull : '両端揃え', | ||
20 | + insertorderedlist : '番号', | ||
21 | + insertunorderedlist : '箇条書き', | ||
22 | + indent : 'インデントを増やす', | ||
23 | + outdent : 'インデントを減らす', | ||
24 | + subscript : '下付き', | ||
25 | + superscript : '上付き', | ||
26 | + formatblock : '段落', | ||
27 | + fontname : 'フォント', | ||
28 | + fontsize : 'フォントサイズ', | ||
29 | + forecolor : 'フォントカラー', | ||
30 | + hilitecolor : 'テキストの背景', | ||
31 | + bold : '太字(Ctrl+B)', | ||
32 | + italic : '斜体(Ctrl+I)', | ||
33 | + underline : '下線(Ctrl+U)', | ||
34 | + strikethrough : '取り消し線', | ||
35 | + removeformat : 'フォーマットを削除', | ||
36 | + image : '画像', | ||
37 | + multiimage : '一括画像アップロード', | ||
38 | + flash : 'Flash', | ||
39 | + media : 'ビデオとオーディオ', | ||
40 | + table : 'テーブル', | ||
41 | + tablecell : 'セル', | ||
42 | + hr : '水平線を挿入する', | ||
43 | + emoticons : '絵文字を挿入する', | ||
44 | + link : 'ハイパーリンク', | ||
45 | + unlink : 'ハイパーリンクをキャンセル', | ||
46 | + fullscreen : 'フルスクリーン表示', | ||
47 | + about : 'について', | ||
48 | + print : 'プリント(Ctrl+P)', | ||
49 | + filemanager : 'ファイルスペース', | ||
50 | + code : 'プログラムコードを挿入', | ||
51 | + map : 'Googleマップ', | ||
52 | + baidumap : 'Baiduマップ', | ||
53 | + lineheight : '行間隔', | ||
54 | + clearhtml : 'HTMLコードをクリア', | ||
55 | + pagebreak : 'ページ区切りの挿入', | ||
56 | + quickformat : 'ワンクリックレイアウト', | ||
57 | + insertfile : 'ファイルの挿入', | ||
58 | + template : 'テンプレートの挿入', | ||
59 | + anchor : 'アンカー', | ||
60 | + yes : 'はい', | ||
61 | + no : 'いいえ', | ||
62 | + close : '閉じる', | ||
63 | + editImage : 'イメージプロパティ', | ||
64 | + deleteImage : 'イメージを削除', | ||
65 | + editFlash : 'Flashプロパティ', | ||
66 | + deleteFlash : 'Flashを削除', | ||
67 | + editMedia : 'ビデオとオーディオのプロパティ', | ||
68 | + deleteMedia : 'ビデオとオーディオを削除', | ||
69 | + editLink : 'ハイパーリンク属性', | ||
70 | + deleteLink : 'ハイパーリンクを削除', | ||
71 | + editAnchor : 'アンカー属性', | ||
72 | + deleteAnchor : 'アンカーを削除', | ||
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 | + pleaseSelectFile : 'ファイルを選択してください。', | ||
89 | + invalidImg : "有効なURLアドレスを入力してください。\ n jpg、gif、bmp、png形式のみが許可されています。", | ||
90 | + invalidMedia : "有効なURLアドレスを入力してください。swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb形式のみが許可されています。", | ||
91 | + invalidWidth : "幅は数字でなければなりません。", | ||
92 | + invalidHeight : "高さは数字でなければなりません。", | ||
93 | + invalidBorder : "ボーダーは数字でなければなりません。", | ||
94 | + invalidUrl : "有効なURLアドレスを入力してください。", | ||
95 | + invalidRows : '行数は必須項目で、0以上の数字を入力してください。', | ||
96 | + invalidCols : '列数は必須項目で、0以上の数字を入力してください。', | ||
97 | + invalidPadding : 'マージンは数字でなければなりません。', | ||
98 | + invalidSpacing : 'スペースは数字でなければなりません。', | ||
99 | + invalidJson : 'サーバーエラー。', | ||
100 | + uploadSuccess : 'アップロード成功。', | ||
101 | + cutError : 'ブラウザのセキュリティ設定によってカット操作を使用できないので、ショートカットキー(Ctrl + X)を使用してください。', | ||
102 | + copyError : 'ブラウザのセキュリティ設定によってコピー操作をできないので、ショートカットキー(Ctrl + C)を使用してください。', | ||
103 | + pasteError : 'ブラウザのセキュリティ設定によって貼り付け操作をできないので、ショートカットキー(Ctrl + V)を使用してください。', | ||
104 | + ajaxLoading : '読み込み中、お待ちください...', | ||
105 | + uploadLoading : 'アップロード、しばらくお待ちください...', | ||
106 | + uploadError : 'アップロードエラー', | ||
107 | + 'plainpaste.comment' : 'ショートカットキー(Ctrl + V)でコンテンツを下のボックスに貼り付けてください。', | ||
108 | + 'wordpaste.comment' : 'ショートカットキー(Ctrl + V)でコンテンツを下のボックスに貼り付けてください。', | ||
109 | + 'code.pleaseInput' : 'プログラムコードを入力してください。 ', | ||
110 | + 'link.url' : 'URL', | ||
111 | + 'link.linkType' : 'タイプを開く', | ||
112 | + 'link.newWindow' : '新しいウィンドウ', | ||
113 | + 'link.selfWindow' : '現在のウィンドウ', | ||
114 | + 'flash.url' : 'URL', | ||
115 | + 'flash.width' : '幅', | ||
116 | + 'flash.height' : '高さ', | ||
117 | + 'flash.upload' : 'アップロード', | ||
118 | + 'flash.viewServer' : 'ファイルスペース', | ||
119 | + 'media.url' : 'URL', | ||
120 | + 'media.width' : '幅', | ||
121 | + 'media.height' : '高さ', | ||
122 | + 'media.autostart' : '自動再生', | ||
123 | + 'media.upload' : 'アップロード', | ||
124 | + 'media.viewServer' : 'ファイルスペース', | ||
125 | + 'image.remoteImage' : 'ネットワークイメージ', | ||
126 | + 'image.localImage' : 'ローカルアップロード', | ||
127 | + 'image.remoteUrl' : 'イメージアドレス ', | ||
128 | + 'image.localUrl' : 'アップロードファイル', | ||
129 | + 'image.size' : 'イメージサイズ', | ||
130 | + 'image.width' : '幅', | ||
131 | + 'image.height' : '高さ', | ||
132 | + 'image.resetSize' : 'リセットサイズ', | ||
133 | + 'image.align' : '配置', | ||
134 | + 'image.defaultAlign' : 'デフォルト', | ||
135 | + 'image.leftAlign' : '左揃え', | ||
136 | + 'image.rightAlign' : '右揃え', | ||
137 | + 'image.imgTitle' : '画像の説明', | ||
138 | + 'image.upload' : 'ブラウズ...', | ||
139 | + 'image.viewServer' : 'イメージスペース', | ||
140 | + 'multiimage.uploadDesc' : 'ユーザーが<%= uploadLimit%>画像を同時にアップロードできますが、画像の容量は<%= sizeLimit%>を超えることができません', | ||
141 | + 'multiimage.startUpload' : 'アップロード', | ||
142 | + 'multiimage.clearAll' : 'すべてクリア', | ||
143 | + 'multiimage.insertAll' : 'すべて挿入', | ||
144 | + 'multiimage.queueLimitExceeded' : 'ファイルの数が上限を超えています。', | ||
145 | + 'multiimage.fileExceedsSizeLimit' : 'ファイルサイズが制限を超えています。', | ||
146 | + 'multiimage.zeroByteFile' : '空のファイルをアップロードできません。 ', | ||
147 | + 'multiimage.invalidFiletype' : 'ファイル形式は正しくありません。', | ||
148 | + 'multiimage.unknownError' : 'エラー、アップロードできません。', | ||
149 | + 'multiimage.pending' : 'アップロード待ち', | ||
150 | + 'multiimage.uploadError' : 'アップロード失敗', | ||
151 | + 'filemanager.emptyFolder' : '空のフォルダ', | ||
152 | + 'filemanager.moveup' : '前のフォルダに移動', | ||
153 | + 'filemanager.viewType' : '表示モード:', | ||
154 | + 'filemanager.viewImage' : 'サムネイル', | ||
155 | + 'filemanager.listImage' : '詳細', | ||
156 | + 'filemanager.orderType' : '並べ替え:', | ||
157 | + 'filemanager.fileName' : 'ネーム', | ||
158 | + 'filemanager.fileSize' : 'サイズ', | ||
159 | + 'filemanager.fileType' : 'タイプ', | ||
160 | + 'insertfile.url' : 'URL', | ||
161 | + 'insertfile.title' : 'ファイルの説明', | ||
162 | + 'insertfile.upload' : 'アップロード', | ||
163 | + 'insertfile.viewServer' : 'ファイルスペース', | ||
164 | + 'table.cells' : 'セル番号', | ||
165 | + 'table.rows' : '行数', | ||
166 | + 'table.cols' : '列数', | ||
167 | + 'table.size' : 'サイズ', | ||
168 | + 'table.width' : '幅', | ||
169 | + 'table.height' : '高さ', | ||
170 | + 'table.percent' : '%', | ||
171 | + 'table.px' : 'px', | ||
172 | + 'table.space' : 'テーブルスペース', | ||
173 | + 'table.padding' : 'パッディング', | ||
174 | + 'table.spacing' : 'スペース', | ||
175 | + 'table.align' : '配置', | ||
176 | + 'table.textAlign' : '水平配置', | ||
177 | + 'table.verticalAlign' : '垂直配置', | ||
178 | + 'table.alignDefault' : 'デフォルト', | ||
179 | + 'table.alignLeft' : '左揃え', | ||
180 | + 'table.alignCenter' : '中央揃え', | ||
181 | + 'table.alignRight' : '右揃え', | ||
182 | + 'table.alignTop' : 'トップ', | ||
183 | + 'table.alignMiddle' : 'ミドル', | ||
184 | + 'table.alignBottom' : 'ボトム', | ||
185 | + 'table.alignBaseline' : 'ベースライン', | ||
186 | + 'table.border' : 'ボーダー', | ||
187 | + 'table.borderWidth' : 'ボーダー', | ||
188 | + 'table.borderColor' : 'カラー', | ||
189 | + 'table.backgroundColor' : '背景色', | ||
190 | + 'map.address' : 'アドレス: ', | ||
191 | + 'map.search' : '検索', | ||
192 | + 'baidumap.address' : 'アドレス: ', | ||
193 | + 'baidumap.search' : '検索', | ||
194 | + 'baidumap.insertDynamicMap' : 'ダイナミックマップの挿入', | ||
195 | + 'anchor.name' : 'アンカー名', | ||
196 | + | ||
197 | + 'formatblock.formatBlock' : { | ||
198 | + h1 : '見出し1', | ||
199 | + h2 : '見出し2', | ||
200 | + h3 : '見出し3', | ||
201 | + h4 : '見出し4', | ||
202 | + p : '正 文' | ||
203 | + }, | ||
204 | + 'fontname.fontName' : { | ||
205 | + 'SimSun' : '明朝体', | ||
206 | + 'NSimSun' : '新宋体', | ||
207 | + 'FangSong_GB2312' : '仿宋_GB2312', | ||
208 | + 'KaiTi_GB2312' : '楷書体_GB2312', | ||
209 | + 'SimHei' : 'ゴチック体', | ||
210 | + 'Microsoft YaHei' : 'Msyh', | ||
211 | + 'Arial' : 'Arial', | ||
212 | + 'Arial Black' : 'Arial Black', | ||
213 | + 'Times New Roman' : 'Times New Roman', | ||
214 | + 'Courier New' : 'Courier New', | ||
215 | + 'Tahoma' : 'Tahoma', | ||
216 | + 'Verdana' : 'Verdana' | ||
217 | + }, | ||
218 | + 'lineheight.lineHeight' : [ | ||
219 | + {'1' : '行間1倍'}, | ||
220 | + {'1.5' : '行間1.5倍'}, | ||
221 | + {'2' : '行間2倍'}, | ||
222 | + {'2.5' : '行間2.5倍'}, | ||
223 | + {'3' : '行間3倍'} | ||
224 | + ], | ||
225 | + 'template.selectTemplate' : 'オプションテンプレート', | ||
226 | + 'template.replaceContent' : '現在のコンテンツを置き換える', | ||
227 | + 'template.fileList' : { | ||
228 | + '1.html' : 'イメージとテキスト', | ||
229 | + '2.html' : '表', | ||
230 | + '3.html' : '段落番号' | ||
231 | + } | ||
232 | +}, 'ja-JP'); | ||
233 | + | ||
234 | +KindEditor.options.langType = 'ja-JP'; |
addons/nkeditor/assets/lang/ko.js
0 → 100644
1 | +/******************************************************************************* | ||
2 | +* KindEditor - WYSIWYG HTML Editor for Internet | ||
3 | +* Copyright (C) 2006-2011 kindsoft.net | ||
4 | +* | ||
5 | +* @author Composite <ukjinplant@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 : '워드 문서로 붙여넣기', | ||
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 | + editAnchor : 'Anchor properties', | ||
77 | + deleteAnchor : 'Delete Anchor', | ||
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 : "올바른 주소를 입력하세요.\njpg,gif,bmp,png 형식이 가능합니다.", | ||
95 | + invalidMedia : "올바른 주소를 입력하세요.\nswf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb 형식이 가능합니다.", | ||
96 | + invalidWidth : "넓이 값은 숫자여야 합니다.", | ||
97 | + invalidHeight : "높이 값은 숫자여야 합니다.", | ||
98 | + invalidBorder : "굵기 값은 숫자여야 합니다.", | ||
99 | + invalidUrl : "올바른 주소를 입력하세요.", | ||
100 | + invalidRows : '올바른 행이 아닙니다.', | ||
101 | + invalidCols : '올바른 열이 아닙니다.', | ||
102 | + invalidPadding : '안쪽 여백 값은 숫자여야 합니다.', | ||
103 | + invalidSpacing : '간격 길이 값은 숫자여야 합니다.', | ||
104 | + invalidJson : '올바른 JSON 형식이 아닙니다.', | ||
105 | + uploadSuccess : '업로드가 완료되었습니다.', | ||
106 | + cutError : '브라우저가 잘라내기 기능을 지원하지 않습니다, 단축키로 대신 사용하세요. (Ctrl+X)', | ||
107 | + copyError : '브라우저가 복사 기능을 지원하지 않습니다, 단축키로 대신 사용하세요. (Ctrl+X)', | ||
108 | + pasteError : '브라우저가 붙여넣기 기능을 지원하지 않습니다, 단축키로 대신 사용하세요. (Ctrl+X)', | ||
109 | + ajaxLoading : '불러오는 중 ...', | ||
110 | + uploadLoading : '업로드 중 ...', | ||
111 | + uploadError : '업로드 오류', | ||
112 | + 'plainpaste.comment' : '단축키(Ctrl+V)를 통하여 여기에 텍스트를 붙여넣으세요.', | ||
113 | + 'wordpaste.comment' : '단축키(Ctrl+V)를 통하여 여기에 워드 텍스트를 붙여넣으세요.', | ||
114 | + 'code.pleaseInput' : 'Please input code.', | ||
115 | + 'link.url' : '주소', | ||
116 | + 'link.linkType' : '창', | ||
117 | + 'link.newWindow' : '새 창', | ||
118 | + 'link.selfWindow' : '현재 창', | ||
119 | + 'flash.url' : '주소', | ||
120 | + 'flash.width' : '넓이', | ||
121 | + 'flash.height' : '높이', | ||
122 | + 'flash.upload' : '업로드', | ||
123 | + 'flash.viewServer' : '찾아보기', | ||
124 | + 'media.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' : '주소', | ||
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 | + 'Gulim' : '굴림', | ||
210 | + 'Dotum' : '돋움', | ||
211 | + 'Batang' : '바탕', | ||
212 | + 'Gungsuh' : '궁서', | ||
213 | + 'Malgun Gothic' : '맑은 고딕', | ||
214 | + 'Arial' : 'Arial', | ||
215 | + 'Arial Black' : 'Arial Black', | ||
216 | + 'Comic Sans MS' : 'Comic Sans MS', | ||
217 | + 'Courier New' : 'Courier New', | ||
218 | + 'Garamond' : 'Garamond', | ||
219 | + 'Georgia' : 'Georgia', | ||
220 | + 'Tahoma' : 'Tahoma', | ||
221 | + 'Times New Roman' : 'Times New Roman', | ||
222 | + 'Trebuchet MS' : 'Trebuchet MS', | ||
223 | + 'Verdana' : 'Verdana' | ||
224 | + }, | ||
225 | + 'lineheight.lineHeight' : [ | ||
226 | + {'1' : '행간 1'}, | ||
227 | + {'1.5' : '행간 1.5'}, | ||
228 | + {'2' : '행간 2'}, | ||
229 | + {'2.5' : '행간 2.5'}, | ||
230 | + {'3' : '행간 3'} | ||
231 | + ], | ||
232 | + 'template.selectTemplate' : '템플릿', | ||
233 | + 'template.replaceContent' : '내용 바꾸기', | ||
234 | + 'template.fileList' : { | ||
235 | + '1.html' : '이미지와 텍스트', | ||
236 | + '2.html' : '표', | ||
237 | + '3.html' : '목록' | ||
238 | + } | ||
239 | +}, 'ko'); | ||
240 | + | ||
241 | +KindEditor.each(KindEditor.options.items, function(i, name) { | ||
242 | + if (name == 'baidumap') { | ||
243 | + KindEditor.options.items[i] = 'map'; | ||
244 | + } | ||
245 | +}); | ||
246 | +KindEditor.options.langType = 'ko'; |
addons/nkeditor/assets/lang/ru.js
0 → 100644
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 | +* Translated to Russian by Valery Votintsev (http://codersclub.org/) | ||
9 | +*******************************************************************************/ | ||
10 | + | ||
11 | +KindEditor.lang({ | ||
12 | + source : 'Source', | ||
13 | + preview : '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 : 'Вставить из Word', | ||
21 | + selectall : 'Выбрать все', | ||
22 | + justifyleft : 'Выравнивание влево', | ||
23 | + justifycenter : 'Выравнивание по центру', | ||
24 | + justifyright : 'Выравнивание вправо', | ||
25 | + justifyfull : 'Выравнивание по обеим сторонам', | ||
26 | + insertorderedlist : 'Нумерованый список', | ||
27 | + insertunorderedlist : 'Ненумерованый список', | ||
28 | + indent : 'Добавить отступ', | ||
29 | + outdent : 'Убрать отступ', | ||
30 | + subscript : 'Надстрочный', | ||
31 | + superscript : 'Подстрочный', | ||
32 | + formatblock : 'Формат параграфа', | ||
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 : 'Мульти-загрузка', | ||
44 | + flash : '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 : 'Карта Google', | ||
58 | + baidumap : 'Карта Baidu', | ||
59 | + lineheight : 'Межстрочный интервал', | ||
60 | + clearhtml : 'Очистить HTML код', | ||
61 | + pagebreak : 'Разрыв страницы', | ||
62 | + quickformat : 'Быстрый формат', | ||
63 | + insertfile : 'Вставить файл', | ||
64 | + template : 'Вставить шаблон', | ||
65 | + anchor : 'Якорь', | ||
66 | + yes : 'OK', | ||
67 | + no : 'Отмена', | ||
68 | + close : 'Закрыть', | ||
69 | + editImage : 'Свойства изображения', | ||
70 | + deleteImage : 'Удалить изображение', | ||
71 | + editFlash : 'Свойства Flash', | ||
72 | + deleteFlash : 'Удалить Flash', | ||
73 | + editMedia : 'Свойства Media', | ||
74 | + deleteMedia : 'Удалить Media', | ||
75 | + editLink : 'Свойства ссылки', | ||
76 | + deleteLink : 'Удалить ссылку', | ||
77 | + editAnchor : 'Anchor properties', | ||
78 | + deleteAnchor : 'Delete Anchor', | ||
79 | + tableprop : 'Свойства таблицы', | ||
80 | + tablecellprop : 'Свойства ячейки', | ||
81 | + tableinsert : 'Вставить таблицу', | ||
82 | + tabledelete : 'Удалить таблицу', | ||
83 | + tablecolinsertleft : 'Добавить столбец слева', | ||
84 | + tablecolinsertright : 'Добавить столбец справа', | ||
85 | + tablerowinsertabove : 'Добавить строку выше', | ||
86 | + tablerowinsertbelow : 'Добавить строку ниже', | ||
87 | + tablerowmerge : 'Объединить вниз', | ||
88 | + tablecolmerge : 'Объединить вправо', | ||
89 | + tablerowsplit : 'Разделить строку', | ||
90 | + tablecolsplit : 'Разделить столбец', | ||
91 | + tablecoldelete : 'Удалить столбец', | ||
92 | + tablerowdelete : 'Удалить строку', | ||
93 | + noColor : 'По умолчанию', | ||
94 | + pleaseSelectFile : 'Выберите файл.', | ||
95 | + invalidImg : "Укажите корректный URL изображения.\nРазрешённые форматы: jpg,gif,bmp,png", | ||
96 | + invalidMedia : "Укажите корректный тип медиа-объекта.\nРазрешённые типы: swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb", | ||
97 | + invalidWidth : "Ширина должна быть числом.", | ||
98 | + invalidHeight : "Высота должна быть числом.", | ||
99 | + invalidBorder : "Ширина рамки должна быть числом.", | ||
100 | + invalidUrl : "Укажите корректный URL.", | ||
101 | + invalidRows : 'Неверные строки.', | ||
102 | + invalidCols : 'Неверные столбцы.', | ||
103 | + invalidPadding : 'padding должен быть числом.', | ||
104 | + invalidSpacing : 'spacing должен быть числом.', | ||
105 | + invalidJson : 'Неверная JSON строка.', | ||
106 | + uploadSuccess : 'Загрузка завершена.', | ||
107 | + cutError : 'Данная опция не поддерживается вашим браузером, воспользуйтесь комбинацией клавиш (Ctrl+X).', | ||
108 | + copyError : 'Данная опция не поддерживается вашим браузером, воспользуйтесь комбинацией клавиш (Ctrl+C).', | ||
109 | + pasteError : 'Данная опция не поддерживается вашим браузером, воспользуйтесь комбинацией клавиш (Ctrl+V).', | ||
110 | + ajaxLoading : 'Загрузка ...', | ||
111 | + uploadLoading : 'Загрузка ...', | ||
112 | + uploadError : 'Сбой загрузки', | ||
113 | + 'plainpaste.comment' : 'Для вставки скопированного текста воспользуйтесь комбинацией клавиш (Ctrl+V).', | ||
114 | + 'wordpaste.comment' : 'Для вставки скопированного текста воспользуйтесь комбинацией клавиш (Ctrl+V).', | ||
115 | + 'code.pleaseInput' : 'Введите код.', | ||
116 | + 'link.url' : 'URL', | ||
117 | + 'link.linkType' : 'Открывать ссылку', | ||
118 | + 'link.newWindow' : 'в новом окне', | ||
119 | + 'link.selfWindow' : 'в том же окне', | ||
120 | + 'flash.url' : 'URL', | ||
121 | + 'flash.width' : 'Ширина', | ||
122 | + 'flash.height' : 'Высота', | ||
123 | + 'flash.upload' : 'Загрузить', | ||
124 | + 'flash.viewServer' : 'Выбрать', | ||
125 | + 'media.url' : 'URL', | ||
126 | + 'media.width' : 'Ширина', | ||
127 | + 'media.height' : 'Высота', | ||
128 | + 'media.autostart' : 'Автостарт', | ||
129 | + 'media.upload' : 'Загрузить', | ||
130 | + 'media.viewServer' : 'Выбрать', | ||
131 | + 'image.remoteImage' : 'Вставить URL изображения', | ||
132 | + 'image.localImage' : 'Загрузить', | ||
133 | + 'image.remoteUrl' : 'URL', | ||
134 | + 'image.localUrl' : 'Файл', | ||
135 | + 'image.size' : 'Размер', | ||
136 | + 'image.width' : 'Ширина', | ||
137 | + 'image.height' : 'Высота', | ||
138 | + 'image.resetSize' : 'Сбросить размеры', | ||
139 | + 'image.align' : 'Выравнивание', | ||
140 | + 'image.defaultAlign' : 'По умолчанию', | ||
141 | + 'image.leftAlign' : 'Влево', | ||
142 | + 'image.rightAlign' : 'Вправо', | ||
143 | + 'image.imgTitle' : 'Название', | ||
144 | + 'image.upload' : 'Загрузить', | ||
145 | + 'image.viewServer' : 'Выбрать', | ||
146 | + 'multiimage.uploadDesc' : 'Максимальное кол-во изображений: <%=uploadLimit%>, Максимальный размер одного изображения: <%=sizeLimit%>', | ||
147 | + 'multiimage.startUpload' : 'Начать загрузку', | ||
148 | + 'multiimage.clearAll' : 'Очистить все', | ||
149 | + 'multiimage.insertAll' : 'Вставить все', | ||
150 | + 'multiimage.queueLimitExceeded' : 'Превышен лимит очереди.', | ||
151 | + 'multiimage.fileExceedsSizeLimit' : 'Превышен максимальный размер файла.', | ||
152 | + 'multiimage.zeroByteFile' : 'Файл нулевой длины.', | ||
153 | + 'multiimage.invalidFiletype' : 'Недопустимый тип файла.', | ||
154 | + 'multiimage.unknownError' : 'Непредвиденная ошибка загрузки.', | ||
155 | + 'multiimage.pending' : 'Ожидает ...', | ||
156 | + 'multiimage.uploadError' : 'Ошибка загрузки', | ||
157 | + 'filemanager.emptyFolder' : 'Папка пуста', | ||
158 | + 'filemanager.moveup' : 'Наверх', | ||
159 | + 'filemanager.viewType' : 'Тип показа: ', | ||
160 | + 'filemanager.viewImage' : 'Превьюшки', | ||
161 | + 'filemanager.listImage' : 'Список', | ||
162 | + 'filemanager.orderType' : 'Сортировка: ', | ||
163 | + 'filemanager.fileName' : 'По имени', | ||
164 | + 'filemanager.fileSize' : 'По размеру', | ||
165 | + 'filemanager.fileType' : 'По типу', | ||
166 | + 'insertfile.url' : 'URL', | ||
167 | + 'insertfile.title' : 'Название', | ||
168 | + 'insertfile.upload' : 'Загрузить', | ||
169 | + 'insertfile.viewServer' : 'Выбрать', | ||
170 | + 'table.cells' : 'Ячейки', | ||
171 | + 'table.rows' : 'Строки', | ||
172 | + 'table.cols' : 'Столбцы', | ||
173 | + 'table.size' : 'Размеры', | ||
174 | + 'table.width' : 'Ширина', | ||
175 | + 'table.height' : 'Высота', | ||
176 | + 'table.percent' : '%', | ||
177 | + 'table.px' : 'px', | ||
178 | + 'table.space' : 'Space', | ||
179 | + 'table.padding' : 'Padding', | ||
180 | + 'table.spacing' : 'Spacing', | ||
181 | + 'table.align' : 'Выравнивание', | ||
182 | + 'table.textAlign' : 'По горизонтали', | ||
183 | + 'table.verticalAlign' : 'По вертикали', | ||
184 | + 'table.alignDefault' : 'По умолчанию', | ||
185 | + 'table.alignLeft' : 'Влево', | ||
186 | + 'table.alignCenter' : 'По центру', | ||
187 | + 'table.alignRight' : 'Вправо', | ||
188 | + 'table.alignTop' : 'Вверх', | ||
189 | + 'table.alignMiddle' : 'Посередине', | ||
190 | + 'table.alignBottom' : 'Вниз', | ||
191 | + 'table.alignBaseline' : 'По базовой линии', | ||
192 | + 'table.border' : 'Рамка', | ||
193 | + 'table.borderWidth' : 'Ширина', | ||
194 | + 'table.borderColor' : 'Цвет', | ||
195 | + 'table.backgroundColor' : 'Цвет фона', | ||
196 | + 'map.address' : 'Адрес: ', | ||
197 | + 'map.search' : 'Поиск', | ||
198 | + 'baidumap.address' : 'Адрес: ', | ||
199 | + 'baidumap.search' : 'Поиск', | ||
200 | + 'baidumap.insertDynamicMap' : 'Динамическая карта', | ||
201 | + 'anchor.name' : 'Имя якоря', | ||
202 | + 'formatblock.formatBlock' : { | ||
203 | + h1 : 'Заголовок 1', | ||
204 | + h2 : 'Заголовок 2', | ||
205 | + h3 : 'Заголовок 3', | ||
206 | + h4 : 'Заголовок 4', | ||
207 | + p : 'Обычный текст' | ||
208 | + }, | ||
209 | + 'fontname.fontName' : { | ||
210 | + 'Arial' : 'Arial', | ||
211 | + 'Arial Black' : 'Arial Black', | ||
212 | + 'Comic Sans MS' : 'Comic Sans MS', | ||
213 | + 'Courier New' : 'Courier New', | ||
214 | + 'Garamond' : 'Garamond', | ||
215 | + 'Georgia' : 'Georgia', | ||
216 | + 'Tahoma' : 'Tahoma', | ||
217 | + 'Times New Roman' : 'Times New Roman', | ||
218 | + 'Trebuchet MS' : 'Trebuchet MS', | ||
219 | + 'Verdana' : 'Verdana' | ||
220 | + }, | ||
221 | + 'lineheight.lineHeight' : [ | ||
222 | + {'1' : '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 | +}, 'en'); | ||
236 | + | ||
237 | +KindEditor.each(KindEditor.options.items, function(i, name) { | ||
238 | + if (name == 'baidumap') { | ||
239 | + KindEditor.options.items[i] = 'map'; | ||
240 | + } | ||
241 | +}); | ||
242 | +KindEditor.options.langType = 'ru'; |
addons/nkeditor/assets/lang/zh-CN.js
0 → 100644
1 | +/******************************************************************************* | ||
2 | +* KindEditor - WYSIWYG HTML Editor for Internet | ||
3 | +* Copyright (C) 2006-2011 kindsoft.net | ||
4 | +* | ||
5 | +* @author Roddy <luolonghao@gmail.com> | ||
6 | +* @site http://www.kindsoft.net/ | ||
7 | +* @licence http://www.kindsoft.net/license.php | ||
8 | +*******************************************************************************/ | ||
9 | + | ||
10 | +KindEditor.lang({ | ||
11 | + source : 'HTML代码', | ||
12 | + preview : '预览', | ||
13 | + undo : '后退(Ctrl+Z)', | ||
14 | + redo : '前进(Ctrl+Y)', | ||
15 | + cut : '剪切(Ctrl+X)', | ||
16 | + copy : '复制(Ctrl+C)', | ||
17 | + paste : '粘贴(Ctrl+V)', | ||
18 | + plainpaste : '粘贴为无格式文本', | ||
19 | + wordpaste : '从Word粘贴', | ||
20 | + selectall : '全选(Ctrl+A)', | ||
21 | + justifyleft : '左对齐', | ||
22 | + justifycenter : '居中', | ||
23 | + justifyright : '右对齐', | ||
24 | + justifyfull : '两端对齐', | ||
25 | + insertorderedlist : '编号', | ||
26 | + insertunorderedlist : '项目符号', | ||
27 | + indent : '增加缩进', | ||
28 | + outdent : '减少缩进', | ||
29 | + subscript : '下标', | ||
30 | + superscript : '上标', | ||
31 | + formatblock : '段落', | ||
32 | + fontname : '字体', | ||
33 | + fontsize : '文字大小', | ||
34 | + forecolor : '文字颜色', | ||
35 | + hilitecolor : '文字背景', | ||
36 | + bold : '粗体(Ctrl+B)', | ||
37 | + italic : '斜体(Ctrl+I)', | ||
38 | + underline : '下划线(Ctrl+U)', | ||
39 | + strikethrough : '删除线', | ||
40 | + removeformat : '删除格式', | ||
41 | + image : '图片', | ||
42 | + multiimage : '批量图片上传', | ||
43 | + graft : '涂鸦', | ||
44 | + flash : 'Flash', | ||
45 | + media : '视音频', | ||
46 | + table : '表格', | ||
47 | + tablecell : '单元格', | ||
48 | + hr : '插入横线', | ||
49 | + emoticons : '插入表情', | ||
50 | + link : '超级链接', | ||
51 | + unlink : '取消超级链接', | ||
52 | + fullscreen : '全屏显示', | ||
53 | + about : '关于', | ||
54 | + print : '打印(Ctrl+P)', | ||
55 | + filemanager : '文件空间', | ||
56 | + code : '插入程序代码', | ||
57 | + quote : '插入引用', | ||
58 | + map : 'Google地图', | ||
59 | + baidumap : '百度地图', | ||
60 | + lineheight : '行距', | ||
61 | + clearhtml : '清理HTML代码', | ||
62 | + pagebreak : '插入分页符', | ||
63 | + quickformat : '一键排版', | ||
64 | + insertfile : '插入文件', | ||
65 | + template : '插入模板', | ||
66 | + anchor : '锚点', | ||
67 | + yes : '确定', | ||
68 | + no : '取消', | ||
69 | + close : '关闭', | ||
70 | + editImage : '图片属性', | ||
71 | + deleteImage : '删除图片', | ||
72 | + editFlash : 'Flash属性', | ||
73 | + deleteFlash : '删除Flash', | ||
74 | + editMedia : '视音频属性', | ||
75 | + deleteMedia : '删除视音频', | ||
76 | + editLink : '超级链接属性', | ||
77 | + deleteLink : '取消超级链接', | ||
78 | + editAnchor : '锚点属性', | ||
79 | + deleteAnchor : '删除锚点', | ||
80 | + tableprop : '表格属性', | ||
81 | + tablecellprop : '单元格属性', | ||
82 | + tableinsert : '插入表格', | ||
83 | + tabledelete : '删除表格', | ||
84 | + tablecolinsertleft : '左侧插入列', | ||
85 | + tablecolinsertright : '右侧插入列', | ||
86 | + tablerowinsertabove : '上方插入行', | ||
87 | + tablerowinsertbelow : '下方插入行', | ||
88 | + tablerowmerge : '向下合并单元格', | ||
89 | + tablecolmerge : '向右合并单元格', | ||
90 | + tablerowsplit : '拆分行', | ||
91 | + tablecolsplit : '拆分列', | ||
92 | + tablecoldelete : '删除列', | ||
93 | + tablerowdelete : '删除行', | ||
94 | + noColor : '无颜色', | ||
95 | + pleaseSelectFile : '请选择文件。', | ||
96 | + invalidImg : "请输入有效的URL地址。\n只允许jpg,gif,bmp,png格式。", | ||
97 | + invalidMedia : "请输入有效的URL地址。\n只允许swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb格式。", | ||
98 | + invalidWidth : "宽度必须为数字。", | ||
99 | + invalidHeight : "高度必须为数字。", | ||
100 | + invalidBorder : "边框必须为数字。", | ||
101 | + invalidUrl : "请输入有效的URL地址。", | ||
102 | + invalidRows : '行数为必选项,只允许输入大于0的数字。', | ||
103 | + invalidCols : '列数为必选项,只允许输入大于0的数字。', | ||
104 | + invalidPadding : '边距必须为数字。', | ||
105 | + invalidSpacing : '间距必须为数字。', | ||
106 | + invalidJson : '服务器发生故障。', | ||
107 | + uploadSuccess : '上传成功。', | ||
108 | + cutError : '您的浏览器安全设置不允许使用剪切操作,请使用快捷键(Ctrl+X)来完成。', | ||
109 | + copyError : '您的浏览器安全设置不允许使用复制操作,请使用快捷键(Ctrl+C)来完成。', | ||
110 | + pasteError : '您的浏览器安全设置不允许使用粘贴操作,请使用快捷键(Ctrl+V)来完成。', | ||
111 | + ajaxLoading : '加载中,请稍候 ...', | ||
112 | + uploadLoading : '上传中,请稍候 ...', | ||
113 | + uploadError : '上传错误', | ||
114 | + | ||
115 | + 'plainpaste.comment' : '请使用快捷键(Ctrl+V)把内容粘贴到下面的方框里。', | ||
116 | + 'wordpaste.comment' : '请使用快捷键(Ctrl+V)把内容粘贴到下面的方框里。', | ||
117 | + 'code.pleaseInput' : '请输入程序代码。', | ||
118 | + 'link.url' : 'URL', | ||
119 | + 'link.linkType' : '打开类型', | ||
120 | + 'link.newWindow' : '新窗口', | ||
121 | + 'link.selfWindow' : '当前窗口', | ||
122 | + 'flash.url' : 'URL', | ||
123 | + 'flash.width' : '宽度', | ||
124 | + 'flash.height' : '高度', | ||
125 | + 'flash.upload' : '上传', | ||
126 | + 'flash.viewServer' : '文件空间', | ||
127 | + 'media.url' : 'URL', | ||
128 | + 'media.width' : '宽度', | ||
129 | + 'media.height' : '高度', | ||
130 | + 'media.autostart' : '自动播放', | ||
131 | + 'media.upload' : '上传', | ||
132 | + 'media.viewServer' : '文件空间', | ||
133 | + 'image.remoteImage' : '网络图片', | ||
134 | + 'image.localImage' : '本地上传', | ||
135 | + 'image.remoteUrl' : '图片地址', | ||
136 | + 'image.localUrl' : '上传文件', | ||
137 | + 'image.size' : '图片大小', | ||
138 | + 'image.width' : '宽', | ||
139 | + 'image.height' : '高', | ||
140 | + 'image.resetSize' : '重置大小', | ||
141 | + 'image.align' : '对齐方式', | ||
142 | + 'image.defaultAlign' : '默认方式', | ||
143 | + 'image.leftAlign' : '左对齐', | ||
144 | + 'image.rightAlign' : '右对齐', | ||
145 | + 'image.imgTitle' : '图片说明', | ||
146 | + 'image.upload' : '浏览...', | ||
147 | + 'image.viewServer' : '图片空间', | ||
148 | + | ||
149 | + 'multiimage.title' : '多图上传', | ||
150 | + 'multiimage.uploadDesc' : '共选择了 <%=numSelect%> 张图片,共 <%=totalSize%>, 还可以添加 <%=numLeft%> 张图片.', | ||
151 | + 'multiimage.startUpload' : '开始上传', | ||
152 | + 'multiimage.noListUrl' : '无法获取图片,请先配置 fileManagerJson.', | ||
153 | + 'multiimage.noSearchUrl' : '无法进行图片搜索,请先配置 imageSearchJson.', | ||
154 | + 'multiimage.noDataText' : '(⊙o⊙)亲,没有多数据了。', | ||
155 | + 'multiimage.closeText' : '关闭对话框', | ||
156 | + 'multiimage.confirmBtnText' : '确定', | ||
157 | + 'multiimage.cancelBtnText' : '取消', | ||
158 | + 'multiimage.loadMoreData' : '往下拉动滚动条可以加载更多数据.', | ||
159 | + 'multiimage.depJQueryError' : '文件管理插件依赖 jQuery, 请先引入 jQuery.', | ||
160 | + 'multiimage.localUpload' : '本地上传', | ||
161 | + 'multiimage.fileServer' : '文件服务器', | ||
162 | + 'multiimage.imgSearch' : '图片搜索', | ||
163 | + 'multiimage.selectFile' : '点击选择图片', | ||
164 | + 'multiimage.continueAdd' : '继续添加', | ||
165 | + 'multiimage.searchBtn' : '搜索一下', | ||
166 | + 'multiimage.searchPlaceholder' : '请输入搜索关键词', | ||
167 | + 'multiimage.searchClear' : '清空搜索', | ||
168 | + 'multiimage.noFileAdded' : '请至少添加一个文件!', | ||
169 | + 'multiimage.uploading' : '正在上传', | ||
170 | + 'multiimage.fileNotUpload' : '您还有文件没有上传!', | ||
171 | + 'multiimage.uploadLimit' : '您本次最多上传 <%=uploadLimit%> 个文件.', | ||
172 | + 'multiimage.sizeLimit' : '文件大小不能超过 <%=sizeLimit%> KB.', | ||
173 | + 'multiimage.invalidExt' : '非法的文件后缀 <%=invalidExt%>.', | ||
174 | + 'multiimage.remove' : '删除', | ||
175 | + 'multiimage.rotateRight' : '向右旋转', | ||
176 | + 'multiimage.rotateLeft' : '向左旋转', | ||
177 | + 'multiimage.uploadFail' : '发生异常,上传失败!', | ||
178 | + 'multiimage.noFileSelected' : '请至少选择一个文件或一张图片.', | ||
179 | + | ||
180 | + 'filemanager.noDataText' : '(⊙o⊙)亲,没有多数据了。', | ||
181 | + 'filemanager.title' : '文件服务器', | ||
182 | + 'filemanager.noListUrl' : '无法获取图片,请先配置 fileManagerJson.', | ||
183 | + 'filemanager.closeText' : '关闭对话框', | ||
184 | + 'filemanager.confirmBtnText' : '确定', | ||
185 | + 'filemanager.cancelBtnText' : '取消', | ||
186 | + 'filemanager.loadMoreData' : '往下拉动滚动条可以加载更多数据.', | ||
187 | + 'filemanager.depJQueryError' : '文件管理插件依赖 jQuery, 请先引入 jQuery.', | ||
188 | + 'filemanager.fileType' : '类型', | ||
189 | + | ||
190 | + 'graft.btnText' : '保存并插入涂鸦', | ||
191 | + 'graft.uploadSuccess' : '涂鸦上传成功', | ||
192 | + 'graft.uploadFaild' : '涂鸦上传失败', | ||
193 | + 'graft.empty' : '您没有在画布上绘制任何图像', | ||
194 | + | ||
195 | + 'insertfile.url' : 'URL', | ||
196 | + 'insertfile.title' : '文件说明', | ||
197 | + 'insertfile.upload' : '上传', | ||
198 | + 'insertfile.viewServer' : '文件空间', | ||
199 | + 'table.cells' : '单元格数', | ||
200 | + 'table.rows' : '行数', | ||
201 | + 'table.cols' : '列数', | ||
202 | + 'table.size' : '大小', | ||
203 | + 'table.width' : '宽度', | ||
204 | + 'table.height' : '高度', | ||
205 | + 'table.percent' : '%', | ||
206 | + 'table.px' : 'px', | ||
207 | + 'table.space' : '边距间距', | ||
208 | + 'table.padding' : '边距', | ||
209 | + 'table.spacing' : '间距', | ||
210 | + 'table.align' : '对齐方式', | ||
211 | + 'table.textAlign' : '水平对齐', | ||
212 | + 'table.verticalAlign' : '垂直对齐', | ||
213 | + 'table.alignDefault' : '默认', | ||
214 | + 'table.alignLeft' : '左对齐', | ||
215 | + 'table.alignCenter' : '居中', | ||
216 | + 'table.alignRight' : '右对齐', | ||
217 | + 'table.alignTop' : '顶部', | ||
218 | + 'table.alignMiddle' : '中部', | ||
219 | + 'table.alignBottom' : '底部', | ||
220 | + 'table.alignBaseline' : '基线', | ||
221 | + 'table.border' : '边框', | ||
222 | + 'table.borderWidth' : '宽度', | ||
223 | + 'table.borderColor' : '颜色', | ||
224 | + 'table.backgroundColor' : '背景颜色', | ||
225 | + 'map.address' : '地址: ', | ||
226 | + 'map.search' : '搜索', | ||
227 | + 'baidumap.address' : '地址: ', | ||
228 | + 'baidumap.search' : '搜索', | ||
229 | + 'baidumap.insertDynamicMap' : '插入动态地图', | ||
230 | + 'anchor.name' : '锚点名称', | ||
231 | + 'formatblock.formatBlock' : { | ||
232 | + h1 : '标题 1', | ||
233 | + h2 : '标题 2', | ||
234 | + h3 : '标题 3', | ||
235 | + h4 : '标题 4', | ||
236 | + p : '正 文' | ||
237 | + }, | ||
238 | + 'fontname.fontName' : { | ||
239 | + 'SimSun' : '宋体', | ||
240 | + 'NSimSun' : '新宋体', | ||
241 | + 'FangSong' : '仿宋', | ||
242 | + 'KaiTi' : '楷体', | ||
243 | + 'SimHei' : '黑体', | ||
244 | + 'Microsoft YaHei' : '微软雅黑', | ||
245 | + 'Arial' : 'Arial', | ||
246 | + 'Arial Black' : 'Arial Black', | ||
247 | + 'Times New Roman' : 'Times New Roman', | ||
248 | + 'Courier New' : 'Courier New', | ||
249 | + 'Tahoma' : 'Tahoma', | ||
250 | + 'Verdana' : 'Verdana' | ||
251 | + }, | ||
252 | + 'lineheight.lineHeight' : [ | ||
253 | + {'1' : '单倍行距'}, | ||
254 | + {'1.5' : '1.5倍行距'}, | ||
255 | + {'2' : '2倍行距'}, | ||
256 | + {'2.5' : '2.5倍行距'}, | ||
257 | + {'3' : '3倍行距'} | ||
258 | + ], | ||
259 | + 'template.selectTemplate' : '可选模板', | ||
260 | + 'template.replaceContent' : '替换当前内容', | ||
261 | + 'template.fileList' : { | ||
262 | + '1.html' : '图片和文字', | ||
263 | + '2.html' : '表格', | ||
264 | + '3.html' : '项目编号' | ||
265 | + } | ||
266 | +}, 'zh-CN'); | ||
267 | +KindEditor.options.langType = 'zh-CN'; |
addons/nkeditor/assets/lang/zh-TW.js
0 → 100644
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 | + 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 : 'Baidu地圖', | ||
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' : 'Please input code.', | ||
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' : '影像URL', | ||
133 | + 'image.localUrl' : '影像URL', | ||
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' : 'Allows users to upload <%=uploadLimit%> images, single image size not exceeding <%=sizeLimit%>', | ||
146 | + 'multiimage.startUpload' : 'Start upload', | ||
147 | + 'multiimage.clearAll' : 'Clear all', | ||
148 | + 'multiimage.insertAll' : 'Insert all', | ||
149 | + 'multiimage.queueLimitExceeded' : 'Queue limit exceeded.', | ||
150 | + 'multiimage.fileExceedsSizeLimit' : 'File exceeds size limit.', | ||
151 | + 'multiimage.zeroByteFile' : 'Zero byte file.', | ||
152 | + 'multiimage.invalidFiletype' : 'Invalid file type.', | ||
153 | + 'multiimage.unknownError' : 'Unknown upload error.', | ||
154 | + 'multiimage.pending' : 'Pending ...', | ||
155 | + 'multiimage.uploadError' : 'Upload error', | ||
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 | + 'MingLiU' : '細明體', | ||
210 | + 'PMingLiU' : '新細明體', | ||
211 | + 'DFKai-SB' : '標楷體', | ||
212 | + 'SimSun' : '宋體', | ||
213 | + 'NSimSun' : '新宋體', | ||
214 | + 'FangSong' : '仿宋體', | ||
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-TW'); | ||
237 | + | ||
238 | +KindEditor.each(KindEditor.options.items, function(i, name) { | ||
239 | + if (name == 'baidumap') { | ||
240 | + KindEditor.options.items[i] = 'map'; | ||
241 | + } | ||
242 | +}); | ||
243 | +KindEditor.options.langType = 'zh-TW'; |
addons/nkeditor/assets/nkeditor.js
0 → 100644
此 diff 太大无法显示。
addons/nkeditor/assets/nkeditor.min.js
0 → 100644
此 diff 太大无法显示。
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 class="ke-dialog-content-inner">', | ||
15 | + '<div class="ke-dialog-row ke-clearfix">', | ||
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 | +}); |
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('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 | + if(self.fullscreenMode){ | ||
28 | + return; | ||
29 | + } | ||
30 | + var edit = self.edit; | ||
31 | + var body = edit.doc.body; | ||
32 | + edit.iframe.height(minHeight); | ||
33 | + self.resize(null, Math.max((K.IE ? body.scrollHeight : body.offsetHeight) + 76, minHeight)); | ||
34 | + } | ||
35 | + | ||
36 | + function init() { | ||
37 | + minHeight = K.removeUnit(self.height); | ||
38 | + | ||
39 | + self.edit.afterChange(resetHeight); | ||
40 | + if(!self.fullscreenMode){ | ||
41 | + hideScroll(); | ||
42 | + } | ||
43 | + resetHeight(); | ||
44 | + } | ||
45 | + | ||
46 | + if (self.isCreated) { | ||
47 | + init(); | ||
48 | + } else { | ||
49 | + self.afterCreate(init); | ||
50 | + } | ||
51 | +}); | ||
52 | + | ||
53 | +/* | ||
54 | +* 如何实现真正的自动高度? | ||
55 | +* 修改编辑器高度之后,再次获取body内容高度时,最小值只会是当前iframe的设置高度,这样就导致高度只增不减。 | ||
56 | +* 所以每次获取body内容高度之前,先将iframe的高度重置为最小高度,这样就能获取body的实际高度。 | ||
57 | +* 由此就实现了真正的自动高度 | ||
58 | +* 测试:chrome、firefox、IE9、IE8 | ||
59 | +* */ |
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 | +// 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 = ['<div class="ke-dialog-content-inner" style="padding-top: 0">', | ||
18 | + '<div class="ke-dialog-row ke-clearfix">', | ||
19 | + // right start | ||
20 | + '<div class="ke-header">' + lang.address, | ||
21 | + '<input id="kindeditor_plugin_map_address" name="address" class="ke-input-text" value="" style="width:200px;" /> ', | ||
22 | + '<span>', | ||
23 | + '<input type="button" name="searchBtn" class="ke-button-common ke-button" value="' + lang.search + '" style="line-height:22px;padding:0 10px;" />', | ||
24 | + '</span>', | ||
25 | + '<input type="checkbox" id="keInsertDynamicMap" name="insertDynamicMap" class="checkbox" value="1" style="display:inline-block;" /> <label for="keInsertDynamicMap">' + lang.insertDynamicMap + '</label>', | ||
26 | + '</div>', | ||
27 | + '</div>', | ||
28 | + | ||
29 | + //map iframe | ||
30 | + '<div class="ke-map" style="width:' + mapWidth + 'px;height:' + mapHeight + 'px;"></div>', | ||
31 | + '</div>'].join(''); | ||
32 | + var dialog = self.createDialog({ | ||
33 | + name : name, | ||
34 | + width : mapWidth + 42, | ||
35 | + title : self.lang(name), | ||
36 | + body : html, | ||
37 | + yesBtn : { | ||
38 | + name : self.lang('yes'), | ||
39 | + click : function(e) { | ||
40 | + var map = win.map; | ||
41 | + var centerObj = map.getCenter(); | ||
42 | + var center = centerObj.lng + ',' + centerObj.lat; | ||
43 | + var zoom = map.getZoom(); | ||
44 | + var url = [checkbox[0].checked ? self.pluginsPath + 'baidumap/index.html' : 'https://api.map.baidu.com/staticimage', | ||
45 | + '?center=' + encodeURIComponent(center), | ||
46 | + '&zoom=' + encodeURIComponent(zoom), | ||
47 | + '&width=' + mapWidth, | ||
48 | + '&height=' + mapHeight, | ||
49 | + '&markers=' + encodeURIComponent(center), | ||
50 | + '&markerStyles=' + encodeURIComponent('l,A')].join(''); | ||
51 | + if (checkbox[0].checked) { | ||
52 | + self.insertHtml('<iframe src="' + url + '" frameborder="0" style="width:' + (mapWidth + 2) + 'px;height:' + (mapHeight + 2) + 'px;"></iframe>'); | ||
53 | + } else { | ||
54 | + self.exec('insertimage', url); | ||
55 | + } | ||
56 | + self.hideDialog().focus(); | ||
57 | + } | ||
58 | + }, | ||
59 | + beforeRemove : function() { | ||
60 | + searchBtn.remove(); | ||
61 | + if (doc) { | ||
62 | + doc.write(''); | ||
63 | + } | ||
64 | + iframe.remove(); | ||
65 | + } | ||
66 | + }); | ||
67 | + var div = dialog.div, | ||
68 | + addressBox = K('[name="address"]', div), | ||
69 | + searchBtn = K('[name="searchBtn"]', div), | ||
70 | + checkbox = K('[name="insertDynamicMap"]', dialog.div), | ||
71 | + win, doc; | ||
72 | + var iframe = K('<iframe class="ke-textarea" frameborder="0" src="' + self.pluginsPath + 'baidumap/map.html" style="width:' + mapWidth + 'px;height:' + mapHeight + 'px;"></iframe>'); | ||
73 | + function ready() { | ||
74 | + win = iframe[0].contentWindow; | ||
75 | + doc = K.iframeDoc(iframe); | ||
76 | + } | ||
77 | + iframe.bind('load', function() { | ||
78 | + iframe.unbind('load'); | ||
79 | + if (K.IE) { | ||
80 | + ready(); | ||
81 | + } else { | ||
82 | + setTimeout(ready, 0); | ||
83 | + } | ||
84 | + }); | ||
85 | + K('.ke-map', div).replaceWith(iframe); | ||
86 | + // search map | ||
87 | + searchBtn.click(function() { | ||
88 | + win.search(addressBox.val()); | ||
89 | + }); | ||
90 | + }); | ||
91 | +}); |
1 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
2 | +<html xmlns="http://www.w3.org/1999/xhtml"> | ||
3 | +<head> | ||
4 | + <meta charset="utf-8"/> | ||
5 | + <meta name="keywords" content="百度地图,百度地图API,百度地图自定义工具,百度地图所见即所得工具"/> | ||
6 | + <meta name="description" content="百度地图API自定义地图,帮助用户在可视化操作下生成百度地图"/> | ||
7 | + <title>百度地图API自定义地图</title> | ||
8 | + <!--引用百度地图API--> | ||
9 | + <style type="text/css"> | ||
10 | + html, body { | ||
11 | + margin: 0; | ||
12 | + padding: 0; | ||
13 | + } | ||
14 | + | ||
15 | + .iw_poi_title { | ||
16 | + color: #CC5522; | ||
17 | + font-size: 14px; | ||
18 | + font-weight: bold; | ||
19 | + overflow: hidden; | ||
20 | + padding-right: 13px; | ||
21 | + white-space: nowrap | ||
22 | + } | ||
23 | + | ||
24 | + .iw_poi_content { | ||
25 | + font: 12px arial, sans-serif; | ||
26 | + overflow: visible; | ||
27 | + padding-top: 4px; | ||
28 | + white-space: -moz-pre-wrap; | ||
29 | + word-wrap: break-word | ||
30 | + } | ||
31 | + </style> | ||
32 | + <script type="text/javascript" src="//api.map.baidu.com/api?key=&v=1.1&services=true"></script> | ||
33 | +</head> | ||
34 | + | ||
35 | +<body onload="initMap();"> | ||
36 | +<!--百度地图容器--> | ||
37 | +<div style="width:697px;height:550px;border:#ccc solid 1px;" id="dituContent"></div> | ||
38 | +</body> | ||
39 | +<script type="text/javascript"> | ||
40 | + function getParam(name) { | ||
41 | + return location.href.match(new RegExp('[?&]' + name + '=([^?&]+)', 'i')) ? decodeURIComponent(RegExp.$1) : ''; | ||
42 | + } | ||
43 | + | ||
44 | + var centerParam = getParam('center'); | ||
45 | + var zoomParam = getParam('zoom'); | ||
46 | + var widthParam = getParam('width'); | ||
47 | + var heightParam = getParam('height'); | ||
48 | + var markersParam = getParam('markers'); | ||
49 | + var markerStylesParam = getParam('markerStyles'); | ||
50 | + | ||
51 | + //创建和初始化地图函数: | ||
52 | + function initMap() { | ||
53 | + // [FF]切换模式后报错 | ||
54 | + if (!window.BMap) { | ||
55 | + return; | ||
56 | + } | ||
57 | + var dituContent = document.getElementById('dituContent'); | ||
58 | + dituContent.style.width = widthParam + 'px'; | ||
59 | + dituContent.style.height = heightParam + 'px'; | ||
60 | + | ||
61 | + createMap();//创建地图 | ||
62 | + setMapEvent();//设置地图事件 | ||
63 | + addMapControl();//向地图添加控件 | ||
64 | + | ||
65 | + // 创建标注 | ||
66 | + var markersArr = markersParam.split(','); | ||
67 | + var point = new BMap.Point(markersArr[0], markersArr[1]); | ||
68 | + var marker = new BMap.Marker(point); | ||
69 | + map.addOverlay(marker); // 将标注添加到地图中 | ||
70 | + } | ||
71 | + | ||
72 | + //创建地图函数: | ||
73 | + function createMap() { | ||
74 | + var map = new BMap.Map("dituContent");//在百度地图容器中创建一个地图 | ||
75 | + var centerArr = centerParam.split(','); | ||
76 | + var point = new BMap.Point(centerArr[0], centerArr[1]);//定义一个中心点坐标 | ||
77 | + map.centerAndZoom(point, zoomParam);//设定地图的中心点和坐标并将地图显示在地图容器中 | ||
78 | + window.map = map;//将map变量存储在全局 | ||
79 | + } | ||
80 | + | ||
81 | + //地图事件设置函数: | ||
82 | + function setMapEvent() { | ||
83 | + map.enableDragging();//启用地图拖拽事件,默认启用(可不写) | ||
84 | + map.enableScrollWheelZoom();//启用地图滚轮放大缩小 | ||
85 | + map.enableDoubleClickZoom();//启用鼠标双击放大,默认启用(可不写) | ||
86 | + map.enableKeyboard();//启用键盘上下左右键移动地图 | ||
87 | + } | ||
88 | + | ||
89 | + //地图控件添加函数: | ||
90 | + function addMapControl() { | ||
91 | + //向地图中添加缩放控件 | ||
92 | + var ctrl_nav = new BMap.NavigationControl({anchor: BMAP_ANCHOR_TOP_LEFT, type: BMAP_NAVIGATION_CONTROL_LARGE}); | ||
93 | + map.addControl(ctrl_nav); | ||
94 | + //向地图中添加缩略图控件 | ||
95 | + var ctrl_ove = new BMap.OverviewMapControl({anchor: BMAP_ANCHOR_BOTTOM_RIGHT, isOpen: 1}); | ||
96 | + map.addControl(ctrl_ove); | ||
97 | + //向地图中添加比例尺控件 | ||
98 | + var ctrl_sca = new BMap.ScaleControl({anchor: BMAP_ANCHOR_BOTTOM_LEFT}); | ||
99 | + map.addControl(ctrl_sca); | ||
100 | + } | ||
101 | +</script> | ||
102 | +</html> |
1 | +<!doctype html> | ||
2 | +<html> | ||
3 | +<head> | ||
4 | + <meta charset="utf-8"/> | ||
5 | + <title>Baidu Maps</title> | ||
6 | + <style> | ||
7 | + html { | ||
8 | + height: 100% | ||
9 | + } | ||
10 | + | ||
11 | + body { | ||
12 | + height: 100%; | ||
13 | + margin: 0; | ||
14 | + padding: 0; | ||
15 | + background-color: #FFF | ||
16 | + } | ||
17 | + </style> | ||
18 | + <script charset="utf-8" src="//api.map.baidu.com/api?v=1.3"></script> | ||
19 | + <script> | ||
20 | + var map, geocoder; | ||
21 | + | ||
22 | + function initialize() { | ||
23 | + map = new BMap.Map('map_canvas'); | ||
24 | + var point = new BMap.Point(114.025974, 22.546054); | ||
25 | + map.centerAndZoom(point, 11); | ||
26 | + map.addControl(new BMap.NavigationControl()); | ||
27 | + map.enableScrollWheelZoom(); | ||
28 | + | ||
29 | + var gc = new BMap.Geocoder(); | ||
30 | + gc.getLocation(point, function (rs) { | ||
31 | + var addComp = rs.addressComponents; | ||
32 | + var address = [addComp.city].join(''); | ||
33 | + parent.document.getElementById("kindeditor_plugin_map_address").value = address; | ||
34 | + }); | ||
35 | + } | ||
36 | + | ||
37 | + function search(address) { | ||
38 | + if (!map) return; | ||
39 | + var local = new BMap.LocalSearch(map, { | ||
40 | + renderOptions: { | ||
41 | + map: map, | ||
42 | + autoViewport: true, | ||
43 | + selectFirstResult: false | ||
44 | + } | ||
45 | + }); | ||
46 | + local.search(address); | ||
47 | + } | ||
48 | + </script> | ||
49 | +</head> | ||
50 | +<body onload="initialize();"> | ||
51 | +<div id="map_canvas" style="width:100%; height:100%"></div> | ||
52 | +</body> | ||
53 | +</html> |
1 | +/******************************************************************************* | ||
2 | +* KindEditor - WYSIWYG HTML Editor for Internet | ||
3 | +* Copyright (C) 2006-2011 kindsoft.net | ||
4 | +* | ||
5 | +* @author Roddy <luolonghao@gmail.com> | ||
6 | +* @site http://www.kindsoft.net/ | ||
7 | +* @licence http://www.kindsoft.net/license.php | ||
8 | +*******************************************************************************/ | ||
9 | + | ||
10 | +KindEditor.plugin('clearhtml', function(K) { | ||
11 | + var self = this, name = 'clearhtml'; | ||
12 | + self.clickToolbar(name, function() { | ||
13 | + self.focus(); | ||
14 | + var html = self.html(); | ||
15 | + html = html.replace(/(<script[^>]*>)([\s\S]*?)(<\/script>)/ig, ''); | ||
16 | + html = html.replace(/(<style[^>]*>)([\s\S]*?)(<\/style>)/ig, ''); | ||
17 | + html = K.formatHtml(html, { | ||
18 | + a : ['href', 'target'], | ||
19 | + embed : ['src', 'width', 'height', 'type', 'loop', 'autostart', 'quality', '.width', '.height', 'align', 'allowscriptaccess'], | ||
20 | + img : ['src', 'width', 'height', 'border', 'alt', 'title', '.width', '.height'], | ||
21 | + table : ['border'], | ||
22 | + 'td,th' : ['rowspan', 'colspan'], | ||
23 | + 'div,hr,br,tbody,tr,p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6' : [] | ||
24 | + }); | ||
25 | + self.html(html); | ||
26 | + self.cmd.selection(true); | ||
27 | + self.addBookmark(); | ||
28 | + }); | ||
29 | +}); |
addons/nkeditor/assets/plugins/code/code.js
0 → 100644
1 | +/******************************************************************************* | ||
2 | +* KindEditor - WYSIWYG HTML Editor for Internet | ||
3 | +* Copyright (C) 2006-2011 kindsoft.net | ||
4 | +* | ||
5 | +* @author Roddy <luolonghao@gmail.com> | ||
6 | +* @site http://www.kindsoft.net/ | ||
7 | +* @licence http://www.kindsoft.net/license.php | ||
8 | +*******************************************************************************/ | ||
9 | + | ||
10 | +// google code prettify: http://google-code-prettify.googlecode.com/ | ||
11 | +// http://google-code-prettify.googlecode.com/ | ||
12 | + | ||
13 | +KindEditor.plugin('code', function(K) { | ||
14 | + var self = this, name = 'code'; | ||
15 | + self.clickToolbar(name, function() { | ||
16 | + var lang = self.lang(name + '.'), | ||
17 | + html = ['<div style="margin: 0px 20px;">', | ||
18 | + '<div class="ke-dialog-row">', | ||
19 | + '<select class="ke-select" style="margin-bottom: 5px;">', | ||
20 | + '<option value="javascript">JavaScript</option>', | ||
21 | + '<option value="html">HTML</option>', | ||
22 | + '<option value="css">CSS</option>', | ||
23 | + '<option value="php">PHP</option>', | ||
24 | + '<option value="perl">Perl</option>', | ||
25 | + '<option value="python">Python</option>', | ||
26 | + '<option value="ruby">Ruby</option>', | ||
27 | + '<option value="java">Java</option>', | ||
28 | + '<option value="go">Go</option>', | ||
29 | + '<option value="asp">ASP/VB</option>', | ||
30 | + '<option value="csharp">C#</option>', | ||
31 | + '<option value="cpp">C/C++</option>', | ||
32 | + '<option value="cs">C#</option>', | ||
33 | + '<option value="bash">Shell</option>', | ||
34 | + '<option value="sql">SQL</option>', | ||
35 | + '<option value="markup">Other</option>', | ||
36 | + '</select>', | ||
37 | + '</div>', | ||
38 | + '<textarea class="ke-textarea" style="width:408px;height:260px;"></textarea>', | ||
39 | + '</div>'].join(''), | ||
40 | + dialog = self.createDialog({ | ||
41 | + name : name, | ||
42 | + width : 450, | ||
43 | + title : self.lang(name), | ||
44 | + body : html, | ||
45 | + yesBtn : { | ||
46 | + name : self.lang('yes'), | ||
47 | + click : function(e) { | ||
48 | + var type = K('.ke-select', dialog.div).val(), | ||
49 | + code = textarea.val(), | ||
50 | + cls = type === '' ? '' : 'language-' + type, | ||
51 | + html = '<pre class="' + cls + '"><code>' + K.escape(code) + '</code></pre> <br/>'; | ||
52 | + if (K.trim(code) === '') { | ||
53 | + K.options.errorMsgHandler(lang.pleaseInput, "error"); | ||
54 | + textarea[0].focus(); | ||
55 | + return; | ||
56 | + } | ||
57 | + self.insertHtml(html).hideDialog().focus(); | ||
58 | + } | ||
59 | + } | ||
60 | + }), | ||
61 | + textarea = K('textarea', dialog.div); | ||
62 | + textarea[0].focus(); | ||
63 | + }); | ||
64 | +}); |
1 | +/** | ||
2 | + * @author yangjian | ||
3 | + * @since 18-9-11 下午9:02. | ||
4 | + */ | ||
5 | + | ||
6 | +// function _bindEvent(el, type, fn) { | ||
7 | +// if (el.addEventListener){ | ||
8 | +// el.addEventListener(type, fn); | ||
9 | +// } else if (el.attachEvent){ | ||
10 | +// el.attachEvent('on' + type, fn); | ||
11 | +// } | ||
12 | +// } | ||
13 | +// _bindEvent(document.body, "DOMNodeInserted", function(e) { | ||
14 | +// var className = e.target.className; | ||
15 | +// if (className && className.indexOf("language-") != -1) { | ||
16 | +// Prism.highlightElement(e.target); | ||
17 | +// } | ||
18 | +// }) |
1 | +/* PrismJS 1.15.0 | ||
2 | +https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+c+csharp+bash+cpp+aspnet+ruby+markup-templating+go+markdown+php+python+sass+yaml&plugins=line-highlight+line-numbers+toolbar+highlight-keywords+show-language+copy-to-clipboard */ | ||
3 | +/** | ||
4 | + * prism.js default theme for JavaScript, CSS and HTML | ||
5 | + * Based on dabblet (http://dabblet.com) | ||
6 | + * @author Lea Verou | ||
7 | + */ | ||
8 | + | ||
9 | +code[class*="language-"], | ||
10 | +pre[class*="language-"] { | ||
11 | + color: black; | ||
12 | + background: none; | ||
13 | + text-shadow: 0 1px white; | ||
14 | + font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; | ||
15 | + text-align: left; | ||
16 | + white-space: pre; | ||
17 | + word-spacing: normal; | ||
18 | + word-break: normal; | ||
19 | + word-wrap: normal; | ||
20 | + line-height: 1.5; | ||
21 | + | ||
22 | + -moz-tab-size: 4; | ||
23 | + -o-tab-size: 4; | ||
24 | + tab-size: 4; | ||
25 | + | ||
26 | + -webkit-hyphens: none; | ||
27 | + -moz-hyphens: none; | ||
28 | + -ms-hyphens: none; | ||
29 | + hyphens: none; | ||
30 | +} | ||
31 | + | ||
32 | +pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection, | ||
33 | +code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection { | ||
34 | + text-shadow: none; | ||
35 | + background: #b3d4fc; | ||
36 | +} | ||
37 | + | ||
38 | +pre[class*="language-"]::selection, pre[class*="language-"] ::selection, | ||
39 | +code[class*="language-"]::selection, code[class*="language-"] ::selection { | ||
40 | + text-shadow: none; | ||
41 | + background: #b3d4fc; | ||
42 | +} | ||
43 | + | ||
44 | +@media print { | ||
45 | + code[class*="language-"], | ||
46 | + pre[class*="language-"] { | ||
47 | + text-shadow: none; | ||
48 | + } | ||
49 | +} | ||
50 | + | ||
51 | +/* Code blocks */ | ||
52 | +pre[class*="language-"] { | ||
53 | + padding: 1em; | ||
54 | + margin: .5em 0; | ||
55 | + overflow: auto; | ||
56 | +} | ||
57 | + | ||
58 | +:not(pre) > code[class*="language-"], | ||
59 | +pre[class*="language-"] { | ||
60 | + background: #f5f2f0; | ||
61 | +} | ||
62 | + | ||
63 | +/* Inline code */ | ||
64 | +:not(pre) > code[class*="language-"] { | ||
65 | + padding: .1em; | ||
66 | + border-radius: .3em; | ||
67 | + white-space: normal; | ||
68 | +} | ||
69 | + | ||
70 | +.token.comment, | ||
71 | +.token.prolog, | ||
72 | +.token.doctype, | ||
73 | +.token.cdata { | ||
74 | + color: slategray; | ||
75 | +} | ||
76 | + | ||
77 | +.token.punctuation { | ||
78 | + color: #999; | ||
79 | +} | ||
80 | + | ||
81 | +.namespace { | ||
82 | + opacity: .7; | ||
83 | +} | ||
84 | + | ||
85 | +.token.property, | ||
86 | +.token.tag, | ||
87 | +.token.boolean, | ||
88 | +.token.number, | ||
89 | +.token.constant, | ||
90 | +.token.symbol, | ||
91 | +.token.deleted { | ||
92 | + color: #905; | ||
93 | +} | ||
94 | + | ||
95 | +.token.selector, | ||
96 | +.token.attr-name, | ||
97 | +.token.string, | ||
98 | +.token.char, | ||
99 | +.token.builtin, | ||
100 | +.token.inserted { | ||
101 | + color: #690; | ||
102 | +} | ||
103 | + | ||
104 | +.token.operator, | ||
105 | +.token.entity, | ||
106 | +.token.url, | ||
107 | +.language-css .token.string, | ||
108 | +.style .token.string { | ||
109 | + color: #9a6e3a; | ||
110 | + background: hsla(0, 0%, 100%, .5); | ||
111 | +} | ||
112 | + | ||
113 | +.token.atrule, | ||
114 | +.token.attr-value, | ||
115 | +.token.keyword { | ||
116 | + color: #07a; | ||
117 | +} | ||
118 | + | ||
119 | +.token.function, | ||
120 | +.token.class-name { | ||
121 | + color: #DD4A68; | ||
122 | +} | ||
123 | + | ||
124 | +.token.regex, | ||
125 | +.token.important, | ||
126 | +.token.variable { | ||
127 | + color: #e90; | ||
128 | +} | ||
129 | + | ||
130 | +.token.important, | ||
131 | +.token.bold { | ||
132 | + font-weight: bold; | ||
133 | +} | ||
134 | +.token.italic { | ||
135 | + font-style: italic; | ||
136 | +} | ||
137 | + | ||
138 | +.token.entity { | ||
139 | + cursor: help; | ||
140 | +} | ||
141 | + | ||
142 | +pre[data-line] { | ||
143 | + position: relative; | ||
144 | + padding: 1em 0 1em 3em; | ||
145 | +} | ||
146 | + | ||
147 | +.line-highlight { | ||
148 | + position: absolute; | ||
149 | + left: 0; | ||
150 | + right: 0; | ||
151 | + padding: inherit 0; | ||
152 | + margin-top: 1em; /* Same as .prism’s padding-top */ | ||
153 | + | ||
154 | + background: hsla(24, 20%, 50%,.08); | ||
155 | + background: linear-gradient(to right, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0)); | ||
156 | + | ||
157 | + pointer-events: none; | ||
158 | + | ||
159 | + line-height: inherit; | ||
160 | + white-space: pre; | ||
161 | +} | ||
162 | + | ||
163 | + .line-highlight:before, | ||
164 | + .line-highlight[data-end]:after { | ||
165 | + content: attr(data-start); | ||
166 | + position: absolute; | ||
167 | + top: .4em; | ||
168 | + left: .6em; | ||
169 | + min-width: 1em; | ||
170 | + padding: 0 .5em; | ||
171 | + background-color: hsla(24, 20%, 50%,.4); | ||
172 | + color: hsl(24, 20%, 95%); | ||
173 | + font: bold 65%/1.5 sans-serif; | ||
174 | + text-align: center; | ||
175 | + vertical-align: .3em; | ||
176 | + border-radius: 999px; | ||
177 | + text-shadow: none; | ||
178 | + box-shadow: 0 1px white; | ||
179 | + } | ||
180 | + | ||
181 | + .line-highlight[data-end]:after { | ||
182 | + content: attr(data-end); | ||
183 | + top: auto; | ||
184 | + bottom: .4em; | ||
185 | + } | ||
186 | + | ||
187 | +.line-numbers .line-highlight:before, | ||
188 | +.line-numbers .line-highlight:after { | ||
189 | + content: none; | ||
190 | +} | ||
191 | + | ||
192 | +pre[class*="language-"].line-numbers { | ||
193 | + position: relative; | ||
194 | + padding-left: 3.8em; | ||
195 | + counter-reset: linenumber; | ||
196 | +} | ||
197 | + | ||
198 | +pre[class*="language-"].line-numbers > code { | ||
199 | + position: relative; | ||
200 | + white-space: inherit; | ||
201 | +} | ||
202 | + | ||
203 | +.line-numbers .line-numbers-rows { | ||
204 | + position: absolute; | ||
205 | + pointer-events: none; | ||
206 | + top: 0; | ||
207 | + font-size: 100%; | ||
208 | + left: -3.8em; | ||
209 | + width: 3em; /* works for line-numbers below 1000 lines */ | ||
210 | + letter-spacing: -1px; | ||
211 | + border-right: 1px solid #999; | ||
212 | + | ||
213 | + -webkit-user-select: none; | ||
214 | + -moz-user-select: none; | ||
215 | + -ms-user-select: none; | ||
216 | + user-select: none; | ||
217 | + | ||
218 | +} | ||
219 | + | ||
220 | + .line-numbers-rows > span { | ||
221 | + pointer-events: none; | ||
222 | + display: block; | ||
223 | + counter-increment: linenumber; | ||
224 | + } | ||
225 | + | ||
226 | + .line-numbers-rows > span:before { | ||
227 | + content: counter(linenumber); | ||
228 | + color: #999; | ||
229 | + display: block; | ||
230 | + padding-right: 0.8em; | ||
231 | + text-align: right; | ||
232 | + } | ||
233 | + | ||
234 | +div.code-toolbar { | ||
235 | + position: relative; | ||
236 | +} | ||
237 | + | ||
238 | +div.code-toolbar > .toolbar { | ||
239 | + position: absolute; | ||
240 | + top: .3em; | ||
241 | + right: .2em; | ||
242 | + transition: opacity 0.3s ease-in-out; | ||
243 | + opacity: 0; | ||
244 | +} | ||
245 | + | ||
246 | +div.code-toolbar:hover > .toolbar { | ||
247 | + opacity: 1; | ||
248 | +} | ||
249 | + | ||
250 | +div.code-toolbar > .toolbar .toolbar-item { | ||
251 | + display: inline-block; | ||
252 | +} | ||
253 | + | ||
254 | +div.code-toolbar > .toolbar a { | ||
255 | + cursor: pointer; | ||
256 | +} | ||
257 | + | ||
258 | +div.code-toolbar > .toolbar button { | ||
259 | + background: none; | ||
260 | + border: 0; | ||
261 | + color: inherit; | ||
262 | + font: inherit; | ||
263 | + line-height: normal; | ||
264 | + overflow: visible; | ||
265 | + padding: 0; | ||
266 | + -webkit-user-select: none; /* for button */ | ||
267 | + -moz-user-select: none; | ||
268 | + -ms-user-select: none; | ||
269 | +} | ||
270 | + | ||
271 | +div.code-toolbar > .toolbar a, | ||
272 | +div.code-toolbar > .toolbar button, | ||
273 | +div.code-toolbar > .toolbar span { | ||
274 | + color: #bbb; | ||
275 | + font-size: .8em; | ||
276 | + padding: 0 .5em; | ||
277 | + background: #f5f2f0; | ||
278 | + background: rgba(224, 224, 224, 0.2); | ||
279 | + box-shadow: 0 2px 0 0 rgba(0,0,0,0.2); | ||
280 | + border-radius: .5em; | ||
281 | +} | ||
282 | + | ||
283 | +div.code-toolbar > .toolbar a:hover, | ||
284 | +div.code-toolbar > .toolbar a:focus, | ||
285 | +div.code-toolbar > .toolbar button:hover, | ||
286 | +div.code-toolbar > .toolbar button:focus, | ||
287 | +div.code-toolbar > .toolbar span:hover, | ||
288 | +div.code-toolbar > .toolbar span:focus { | ||
289 | + color: inherit; | ||
290 | + text-decoration: none; | ||
291 | +} | ||
292 | + |
addons/nkeditor/assets/plugins/code/prism.js
0 → 100644
1 | +/* PrismJS 1.15.0 | ||
2 | +https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+c+csharp+bash+cpp+aspnet+ruby+markup-templating+go+markdown+php+python+sass+yaml&plugins=line-highlight+line-numbers+toolbar+highlight-keywords+show-language+copy-to-clipboard */ | ||
3 | +var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(){var e=/\blang(?:uage)?-([\w-]+)\b/i,t=0,n=_self.Prism={manual:_self.Prism&&_self.Prism.manual,disableWorkerMessageHandler:_self.Prism&&_self.Prism.disableWorkerMessageHandler,util:{encode:function(e){return e instanceof r?new r(e.type,n.util.encode(e.content),e.alias):"Array"===n.util.type(e)?e.map(n.util.encode):e.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).match(/\[object (\w+)\]/)[1]},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function(e,t){var r=n.util.type(e);switch(t=t||{},r){case"Object":if(t[n.util.objId(e)])return t[n.util.objId(e)];var a={};t[n.util.objId(e)]=a;for(var l in e)e.hasOwnProperty(l)&&(a[l]=n.util.clone(e[l],t));return a;case"Array":if(t[n.util.objId(e)])return t[n.util.objId(e)];var a=[];return t[n.util.objId(e)]=a,e.forEach(function(e,r){a[r]=n.util.clone(e,t)}),a}return e}},languages:{extend:function(e,t){var r=n.util.clone(n.languages[e]);for(var a in t)r[a]=t[a];return r},insertBefore:function(e,t,r,a){a=a||n.languages;var l=a[e];if(2==arguments.length){r=arguments[1];for(var i in r)r.hasOwnProperty(i)&&(l[i]=r[i]);return l}var o={};for(var s in l)if(l.hasOwnProperty(s)){if(s==t)for(var i in r)r.hasOwnProperty(i)&&(o[i]=r[i]);o[s]=l[s]}var u=a[e];return a[e]=o,n.languages.DFS(n.languages,function(t,n){n===u&&t!=e&&(this[t]=o)}),o},DFS:function(e,t,r,a){a=a||{};for(var l in e)e.hasOwnProperty(l)&&(t.call(e,l,e[l],r||l),"Object"!==n.util.type(e[l])||a[n.util.objId(e[l])]?"Array"!==n.util.type(e[l])||a[n.util.objId(e[l])]||(a[n.util.objId(e[l])]=!0,n.languages.DFS(e[l],t,l,a)):(a[n.util.objId(e[l])]=!0,n.languages.DFS(e[l],t,null,a)))}},plugins:{},highlightAll:function(e,t){n.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,r){var a={callback:r,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};n.hooks.run("before-highlightall",a);for(var l,i=a.elements||e.querySelectorAll(a.selector),o=0;l=i[o++];)n.highlightElement(l,t===!0,a.callback)},highlightElement:function(t,r,a){for(var l,i,o=t;o&&!e.test(o.className);)o=o.parentNode;o&&(l=(o.className.match(e)||[,""])[1].toLowerCase(),i=n.languages[l]),t.className=t.className.replace(e,"").replace(/\s+/g," ")+" language-"+l,t.parentNode&&(o=t.parentNode,/pre/i.test(o.nodeName)&&(o.className=o.className.replace(e,"").replace(/\s+/g," ")+" language-"+l));var s=t.textContent,u={element:t,language:l,grammar:i,code:s};if(n.hooks.run("before-sanity-check",u),!u.code||!u.grammar)return u.code&&(n.hooks.run("before-highlight",u),u.element.textContent=u.code,n.hooks.run("after-highlight",u)),n.hooks.run("complete",u),void 0;if(n.hooks.run("before-highlight",u),r&&_self.Worker){var g=new Worker(n.filename);g.onmessage=function(e){u.highlightedCode=e.data,n.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,a&&a.call(u.element),n.hooks.run("after-highlight",u),n.hooks.run("complete",u)},g.postMessage(JSON.stringify({language:u.language,code:u.code,immediateClose:!0}))}else u.highlightedCode=n.highlight(u.code,u.grammar,u.language),n.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,a&&a.call(t),n.hooks.run("after-highlight",u),n.hooks.run("complete",u)},highlight:function(e,t,a){var l={code:e,grammar:t,language:a};return n.hooks.run("before-tokenize",l),l.tokens=n.tokenize(l.code,l.grammar),n.hooks.run("after-tokenize",l),r.stringify(n.util.encode(l.tokens),l.language)},matchGrammar:function(e,t,r,a,l,i,o){var s=n.Token;for(var u in r)if(r.hasOwnProperty(u)&&r[u]){if(u==o)return;var g=r[u];g="Array"===n.util.type(g)?g:[g];for(var c=0;c<g.length;++c){var h=g[c],f=h.inside,d=!!h.lookbehind,m=!!h.greedy,p=0,y=h.alias;if(m&&!h.pattern.global){var v=h.pattern.toString().match(/[imuy]*$/)[0];h.pattern=RegExp(h.pattern.source,v+"g")}h=h.pattern||h;for(var b=a,k=l;b<t.length;k+=t[b].length,++b){var w=t[b];if(t.length>e.length)return;if(!(w instanceof s)){if(m&&b!=t.length-1){h.lastIndex=k;var _=h.exec(e);if(!_)break;for(var j=_.index+(d?_[1].length:0),P=_.index+_[0].length,A=b,x=k,O=t.length;O>A&&(P>x||!t[A].type&&!t[A-1].greedy);++A)x+=t[A].length,j>=x&&(++b,k=x);if(t[b]instanceof s)continue;I=A-b,w=e.slice(k,x),_.index-=k}else{h.lastIndex=0;var _=h.exec(w),I=1}if(_){d&&(p=_[1]?_[1].length:0);var j=_.index+p,_=_[0].slice(p),P=j+_.length,N=w.slice(0,j),S=w.slice(P),C=[b,I];N&&(++b,k+=N.length,C.push(N));var E=new s(u,f?n.tokenize(_,f):_,y,_,m);if(C.push(E),S&&C.push(S),Array.prototype.splice.apply(t,C),1!=I&&n.matchGrammar(e,t,r,b,k,!0,u),i)break}else if(i)break}}}}},tokenize:function(e,t){var r=[e],a=t.rest;if(a){for(var l in a)t[l]=a[l];delete t.rest}return n.matchGrammar(e,r,t,0,0,!1),r},hooks:{all:{},add:function(e,t){var r=n.hooks.all;r[e]=r[e]||[],r[e].push(t)},run:function(e,t){var r=n.hooks.all[e];if(r&&r.length)for(var a,l=0;a=r[l++];)a(t)}}},r=n.Token=function(e,t,n,r,a){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length,this.greedy=!!a};if(r.stringify=function(e,t,a){if("string"==typeof e)return e;if("Array"===n.util.type(e))return e.map(function(n){return r.stringify(n,t,e)}).join("");var l={type:e.type,content:r.stringify(e.content,t,a),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:a};if(e.alias){var i="Array"===n.util.type(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(l.classes,i)}n.hooks.run("wrap",l);var o=Object.keys(l.attributes).map(function(e){return e+'="'+(l.attributes[e]||"").replace(/"/g,""")+'"'}).join(" ");return"<"+l.tag+' class="'+l.classes.join(" ")+'"'+(o?" "+o:"")+">"+l.content+"</"+l.tag+">"},!_self.document)return _self.addEventListener?(n.disableWorkerMessageHandler||_self.addEventListener("message",function(e){var t=JSON.parse(e.data),r=t.language,a=t.code,l=t.immediateClose;_self.postMessage(n.highlight(a,n.languages[r],r)),l&&_self.close()},!1),_self.Prism):_self.Prism;var a=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return a&&(n.filename=a.src,n.manual||a.hasAttribute("data-manual")||("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(n.highlightAll):window.setTimeout(n.highlightAll,16):document.addEventListener("DOMContentLoaded",n.highlightAll))),_self.Prism}();"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism); | ||
4 | +Prism.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:/<!DOCTYPE[\s\S]+?>/i,cdata:/<!\[CDATA\[[\s\S]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/(^|[^\\])["']/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.hooks.add("wrap",function(a){"entity"===a.type&&(a.attributes.title=a.content.replace(/&/,"&"))}),Prism.languages.xml=Prism.languages.markup,Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup; | ||
5 | +Prism.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(?:;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^{}\s][^{};]*?(?=\s*\{)/,string:{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/\B!important\b/i,"function":/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},Prism.languages.css.atrule.inside.rest=Prism.languages.css,Prism.languages.markup&&(Prism.languages.insertBefore("markup","tag",{style:{pattern:/(<style[\s\S]*?>)[\s\S]*?(?=<\/style>)/i,lookbehind:!0,inside:Prism.languages.css,alias:"language-css",greedy:!0}}),Prism.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:Prism.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:Prism.languages.css}},alias:"language-css"}},Prism.languages.markup.tag)); | ||
6 | +Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,"boolean":/\b(?:true|false)\b/,"function":/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/}; | ||
7 | +Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},/\b(?:as|async|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/],number:/\b(?:(?:0[xX][\dA-Fa-f]+|0[bB][01]+|0[oO][0-7]+)n?|\d+n|NaN|Infinity)\b|(?:\b\d+\.?\d*|\B\.\d+)(?:[Ee][+-]?\d+)?/,"function":/[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*\(|\.(?:apply|bind|call)\()/,operator:/-[-=]?|\+[+=]?|!=?=?|<<?=?|>>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[[^\]\r\n]+]|\\.|[^\/\\\[\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})\]]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:function\b|(?:\([^()]*\)|[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/i,alias:"function"},constant:/\b[A-Z][A-Z\d_]*\b/}),Prism.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${[^}]+}|[^\\`])*`/,greedy:!0,inside:{interpolation:{pattern:/\${[^}]+}/,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}}}),Prism.languages.markup&&Prism.languages.insertBefore("markup","tag",{script:{pattern:/(<script[\s\S]*?>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,inside:Prism.languages.javascript,alias:"language-javascript",greedy:!0}}),Prism.languages.js=Prism.languages.javascript; | ||
8 | +Prism.languages.c=Prism.languages.extend("clike",{keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*\/%&|^!=<>]=?/,number:/(?:\b0x[\da-f]+|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?)[ful]*/i}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^\s*)#\s*[a-z]+(?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,alias:"property",inside:{string:{pattern:/(#\s*include\s*)(?:<.+?>|("|')(?:\\?.)+?\2)/,lookbehind:!0},directive:{pattern:/(#\s*)\b(?:define|defined|elif|else|endif|error|ifdef|ifndef|if|import|include|line|pragma|undef|using)\b/,lookbehind:!0,alias:"keyword"}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c["class-name"],delete Prism.languages.c["boolean"]; | ||
9 | +Prism.languages.csharp=Prism.languages.extend("clike",{keyword:/\b(?:abstract|add|alias|as|ascending|async|await|base|bool|break|byte|case|catch|char|checked|class|const|continue|decimal|default|delegate|descending|do|double|dynamic|else|enum|event|explicit|extern|false|finally|fixed|float|for|foreach|from|get|global|goto|group|if|implicit|in|int|interface|internal|into|is|join|let|lock|long|namespace|new|null|object|operator|orderby|out|override|params|partial|private|protected|public|readonly|ref|remove|return|sbyte|sealed|select|set|short|sizeof|stackalloc|static|string|struct|switch|this|throw|true|try|typeof|uint|ulong|unchecked|unsafe|ushort|using|value|var|virtual|void|volatile|where|while|yield)\b/,string:[{pattern:/@("|')(?:\1\1|\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*?\1/,greedy:!0}],"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=\s+\w+)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|interface|new)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)f?/i}),Prism.languages.insertBefore("csharp","class-name",{"generic-method":{pattern:/\w+\s*<[^>\r\n]+?>\s*(?=\()/,inside:{"function":/^\w+/,"class-name":{pattern:/\b[A-Z]\w*(?:\.\w+)*\b/,inside:{punctuation:/\./}},keyword:Prism.languages.csharp.keyword,punctuation:/[<>(),.:]/}},preprocessor:{pattern:/(^\s*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(\s*#)\b(?:define|elif|else|endif|endregion|error|if|line|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}}),Prism.languages.dotnet=Prism.languages.csharp; | ||
10 | +!function(e){var t={variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|-=|\+\+?|\+=|!=?|~|\*\*?|\*=|\/=?|%=?|<<=?|>>=?|<=?|>=?|==?|&&?|&=|\^=?|\|\|?|\|=|\?|:/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\([^)]+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},/\$(?:[\w#?*!@]+|\{[^}]+\})/i]};e.languages.bash={shebang:{pattern:/^#!\s*\/bin\/bash|^#!\s*\/bin\/sh/,alias:"important"},comment:{pattern:/(^|[^"{\\])#.*/,lookbehind:!0},string:[{pattern:/((?:^|[^<])<<\s*)["']?(\w+?)["']?\s*\r?\n(?:[\s\S])*?\r?\n\2/,lookbehind:!0,greedy:!0,inside:t},{pattern:/(["'])(?:\\[\s\S]|\$\([^)]+\)|`[^`]+`|(?!\1)[^\\])*\1/,greedy:!0,inside:t}],variable:t.variable,"function":{pattern:/(^|[\s;|&])(?:alias|apropos|apt-get|aptitude|aspell|awk|basename|bash|bc|bg|builtin|bzip2|cal|cat|cd|cfdisk|chgrp|chmod|chown|chroot|chkconfig|cksum|clear|cmp|comm|command|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|enable|env|ethtool|eval|exec|expand|expect|export|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|getopts|git|grep|groupadd|groupdel|groupmod|groups|gzip|hash|head|help|hg|history|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|jobs|join|kill|killall|less|link|ln|locate|logname|logout|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|make|man|mkdir|mkfifo|mkisofs|mknod|more|most|mount|mtools|mtr|mv|mmv|nano|netstat|nice|nl|nohup|notify-send|npm|nslookup|open|op|passwd|paste|pathchk|ping|pkill|popd|pr|printcap|printenv|printf|ps|pushd|pv|pwd|quota|quotacheck|quotactl|ram|rar|rcp|read|readarray|readonly|reboot|rename|renice|remsync|rev|rm|rmdir|rsync|screen|scp|sdiff|sed|seq|service|sftp|shift|shopt|shutdown|sleep|slocate|sort|source|split|ssh|stat|strace|su|sudo|sum|suspend|sync|tail|tar|tee|test|time|timeout|times|touch|top|traceroute|trap|tr|tsort|tty|type|ulimit|umask|umount|unalias|uname|unexpand|uniq|units|unrar|unshar|uptime|useradd|userdel|usermod|users|uuencode|uudecode|v|vdir|vi|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yes|zip)(?=$|[\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&])(?:let|:|\.|if|then|else|elif|fi|for|break|continue|while|in|case|function|select|do|done|until|echo|exit|return|set|declare)(?=$|[\s;|&])/,lookbehind:!0},"boolean":{pattern:/(^|[\s;|&])(?:true|false)(?=$|[\s;|&])/,lookbehind:!0},operator:/&&?|\|\|?|==?|!=?|<<<?|>>|<=?|>=?|=~/,punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];]/};var a=t.variable[1].inside;a.string=e.languages.bash.string,a["function"]=e.languages.bash["function"],a.keyword=e.languages.bash.keyword,a["boolean"]=e.languages.bash["boolean"],a.operator=e.languages.bash.operator,a.punctuation=e.languages.bash.punctuation,e.languages.shell=e.languages.bash}(Prism); | ||
11 | +Prism.languages.cpp=Prism.languages.extend("c",{keyword:/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|class|compl|const|constexpr|const_cast|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|float|for|friend|goto|if|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|mutable|namespace|new|noexcept|nullptr|operator|private|protected|public|register|reinterpret_cast|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,"boolean":/\b(?:true|false)\b/,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*\/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/}),Prism.languages.insertBefore("cpp","keyword",{"class-name":{pattern:/(class\s+)\w+/i,lookbehind:!0}}),Prism.languages.insertBefore("cpp","string",{"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}); | ||
12 | +Prism.languages.aspnet=Prism.languages.extend("markup",{"page-directive tag":{pattern:/<%\s*@.*%>/i,inside:{"page-directive tag":/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,rest:Prism.languages.markup.tag.inside}},"directive tag":{pattern:/<%.*%>/i,inside:{"directive tag":/<%\s*?[$=%#:]{0,2}|%>/i,rest:Prism.languages.csharp}}}),Prism.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i,Prism.languages.insertBefore("inside","punctuation",{"directive tag":Prism.languages.aspnet["directive tag"]},Prism.languages.aspnet.tag.inside["attr-value"]),Prism.languages.insertBefore("aspnet","comment",{"asp comment":/<%--[\s\S]*?--%>/}),Prism.languages.insertBefore("aspnet",Prism.languages.javascript?"script":"tag",{"asp script":{pattern:/(<script(?=.*runat=['"]?server['"]?)[\s\S]*?>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,inside:Prism.languages.csharp||{}}}); | ||
13 | +!function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin(?:\r?\n|\r)(?:.*(?:\r?\n|\r))*?=end/m,greedy:!0}],keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|false|for|if|in|module|new|next|nil|not|or|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|true|undef|unless|until|when|while|yield)\b/});var n={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};e.languages.insertBefore("ruby","keyword",{regex:[{pattern:/%r([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1[gim]{0,3}/,greedy:!0,inside:{interpolation:n}},{pattern:/%r\((?:[^()\\]|\\[\s\S])*\)[gim]{0,3}/,greedy:!0,inside:{interpolation:n}},{pattern:/%r\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}[gim]{0,3}/,greedy:!0,inside:{interpolation:n}},{pattern:/%r\[(?:[^\[\]\\]|\\[\s\S])*\][gim]{0,3}/,greedy:!0,inside:{interpolation:n}},{pattern:/%r<(?:[^<>\\]|\\[\s\S])*>[gim]{0,3}/,greedy:!0,inside:{interpolation:n}},{pattern:/(^|[^\/])\/(?!\/)(\[.+?]|\\.|[^\/\\\r\n])+\/[gim]{0,3}(?=\s*($|[\r\n,.;})]))/,lookbehind:!0,greedy:!0}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:/%[qQiIwWxs]?([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0,inside:{interpolation:n}},{pattern:/%[qQiIwWxs]?\((?:[^()\\]|\\[\s\S])*\)/,greedy:!0,inside:{interpolation:n}},{pattern:/%[qQiIwWxs]?\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/,greedy:!0,inside:{interpolation:n}},{pattern:/%[qQiIwWxs]?\[(?:[^\[\]\\]|\\[\s\S])*\]/,greedy:!0,inside:{interpolation:n}},{pattern:/%[qQiIwWxs]?<(?:[^<>\\]|\\[\s\S])*>/,greedy:!0,inside:{interpolation:n}},{pattern:/("|')(?:#\{[^}]+\}|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:n}}]}(Prism); | ||
14 | +Prism.languages["markup-templating"]={},Object.defineProperties(Prism.languages["markup-templating"],{buildPlaceholders:{value:function(e,t,n,a){e.language===t&&(e.tokenStack=[],e.code=e.code.replace(n,function(n){if("function"==typeof a&&!a(n))return n;for(var r=e.tokenStack.length;-1!==e.code.indexOf("___"+t.toUpperCase()+r+"___");)++r;return e.tokenStack[r]=n,"___"+t.toUpperCase()+r+"___"}),e.grammar=Prism.languages.markup)}},tokenizePlaceholders:{value:function(e,t){if(e.language===t&&e.tokenStack){e.grammar=Prism.languages[t];var n=0,a=Object.keys(e.tokenStack),r=function(o){if(!(n>=a.length))for(var i=0;i<o.length;i++){var g=o[i];if("string"==typeof g||g.content&&"string"==typeof g.content){var c=a[n],s=e.tokenStack[c],l="string"==typeof g?g:g.content,p=l.indexOf("___"+t.toUpperCase()+c+"___");if(p>-1){++n;var f,u=l.substring(0,p),_=new Prism.Token(t,Prism.tokenize(s,e.grammar,t),"language-"+t,s),k=l.substring(p+("___"+t.toUpperCase()+c+"___").length);if(u||k?(f=[u,_,k].filter(function(e){return!!e}),r(f)):f=_,"string"==typeof g?Array.prototype.splice.apply(o,[i,1].concat(f)):g.content=f,n>=a.length)break}}else g.content&&"string"!=typeof g.content&&r(g.content)}};r(e.tokens)}}}}); | ||
15 | +Prism.languages.go=Prism.languages.extend("clike",{keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/,"boolean":/\b(?:_|iota|nil|true|false)\b/,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,number:/(?:\b0x[a-f\d]+|(?:\b\d+\.?\d*|\B\.\d+)(?:e[-+]?\d+)?)i?/i,string:{pattern:/(["'`])(\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0}}),delete Prism.languages.go["class-name"]; | ||
16 | +Prism.languages.markdown=Prism.languages.extend("markup",{}),Prism.languages.insertBefore("markdown","prolog",{blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},code:[{pattern:/^(?: {4}|\t).+/m,alias:"keyword"},{pattern:/``.+?``|`[^`\n]+`/,alias:"keyword"}],title:[{pattern:/\w+.*(?:\r?\n|\r)(?:==+|--+)/,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#+.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:/(^|[^\\])(\*\*|__)(?:(?:\r?\n|\r)(?!\r?\n|\r)|.)+?\2/,lookbehind:!0,inside:{punctuation:/^\*\*|^__|\*\*$|__$/}},italic:{pattern:/(^|[^\\])([*_])(?:(?:\r?\n|\r)(?!\r?\n|\r)|.)+?\2/,lookbehind:!0,inside:{punctuation:/^[*_]|[*_]$/}},url:{pattern:/!?\[[^\]]+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)| ?\[[^\]\n]*\])/,inside:{variable:{pattern:/(!?\[)[^\]]+(?=\]$)/,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\])*"(?=\)$)/}}}}),Prism.languages.markdown.bold.inside.url=Prism.languages.markdown.url,Prism.languages.markdown.italic.inside.url=Prism.languages.markdown.url,Prism.languages.markdown.bold.inside.italic=Prism.languages.markdown.italic,Prism.languages.markdown.italic.inside.bold=Prism.languages.markdown.bold; | ||
17 | +!function(e){e.languages.php=e.languages.extend("clike",{keyword:/\b(?:and|or|xor|array|as|break|case|cfunction|class|const|continue|declare|default|die|do|else|elseif|enddeclare|endfor|endforeach|endif|endswitch|endwhile|extends|for|foreach|function|include|include_once|global|if|new|return|static|switch|use|require|require_once|var|while|abstract|interface|public|implements|private|protected|parent|throw|null|echo|print|trait|namespace|final|yield|goto|instanceof|finally|try|catch)\b/i,constant:/\b[A-Z0-9_]{2,}\b/,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0}}),e.languages.insertBefore("php","string",{"shell-comment":{pattern:/(^|[^\\])#.*/,lookbehind:!0,alias:"comment"}}),e.languages.insertBefore("php","keyword",{delimiter:{pattern:/\?>|<\?(?:php|=)?/i,alias:"important"},variable:/\$+(?:\w+\b|(?={))/i,"package":{pattern:/(\\|namespace\s+|use\s+)[\w\\]+/,lookbehind:!0,inside:{punctuation:/\\/}}}),e.languages.insertBefore("php","operator",{property:{pattern:/(->)[\w]+/,lookbehind:!0}});var n={pattern:/{\$(?:{(?:{[^{}]+}|[^{}]+)}|[^{}])+}|(^|[^\\{])\$+(?:\w+(?:\[.+?]|->\w+)*)/,lookbehind:!0,inside:{rest:e.languages.php}};e.languages.insertBefore("php","string",{"nowdoc-string":{pattern:/<<<'([^']+)'(?:\r\n?|\n)(?:.*(?:\r\n?|\n))*?\1;/,greedy:!0,alias:"string",inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},"heredoc-string":{pattern:/<<<(?:"([^"]+)"(?:\r\n?|\n)(?:.*(?:\r\n?|\n))*?\1;|([a-z_]\w*)(?:\r\n?|\n)(?:.*(?:\r\n?|\n))*?\2;)/i,greedy:!0,alias:"string",inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:n}},"single-quoted-string":{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,alias:"string",inside:{interpolation:n}}}),delete e.languages.php.string,e.hooks.add("before-tokenize",function(n){if(/(?:<\?php|<\?)/gi.test(n.code)){var t=/(?:<\?php|<\?)[\s\S]*?(?:\?>|$)/gi;e.languages["markup-templating"].buildPlaceholders(n,"php",t)}}),e.hooks.add("after-tokenize",function(n){e.languages["markup-templating"].tokenizePlaceholders(n,"php")})}(Prism); | ||
18 | +Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"triple-quoted-string":{pattern:/("""|''')[\s\S]+?\1/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"function":{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},keyword:/\b(?:as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,"boolean":/\b(?:True|False|None)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:or|and|not)\b/,punctuation:/[{}[\];(),.:]/}; | ||
19 | +!function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t]+.+)*/m,lookbehind:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,inside:{atrule:/(?:@[\w-]+|[+=])/m}}}),delete e.languages.sass.atrule;var a=/\$[-\w]+|#\{\$[-\w]+\}/,t=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|or|not)\b/,{pattern:/(\s+)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,inside:{punctuation:/:/,variable:a,operator:t}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s]+.*)/m,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:a,operator:t,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,delete e.languages.sass.selector,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/([ \t]*)\S(?:,?[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,?[^,\r\n]+)*)*/,lookbehind:!0}})}(Prism); | ||
20 | +Prism.languages.yaml={scalar:{pattern:/([\-:]\s*(?:![^\s]+)?[ \t]*[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)[^\r\n]+(?:\2[^\r\n]+)*)/,lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:/(\s*(?:^|[:\-,[{\r\n?])[ \t]*(?:![^\s]+)?[ \t]*)[^\r\n{[\]},#\s]+?(?=\s*:\s)/,lookbehind:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:/([:\-,[{]\s*(?:![^\s]+)?[ \t]*)(?:\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?)?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?)(?=[ \t]*(?:$|,|]|}))/m,lookbehind:!0,alias:"number"},"boolean":{pattern:/([:\-,[{]\s*(?:![^\s]+)?[ \t]*)(?:true|false)[ \t]*(?=$|,|]|})/im,lookbehind:!0,alias:"important"},"null":{pattern:/([:\-,[{]\s*(?:![^\s]+)?[ \t]*)(?:null|~)[ \t]*(?=$|,|]|})/im,lookbehind:!0,alias:"important"},string:{pattern:/([:\-,[{]\s*(?:![^\s]+)?[ \t]*)("|')(?:(?!\2)[^\\\r\n]|\\.)*\2(?=[ \t]*(?:$|,|]|}))/m,lookbehind:!0,greedy:!0},number:{pattern:/([:\-,[{]\s*(?:![^\s]+)?[ \t]*)[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+\.?\d*|\.?\d+)(?:e[+-]?\d+)?|\.inf|\.nan)[ \t]*(?=$|,|]|})/im,lookbehind:!0},tag:/![^\s]+/,important:/[&*][\w]+/,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./}; | ||
21 | +!function(){function e(e,t){return Array.prototype.slice.call((t||document).querySelectorAll(e))}function t(e,t){return t=" "+t+" ",(" "+e.className+" ").replace(/[\n\t]/g," ").indexOf(t)>-1}function n(e,n,i){n="string"==typeof n?n:e.getAttribute("data-line");for(var o,l=n.replace(/\s+/g,"").split(","),a=+e.getAttribute("data-line-offset")||0,s=r()?parseInt:parseFloat,d=s(getComputedStyle(e).lineHeight),u=t(e,"line-numbers"),c=0;o=l[c++];){var p=o.split("-"),m=+p[0],f=+p[1]||m,h=e.querySelector('.line-highlight[data-range="'+o+'"]')||document.createElement("div");if(h.setAttribute("aria-hidden","true"),h.setAttribute("data-range",o),h.className=(i||"")+" line-highlight",u&&Prism.plugins.lineNumbers){var g=Prism.plugins.lineNumbers.getLine(e,m),y=Prism.plugins.lineNumbers.getLine(e,f);g&&(h.style.top=g.offsetTop+"px"),y&&(h.style.height=y.offsetTop-g.offsetTop+y.offsetHeight+"px")}else h.setAttribute("data-start",m),f>m&&h.setAttribute("data-end",f),h.style.top=(m-a-1)*d+"px",h.textContent=new Array(f-m+2).join(" \n");u?e.appendChild(h):(e.querySelector("code")||e).appendChild(h)}}function i(){var t=location.hash.slice(1);e(".temporary.line-highlight").forEach(function(e){e.parentNode.removeChild(e)});var i=(t.match(/\.([\d,-]+)$/)||[,""])[1];if(i&&!document.getElementById(t)){var r=t.slice(0,t.lastIndexOf(".")),o=document.getElementById(r);o&&(o.hasAttribute("data-line")||o.setAttribute("data-line",""),n(o,i,"temporary "),document.querySelector(".temporary.line-highlight").scrollIntoView())}}if("undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector){var r=function(){var e;return function(){if("undefined"==typeof e){var t=document.createElement("div");t.style.fontSize="13px",t.style.lineHeight="1.5",t.style.padding=0,t.style.border=0,t.innerHTML=" <br /> ",document.body.appendChild(t),e=38===t.offsetHeight,document.body.removeChild(t)}return e}}(),o=0;Prism.hooks.add("before-sanity-check",function(t){var n=t.element.parentNode,i=n&&n.getAttribute("data-line");if(n&&i&&/pre/i.test(n.nodeName)){var r=0;e(".line-highlight",n).forEach(function(e){r+=e.textContent.length,e.parentNode.removeChild(e)}),r&&/^( \n)+$/.test(t.code.slice(-r))&&(t.code=t.code.slice(0,-r))}}),Prism.hooks.add("complete",function l(e){var r=e.element.parentNode,a=r&&r.getAttribute("data-line");if(r&&a&&/pre/i.test(r.nodeName)){clearTimeout(o);var s=Prism.plugins.lineNumbers,d=e.plugins&&e.plugins.lineNumbers;t(r,"line-numbers")&&s&&!d?Prism.hooks.add("line-numbers",l):(n(r,a),o=setTimeout(i,1))}}),window.addEventListener("hashchange",i),window.addEventListener("resize",function(){var e=document.querySelectorAll("pre[data-line]");Array.prototype.forEach.call(e,function(e){n(e)})})}}(); | ||
22 | +!function(){if("undefined"!=typeof self&&self.Prism&&self.document){var e="line-numbers",t=/\n(?!$)/g,n=function(e){var n=r(e),s=n["white-space"];if("pre-wrap"===s||"pre-line"===s){var l=e.querySelector("code"),i=e.querySelector(".line-numbers-rows"),a=e.querySelector(".line-numbers-sizer"),o=l.textContent.split(t);a||(a=document.createElement("span"),a.className="line-numbers-sizer",l.appendChild(a)),a.style.display="block",o.forEach(function(e,t){a.textContent=e||"\n";var n=a.getBoundingClientRect().height;i.children[t].style.height=n+"px"}),a.textContent="",a.style.display="none"}},r=function(e){return e?window.getComputedStyle?getComputedStyle(e):e.currentStyle||null:null};window.addEventListener("resize",function(){Array.prototype.forEach.call(document.querySelectorAll("pre."+e),n)}),Prism.hooks.add("complete",function(e){if(e.code){var r=e.element.parentNode,s=/\s*\bline-numbers\b\s*/;if(r&&/pre/i.test(r.nodeName)&&(s.test(r.className)||s.test(e.element.className))&&!e.element.querySelector(".line-numbers-rows")){s.test(e.element.className)&&(e.element.className=e.element.className.replace(s," ")),s.test(r.className)||(r.className+=" line-numbers");var l,i=e.code.match(t),a=i?i.length+1:1,o=new Array(a+1);o=o.join("<span></span>"),l=document.createElement("span"),l.setAttribute("aria-hidden","true"),l.className="line-numbers-rows",l.innerHTML=o,r.hasAttribute("data-start")&&(r.style.counterReset="linenumber "+(parseInt(r.getAttribute("data-start"),10)-1)),e.element.appendChild(l),n(r),Prism.hooks.run("line-numbers",e)}}}),Prism.hooks.add("line-numbers",function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}),Prism.plugins.lineNumbers={getLine:function(t,n){if("PRE"===t.tagName&&t.classList.contains(e)){var r=t.querySelector(".line-numbers-rows"),s=parseInt(t.getAttribute("data-start"),10)||1,l=s+(r.children.length-1);s>n&&(n=s),n>l&&(n=l);var i=n-s;return r.children[i]}}}}}(); | ||
23 | +!function(){if("undefined"!=typeof self&&self.Prism&&self.document){var t=[],e={},n=function(){};Prism.plugins.toolbar={};var a=Prism.plugins.toolbar.registerButton=function(n,a){var o;o="function"==typeof a?a:function(t){var e;return"function"==typeof a.onClick?(e=document.createElement("button"),e.type="button",e.addEventListener("click",function(){a.onClick.call(this,t)})):"string"==typeof a.url?(e=document.createElement("a"),e.href=a.url):e=document.createElement("span"),e.textContent=a.text,e},t.push(e[n]=o)},o=Prism.plugins.toolbar.hook=function(a){var o=a.element.parentNode;if(o&&/pre/i.test(o.nodeName)&&!o.parentNode.classList.contains("code-toolbar")){var r=document.createElement("div");r.classList.add("code-toolbar"),o.parentNode.insertBefore(r,o),r.appendChild(o);var i=document.createElement("div");i.classList.add("toolbar"),document.body.hasAttribute("data-toolbar-order")&&(t=document.body.getAttribute("data-toolbar-order").split(",").map(function(t){return e[t]||n})),t.forEach(function(t){var e=t(a);if(e){var n=document.createElement("div");n.classList.add("toolbar-item"),n.appendChild(e),i.appendChild(n)}}),r.appendChild(i)}};a("label",function(t){var e=t.element.parentNode;if(e&&/pre/i.test(e.nodeName)&&e.hasAttribute("data-label")){var n,a,o=e.getAttribute("data-label");try{a=document.querySelector("template#"+o)}catch(r){}return a?n=a.content:(e.hasAttribute("data-url")?(n=document.createElement("a"),n.href=e.getAttribute("data-url")):n=document.createElement("span"),n.textContent=o),n}}),Prism.hooks.add("complete",o)}}(); | ||
24 | +!function(){"undefined"!=typeof self&&!self.Prism||"undefined"!=typeof global&&!global.Prism||Prism.hooks.add("wrap",function(e){"keyword"===e.type&&e.classes.push("keyword-"+e.content)})}(); | ||
25 | +!function(){if("undefined"!=typeof self&&self.Prism&&self.document){if(!Prism.plugins.toolbar)return console.warn("Show Languages plugin loaded before Toolbar plugin."),void 0;var e={html:"HTML",xml:"XML",svg:"SVG",mathml:"MathML",css:"CSS",clike:"C-like",javascript:"JavaScript",abap:"ABAP",actionscript:"ActionScript",apacheconf:"Apache Configuration",apl:"APL",applescript:"AppleScript",arff:"ARFF",asciidoc:"AsciiDoc",asm6502:"6502 Assembly",aspnet:"ASP.NET (C#)",autohotkey:"AutoHotkey",autoit:"AutoIt",shell:"Shell",basic:"BASIC",csharp:"C#",cpp:"C++",coffeescript:"CoffeeScript",csp:"Content-Security-Policy","css-extras":"CSS Extras",django:"Django/Jinja2",erb:"ERB",fsharp:"F#",gedcom:"GEDCOM",glsl:"GLSL",graphql:"GraphQL",http:"HTTP",hpkp:"HTTP Public-Key-Pins",hsts:"HTTP Strict-Transport-Security",ichigojam:"IchigoJam",inform7:"Inform 7",json:"JSON",jsonp:"JSONP",latex:"LaTeX",livescript:"LiveScript",lolcode:"LOLCODE","markup-templating":"Markup templating",matlab:"MATLAB",mel:"MEL",n4js:"N4JS",nasm:"NASM",nginx:"nginx",nsis:"NSIS",objectivec:"Objective-C",ocaml:"OCaml",opencl:"OpenCL",parigp:"PARI/GP",objectpascal:"Object Pascal",php:"PHP","php-extras":"PHP Extras",plsql:"PL/SQL",powershell:"PowerShell",properties:".properties",protobuf:"Protocol Buffers",q:"Q (kdb+ database)",jsx:"React JSX",tsx:"React TSX",renpy:"Ren'py",rest:"reST (reStructuredText)",sas:"SAS",sass:"Sass (Sass)",scss:"Sass (Scss)",sql:"SQL",soy:"Soy (Closure Template)",tap:"TAP",tt2:"Template Toolkit 2",typescript:"TypeScript",vbnet:"VB.Net",vhdl:"VHDL",vim:"vim","visual-basic":"Visual Basic",wasm:"WebAssembly",wiki:"Wiki markup",xeoracube:"XeoraCube",xojo:"Xojo (REALbasic)",xquery:"XQuery",yaml:"YAML"};Prism.plugins.toolbar.registerButton("show-language",function(a){var t=a.element.parentNode;if(t&&/pre/i.test(t.nodeName)){var s=t.getAttribute("data-language")||e[a.language]||a.language&&a.language.substring(0,1).toUpperCase()+a.language.substring(1);if(s){var i=document.createElement("span");return i.textContent=s,i}}})}}(); | ||
26 | +!function(){if("undefined"!=typeof self&&self.Prism&&self.document){if(!Prism.plugins.toolbar)return console.warn("Copy to Clipboard plugin loaded before Toolbar plugin."),void 0;var o=window.ClipboardJS||void 0;o||"function"!=typeof require||(o=require("clipboard"));var e=[];if(!o){var t=document.createElement("script"),n=document.querySelector("head");t.onload=function(){if(o=window.ClipboardJS)for(;e.length;)e.pop()()},t.src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js",n.appendChild(t)}Prism.plugins.toolbar.registerButton("copy-to-clipboard",function(t){function n(){var e=new o(i,{text:function(){return t.code}});e.on("success",function(){i.textContent="Copied!",r()}),e.on("error",function(){i.textContent="Press Ctrl+C to copy",r()})}function r(){setTimeout(function(){i.textContent="Copy"},5e3)}var i=document.createElement("a");return i.textContent="Copy",o?n():e.push(n),i})}}(); |
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('emoticons', function(K) { | ||
11 | + var self = this, name = 'emoticons', | ||
12 | + path = (self.emoticonsPath || self.pluginsPath + 'emoticons/images/'), | ||
13 | + allowPreview = self.allowPreviewEmoticons === undefined ? true : self.allowPreviewEmoticons, | ||
14 | + currentPageNum = 1; | ||
15 | + self.clickToolbar(name, function() { | ||
16 | + var rows = 5, cols = 9, total = 135, startNum = 0, | ||
17 | + cells = rows * cols, pages = Math.ceil(total / cells), | ||
18 | + colsHalf = Math.floor(cols / 2), | ||
19 | + wrapperDiv = K('<div class="ke-plugin-emoticons"></div>'), | ||
20 | + elements = [], | ||
21 | + menu = self.createMenu({ | ||
22 | + name : name, | ||
23 | + beforeRemove : function() { | ||
24 | + removeEvent(); | ||
25 | + } | ||
26 | + }); | ||
27 | + menu.div.append(wrapperDiv); | ||
28 | + var previewDiv, previewImg; | ||
29 | + if (allowPreview) { | ||
30 | + previewDiv = K('<div class="ke-preview"></div>').css('right', 0); | ||
31 | + previewImg = K('<img class="ke-preview-img" src="' + path + startNum + '.gif" />'); | ||
32 | + wrapperDiv.append(previewDiv); | ||
33 | + previewDiv.append(previewImg); | ||
34 | + } | ||
35 | + function bindCellEvent(cell, j, num) { | ||
36 | + if (previewDiv) { | ||
37 | + cell.mouseover(function() { | ||
38 | + if (j > colsHalf) { | ||
39 | + previewDiv.css('left', 0); | ||
40 | + previewDiv.css('right', ''); | ||
41 | + } else { | ||
42 | + previewDiv.css('left', ''); | ||
43 | + previewDiv.css('right', 0); | ||
44 | + } | ||
45 | + previewImg.attr('src', path + num + '.gif'); | ||
46 | + K(this).addClass('ke-on'); | ||
47 | + }); | ||
48 | + } else { | ||
49 | + cell.mouseover(function() { | ||
50 | + K(this).addClass('ke-on'); | ||
51 | + }); | ||
52 | + } | ||
53 | + cell.mouseout(function() { | ||
54 | + K(this).removeClass('ke-on'); | ||
55 | + }); | ||
56 | + cell.click(function(e) { | ||
57 | + self.insertHtml('<img src="' + path + num + '.gif" border="0" alt="" />').hideMenu().focus(); | ||
58 | + e.stop(); | ||
59 | + }); | ||
60 | + } | ||
61 | + function createEmoticonsTable(pageNum, parentDiv) { | ||
62 | + var table = document.createElement('table'); | ||
63 | + parentDiv.append(table); | ||
64 | + if (previewDiv) { | ||
65 | + K(table).mouseover(function() { | ||
66 | + previewDiv.show('block'); | ||
67 | + }); | ||
68 | + K(table).mouseout(function() { | ||
69 | + previewDiv.hide(); | ||
70 | + }); | ||
71 | + elements.push(K(table)); | ||
72 | + } | ||
73 | + table.className = 'ke-table'; | ||
74 | + table.cellPadding = 0; | ||
75 | + table.cellSpacing = 0; | ||
76 | + table.border = 0; | ||
77 | + var num = (pageNum - 1) * cells + startNum; | ||
78 | + for (var i = 0; i < rows; i++) { | ||
79 | + var row = table.insertRow(i); | ||
80 | + for (var j = 0; j < cols; j++) { | ||
81 | + var cell = K(row.insertCell(j)); | ||
82 | + cell.addClass('ke-cell'); | ||
83 | + bindCellEvent(cell, j, num); | ||
84 | + var span = K('<span class="ke-img"></span>') | ||
85 | + .css('background-position', '-' + (24 * num) + 'px 0px') | ||
86 | + .css('background-image', 'url(' + path + 'static.gif)'); | ||
87 | + cell.append(span); | ||
88 | + elements.push(cell); | ||
89 | + num++; | ||
90 | + } | ||
91 | + } | ||
92 | + return table; | ||
93 | + } | ||
94 | + var table = createEmoticonsTable(currentPageNum, wrapperDiv); | ||
95 | + function removeEvent() { | ||
96 | + K.each(elements, function() { | ||
97 | + this.unbind(); | ||
98 | + }); | ||
99 | + } | ||
100 | + var pageDiv; | ||
101 | + function bindPageEvent(el, pageNum) { | ||
102 | + el.click(function(e) { | ||
103 | + removeEvent(); | ||
104 | + table.parentNode.removeChild(table); | ||
105 | + pageDiv.remove(); | ||
106 | + table = createEmoticonsTable(pageNum, wrapperDiv); | ||
107 | + createPageTable(pageNum); | ||
108 | + currentPageNum = pageNum; | ||
109 | + e.stop(); | ||
110 | + }); | ||
111 | + } | ||
112 | + function createPageTable(currentPageNum) { | ||
113 | + pageDiv = K('<div class="ke-page"></div>'); | ||
114 | + wrapperDiv.append(pageDiv); | ||
115 | + for (var pageNum = 1; pageNum <= pages; pageNum++) { | ||
116 | + if (currentPageNum !== pageNum) { | ||
117 | + var a = K('<a href="javascript:;">[' + pageNum + ']</a>'); | ||
118 | + bindPageEvent(a, pageNum); | ||
119 | + pageDiv.append(a); | ||
120 | + elements.push(a); | ||
121 | + } else { | ||
122 | + pageDiv.append(K('@[' + pageNum + ']')); | ||
123 | + } | ||
124 | + pageDiv.append(K('@ ')); | ||
125 | + } | ||
126 | + } | ||
127 | + createPageTable(currentPageNum); | ||
128 | + }); | ||
129 | +}); |
1.8 KB
1.5 KB
3.6 KB
1.7 KB
2.4 KB
1.4 KB
2.1 KB
2.1 KB
1.2 KB
1.0 KB
1.0 KB
1.0 KB
1.1 KB
7.8 KB
1.1 KB
1.0 KB
1.1 KB
1015 字节
1003 字节
1.0 KB
996 字节
1.0 KB
1012 字节
1.1 KB
2.2 KB
1008 字节
1.0 KB
999 字节
1.0 KB
1022 字节
1013 字节
1.0 KB
956 字节
1022 字节
972 字节
1.7 KB
980 字节
945 字节
936 字节
1012 字节
968 字节
3.9 KB
1.5 KB
1.4 KB
3.3 KB
7.9 KB
7.9 KB
1.8 KB
1.8 KB
1.8 KB
2.9 KB
1.9 KB
2.2 KB
2.4 KB
3.9 KB
2.8 KB
3.2 KB
5.7 KB
1.8 KB
1.7 KB
5.1 KB
7.0 KB
4.2 KB
2.1 KB
13.1 KB
1.4 KB
1.2 KB
1.6 KB
1.8 KB
1.9 KB
9.9 KB
3.3 KB
13.1 KB
4.2 KB
-
请 注册 或 登录 后发表评论