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,348 @@
1
+ //by zhanyi
2
+ function uParse(selector,opt){
3
+ var ie = !!window.ActiveXObject,
4
+ cssRule = ie ? function(key,style,doc){
5
+ var indexList,index;
6
+ doc = doc || document;
7
+ if(doc.indexList){
8
+ indexList = doc.indexList;
9
+ }else{
10
+ indexList = doc.indexList = {};
11
+ }
12
+ var sheetStyle;
13
+ if(!indexList[key]){
14
+ if(style === undefined){
15
+ return ''
16
+ }
17
+ sheetStyle = doc.createStyleSheet('',index = doc.styleSheets.length);
18
+ indexList[key] = index;
19
+ }else{
20
+ sheetStyle = doc.styleSheets[indexList[key]];
21
+ }
22
+ if(style === undefined){
23
+ return sheetStyle.cssText
24
+ }
25
+ sheetStyle.cssText = sheetStyle.cssText + '\n' + (style || '')
26
+ } : function(key,style,doc){
27
+ doc = doc || document;
28
+ var head = doc.getElementsByTagName('head')[0],node;
29
+ if(!(node = doc.getElementById(key))){
30
+ if(style === undefined){
31
+ return ''
32
+ }
33
+ node = doc.createElement('style');
34
+ node.id = key;
35
+ head.appendChild(node)
36
+ }
37
+ if(style === undefined){
38
+ return node.innerHTML
39
+ }
40
+ if(style !== ''){
41
+ node.innerHTML = node.innerHTML + '\n' + style;
42
+ }else{
43
+ head.removeChild(node)
44
+ }
45
+ },
46
+ domReady = function (onready) {
47
+ var doc = window.document;
48
+ if (doc.readyState === "complete") {
49
+ onready();
50
+ }else{
51
+ if (ie) {
52
+ (function () {
53
+ if (doc.isReady) return;
54
+ try {
55
+ doc.documentElement.doScroll("left");
56
+ } catch (error) {
57
+ setTimeout(arguments.callee, 0);
58
+ return;
59
+ }
60
+ onready();
61
+ })();
62
+ window.attachEvent('onload', function(){
63
+ onready()
64
+ });
65
+ } else {
66
+ doc.addEventListener("DOMContentLoaded", function () {
67
+ doc.removeEventListener("DOMContentLoaded", arguments.callee, false);
68
+ onready();
69
+ }, false);
70
+ window.addEventListener('load', function(){onready()}, false);
71
+ }
72
+ }
73
+
74
+ },
75
+ _each = function(obj, iterator, context) {
76
+ if (obj == null) return;
77
+ if (obj.length === +obj.length) {
78
+ for (var i = 0, l = obj.length; i < l; i++) {
79
+ if(iterator.call(context, obj[i], i, obj) === false)
80
+ return false;
81
+ }
82
+ } else {
83
+ for (var key in obj) {
84
+ if (obj.hasOwnProperty(key)) {
85
+ if(iterator.call(context, obj[key], key, obj) === false)
86
+ return false;
87
+ }
88
+ }
89
+ }
90
+ },
91
+ inArray = function(arr,item){
92
+ var index = -1;
93
+ _each(arr,function(v,i){
94
+ if(v === item){
95
+ index = i;
96
+ return false;
97
+ }
98
+ });
99
+ return index;
100
+ },
101
+ pushItem = function(arr,item){
102
+ if(inArray(arr,item)==-1){
103
+ arr.push(item)
104
+ }
105
+ },
106
+ loadFile = function () {
107
+ var tmpList = [];
108
+ function getItem(doc,obj){
109
+ try{
110
+ for(var i= 0,ci;ci=tmpList[i++];){
111
+ if(ci.doc === doc && ci.url == (obj.src || obj.href)){
112
+ return ci;
113
+ }
114
+ }
115
+ }catch(e){
116
+ return null;
117
+ }
118
+
119
+ }
120
+ return function (doc, obj, fn) {
121
+ var item = getItem(doc,obj);
122
+ if (item) {
123
+ if(item.ready){
124
+ fn && fn();
125
+ }else{
126
+ item.funs.push(fn)
127
+ }
128
+ return;
129
+ }
130
+ tmpList.push({
131
+ doc:doc,
132
+ url:obj.src||obj.href,
133
+ funs:[fn]
134
+ });
135
+ if (!doc.body) {
136
+ var html = [];
137
+ for(var p in obj){
138
+ if(p == 'tag')continue;
139
+ html.push(p + '="' + obj[p] + '"')
140
+ }
141
+ doc.write('<' + obj.tag + ' ' + html.join(' ') + ' ></'+obj.tag+'>');
142
+ return;
143
+ }
144
+ if (obj.id && doc.getElementById(obj.id)) {
145
+ return;
146
+ }
147
+ var element = doc.createElement(obj.tag);
148
+ delete obj.tag;
149
+ for (var p in obj) {
150
+ element.setAttribute(p, obj[p]);
151
+ }
152
+ element.onload = element.onreadystatechange = function () {
153
+ if (!this.readyState || /loaded|complete/.test(this.readyState)) {
154
+ item = getItem(doc,obj);
155
+ if (item.funs.length > 0) {
156
+ item.ready = 1;
157
+ for (var fi; fi = item.funs.pop();) {
158
+ fi();
159
+ }
160
+ }
161
+ element.onload = element.onreadystatechange = null;
162
+ }
163
+ };
164
+ element.onerror = function(){
165
+ throw Error('The load '+(obj.href||obj.src)+' fails,check the url')
166
+ };
167
+ doc.getElementsByTagName("head")[0].appendChild(element);
168
+ }
169
+ }();
170
+
171
+ var defaultOption ={
172
+ liiconpath : 'http://bs.baidu.com/listicon/',
173
+ listDefaultPaddingLeft : '20',
174
+ 'highlightJsUrl':'',
175
+ 'highlightCssUrl':'',
176
+ customRule:function(){}
177
+ };
178
+ if(opt){
179
+ for(var p in opt){
180
+ defaultOption[p] = opt[p]
181
+ }
182
+ }
183
+ domReady(function(){
184
+ var contents;
185
+ if(document.querySelectorAll){
186
+ contents = document.querySelectorAll(selector)
187
+ }else{
188
+ if(/^#/.test(selector)){
189
+ contents = [document.getElementById(selector.replace(/^#/,''))]
190
+ }else if(/^\./.test(selector)){
191
+ var contents = [];
192
+ _each(document.getElementsByTagName('*'),function(node){
193
+ if(node.className && new RegExp('\\b' + selector.replace(/^\./,'') + '\\b','i').test(node.className)){
194
+ contents.push(node)
195
+ }
196
+ })
197
+ }else{
198
+ contents = document.getElementsByTagName(selector)
199
+ }
200
+ }
201
+ _each(contents,function(content){
202
+ if(content.tagName.toLowerCase() == 'textarea'){
203
+ var tmpNode = document.createElement('div');
204
+ if(/^#/.test(selector)){
205
+ tmpNode.id = selector.replace(/^#/,'')
206
+ }else if(/^\./.test(selector)){
207
+ tmpNode.className = selector.replace(/^\./,'')
208
+ }
209
+ content.parentNode.insertBefore(tmpNode,content);
210
+ tmpNode.innerHTML = content.value;
211
+ content.parentNode.removeChild(content);
212
+ content = tmpNode;
213
+ }
214
+
215
+ function checkList(nodes){
216
+ var customCss = [],
217
+ customStyle = {
218
+ 'cn' : 'cn-1-',
219
+ 'cn1' : 'cn-2-',
220
+ 'cn2' : 'cn-3-',
221
+ 'num' : 'num-1-',
222
+ 'num1' : 'num-2-',
223
+ 'num2' : 'num-3-',
224
+ 'dash' : 'dash',
225
+ 'dot' : 'dot'
226
+ };
227
+ _each(nodes,function(list){
228
+ if(list.className && /custom_/i.test(list.className)){
229
+ var listStyle = list.className.match(/custom_(\w+)/)[1];
230
+ if(listStyle == 'dash' || listStyle == 'dot'){
231
+ pushItem(customCss,selector +' li.list-' + customStyle[listStyle] + '{background-image:url(' + defaultOption.liiconpath +customStyle[listStyle]+'.gif)}');
232
+ pushItem(customCss,selector +' ul.custom_'+listStyle+'{list-style:none;} '+ selector +' ul.custom_'+listStyle+' li{background-position:0 3px;background-repeat:no-repeat}');
233
+
234
+ }else{
235
+ var index = 1;
236
+ _each(list.childNodes,function(li){
237
+ if(li.tagName == 'LI'){
238
+ pushItem(customCss,selector + ' li.list-' + customStyle[listStyle] + index + '{background-image:url(' + defaultOption.liiconpath + 'list-'+customStyle[listStyle] +index + '.gif)}');
239
+ index++;
240
+ }
241
+ });
242
+ pushItem(customCss,selector + ' ol.custom_'+listStyle+'{list-style:none;}'+selector+' ol.custom_'+listStyle+' li{background-position:0 3px;background-repeat:no-repeat}');
243
+ }
244
+ switch(listStyle){
245
+ case 'cn':
246
+ pushItem(customCss,selector + ' li.list-'+listStyle+'-paddingleft-1{padding-left:25px}');
247
+ pushItem(customCss,selector + ' li.list-'+listStyle+'-paddingleft-2{padding-left:40px}');
248
+ pushItem(customCss,selector + ' li.list-'+listStyle+'-paddingleft-3{padding-left:55px}');
249
+ break;
250
+ case 'cn1':
251
+ pushItem(customCss,selector + ' li.list-'+listStyle+'-paddingleft-1{padding-left:30px}');
252
+ pushItem(customCss,selector + ' li.list-'+listStyle+'-paddingleft-2{padding-left:40px}');
253
+ pushItem(customCss,selector + ' li.list-'+listStyle+'-paddingleft-3{padding-left:55px}');
254
+ break;
255
+ case 'cn2':
256
+ pushItem(customCss,selector + ' li.list-'+listStyle+'-paddingleft-1{padding-left:40px}');
257
+ pushItem(customCss,selector + ' li.list-'+listStyle+'-paddingleft-2{padding-left:55px}');
258
+ pushItem(customCss,selector + ' li.list-'+listStyle+'-paddingleft-3{padding-left:68px}');
259
+ break;
260
+ case 'num':
261
+ case 'num1':
262
+ pushItem(customCss,selector + ' li.list-'+listStyle+'-paddingleft-1{padding-left:25px}');
263
+ break;
264
+ case 'num2':
265
+ pushItem(customCss,selector + ' li.list-'+listStyle+'-paddingleft-1{padding-left:35px}');
266
+ pushItem(customCss,selector + ' li.list-'+listStyle+'-paddingleft-2{padding-left:40px}');
267
+ break;
268
+ case 'dash':
269
+ pushItem(customCss,selector + ' li.list-'+listStyle+'-paddingleft{padding-left:35px}');
270
+ break;
271
+ case 'dot':
272
+ pushItem(customCss,selector + ' li.list-'+listStyle+'-paddingleft{padding-left:20px}');
273
+ }
274
+ }
275
+ });
276
+
277
+ customCss.push(selector +' .list-paddingleft-1{padding-left:0}');
278
+ customCss.push(selector +' .list-paddingleft-2{padding-left:'+defaultOption.listDefaultPaddingLeft+'px}');
279
+ customCss.push(selector +' .list-paddingleft-3{padding-left:'+defaultOption.listDefaultPaddingLeft*2+'px}');
280
+
281
+ cssRule('list', selector +' ol,'+selector +' ul{margin:0;pading:0;}li{clear:both;}'+customCss.join('\n'), document);
282
+ }
283
+
284
+ var needParseTagName = {
285
+ 'table' : function(){
286
+ cssRule('table',
287
+ selector +' table.noBorderTable td,'+selector+' table.noBorderTable th,'+selector+' table.noBorderTable caption{border:1px dashed #ddd !important}' +
288
+ //����ı���Ĭ����ʽ
289
+ selector +' table{margin-bottom:10px;border-collapse:collapse;display:table;}' +
290
+ selector +' td,'+selector+' th{ background:white; padding: 5px 10px;border: 1px solid #DDD;}' +
291
+ selector +' caption{border:1px dashed #DDD;border-bottom:0;padding:3px;text-align:center;}' +
292
+ selector +' th{border-top:2px solid #BBB;background:#F7F7F7;}' +
293
+ selector +' td p{margin:0;padding:0;}',
294
+ document);
295
+ },
296
+ 'ol' : checkList,
297
+ 'ul' : checkList,
298
+ 'pre': function(nodes){
299
+ if(typeof XRegExp == "undefined"){
300
+ loadFile(document,{
301
+ id : "syntaxhighlighter_js",
302
+ src : defaultOption.highlightJsUrl,
303
+ tag : "script",
304
+ type : "text/javascript",
305
+ defer : "defer"
306
+ },function(){
307
+ _each(nodes,function(pi){
308
+ if(/brush/i.test(pi.className)){
309
+ SyntaxHighlighter.highlight(pi);
310
+ var tables = document.getElementsByTagName('table');
311
+ for(var t= 0,ti;ti=tables[t++];){
312
+ if(/SyntaxHighlighter/i.test(ti.className)){
313
+ var tds = ti.getElementsByTagName('td');
314
+ for(var i=0,li,ri;li=tds[0].childNodes[i];i++){
315
+ ri = tds[1].firstChild.childNodes[i];
316
+ if(ri){
317
+ ri.style.height = li.style.height = ri.offsetHeight + 'px';
318
+ }
319
+ }
320
+ }
321
+ }
322
+ }
323
+ });
324
+ });
325
+ }
326
+ if(!document.getElementById("syntaxhighlighter_css")){
327
+ loadFile(document,{
328
+ id : "syntaxhighlighter_css",
329
+ tag : "link",
330
+ rel : "stylesheet",
331
+ type : "text/css",
332
+ href : defaultOption.highlightCssUrl
333
+ });
334
+ }
335
+
336
+ }
337
+ };
338
+
339
+ for(var tag in needParseTagName){
340
+ var nodes = content.getElementsByTagName(tag);
341
+ if(nodes.length){
342
+ needParseTagName[tag](nodes)
343
+ }
344
+ }
345
+ defaultOption.customRule(content);
346
+ });
347
+ })
348
+ }
metadata ADDED
@@ -0,0 +1,363 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ueditor_rails4
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.5
5
+ platform: ruby
6
+ authors:
7
+ - Jasl
8
+ - chinacheng
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2015-08-26 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - '>='
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - '>='
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: jquery-rails
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - '>='
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - '>='
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: sqlite3
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - '>='
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ description: Ueditor is a WYSIWYG editor adapt to Chinese habits, this gem is a easy
57
+ way to integrate with Rails
58
+ email:
59
+ - jasl9187@hotmail.com
60
+ executables: []
61
+ extensions: []
62
+ extra_rdoc_files: []
63
+ files:
64
+ - MIT-LICENSE
65
+ - README.markdown
66
+ - Rakefile
67
+ - app/assets/images/ueditor/themes/default/anchor.gif
68
+ - app/assets/images/ueditor/themes/default/arrow.png
69
+ - app/assets/images/ueditor/themes/default/button-bg.gif
70
+ - app/assets/images/ueditor/themes/default/cancelbutton.gif
71
+ - app/assets/images/ueditor/themes/default/cursor_h.gif
72
+ - app/assets/images/ueditor/themes/default/cursor_h.png
73
+ - app/assets/images/ueditor/themes/default/cursor_v.gif
74
+ - app/assets/images/ueditor/themes/default/cursor_v.png
75
+ - app/assets/images/ueditor/themes/default/dialog-title-bg.png
76
+ - app/assets/images/ueditor/themes/default/filescan.png
77
+ - app/assets/images/ueditor/themes/default/highlighted.gif
78
+ - app/assets/images/ueditor/themes/default/icons-all.gif
79
+ - app/assets/images/ueditor/themes/default/icons.gif
80
+ - app/assets/images/ueditor/themes/default/icons.png
81
+ - app/assets/images/ueditor/themes/default/lock.gif
82
+ - app/assets/images/ueditor/themes/default/neweditor-tab-bg.png
83
+ - app/assets/images/ueditor/themes/default/pagebreak.gif
84
+ - app/assets/images/ueditor/themes/default/scale.png
85
+ - app/assets/images/ueditor/themes/default/spacer.gif
86
+ - app/assets/images/ueditor/themes/default/sparator_v.png
87
+ - app/assets/images/ueditor/themes/default/toolbar_bg.png
88
+ - app/assets/images/ueditor/themes/default/unhighlighted.gif
89
+ - app/assets/images/ueditor/themes/default/upload.png
90
+ - app/assets/images/ueditor/themes/default/videologo.gif
91
+ - app/assets/images/ueditor/themes/default/word.gif
92
+ - app/assets/images/ueditor/themes/default/wordpaste.png
93
+ - app/assets/images/ueditor_rails/dialogs/attachment/fileTypeImages/icon_chm.gif
94
+ - app/assets/images/ueditor_rails/dialogs/attachment/fileTypeImages/icon_default.png
95
+ - app/assets/images/ueditor_rails/dialogs/attachment/fileTypeImages/icon_doc.gif
96
+ - app/assets/images/ueditor_rails/dialogs/attachment/fileTypeImages/icon_exe.gif
97
+ - app/assets/images/ueditor_rails/dialogs/attachment/fileTypeImages/icon_mp3.gif
98
+ - app/assets/images/ueditor_rails/dialogs/attachment/fileTypeImages/icon_mv.gif
99
+ - app/assets/images/ueditor_rails/dialogs/attachment/fileTypeImages/icon_pdf.gif
100
+ - app/assets/images/ueditor_rails/dialogs/attachment/fileTypeImages/icon_ppt.gif
101
+ - app/assets/images/ueditor_rails/dialogs/attachment/fileTypeImages/icon_psd.gif
102
+ - app/assets/images/ueditor_rails/dialogs/attachment/fileTypeImages/icon_rar.gif
103
+ - app/assets/images/ueditor_rails/dialogs/attachment/fileTypeImages/icon_txt.gif
104
+ - app/assets/images/ueditor_rails/dialogs/attachment/fileTypeImages/icon_xls.gif
105
+ - app/assets/images/ueditor_rails/dialogs/image/center_focus.jpg
106
+ - app/assets/images/ueditor_rails/dialogs/image/left_focus.jpg
107
+ - app/assets/images/ueditor_rails/dialogs/image/none_focus.jpg
108
+ - app/assets/images/ueditor_rails/dialogs/image/right_focus.jpg
109
+ - app/assets/images/ueditor_rails/dialogs/scrawl/addimg.png
110
+ - app/assets/images/ueditor_rails/dialogs/scrawl/brush.png
111
+ - app/assets/images/ueditor_rails/dialogs/scrawl/delimg.png
112
+ - app/assets/images/ueditor_rails/dialogs/scrawl/delimgH.png
113
+ - app/assets/images/ueditor_rails/dialogs/scrawl/empty.png
114
+ - app/assets/images/ueditor_rails/dialogs/scrawl/emptyH.png
115
+ - app/assets/images/ueditor_rails/dialogs/scrawl/eraser.png
116
+ - app/assets/images/ueditor_rails/dialogs/scrawl/redo.png
117
+ - app/assets/images/ueditor_rails/dialogs/scrawl/redoH.png
118
+ - app/assets/images/ueditor_rails/dialogs/scrawl/scale.png
119
+ - app/assets/images/ueditor_rails/dialogs/scrawl/scaleH.png
120
+ - app/assets/images/ueditor_rails/dialogs/scrawl/size.png
121
+ - app/assets/images/ueditor_rails/dialogs/scrawl/undo.png
122
+ - app/assets/images/ueditor_rails/dialogs/scrawl/undoH.png
123
+ - app/assets/javascripts/ueditor_rails/_config.js.erb
124
+ - app/assets/javascripts/ueditor_rails/dialogs/attachment.js
125
+ - app/assets/javascripts/ueditor_rails/dialogs/attachment/_callbacks.js
126
+ - app/assets/javascripts/ueditor_rails/dialogs/attachment/_file_type_maps.js.erb
127
+ - app/assets/javascripts/ueditor_rails/dialogs/image.js.erb
128
+ - app/assets/javascripts/ueditor_rails/dialogs/scrawl.js
129
+ - app/assets/javascripts/ueditor_rails/dialogs/wordimage.js
130
+ - app/assets/javascripts/ueditor_rails/init.js
131
+ - app/assets/stylesheets/ueditor/themes/default/dialogbase.css.erb
132
+ - app/assets/stylesheets/ueditor/themes/default/ueditor.css
133
+ - app/assets/stylesheets/ueditor/themes/iframe.css
134
+ - app/assets/stylesheets/ueditor_rails/dialogs/attachment.css.erb
135
+ - app/assets/stylesheets/ueditor_rails/dialogs/image.css.erb
136
+ - app/assets/stylesheets/ueditor_rails/dialogs/scrawl.css.erb
137
+ - app/controllers/ueditor_rails/application_controller.rb
138
+ - app/controllers/ueditor_rails/dialogs_controller.rb
139
+ - app/controllers/ueditor_rails/libs_controller.rb
140
+ - app/helpers/ueditor_rails/application_helper.rb
141
+ - app/views/ueditor_rails/dialogs/attachment.html.erb
142
+ - app/views/ueditor_rails/dialogs/image.html.erb
143
+ - app/views/ueditor_rails/dialogs/scrawl.html.erb
144
+ - app/views/ueditor_rails/dialogs/wordimage.html.erb
145
+ - config/routes.rb
146
+ - lib/generators/ueditor_rails/USAGE
147
+ - lib/generators/ueditor_rails/install_generator.rb
148
+ - lib/generators/ueditor_rails/templates/ueditor_config.js.erb
149
+ - lib/tasks/ueditor_rails_tasks.rake
150
+ - lib/ueditor_rails/engine.rb
151
+ - lib/ueditor_rails/helpers/form_builder.rb
152
+ - lib/ueditor_rails/helpers/form_helper.rb
153
+ - lib/ueditor_rails/helpers/view_helper.rb
154
+ - lib/ueditor_rails/util.rb
155
+ - lib/ueditor_rails/version.rb
156
+ - lib/ueditor_rails4.rb
157
+ - test/dummy/README.rdoc
158
+ - test/dummy/Rakefile
159
+ - test/dummy/app/assets/javascripts/application.js
160
+ - test/dummy/app/assets/javascripts/posts.js
161
+ - test/dummy/app/assets/javascripts/ueditor_config.js.erb
162
+ - test/dummy/app/assets/stylesheets/application.css
163
+ - test/dummy/app/assets/stylesheets/posts.css
164
+ - test/dummy/app/assets/stylesheets/scaffold.css
165
+ - test/dummy/app/controllers/application_controller.rb
166
+ - test/dummy/app/controllers/posts_controller.rb
167
+ - test/dummy/app/helpers/application_helper.rb
168
+ - test/dummy/app/helpers/posts_helper.rb
169
+ - test/dummy/app/models/post.rb
170
+ - test/dummy/app/views/layouts/application.html.erb
171
+ - test/dummy/app/views/posts/_form.html.erb
172
+ - test/dummy/app/views/posts/edit.html.erb
173
+ - test/dummy/app/views/posts/index.html.erb
174
+ - test/dummy/app/views/posts/new.html.erb
175
+ - test/dummy/app/views/posts/show.html.erb
176
+ - test/dummy/config.ru
177
+ - test/dummy/config/application.rb
178
+ - test/dummy/config/boot.rb
179
+ - test/dummy/config/database.yml
180
+ - test/dummy/config/environment.rb
181
+ - test/dummy/config/environments/development.rb
182
+ - test/dummy/config/environments/production.rb
183
+ - test/dummy/config/environments/test.rb
184
+ - test/dummy/config/initializers/backtrace_silencers.rb
185
+ - test/dummy/config/initializers/inflections.rb
186
+ - test/dummy/config/initializers/mime_types.rb
187
+ - test/dummy/config/initializers/secret_token.rb
188
+ - test/dummy/config/initializers/session_store.rb
189
+ - test/dummy/config/initializers/wrap_parameters.rb
190
+ - test/dummy/config/locales/en.yml
191
+ - test/dummy/config/routes.rb
192
+ - test/dummy/db/migrate/20130327173045_create_posts.rb
193
+ - test/dummy/db/schema.rb
194
+ - test/dummy/public/404.html
195
+ - test/dummy/public/422.html
196
+ - test/dummy/public/500.html
197
+ - test/dummy/public/favicon.ico
198
+ - test/dummy/script/rails
199
+ - test/dummy/test/fixtures/posts.yml
200
+ - test/dummy/test/functional/posts_controller_test.rb
201
+ - test/dummy/test/unit/helpers/posts_helper_test.rb
202
+ - test/dummy/test/unit/post_test.rb
203
+ - test/functional/ueditor_rails/dialogs_controller_test.rb
204
+ - test/functional/ueditor_rails/libs_controller_test.rb
205
+ - test/integration/navigation_test.rb
206
+ - test/test_helper.rb
207
+ - test/ueditor_rails_test.rb
208
+ - vendor/assets/javascripts/ueditor/dialogs/anchor/anchor.html.erb
209
+ - vendor/assets/javascripts/ueditor/dialogs/background/background.css
210
+ - vendor/assets/javascripts/ueditor/dialogs/background/background.html.erb
211
+ - vendor/assets/javascripts/ueditor/dialogs/background/background.js
212
+ - vendor/assets/javascripts/ueditor/dialogs/emotion/emotion.css.erb
213
+ - vendor/assets/javascripts/ueditor/dialogs/emotion/emotion.html.erb
214
+ - vendor/assets/javascripts/ueditor/dialogs/emotion/emotion.js
215
+ - vendor/assets/javascripts/ueditor/dialogs/emotion/images/0.gif
216
+ - vendor/assets/javascripts/ueditor/dialogs/emotion/images/bface.gif
217
+ - vendor/assets/javascripts/ueditor/dialogs/emotion/images/cface.gif
218
+ - vendor/assets/javascripts/ueditor/dialogs/emotion/images/fface.gif
219
+ - vendor/assets/javascripts/ueditor/dialogs/emotion/images/jxface2.gif
220
+ - vendor/assets/javascripts/ueditor/dialogs/emotion/images/neweditor-tab-bg.png
221
+ - vendor/assets/javascripts/ueditor/dialogs/emotion/images/tface.gif
222
+ - vendor/assets/javascripts/ueditor/dialogs/emotion/images/wface.gif
223
+ - vendor/assets/javascripts/ueditor/dialogs/emotion/images/yface.gif
224
+ - vendor/assets/javascripts/ueditor/dialogs/gmap/gmap.html.erb
225
+ - vendor/assets/javascripts/ueditor/dialogs/help/help.css
226
+ - vendor/assets/javascripts/ueditor/dialogs/help/help.html.erb
227
+ - vendor/assets/javascripts/ueditor/dialogs/help/help.js
228
+ - vendor/assets/javascripts/ueditor/dialogs/highlightcode/highlightcode.html.erb
229
+ - vendor/assets/javascripts/ueditor/dialogs/insertframe/insertframe.html.erb
230
+ - vendor/assets/javascripts/ueditor/dialogs/internal.js
231
+ - vendor/assets/javascripts/ueditor/dialogs/link/link.html.erb
232
+ - vendor/assets/javascripts/ueditor/dialogs/map/map.html.erb
233
+ - vendor/assets/javascripts/ueditor/dialogs/music/music.css
234
+ - vendor/assets/javascripts/ueditor/dialogs/music/music.html.erb
235
+ - vendor/assets/javascripts/ueditor/dialogs/music/music.js
236
+ - vendor/assets/javascripts/ueditor/dialogs/searchreplace/searchreplace.html.erb
237
+ - vendor/assets/javascripts/ueditor/dialogs/searchreplace/searchreplace.js
238
+ - vendor/assets/javascripts/ueditor/dialogs/snapscreen/snapscreen.html.erb
239
+ - vendor/assets/javascripts/ueditor/dialogs/spechars/spechars.html.erb
240
+ - vendor/assets/javascripts/ueditor/dialogs/spechars/spechars.js
241
+ - vendor/assets/javascripts/ueditor/dialogs/table/dragicon.png
242
+ - vendor/assets/javascripts/ueditor/dialogs/table/edittable.css
243
+ - vendor/assets/javascripts/ueditor/dialogs/table/edittable.html.erb
244
+ - vendor/assets/javascripts/ueditor/dialogs/table/edittable.js
245
+ - vendor/assets/javascripts/ueditor/dialogs/table/edittd.html.erb
246
+ - vendor/assets/javascripts/ueditor/dialogs/table/edittip.html.erb
247
+ - vendor/assets/javascripts/ueditor/dialogs/tangram.js
248
+ - vendor/assets/javascripts/ueditor/dialogs/template/config.js
249
+ - vendor/assets/javascripts/ueditor/dialogs/template/images/bg.gif
250
+ - vendor/assets/javascripts/ueditor/dialogs/template/images/pre0.png
251
+ - vendor/assets/javascripts/ueditor/dialogs/template/images/pre1.png
252
+ - vendor/assets/javascripts/ueditor/dialogs/template/images/pre2.png
253
+ - vendor/assets/javascripts/ueditor/dialogs/template/images/pre3.png
254
+ - vendor/assets/javascripts/ueditor/dialogs/template/images/pre4.png
255
+ - vendor/assets/javascripts/ueditor/dialogs/template/template.css
256
+ - vendor/assets/javascripts/ueditor/dialogs/template/template.html.erb
257
+ - vendor/assets/javascripts/ueditor/dialogs/template/template.js
258
+ - vendor/assets/javascripts/ueditor/dialogs/video/images/center_focus.jpg
259
+ - vendor/assets/javascripts/ueditor/dialogs/video/images/left_focus.jpg
260
+ - vendor/assets/javascripts/ueditor/dialogs/video/images/none_focus.jpg
261
+ - vendor/assets/javascripts/ueditor/dialogs/video/images/right_focus.jpg
262
+ - vendor/assets/javascripts/ueditor/dialogs/video/video.css
263
+ - vendor/assets/javascripts/ueditor/dialogs/video/video.html.erb
264
+ - vendor/assets/javascripts/ueditor/dialogs/video/video.js.erb
265
+ - vendor/assets/javascripts/ueditor/dialogs/webapp/webapp.html.erb
266
+ - vendor/assets/javascripts/ueditor/editor_all.js.erb
267
+ - vendor/assets/javascripts/ueditor/lang/zh-cn/images/copy.png
268
+ - vendor/assets/javascripts/ueditor/lang/zh-cn/images/imglabel.png
269
+ - vendor/assets/javascripts/ueditor/lang/zh-cn/images/localimage.png
270
+ - vendor/assets/javascripts/ueditor/lang/zh-cn/images/music.png
271
+ - vendor/assets/javascripts/ueditor/lang/zh-cn/images/upload.png
272
+ - vendor/assets/javascripts/ueditor/lang/zh-cn/zh-cn.js
273
+ - vendor/assets/javascripts/ueditor/third-party/SyntaxHighlighter/shCore.js
274
+ - vendor/assets/javascripts/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css
275
+ - vendor/assets/javascripts/ueditor/third-party/codemirror/codemirror.css
276
+ - vendor/assets/javascripts/ueditor/third-party/codemirror/codemirror.js
277
+ - vendor/assets/javascripts/ueditor/third-party/fClipboard_ueditor.swf
278
+ - vendor/assets/javascripts/ueditor/third-party/imageUploader.swf
279
+ - vendor/assets/javascripts/ueditor/third-party/snapscreen/UEditorSnapscreen.exe
280
+ - vendor/assets/javascripts/ueditor/third-party/swfupload/fileprogress.js
281
+ - vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.cookies.js
282
+ - vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.js
283
+ - vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.proxy.js
284
+ - vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.queue.js
285
+ - vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.speed.js
286
+ - vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.swf
287
+ - vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload_fp9.swf
288
+ - vendor/assets/javascripts/ueditor/uparse.js
289
+ homepage: http://github.com/chinacheng/ueditor_rails
290
+ licenses: []
291
+ metadata: {}
292
+ post_install_message:
293
+ rdoc_options: []
294
+ require_paths:
295
+ - lib
296
+ required_ruby_version: !ruby/object:Gem::Requirement
297
+ requirements:
298
+ - - '>='
299
+ - !ruby/object:Gem::Version
300
+ version: '0'
301
+ required_rubygems_version: !ruby/object:Gem::Requirement
302
+ requirements:
303
+ - - '>='
304
+ - !ruby/object:Gem::Version
305
+ version: '0'
306
+ requirements: []
307
+ rubyforge_project:
308
+ rubygems_version: 2.4.8
309
+ signing_key:
310
+ specification_version: 4
311
+ summary: Ueditor integration on Rails
312
+ test_files:
313
+ - test/dummy/app/assets/javascripts/application.js
314
+ - test/dummy/app/assets/javascripts/posts.js
315
+ - test/dummy/app/assets/javascripts/ueditor_config.js.erb
316
+ - test/dummy/app/assets/stylesheets/application.css
317
+ - test/dummy/app/assets/stylesheets/posts.css
318
+ - test/dummy/app/assets/stylesheets/scaffold.css
319
+ - test/dummy/app/controllers/application_controller.rb
320
+ - test/dummy/app/controllers/posts_controller.rb
321
+ - test/dummy/app/helpers/application_helper.rb
322
+ - test/dummy/app/helpers/posts_helper.rb
323
+ - test/dummy/app/models/post.rb
324
+ - test/dummy/app/views/layouts/application.html.erb
325
+ - test/dummy/app/views/posts/_form.html.erb
326
+ - test/dummy/app/views/posts/edit.html.erb
327
+ - test/dummy/app/views/posts/index.html.erb
328
+ - test/dummy/app/views/posts/new.html.erb
329
+ - test/dummy/app/views/posts/show.html.erb
330
+ - test/dummy/config/application.rb
331
+ - test/dummy/config/boot.rb
332
+ - test/dummy/config/database.yml
333
+ - test/dummy/config/environment.rb
334
+ - test/dummy/config/environments/development.rb
335
+ - test/dummy/config/environments/production.rb
336
+ - test/dummy/config/environments/test.rb
337
+ - test/dummy/config/initializers/backtrace_silencers.rb
338
+ - test/dummy/config/initializers/inflections.rb
339
+ - test/dummy/config/initializers/mime_types.rb
340
+ - test/dummy/config/initializers/secret_token.rb
341
+ - test/dummy/config/initializers/session_store.rb
342
+ - test/dummy/config/initializers/wrap_parameters.rb
343
+ - test/dummy/config/locales/en.yml
344
+ - test/dummy/config/routes.rb
345
+ - test/dummy/config.ru
346
+ - test/dummy/db/migrate/20130327173045_create_posts.rb
347
+ - test/dummy/db/schema.rb
348
+ - test/dummy/public/404.html
349
+ - test/dummy/public/422.html
350
+ - test/dummy/public/500.html
351
+ - test/dummy/public/favicon.ico
352
+ - test/dummy/Rakefile
353
+ - test/dummy/README.rdoc
354
+ - test/dummy/script/rails
355
+ - test/dummy/test/fixtures/posts.yml
356
+ - test/dummy/test/functional/posts_controller_test.rb
357
+ - test/dummy/test/unit/helpers/posts_helper_test.rb
358
+ - test/dummy/test/unit/post_test.rb
359
+ - test/functional/ueditor_rails/dialogs_controller_test.rb
360
+ - test/functional/ueditor_rails/libs_controller_test.rb
361
+ - test/integration/navigation_test.rb
362
+ - test/test_helper.rb
363
+ - test/ueditor_rails_test.rb