ueditor_rails4 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (227) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.markdown +45 -0
  4. data/Rakefile +40 -0
  5. data/app/assets/images/ueditor/themes/default/anchor.gif +0 -0
  6. data/app/assets/images/ueditor/themes/default/arrow.png +0 -0
  7. data/app/assets/images/ueditor/themes/default/button-bg.gif +0 -0
  8. data/app/assets/images/ueditor/themes/default/cancelbutton.gif +0 -0
  9. data/app/assets/images/ueditor/themes/default/cursor_h.gif +0 -0
  10. data/app/assets/images/ueditor/themes/default/cursor_h.png +0 -0
  11. data/app/assets/images/ueditor/themes/default/cursor_v.gif +0 -0
  12. data/app/assets/images/ueditor/themes/default/cursor_v.png +0 -0
  13. data/app/assets/images/ueditor/themes/default/dialog-title-bg.png +0 -0
  14. data/app/assets/images/ueditor/themes/default/filescan.png +0 -0
  15. data/app/assets/images/ueditor/themes/default/highlighted.gif +0 -0
  16. data/app/assets/images/ueditor/themes/default/icons-all.gif +0 -0
  17. data/app/assets/images/ueditor/themes/default/icons.gif +0 -0
  18. data/app/assets/images/ueditor/themes/default/icons.png +0 -0
  19. data/app/assets/images/ueditor/themes/default/lock.gif +0 -0
  20. data/app/assets/images/ueditor/themes/default/neweditor-tab-bg.png +0 -0
  21. data/app/assets/images/ueditor/themes/default/pagebreak.gif +0 -0
  22. data/app/assets/images/ueditor/themes/default/scale.png +0 -0
  23. data/app/assets/images/ueditor/themes/default/spacer.gif +0 -0
  24. data/app/assets/images/ueditor/themes/default/sparator_v.png +0 -0
  25. data/app/assets/images/ueditor/themes/default/toolbar_bg.png +0 -0
  26. data/app/assets/images/ueditor/themes/default/unhighlighted.gif +0 -0
  27. data/app/assets/images/ueditor/themes/default/upload.png +0 -0
  28. data/app/assets/images/ueditor/themes/default/videologo.gif +0 -0
  29. data/app/assets/images/ueditor/themes/default/word.gif +0 -0
  30. data/app/assets/images/ueditor/themes/default/wordpaste.png +0 -0
  31. data/app/assets/images/ueditor_rails/dialogs/attachment/fileTypeImages/icon_chm.gif +0 -0
  32. data/app/assets/images/ueditor_rails/dialogs/attachment/fileTypeImages/icon_default.png +0 -0
  33. data/app/assets/images/ueditor_rails/dialogs/attachment/fileTypeImages/icon_doc.gif +0 -0
  34. data/app/assets/images/ueditor_rails/dialogs/attachment/fileTypeImages/icon_exe.gif +0 -0
  35. data/app/assets/images/ueditor_rails/dialogs/attachment/fileTypeImages/icon_mp3.gif +0 -0
  36. data/app/assets/images/ueditor_rails/dialogs/attachment/fileTypeImages/icon_mv.gif +0 -0
  37. data/app/assets/images/ueditor_rails/dialogs/attachment/fileTypeImages/icon_pdf.gif +0 -0
  38. data/app/assets/images/ueditor_rails/dialogs/attachment/fileTypeImages/icon_ppt.gif +0 -0
  39. data/app/assets/images/ueditor_rails/dialogs/attachment/fileTypeImages/icon_psd.gif +0 -0
  40. data/app/assets/images/ueditor_rails/dialogs/attachment/fileTypeImages/icon_rar.gif +0 -0
  41. data/app/assets/images/ueditor_rails/dialogs/attachment/fileTypeImages/icon_txt.gif +0 -0
  42. data/app/assets/images/ueditor_rails/dialogs/attachment/fileTypeImages/icon_xls.gif +0 -0
  43. data/app/assets/images/ueditor_rails/dialogs/image/center_focus.jpg +0 -0
  44. data/app/assets/images/ueditor_rails/dialogs/image/left_focus.jpg +0 -0
  45. data/app/assets/images/ueditor_rails/dialogs/image/none_focus.jpg +0 -0
  46. data/app/assets/images/ueditor_rails/dialogs/image/right_focus.jpg +0 -0
  47. data/app/assets/images/ueditor_rails/dialogs/scrawl/addimg.png +0 -0
  48. data/app/assets/images/ueditor_rails/dialogs/scrawl/brush.png +0 -0
  49. data/app/assets/images/ueditor_rails/dialogs/scrawl/delimg.png +0 -0
  50. data/app/assets/images/ueditor_rails/dialogs/scrawl/delimgH.png +0 -0
  51. data/app/assets/images/ueditor_rails/dialogs/scrawl/empty.png +0 -0
  52. data/app/assets/images/ueditor_rails/dialogs/scrawl/emptyH.png +0 -0
  53. data/app/assets/images/ueditor_rails/dialogs/scrawl/eraser.png +0 -0
  54. data/app/assets/images/ueditor_rails/dialogs/scrawl/redo.png +0 -0
  55. data/app/assets/images/ueditor_rails/dialogs/scrawl/redoH.png +0 -0
  56. data/app/assets/images/ueditor_rails/dialogs/scrawl/scale.png +0 -0
  57. data/app/assets/images/ueditor_rails/dialogs/scrawl/scaleH.png +0 -0
  58. data/app/assets/images/ueditor_rails/dialogs/scrawl/size.png +0 -0
  59. data/app/assets/images/ueditor_rails/dialogs/scrawl/undo.png +0 -0
  60. data/app/assets/images/ueditor_rails/dialogs/scrawl/undoH.png +0 -0
  61. data/app/assets/javascripts/ueditor_rails/_config.js.erb +211 -0
  62. data/app/assets/javascripts/ueditor_rails/dialogs/attachment.js +5 -0
  63. data/app/assets/javascripts/ueditor_rails/dialogs/attachment/_callbacks.js +166 -0
  64. data/app/assets/javascripts/ueditor_rails/dialogs/attachment/_file_type_maps.js.erb +14 -0
  65. data/app/assets/javascripts/ueditor_rails/dialogs/image.js.erb +724 -0
  66. data/app/assets/javascripts/ueditor_rails/dialogs/scrawl.js +655 -0
  67. data/app/assets/javascripts/ueditor_rails/dialogs/wordimage.js +154 -0
  68. data/app/assets/javascripts/ueditor_rails/init.js +12 -0
  69. data/app/assets/stylesheets/ueditor/themes/default/dialogbase.css.erb +100 -0
  70. data/app/assets/stylesheets/ueditor/themes/default/ueditor.css +1582 -0
  71. data/app/assets/stylesheets/ueditor/themes/iframe.css +1 -0
  72. data/app/assets/stylesheets/ueditor_rails/dialogs/attachment.css.erb +161 -0
  73. data/app/assets/stylesheets/ueditor_rails/dialogs/image.css.erb +69 -0
  74. data/app/assets/stylesheets/ueditor_rails/dialogs/scrawl.css.erb +72 -0
  75. data/app/controllers/ueditor_rails/application_controller.rb +5 -0
  76. data/app/controllers/ueditor_rails/dialogs_controller.rb +21 -0
  77. data/app/controllers/ueditor_rails/libs_controller.rb +33 -0
  78. data/app/helpers/ueditor_rails/application_helper.rb +27 -0
  79. data/app/views/ueditor_rails/dialogs/attachment.html.erb +124 -0
  80. data/app/views/ueditor_rails/dialogs/image.html.erb +203 -0
  81. data/app/views/ueditor_rails/dialogs/scrawl.html.erb +96 -0
  82. data/app/views/ueditor_rails/dialogs/wordimage.html.erb +155 -0
  83. data/config/routes.rb +11 -0
  84. data/lib/generators/ueditor_rails/USAGE +8 -0
  85. data/lib/generators/ueditor_rails/install_generator.rb +15 -0
  86. data/lib/generators/ueditor_rails/templates/ueditor_config.js.erb +216 -0
  87. data/lib/tasks/ueditor_rails_tasks.rake +4 -0
  88. data/lib/ueditor_rails/engine.rb +17 -0
  89. data/lib/ueditor_rails/helpers/form_builder.rb +11 -0
  90. data/lib/ueditor_rails/helpers/form_helper.rb +37 -0
  91. data/lib/ueditor_rails/helpers/view_helper.rb +21 -0
  92. data/lib/ueditor_rails/util.rb +42 -0
  93. data/lib/ueditor_rails/version.rb +3 -0
  94. data/lib/ueditor_rails4.rb +32 -0
  95. data/test/dummy/README.rdoc +261 -0
  96. data/test/dummy/Rakefile +7 -0
  97. data/test/dummy/app/assets/javascripts/application.js +16 -0
  98. data/test/dummy/app/assets/javascripts/posts.js +2 -0
  99. data/test/dummy/app/assets/javascripts/ueditor_config.js.erb +208 -0
  100. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  101. data/test/dummy/app/assets/stylesheets/posts.css +4 -0
  102. data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
  103. data/test/dummy/app/controllers/application_controller.rb +3 -0
  104. data/test/dummy/app/controllers/posts_controller.rb +83 -0
  105. data/test/dummy/app/helpers/application_helper.rb +2 -0
  106. data/test/dummy/app/helpers/posts_helper.rb +2 -0
  107. data/test/dummy/app/models/post.rb +3 -0
  108. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  109. data/test/dummy/app/views/posts/_form.html.erb +25 -0
  110. data/test/dummy/app/views/posts/edit.html.erb +6 -0
  111. data/test/dummy/app/views/posts/index.html.erb +29 -0
  112. data/test/dummy/app/views/posts/new.html.erb +5 -0
  113. data/test/dummy/app/views/posts/show.html.erb +14 -0
  114. data/test/dummy/config.ru +4 -0
  115. data/test/dummy/config/application.rb +61 -0
  116. data/test/dummy/config/boot.rb +10 -0
  117. data/test/dummy/config/database.yml +25 -0
  118. data/test/dummy/config/environment.rb +5 -0
  119. data/test/dummy/config/environments/development.rb +37 -0
  120. data/test/dummy/config/environments/production.rb +67 -0
  121. data/test/dummy/config/environments/test.rb +37 -0
  122. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  123. data/test/dummy/config/initializers/inflections.rb +15 -0
  124. data/test/dummy/config/initializers/mime_types.rb +5 -0
  125. data/test/dummy/config/initializers/secret_token.rb +7 -0
  126. data/test/dummy/config/initializers/session_store.rb +8 -0
  127. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  128. data/test/dummy/config/locales/en.yml +5 -0
  129. data/test/dummy/config/routes.rb +8 -0
  130. data/test/dummy/db/migrate/20130327173045_create_posts.rb +10 -0
  131. data/test/dummy/db/schema.rb +23 -0
  132. data/test/dummy/public/404.html +26 -0
  133. data/test/dummy/public/422.html +26 -0
  134. data/test/dummy/public/500.html +25 -0
  135. data/test/dummy/public/favicon.ico +0 -0
  136. data/test/dummy/script/rails +6 -0
  137. data/test/dummy/test/fixtures/posts.yml +9 -0
  138. data/test/dummy/test/functional/posts_controller_test.rb +49 -0
  139. data/test/dummy/test/unit/helpers/posts_helper_test.rb +4 -0
  140. data/test/dummy/test/unit/post_test.rb +7 -0
  141. data/test/functional/ueditor_rails/dialogs_controller_test.rb +16 -0
  142. data/test/functional/ueditor_rails/libs_controller_test.rb +21 -0
  143. data/test/integration/navigation_test.rb +10 -0
  144. data/test/test_helper.rb +15 -0
  145. data/test/ueditor_rails_test.rb +7 -0
  146. data/vendor/assets/javascripts/ueditor/dialogs/anchor/anchor.html.erb +57 -0
  147. data/vendor/assets/javascripts/ueditor/dialogs/background/background.css +24 -0
  148. data/vendor/assets/javascripts/ueditor/dialogs/background/background.html.erb +55 -0
  149. data/vendor/assets/javascripts/ueditor/dialogs/background/background.js +348 -0
  150. data/vendor/assets/javascripts/ueditor/dialogs/emotion/emotion.css.erb +43 -0
  151. data/vendor/assets/javascripts/ueditor/dialogs/emotion/emotion.html.erb +54 -0
  152. data/vendor/assets/javascripts/ueditor/dialogs/emotion/emotion.js +186 -0
  153. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/0.gif +0 -0
  154. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/bface.gif +0 -0
  155. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/cface.gif +0 -0
  156. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/fface.gif +0 -0
  157. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/jxface2.gif +0 -0
  158. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/neweditor-tab-bg.png +0 -0
  159. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/tface.gif +0 -0
  160. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/wface.gif +0 -0
  161. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/yface.gif +0 -0
  162. data/vendor/assets/javascripts/ueditor/dialogs/gmap/gmap.html.erb +89 -0
  163. data/vendor/assets/javascripts/ueditor/dialogs/help/help.css +7 -0
  164. data/vendor/assets/javascripts/ueditor/dialogs/help/help.html.erb +84 -0
  165. data/vendor/assets/javascripts/ueditor/dialogs/help/help.js +54 -0
  166. data/vendor/assets/javascripts/ueditor/dialogs/highlightcode/highlightcode.html.erb +131 -0
  167. data/vendor/assets/javascripts/ueditor/dialogs/insertframe/insertframe.html.erb +98 -0
  168. data/vendor/assets/javascripts/ueditor/dialogs/internal.js +79 -0
  169. data/vendor/assets/javascripts/ueditor/dialogs/link/link.html.erb +141 -0
  170. data/vendor/assets/javascripts/ueditor/dialogs/map/map.html.erb +105 -0
  171. data/vendor/assets/javascripts/ueditor/dialogs/music/music.css +30 -0
  172. data/vendor/assets/javascripts/ueditor/dialogs/music/music.html.erb +32 -0
  173. data/vendor/assets/javascripts/ueditor/dialogs/music/music.js +192 -0
  174. data/vendor/assets/javascripts/ueditor/dialogs/searchreplace/searchreplace.html.erb +74 -0
  175. data/vendor/assets/javascripts/ueditor/dialogs/searchreplace/searchreplace.js +160 -0
  176. data/vendor/assets/javascripts/ueditor/dialogs/snapscreen/snapscreen.html.erb +91 -0
  177. data/vendor/assets/javascripts/ueditor/dialogs/spechars/spechars.html.erb +21 -0
  178. data/vendor/assets/javascripts/ueditor/dialogs/spechars/spechars.js +56 -0
  179. data/vendor/assets/javascripts/ueditor/dialogs/table/dragicon.png +0 -0
  180. data/vendor/assets/javascripts/ueditor/dialogs/table/edittable.css +75 -0
  181. data/vendor/assets/javascripts/ueditor/dialogs/table/edittable.html.erb +57 -0
  182. data/vendor/assets/javascripts/ueditor/dialogs/table/edittable.js +182 -0
  183. data/vendor/assets/javascripts/ueditor/dialogs/table/edittd.html.erb +51 -0
  184. data/vendor/assets/javascripts/ueditor/dialogs/table/edittip.html.erb +33 -0
  185. data/vendor/assets/javascripts/ueditor/dialogs/tangram.js +1238 -0
  186. data/vendor/assets/javascripts/ueditor/dialogs/template/config.js +42 -0
  187. data/vendor/assets/javascripts/ueditor/dialogs/template/images/bg.gif +0 -0
  188. data/vendor/assets/javascripts/ueditor/dialogs/template/images/pre0.png +0 -0
  189. data/vendor/assets/javascripts/ueditor/dialogs/template/images/pre1.png +0 -0
  190. data/vendor/assets/javascripts/ueditor/dialogs/template/images/pre2.png +0 -0
  191. data/vendor/assets/javascripts/ueditor/dialogs/template/images/pre3.png +0 -0
  192. data/vendor/assets/javascripts/ueditor/dialogs/template/images/pre4.png +0 -0
  193. data/vendor/assets/javascripts/ueditor/dialogs/template/template.css +18 -0
  194. data/vendor/assets/javascripts/ueditor/dialogs/template/template.html.erb +26 -0
  195. data/vendor/assets/javascripts/ueditor/dialogs/template/template.js +53 -0
  196. data/vendor/assets/javascripts/ueditor/dialogs/video/images/center_focus.jpg +0 -0
  197. data/vendor/assets/javascripts/ueditor/dialogs/video/images/left_focus.jpg +0 -0
  198. data/vendor/assets/javascripts/ueditor/dialogs/video/images/none_focus.jpg +0 -0
  199. data/vendor/assets/javascripts/ueditor/dialogs/video/images/right_focus.jpg +0 -0
  200. data/vendor/assets/javascripts/ueditor/dialogs/video/video.css +59 -0
  201. data/vendor/assets/javascripts/ueditor/dialogs/video/video.html.erb +78 -0
  202. data/vendor/assets/javascripts/ueditor/dialogs/video/video.js.erb +409 -0
  203. data/vendor/assets/javascripts/ueditor/dialogs/webapp/webapp.html.erb +64 -0
  204. data/vendor/assets/javascripts/ueditor/editor_all.js.erb +19133 -0
  205. data/vendor/assets/javascripts/ueditor/lang/zh-cn/images/copy.png +0 -0
  206. data/vendor/assets/javascripts/ueditor/lang/zh-cn/images/imglabel.png +0 -0
  207. data/vendor/assets/javascripts/ueditor/lang/zh-cn/images/localimage.png +0 -0
  208. data/vendor/assets/javascripts/ueditor/lang/zh-cn/images/music.png +0 -0
  209. data/vendor/assets/javascripts/ueditor/lang/zh-cn/images/upload.png +0 -0
  210. data/vendor/assets/javascripts/ueditor/lang/zh-cn/zh-cn.js +492 -0
  211. data/vendor/assets/javascripts/ueditor/third-party/SyntaxHighlighter/shCore.js +3655 -0
  212. data/vendor/assets/javascripts/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css +316 -0
  213. data/vendor/assets/javascripts/ueditor/third-party/codemirror/codemirror.css +104 -0
  214. data/vendor/assets/javascripts/ueditor/third-party/codemirror/codemirror.js +3581 -0
  215. data/vendor/assets/javascripts/ueditor/third-party/fClipboard_ueditor.swf +0 -0
  216. data/vendor/assets/javascripts/ueditor/third-party/imageUploader.swf +0 -0
  217. data/vendor/assets/javascripts/ueditor/third-party/snapscreen/UEditorSnapscreen.exe +0 -0
  218. data/vendor/assets/javascripts/ueditor/third-party/swfupload/fileprogress.js +215 -0
  219. data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.cookies.js +53 -0
  220. data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.js +1132 -0
  221. data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.proxy.js +96 -0
  222. data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.queue.js +98 -0
  223. data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.speed.js +346 -0
  224. data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.swf +0 -0
  225. data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload_fp9.swf +0 -0
  226. data/vendor/assets/javascripts/ueditor/uparse.js +348 -0
  227. metadata +363 -0
@@ -0,0 +1,492 @@
1
+ /**
2
+ * Created with JetBrains PhpStorm.
3
+ * User: taoqili
4
+ * Date: 12-6-12
5
+ * Time: 下午5:02
6
+ * To change this template use File | Settings | File Templates.
7
+ */
8
+ UE.I18N['zh-cn'] = {
9
+ 'labelMap':{
10
+ 'anchor':'锚点', 'undo':'撤销', 'redo':'重做', 'bold':'加粗', 'indent':'首行缩进', 'snapscreen':'截图',
11
+ 'italic':'斜体', 'underline':'下划线', 'strikethrough':'删除线', 'subscript':'下标',
12
+ 'superscript':'上标', 'formatmatch':'格式刷', 'source':'源代码', 'blockquote':'引用',
13
+ 'pasteplain':'纯文本粘贴模式', 'selectall':'全选', 'print':'打印', 'preview':'预览',
14
+ 'horizontal':'分隔线', 'removeformat':'清除格式', 'time':'时间', 'date':'日期',
15
+ 'unlink':'取消链接', 'insertrow':'前插入行', 'insertcol':'前插入列', 'mergeright':'右合并单元格', 'mergedown':'下合并单元格',
16
+ 'deleterow':'删除行', 'deletecol':'删除列', 'splittorows':'拆分成行', 'splittocols':'拆分成列', 'splittocells':'完全拆分单元格',
17
+ 'mergecells':'合并多个单元格', 'deletetable':'删除表格', 'cleardoc':'清空文档','insertparagraphbeforetable':"表格前插入行",'fontfamily':'字体', 'fontsize':'字号', 'paragraph':'段落格式', 'insertimage':'图片',
18
+ 'edittable':'表格属性','edittd':'单元格属性', 'link':'超链接','emotion':'表情', 'spechars':'特殊字符', 'searchreplace':'查询替换', 'map':'Baidu地图', 'gmap':'Google地图',
19
+ 'insertvideo':'视频', 'help':'帮助', 'justifyleft':'居左对齐', 'justifyright':'居右对齐', 'justifycenter':'居中对齐',
20
+ 'justifyjustify':'两端对齐', 'forecolor':'字体颜色', 'backcolor':'背景色', 'insertorderedlist':'有序列表',
21
+ 'insertunorderedlist':'无序列表', 'fullscreen':'全屏', 'directionalityltr':'从左向右输入', 'directionalityrtl':'从右向左输入',
22
+ 'rowspacingtop':'段前距', 'rowspacingbottom':'段后距', 'highlightcode':'插入代码', 'pagebreak':'分页', 'insertframe':'插入Iframe', 'imagenone':'默认',
23
+ 'imageleft':'左浮动', 'imageright':'右浮动', 'attachment':'附件', 'imagecenter':'居中', 'wordimage':'图片转存',
24
+ 'lineheight':'行间距','edittip' :'编辑提示','customstyle':'自定义标题', 'autotypeset':'自动排版', 'webapp':'百度应用',
25
+ 'touppercase':'字母大写', 'tolowercase':'字母小写','background':'背景','template':'模板','scrawl':'涂鸦','music':'音乐',inserttable:'插入表格'
26
+ },
27
+ 'insertorderedlist':{
28
+ 'num':'1,2,3...',
29
+ 'num1':'1),2),3)...',
30
+ 'num2':'(1),(2),(3)...',
31
+ 'cn':'一,二,三....',
32
+ 'cn1':'一),二),三)....',
33
+ 'cn2':'(一),(二),(三)....',
34
+ 'decimal':'1,2,3...',
35
+ 'lower-alpha':'a,b,c...',
36
+ 'lower-roman':'i,ii,iii...',
37
+ 'upper-alpha':'A,B,C...',
38
+ 'upper-roman':'I,II,III...'
39
+ },
40
+ 'insertunorderedlist':{
41
+ 'circle':'○ 大圆圈',
42
+ 'disc':'● 小黑点',
43
+ 'square':'■ 小方块 ',
44
+ 'dash' :'— 破折号',
45
+ 'dot':' 。 小圆圈'
46
+ },
47
+ 'paragraph':{'p':'段落', 'h1':'标题 1', 'h2':'标题 2', 'h3':'标题 3', 'h4':'标题 4', 'h5':'标题 5', 'h6':'标题 6'},
48
+ 'fontfamily':{
49
+ 'songti':'宋体',
50
+ 'kaiti':'楷体',
51
+ 'heiti':'黑体',
52
+ 'lishu':'隶书',
53
+ 'yahei':'微软雅黑',
54
+ 'andaleMono':'andale mono',
55
+ 'arial': 'arial',
56
+ 'arialBlack':'arial black',
57
+ 'comicSansMs':'comic sans ms',
58
+ 'impact':'impact',
59
+ 'timesNewRoman':'times new roman'
60
+ },
61
+ 'customstyle':{
62
+ 'tc':'标题居中',
63
+ 'tl':'标题居左',
64
+ 'im':'强调',
65
+ 'hi':'明显强调'
66
+ },
67
+ elementPathTip:"元素路径",
68
+ 'wordCountTip':"字数统计",
69
+ 'wordCountMsg':'当前已输入{#count}个字符, 您还可以输入{#leave}个字符。 ',
70
+ 'wordOverFlowMsg':'<span style="color:red;">字数超出最大允许值,服务器可能拒绝保存!</span>',
71
+ 'ok':"确认",
72
+ 'cancel':"取消",
73
+ 'closeDialog':"关闭对话框",
74
+ 'tableDrag':"表格拖动必须引入uiUtils.js文件!",
75
+ 'autofloatMsg':"工具栏浮动依赖编辑器UI,您首先需要引入UI文件!",
76
+ 'snapScreen_plugin':{
77
+ 'browserMsg':"仅支持IE浏览器!",
78
+ 'callBackErrorMsg':"服务器返回数据有误,请检查配置项之后重试。",
79
+ 'uploadErrorMsg':"截图上传失败,请检查服务器端环境! "
80
+ },
81
+ 'confirmClear':"确定清空当前文档么?",
82
+ 'contextMenu':{
83
+ 'delete':"删除",
84
+ 'selectall':"全选",
85
+ 'deletecode':"删除代码",
86
+ 'cleardoc':"清空文档",
87
+ 'confirmclear':"确定清空当前文档么?",
88
+ 'unlink':"删除超链接",
89
+ 'paragraph':"段落格式",
90
+ 'edittable':"表格属性",
91
+ 'aligntd':"单元格对齐方式",
92
+ 'aligntable':'表格对齐方式',
93
+ 'tableleft':'左浮动',
94
+ 'tablecenter':'居中显示',
95
+ 'tableright':'右浮动',
96
+ 'edittd':"单元格属性",
97
+ 'justifyleft':'左对齐',
98
+ 'justifyright':'右对齐',
99
+ 'justifycenter':'居中对齐',
100
+ 'justifyjustify':'两端对齐',
101
+ 'table':"表格",
102
+ 'inserttable':'插入表格',
103
+ 'deletetable':"删除表格",
104
+ 'insertparagraphbefore':"前插入段落",
105
+ 'insertparagraphafter':'后插入段落',
106
+ 'deleterow':"删除当前行",
107
+ 'deletecol':"删除当前列",
108
+ 'insertrow':"前插入行",
109
+ 'insertcol':"左插入列",
110
+ 'insertrownext':'后插入行',
111
+ 'insertcolnext':'右插入列',
112
+ insertcaption:'插入表格名称',
113
+ 'deletecaption':'删除表格名称',
114
+ 'inserttitle':'插入表格标题行',
115
+ 'deletetitle':'删除表格标题行',
116
+ 'averageDiseRow':'平均分布各行',
117
+ 'averageDisCol':'平均分布各列',
118
+ 'mergeright':"向右合并",
119
+ 'mergeleft':"向左合并",
120
+ 'mergedown':"向下合并",
121
+ 'mergecells':"合并单元格",
122
+ 'splittocells':"完全拆分单元格",
123
+ 'splittocols':"拆分成列",
124
+ 'splittorows':"拆分成行",
125
+ 'copy':"复制(Ctrl + c)",
126
+ 'copymsg':"请使用 'Ctrl + c'执行复制操作",
127
+ 'paste':"粘贴(Ctrl + v)",
128
+ 'pastemsg':"请使用'Ctrl + v'执行复制操作",
129
+ 'highlightcode':'插入代码'
130
+ },
131
+
132
+ 'anthorMsg':"链接",
133
+ 'clearColor':'清空颜色',
134
+ 'standardColor':'标准颜色',
135
+ 'themeColor':'主题颜色',
136
+ 'property':'属性',
137
+ 'default':'默认',
138
+ 'modify':'修改',
139
+ 'justifyleft':'左对齐',
140
+ 'justifyright':'右对齐',
141
+ 'justifycenter':'居中',
142
+ 'justify':'默认',
143
+ 'clear':'清除',
144
+ 'anchorMsg':'锚点',
145
+ 'delete':'删除',
146
+ 'clickToUpload':"点击上传",
147
+ 'unset':'尚未设置语言文件',
148
+ 't_row':'行',
149
+ 't_col':'列',
150
+ 'more':'更多',
151
+ 'pasteOpt':'粘贴选项',
152
+ 'pasteSourceFormat':"保留源格式",
153
+ 'tagFormat':'只保留标签',
154
+ 'pasteTextFormat':'只保留文本',
155
+ 'autoTypeSet':{
156
+ mergeLine:"合并空行",
157
+ delLine:"清除空行",
158
+ removeFormat:"清除格式",
159
+ indent:"首行缩进",
160
+ alignment:"对齐方式",
161
+ imageFloat:"图片浮动",
162
+ removeFontsize:"清除字号",
163
+ removeFontFamily:"清除字体",
164
+ removeHtml:"清除冗余HTML代码",
165
+ pasteFilter:"粘贴过滤",
166
+ run:"执行"
167
+ },
168
+
169
+ 'background':{
170
+ 'static':{
171
+ 'lang_background_normal':'背景设置',
172
+ 'lang_background_local':'本地图片',
173
+ 'lang_background_set':'选项',
174
+ 'lang_background_none':'无',
175
+ 'lang_background_color':'颜色设置',
176
+ 'lang_background_netimg':'网络图片',
177
+ 'lang_background_align':'对齐方式',
178
+ 'lang_background_position':'精确定位',
179
+ 'repeatType':{options:["居中", "横向重复", "纵向重复", "平铺","自定义"]}
180
+
181
+ },
182
+ 'noUploadImage':"当前未上传过任何图片!",
183
+ 'toggleSelect':"单击可切换选中状态\n原图尺寸: "
184
+ },
185
+ //===============dialog i18N=======================
186
+ 'insertimage':{
187
+ 'static':{
188
+ lang_tab_remote:"远程图片", //节点
189
+ lang_tab_local:"本地上传",
190
+ lang_tab_imgManager:"在线管理",
191
+ lang_tab_imgSearch:"图片搜索",
192
+ lang_input_url:"地 址:",
193
+ lang_input_width:"宽 度:",
194
+ lang_input_height:"高 度:",
195
+ lang_input_border:"边 框:",
196
+ lang_input_vhspace:"边 距:",
197
+ lang_input_title:"描 述:",
198
+ lang_input_remoteAlign:'对 齐:',
199
+ lang_imgLoading:" 图片加载中……",
200
+ 'lock':{title:"锁定宽高比例"}, //属性
201
+ 'imgType':{title:"图片类型", options:["新闻", "壁纸", "表情", "头像"]}, //select的option
202
+ 'imgSearchTxt':{value:"请输入搜索关键词"},
203
+ 'imgSearchBtn':{value:"百度一下"},
204
+ 'imgSearchReset':{value:"清空搜索"},
205
+ 'upload':{style:'background: url(upload.png);'},
206
+ 'duiqi':{style:'background: url(imglabel.png) -12px 2px no-repeat;'},
207
+ 'lang_savePath':'选择保存目录'
208
+ },
209
+ 'netError':"网络链接错误,请检查配置后重试!",
210
+ 'noUploadImage':"当前未上传过任何图片!",
211
+ 'imageLoading':"图片加载中,请稍后……",
212
+ 'tryAgain':" :( ,抱歉,没有找到图片!请重试一次!",
213
+ 'toggleSelect':"单击可切换选中状态\n原图尺寸: ",
214
+ 'searchInitInfo':"请输入搜索关键词",
215
+ 'numError':"请输入正确的长度或者宽度值!例如:123,400",
216
+ 'fileType':"图片",
217
+ 'imageUrlError':"不允许的图片格式或者图片域!",
218
+ 'imageLoadError':"图片加载失败!请检查链接地址或网络状态!",
219
+ 'flashError':'Flash插件初始化失败,请更新您的FlashPlayer版本之后重试!',
220
+ 'floatDefault':"默认",
221
+ 'floatLeft':"左浮动",
222
+ 'floatRight':"右浮动",
223
+ 'floatCenter':"居中",
224
+ 'flashI18n':{} //留空默认中文
225
+ },
226
+ 'webapp':{
227
+ tip1:"本功能由百度APP提供,如看到此页面,请各位站长首先申请百度APPKey!",
228
+ tip2:"申请完成之后请至editor_config.js中配置获得的appkey! ",
229
+ applyFor:"点此申请",
230
+ anthorApi:"百度API"
231
+ },
232
+ template:{
233
+ 'static':{
234
+ 'lang_template_bkcolor':'背景颜色',
235
+ 'lang_template_clear' : '保留原有内容',
236
+ 'lang_template_select' : '选择模板'
237
+ },
238
+ 'blank':"空白文档",
239
+ 'blog':"博客文章",
240
+ 'resume':"个人简历",
241
+ 'richText':"图文混排",
242
+ 'sciPapers':"科技论文"
243
+
244
+
245
+ },
246
+ 'scrawl':{
247
+ 'static':{
248
+ 'lang_input_previousStep':"上一步",
249
+ 'lang_input_nextsStep':"下一步",
250
+ 'lang_input_clear':'清空',
251
+ 'lang_input_addPic':'添加背景',
252
+ 'lang_input_ScalePic':'缩放背景',
253
+ 'lang_input_removePic':'删除背景',
254
+ 'J_imgTxt':{title:'添加背景图片'}
255
+ },
256
+ 'noScarwl':"尚未作画,白纸一张~",
257
+ 'scrawlUpLoading':"涂鸦上传中,别急哦~",
258
+ 'continueBtn':"继续",
259
+ 'imageError':"糟糕,图片读取失败了!",
260
+ 'backgroundUploading':'背景图片上传中,别急哦~'
261
+ },
262
+ 'music':{
263
+ 'static':{
264
+ 'lang_input_tips':"输入歌手/歌曲/专辑,搜索您感兴趣的音乐!",
265
+ 'J_searchBtn':{value:'搜索歌曲'}
266
+ },
267
+ 'emptyTxt':'未搜索到相关音乐结果,请换一个关键词试试。',
268
+ 'chapter':'歌曲',
269
+ 'singer':'歌手',
270
+ 'special':'专辑',
271
+ 'listenTest':'试听'
272
+ },
273
+ 'anchor':{
274
+ 'static':{
275
+ 'lang_input_anchorName':'锚点名字:'
276
+ }
277
+ },
278
+ 'attachment':{
279
+ 'static':{
280
+ 'lang_input_fileStatus':' 当前未上传文件',
281
+ 'startUpload':{style:"background:url(upload.png) no-repeat;"}
282
+ },
283
+ 'browseFiles':'文件浏览…',
284
+ 'uploadSuccess':'上传成功!',
285
+ 'delSuccessFile':'从成功队列中移除',
286
+ 'delFailSaveFile':'移除保存失败文件',
287
+ 'statusPrompt':' 个文件已上传! ',
288
+ 'flashVersionError':'当前Flash版本过低,请更新FlashPlayer后重试!',
289
+ 'flashLoadingError':'Flash加载失败!请检查路径或网络状态',
290
+ 'fileUploadReady':'等待上传……',
291
+ 'delUploadQueue':'从上传队列中移除',
292
+ 'limitPrompt1':'单次不能选择超过',
293
+ 'limitPrompt2':'个文件!请重新选择!',
294
+ 'delFailFile':'移除失败文件',
295
+ 'fileSizeLimit':'文件大小超出限制!',
296
+ 'emptyFile':'空文件无法上传!',
297
+ 'fileTypeError':'文件类型错误!',
298
+ 'unknownError':'未知错误!',
299
+ 'fileUploading':'上传中,请等待……',
300
+ 'cancelUpload':'取消上传',
301
+ 'netError':'网络错误',
302
+ 'failUpload':'上传失败!',
303
+ 'serverIOError':'服务器IO错误!',
304
+ 'noAuthority':'无权限!',
305
+ 'fileNumLimit':'上传个数限制',
306
+ 'failCheck':'验证失败,本次上传被跳过!',
307
+ 'fileCanceling':'取消中,请等待……',
308
+ 'stopUploading':'上传已停止……'
309
+ },
310
+ 'highlightcode':{
311
+ 'static':{
312
+ 'lang_input_selectLang':'选择语言'
313
+ },
314
+ importCode:'请输入代码'
315
+ },
316
+ 'emotion':{
317
+ 'static':{
318
+ 'lang_input_choice':'精选',
319
+ 'lang_input_Tuzki':'兔斯基',
320
+ 'lang_input_BOBO':'BOBO',
321
+ 'lang_input_lvdouwa':'绿豆蛙',
322
+ 'lang_input_babyCat':'baby猫',
323
+ 'lang_input_bubble':'泡泡',
324
+ 'lang_input_youa':'有啊'
325
+ }
326
+ },
327
+ 'gmap':{
328
+ 'static':{
329
+ 'lang_input_address':'地址',
330
+ 'lang_input_search':'搜索',
331
+ 'address':{value:"北京"}
332
+ },
333
+ searchError:'无法定位到该地址!'
334
+ },
335
+ 'help':{
336
+ 'static':{
337
+ 'lang_input_about':'关于UEditor',
338
+ 'lang_input_shortcuts':'快捷键',
339
+ 'lang_input_version':'版本:1.2.5',
340
+ 'lang_input_introduction':'UEditor是由百度web前端研发部开发的所见即所得富文本web编辑器,具有轻量,可定制,注重用户体验等特点。开源基于BSD协议,允许自由使用和修改代码。',
341
+ 'lang_Txt_shortcuts':'快捷键',
342
+ 'lang_Txt_func':'功能',
343
+ 'lang_Txt_bold':'给选中字设置为加粗',
344
+ 'lang_Txt_copy':'复制选中内容',
345
+ 'lang_Txt_cut':'剪切选中内容',
346
+ 'lang_Txt_Paste':'粘贴',
347
+ 'lang_Txt_undo':'重新执行上次操作',
348
+ 'lang_Txt_redo':'撤销上一次操作',
349
+ 'lang_Txt_italic':'给选中字设置为斜体',
350
+ 'lang_Txt_underline':'给选中字加下划线',
351
+ 'lang_Txt_selectAll':'全部选中',
352
+ 'lang_Txt_visualEnter':'软回车',
353
+ 'lang_Txt_fullscreen':'全屏'
354
+ }
355
+ },
356
+ 'insertframe':{
357
+ 'static':{
358
+ 'lang_input_address':'地址:',
359
+ 'lang_input_width':'宽度:',
360
+ 'lang_input_height':'高度:',
361
+ 'lang_input_isScroll':'允许滚动条:',
362
+ 'lang_input_frameborder':'显示框架边框:',
363
+ 'lang_input_alignMode':'对齐方式:',
364
+ 'align':{title:"对齐方式", options:["默认", "左对齐", "右对齐", "居中"]}
365
+ },
366
+ 'enterAddress':'请输入地址!'
367
+ },
368
+ 'link':{
369
+ 'static':{
370
+ 'lang_input_text':'文本内容:',
371
+ 'lang_input_url':'链接地址:',
372
+ 'lang_input_title':'标题:',
373
+ 'lang_input_target':'是否在新窗口打开:'
374
+ },
375
+ 'validLink':'只支持选中一个链接时生效',
376
+ 'httpPrompt':'您输入的超链接中不包含http等协议名称,默认将为您添加http://前缀'
377
+ },
378
+ 'map':{
379
+ 'static':{
380
+ lang_city:"城市",
381
+ lang_address:"地址",
382
+ city:{value:"北京"},
383
+ lang_search:"搜索"
384
+ },
385
+ cityMsg:"请选择城市",
386
+ errorMsg:"抱歉,找不到该位置!"
387
+ },
388
+ 'searchreplace':{
389
+ 'static':{
390
+ lang_tab_search:"查找",
391
+ lang_tab_replace:"替换",
392
+ lang_search1:"查找",
393
+ lang_search2:"查找",
394
+ lang_replace:"替换",
395
+ lang_case_sensitive1:"区分大小写",
396
+ lang_case_sensitive2:"区分大小写",
397
+ nextFindBtn:{value:"下一个"},
398
+ preFindBtn:{value:"上一个"},
399
+ nextReplaceBtn:{value:"下一个"},
400
+ preReplaceBtn:{value:"上一个"},
401
+ repalceBtn:{value:"替换"},
402
+ repalceAllBtn:{value:"全部替换"}
403
+ },
404
+ getEnd:"已经搜索到文章末尾!",
405
+ getStart:"已经搜索到文章头部",
406
+ countMsg:"总共替换了{#count}处!"
407
+ },
408
+ 'snapscreen':{
409
+ 'static':{
410
+ lang_showMsg:"截图功能需要首先安装UEditor截图插件! ",
411
+ lang_download:"点此下载",
412
+ lang_step1:"第一步,下载UEditor截图插件并运行安装。",
413
+ lang_step2:"第二不,插件安装完成后即可使用,如不生效,请重启浏览器后再试!"
414
+ }
415
+ },
416
+ 'insertvideo':{
417
+ 'static':{
418
+ lang_tab_insertV:"插入视频",
419
+ lang_tab_searchV:"搜索视频",
420
+ lang_video_url:"视频网址",
421
+ lang_video_size:"视频尺寸",
422
+ lang_videoW:"宽度",
423
+ lang_videoH:"高度",
424
+ lang_alignment:"对齐方式",
425
+ videoSearchTxt:{value:"请输入搜索关键字!"},
426
+ videoType:{options:["全部", "热门", "娱乐", "搞笑", "体育", "科技", "综艺"]},
427
+ videoSearchBtn:{value:"百度一下"},
428
+ videoSearchReset:{value:"清空结果"}
429
+ },
430
+ numError:"请输入正确的数值,如123,400",
431
+ floatLeft:"左浮动",
432
+ floatRight:"右浮动",
433
+ "default":"默认",
434
+ block:"独占一行",
435
+ urlError:"输入的视频地址有误,请检查后再试!",
436
+ loading:" &nbsp;视频加载中,请等待……",
437
+ clickToSelect:"点击选中",
438
+ goToSource:'访问源视频',
439
+ noVideo:" &nbsp; &nbsp;抱歉,找不到对应的视频,请重试!"
440
+ },
441
+ 'spechars':{
442
+ 'static':{},
443
+ tsfh:"特殊字符",
444
+ lmsz:"罗马字符",
445
+ szfh:"数学字符",
446
+ rwfh:"日文字符",
447
+ xlzm:"希腊字母",
448
+ ewzm:"俄文字符",
449
+ pyzm:"拼音字母",
450
+ zyzf:"注音及其他"
451
+ },
452
+ 'edittable':{
453
+ 'static':{
454
+ 'lang_tableStyle':'表格样式',
455
+ 'lang_insertCaption':'添加表格标题行',
456
+ 'lang_insertTitle':'添加表格名称行',
457
+ 'lang_tableSize':'自动调整表格尺寸',
458
+ 'lang_autoSizeContent':'按表格文字自适应',
459
+ 'lang_autoSizePage':'按页面宽度自适应',
460
+ 'lang_example':'示例',
461
+ 'lang_borderStyle':'表格边框',
462
+ 'lang_color':'颜色:'
463
+ },
464
+ captionName:'表格名称',
465
+ titleName:'标题',
466
+ cellsName:'内容'
467
+ },
468
+ 'edittip':{
469
+ 'static':{
470
+ lang_delRow:'删除整行',
471
+ lang_delCol:'删除整列'
472
+ }
473
+ },
474
+ 'edittd':{
475
+ 'static':{
476
+ lang_tdBkColor:'背景颜色:'
477
+ }
478
+ },
479
+ 'wordimage':{
480
+ 'static':{
481
+ lang_resave:"转存步骤",
482
+ uploadBtn:{src:"upload.png",alt:"上传"},
483
+ clipboard:{style:"background: url(copy.png) -153px -1px no-repeat;"},
484
+ lang_step:"1、点击顶部复制按钮,将地址复制到剪贴板;2、点击添加照片按钮,在弹出的对话框中使用Ctrl+V粘贴地址;3、点击打开后选择图片上传流程。"
485
+ },
486
+ 'fileType':"图片",
487
+ 'flashError':"FLASH初始化失败,请检查FLASH插件是否正确安装!",
488
+ 'netError':"网络连接错误,请重试!",
489
+ 'copySuccess':"图片地址已经复制!",
490
+ 'flashI18n':{} //留空默认中文
491
+ }
492
+ };