glebtv-ckeditor 4.0.2.7 → 4.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (281) hide show
  1. checksums.yaml +7 -0
  2. data/README.rdoc +5 -195
  3. data/{vendor → app}/assets/javascripts/ckeditor/CHANGES.md +56 -0
  4. data/{vendor → app}/assets/javascripts/ckeditor/LICENSE.md +0 -0
  5. data/{vendor → app}/assets/javascripts/ckeditor/README.md +0 -0
  6. data/{vendor → app}/assets/javascripts/ckeditor/build-config.js +0 -0
  7. data/app/assets/javascripts/ckeditor/ckeditor.js +881 -0
  8. data/{vendor → app}/assets/javascripts/ckeditor/config.js.erb +0 -0
  9. data/app/assets/javascripts/ckeditor/contents.css +103 -0
  10. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/gal_add.jpg +0 -0
  11. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/gal_add.png +0 -0
  12. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/gal_del.png +0 -0
  13. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/gal_more.gif +0 -0
  14. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/preloader.gif +0 -0
  15. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/avi.gif +0 -0
  16. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/ckfnothumb.gif +0 -0
  17. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/doc.gif +0 -0
  18. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/docx.gif +0 -0
  19. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/exe.gif +0 -0
  20. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/gz.gif +0 -0
  21. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/htm.gif +0 -0
  22. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/jpg.gif +0 -0
  23. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/mp3.gif +0 -0
  24. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/mpg.gif +0 -0
  25. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/pdf.gif +0 -0
  26. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/psd.gif +0 -0
  27. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/rar.gif +0 -0
  28. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/swf.gif +0 -0
  29. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/tar.gif +0 -0
  30. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/txt.gif +0 -0
  31. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/unknown.gif +0 -0
  32. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/wmv.gif +0 -0
  33. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/xls.gif +0 -0
  34. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/xlsx.gif +0 -0
  35. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/images/thumbs/zip.gif +0 -0
  36. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/javascripts/application.js +0 -0
  37. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/javascripts/fileuploader.js +0 -0
  38. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/javascripts/jquery.min.js +0 -0
  39. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/javascripts/jquery.tmpl.min.js +0 -0
  40. data/{vendor → app}/assets/javascripts/ckeditor/filebrowser/javascripts/rails.js +0 -0
  41. data/app/assets/javascripts/ckeditor/filebrowser/stylesheets/uploader.css +118 -0
  42. data/app/assets/javascripts/ckeditor/{init.js → init.js.erb} +1 -1
  43. data/{vendor → app}/assets/javascripts/ckeditor/lang/en.js +1 -1
  44. data/{vendor → app}/assets/javascripts/ckeditor/lang/ru.js +1 -1
  45. data/{vendor → app}/assets/javascripts/ckeditor/plugins/CKCss/ckcss.png +0 -0
  46. data/{vendor → app}/assets/javascripts/ckeditor/plugins/CKCss/css/styles.css +0 -0
  47. data/{vendor → app}/assets/javascripts/ckeditor/plugins/CKCss/dialogs/ckcss.js +0 -0
  48. data/{vendor → app}/assets/javascripts/ckeditor/plugins/CKCss/lang/en.js +0 -0
  49. data/{vendor → app}/assets/javascripts/ckeditor/plugins/CKCss/lang/ru.js +0 -0
  50. data/{vendor → app}/assets/javascripts/ckeditor/plugins/CKCss/plugin.js +0 -0
  51. data/{vendor → app}/assets/javascripts/ckeditor/plugins/LoremIpsum/images/icon.png +0 -0
  52. data/{vendor → app}/assets/javascripts/ckeditor/plugins/LoremIpsum/images/icon1.png +0 -0
  53. data/{vendor → app}/assets/javascripts/ckeditor/plugins/LoremIpsum/plugin.js +0 -0
  54. data/{vendor → app}/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +0 -0
  55. data/{vendor → app}/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +0 -0
  56. data/{vendor → app}/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +0 -0
  57. data/{vendor → app}/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +0 -0
  58. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/css/codemirror.ckeditor.css +38 -0
  59. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/css/codemirror.css +246 -245
  60. data/app/assets/javascripts/ckeditor/plugins/codemirror/css/codemirror.min.css +1 -0
  61. data/app/assets/javascripts/ckeditor/plugins/codemirror/icons/AutoComplete.png +0 -0
  62. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/icons/AutoFormat.png +0 -0
  63. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/icons/CommentSelectedRange.png +0 -0
  64. data/app/assets/javascripts/ckeditor/plugins/codemirror/icons/SearchCode.png +0 -0
  65. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/icons/UncommentSelectedRange.png +0 -0
  66. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/js/addon/dialog/dialog.js +81 -76
  67. data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/closebrackets.js +52 -0
  68. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/closetag.js +1 -2
  69. data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/continuecomment.js +44 -0
  70. data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/continuelist.js +25 -0
  71. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/matchbrackets.js +0 -0
  72. data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/fold/brace-fold.js +31 -0
  73. data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/fold/foldcode.js +32 -0
  74. data/app/assets/javascripts/ckeditor/plugins/codemirror/js/addon/fold/xml-fold.js +64 -0
  75. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/js/addon/format/autoFormatAll.js +0 -0
  76. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/js/addon/format/formatting.js +0 -0
  77. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/js/addon/search/match-highlighter.js +0 -0
  78. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/js/addon/search/search.js +131 -131
  79. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/js/addon/search/searchcursor.js +8 -9
  80. data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.addons.min.js +1 -0
  81. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.js +264 -132
  82. data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.min.js +1 -0
  83. data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.modes.min.js +1 -0
  84. data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.search-addons.min.js +1 -0
  85. data/{vendor/assets/javascripts/ckeditor/plugins/codemirror/js → app/assets/javascripts/ckeditor/plugins/codemirror/js/mode}/css.js +337 -235
  86. data/{vendor/assets/javascripts/ckeditor/plugins/codemirror/js → app/assets/javascripts/ckeditor/plugins/codemirror/js/mode}/htmlmixed.js +0 -0
  87. data/{vendor/assets/javascripts/ckeditor/plugins/codemirror/js → app/assets/javascripts/ckeditor/plugins/codemirror/js/mode}/javascript.js +17 -6
  88. data/{vendor/assets/javascripts/ckeditor/plugins/codemirror/js → app/assets/javascripts/ckeditor/plugins/codemirror/js/mode}/xml.js +9 -5
  89. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/lang/en.js +4 -2
  90. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/lang/ru.js +0 -0
  91. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/plugin.js +146 -34
  92. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/ambiance-mobile.css +0 -1
  93. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/ambiance.css +0 -1
  94. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/blackboard.css +0 -0
  95. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/cobalt.css +0 -0
  96. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/eclipse.css +1 -1
  97. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/elegant.css +0 -0
  98. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/erlang-dark.css +5 -5
  99. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/lesser-dark.css +0 -0
  100. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/monokai.css +0 -0
  101. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/neat.css +0 -0
  102. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/night.css +0 -0
  103. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/rubyblue.css +0 -0
  104. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/solarized.css +0 -0
  105. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/twilight.css +0 -0
  106. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/vibrant-ink.css +0 -0
  107. data/{vendor → app}/assets/javascripts/ckeditor/plugins/codemirror/theme/xq-dark.css +0 -0
  108. data/app/assets/javascripts/ckeditor/plugins/codemirror/theme/xq-light.css +43 -0
  109. data/{vendor → app}/assets/javascripts/ckeditor/plugins/colorbutton/icons/bgcolor.png +0 -0
  110. data/{vendor → app}/assets/javascripts/ckeditor/plugins/colorbutton/icons/textcolor.png +0 -0
  111. data/{vendor → app}/assets/javascripts/ckeditor/plugins/colorbutton/lang/en.js +0 -0
  112. data/{vendor → app}/assets/javascripts/ckeditor/plugins/colorbutton/lang/ru.js +0 -0
  113. data/{vendor → app}/assets/javascripts/ckeditor/plugins/colorbutton/plugin.js +6 -2
  114. data/{vendor → app}/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +0 -0
  115. data/{vendor → app}/assets/javascripts/ckeditor/plugins/colordialog/lang/en.js +0 -0
  116. data/{vendor → app}/assets/javascripts/ckeditor/plugins/colordialog/lang/ru.js +0 -0
  117. data/{vendor → app}/assets/javascripts/ckeditor/plugins/colordialog/plugin.js +1 -1
  118. data/{vendor → app}/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +0 -0
  119. data/{vendor → app}/assets/javascripts/ckeditor/plugins/fakeobjects/images/spacer.gif +0 -0
  120. data/{vendor → app}/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +10 -9
  121. data/{vendor → app}/assets/javascripts/ckeditor/plugins/flash/images/placeholder.png +0 -0
  122. data/{vendor → app}/assets/javascripts/ckeditor/plugins/font/lang/en.js +0 -0
  123. data/{vendor → app}/assets/javascripts/ckeditor/plugins/font/lang/ru.js +0 -0
  124. data/{vendor → app}/assets/javascripts/ckeditor/plugins/font/plugin.js +5 -2
  125. data/{vendor → app}/assets/javascripts/ckeditor/plugins/highslide/dialogs/hs.js +0 -0
  126. data/{vendor → app}/assets/javascripts/ckeditor/plugins/highslide/icon.png +0 -0
  127. data/{vendor → app}/assets/javascripts/ckeditor/plugins/highslide/lang/en.js +0 -0
  128. data/{vendor → app}/assets/javascripts/ckeditor/plugins/highslide/lang/ru.js +0 -0
  129. data/{vendor → app}/assets/javascripts/ckeditor/plugins/highslide/plugin.js +0 -0
  130. data/{vendor → app}/assets/javascripts/ckeditor/plugins/highslide/readme.txt +0 -0
  131. data/app/assets/javascripts/ckeditor/plugins/icons.png +0 -0
  132. data/{vendor → app}/assets/javascripts/ckeditor/plugins/iframedialog/plugin.js +0 -0
  133. data/app/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +43 -0
  134. data/{vendor → app}/assets/javascripts/ckeditor/plugins/image/images/noimage.png +0 -0
  135. data/{vendor → app}/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +0 -0
  136. data/{vendor → app}/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +15 -15
  137. data/{vendor → app}/assets/javascripts/ckeditor/plugins/link/images/anchor.png +0 -0
  138. data/{vendor → app}/assets/javascripts/ckeditor/plugins/magicline/images/icon.png +0 -0
  139. data/{vendor → app}/assets/javascripts/ckeditor/plugins/mediaembed/images/icon.png +0 -0
  140. data/{vendor → app}/assets/javascripts/ckeditor/plugins/oembed/images/icon.png +0 -0
  141. data/app/assets/javascripts/ckeditor/plugins/oembed/libs/jquery.oembed.js +68 -0
  142. data/app/assets/javascripts/ckeditor/plugins/oembed/libs/jquery.oembed.min.js +68 -0
  143. data/{vendor → app}/assets/javascripts/ckeditor/plugins/panelbutton/plugin.js +0 -0
  144. data/app/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +31 -0
  145. data/{vendor → app}/assets/javascripts/ckeditor/plugins/scayt/LICENSE.md +0 -0
  146. data/{vendor → app}/assets/javascripts/ckeditor/plugins/scayt/README.md +0 -0
  147. data/{vendor → app}/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +0 -0
  148. data/{vendor → app}/assets/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -0
  149. data/{vendor → app}/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +0 -0
  150. data/{vendor → app}/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +0 -0
  151. data/app/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +21 -0
  152. data/{vendor → app}/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +0 -0
  153. data/{vendor → app}/assets/javascripts/ckeditor/plugins/wsc/LICENSE.md +0 -0
  154. data/{vendor → app}/assets/javascripts/ckeditor/plugins/wsc/README.md +0 -0
  155. data/{vendor → app}/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -0
  156. data/{vendor → app}/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -0
  157. data/{vendor → app}/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +0 -0
  158. data/{vendor → app}/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +0 -0
  159. data/app/assets/javascripts/ckeditor/samples/ajax.html +82 -0
  160. data/app/assets/javascripts/ckeditor/samples/api.html +207 -0
  161. data/app/assets/javascripts/ckeditor/samples/appendto.html +57 -0
  162. data/app/assets/javascripts/ckeditor/samples/assets/inlineall/logo.png +0 -0
  163. data/app/assets/javascripts/ckeditor/samples/assets/outputxhtml/outputxhtml.css +204 -0
  164. data/app/assets/javascripts/ckeditor/samples/assets/posteddata.php +59 -0
  165. data/app/assets/javascripts/ckeditor/samples/assets/sample.css +3 -0
  166. data/app/assets/javascripts/ckeditor/samples/assets/sample.jpg +0 -0
  167. data/app/assets/javascripts/ckeditor/samples/assets/uilanguages/languages.js +7 -0
  168. data/app/assets/javascripts/ckeditor/samples/datafiltering.html +401 -0
  169. data/app/assets/javascripts/ckeditor/samples/divreplace.html +141 -0
  170. data/app/assets/javascripts/ckeditor/samples/index.html +125 -0
  171. data/app/assets/javascripts/ckeditor/samples/inlineall.html +311 -0
  172. data/app/assets/javascripts/ckeditor/samples/inlinebycode.html +122 -0
  173. data/app/assets/javascripts/ckeditor/samples/plugins/dialog/assets/my_dialog.js +48 -0
  174. data/app/assets/javascripts/ckeditor/samples/plugins/dialog/dialog.html +187 -0
  175. data/app/assets/javascripts/ckeditor/samples/plugins/enterkey/enterkey.html +103 -0
  176. data/app/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.fla +0 -0
  177. data/app/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.swf +0 -0
  178. data/app/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/swfobject.js +18 -0
  179. data/app/assets/javascripts/ckeditor/samples/plugins/htmlwriter/outputforflash.html +280 -0
  180. data/app/assets/javascripts/ckeditor/samples/plugins/htmlwriter/outputhtml.html +221 -0
  181. data/app/assets/javascripts/ckeditor/samples/plugins/magicline/magicline.html +207 -0
  182. data/{vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/samples → app/assets/javascripts/ckeditor/samples/plugins/stylesheetparser}/assets/sample.css +70 -70
  183. data/{vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/samples → app/assets/javascripts/ckeditor/samples/plugins/stylesheetparser}/stylesheetparser.html +82 -82
  184. data/app/assets/javascripts/ckeditor/samples/plugins/toolbar/toolbar.html +232 -0
  185. data/app/assets/javascripts/ckeditor/samples/plugins/wysiwygarea/fullpage.html +77 -0
  186. data/app/assets/javascripts/ckeditor/samples/readonly.html +73 -0
  187. data/app/assets/javascripts/ckeditor/samples/replacebyclass.html +57 -0
  188. data/app/assets/javascripts/ckeditor/samples/replacebycode.html +56 -0
  189. data/app/assets/javascripts/ckeditor/samples/sample.css +339 -0
  190. data/app/assets/javascripts/ckeditor/samples/sample.js +33 -0
  191. data/app/assets/javascripts/ckeditor/samples/sample_posteddata.php +16 -0
  192. data/app/assets/javascripts/ckeditor/samples/tabindex.html +75 -0
  193. data/app/assets/javascripts/ckeditor/samples/uicolor.html +69 -0
  194. data/app/assets/javascripts/ckeditor/samples/uilanguages.html +119 -0
  195. data/app/assets/javascripts/ckeditor/samples/xhtmlstyle.html +231 -0
  196. data/{vendor → app}/assets/javascripts/ckeditor/skins/moono/dialog.css +0 -0
  197. data/{vendor → app}/assets/javascripts/ckeditor/skins/moono/dialog_ie.css +0 -0
  198. data/{vendor → app}/assets/javascripts/ckeditor/skins/moono/dialog_ie7.css +0 -0
  199. data/{vendor → app}/assets/javascripts/ckeditor/skins/moono/dialog_ie8.css +0 -0
  200. data/app/assets/javascripts/ckeditor/skins/moono/dialog_iequirks.css +5 -0
  201. data/{vendor → app}/assets/javascripts/ckeditor/skins/moono/dialog_opera.css +0 -0
  202. data/{vendor → app}/assets/javascripts/ckeditor/skins/moono/editor.css +1 -1
  203. data/{vendor/assets/javascripts/ckeditor/skins/moono/editor_ie.css → app/assets/javascripts/ckeditor/skins/moono/editor_gecko.css} +1 -1
  204. data/{vendor/assets/javascripts/ckeditor/skins/moono/editor_ie8.css → app/assets/javascripts/ckeditor/skins/moono/editor_ie.css} +1 -1
  205. data/{vendor → app}/assets/javascripts/ckeditor/skins/moono/editor_ie7.css +1 -1
  206. data/app/assets/javascripts/ckeditor/skins/moono/editor_ie8.css +5 -0
  207. data/{vendor/assets/javascripts/ckeditor/skins/moono/editor_gecko.css → app/assets/javascripts/ckeditor/skins/moono/editor_iequirks.css} +1 -1
  208. data/app/assets/javascripts/ckeditor/skins/moono/icons.png +0 -0
  209. data/{vendor → app}/assets/javascripts/ckeditor/skins/moono/images/arrow.png +0 -0
  210. data/{vendor → app}/assets/javascripts/ckeditor/skins/moono/images/close.png +0 -0
  211. data/{vendor → app}/assets/javascripts/ckeditor/skins/moono/images/mini.png +0 -0
  212. data/{vendor → app}/assets/javascripts/ckeditor/skins/moono/readme.md +0 -0
  213. data/{vendor → app}/assets/javascripts/ckeditor/styles.js +1 -2
  214. data/app/controllers/ckeditor/application_controller.rb +6 -12
  215. data/app/controllers/ckeditor/attachment_files_controller.rb +6 -2
  216. data/app/controllers/ckeditor/pictures_controller.rb +6 -2
  217. data/app/views/ckeditor/shared/_asset.html.erb +4 -4
  218. data/app/views/ckeditor/shared/_asset_tmpl.html.erb +1 -1
  219. data/lib/ckeditor.rb +91 -19
  220. data/lib/ckeditor/engine.rb +5 -8
  221. data/lib/ckeditor/helpers/controllers.rb +7 -3
  222. data/lib/ckeditor/helpers/form_builder.rb +1 -1
  223. data/lib/ckeditor/helpers/form_helper.rb +12 -15
  224. data/lib/ckeditor/helpers/view_helper.rb +1 -1
  225. data/lib/ckeditor/hooks/cancan.rb +46 -0
  226. data/lib/ckeditor/hooks/simple_form.rb +11 -0
  227. data/lib/ckeditor/orm/active_record.rb +1 -3
  228. data/lib/ckeditor/orm/base.rb +4 -0
  229. data/lib/ckeditor/orm/mongoid.rb +1 -3
  230. data/lib/ckeditor/utils.rb +25 -8
  231. data/lib/ckeditor/version.rb +2 -2
  232. data/lib/generators/ckeditor/install_generator.rb +2 -2
  233. data/lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/asset.rb +2 -2
  234. data/lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/attachment_file.rb +4 -4
  235. data/lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/picture.rb +4 -4
  236. data/lib/generators/ckeditor/templates/active_record/carrierwave/migration.rb +1 -1
  237. data/lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/attachment_file.rb +4 -4
  238. data/lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/picture.rb +8 -8
  239. data/lib/generators/ckeditor/templates/active_record/paperclip/migration.rb +6 -6
  240. data/lib/generators/ckeditor/templates/base/carrierwave/uploaders/ckeditor_attachment_file_uploader.rb +1 -7
  241. data/lib/generators/ckeditor/templates/base/carrierwave/uploaders/ckeditor_picture_uploader.rb +1 -7
  242. data/lib/generators/ckeditor/templates/base/dragonfly/initializer.rb +3 -3
  243. data/lib/generators/ckeditor/templates/ckeditor.rb +3 -0
  244. data/lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/asset.rb +1 -1
  245. data/lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/attachment_file.rb +4 -4
  246. data/lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/picture.rb +4 -4
  247. data/test/dummy/app/views/posts/_form.html.erb +3 -3
  248. data/test/dummy/script/rails +0 -0
  249. data/test/functional/posts_controller_test.rb +3 -3
  250. metadata +346 -321
  251. data/vendor/assets/javascripts/ckeditor/ckeditor.js +0 -830
  252. data/vendor/assets/javascripts/ckeditor/filebrowser/stylesheets/uploader.css.sass +0 -102
  253. data/vendor/assets/javascripts/ckeditor/plugins/code/code/code.js +0 -48
  254. data/vendor/assets/javascripts/ckeditor/plugins/code/images/code.png +0 -0
  255. data/vendor/assets/javascripts/ckeditor/plugins/code/plugin.js +0 -17
  256. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/css/codemirror.min.css +0 -1
  257. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/closebrackets.js +0 -29
  258. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/continuelist.js +0 -28
  259. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/foldcode/foldcode.js +0 -183
  260. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.addons.min.js +0 -1
  261. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.min.js +0 -1
  262. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.modes.min.js +0 -1
  263. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.search-addons.min.js +0 -1
  264. data/vendor/assets/javascripts/ckeditor/plugins/icons.png +0 -0
  265. data/vendor/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +0 -41
  266. data/vendor/assets/javascripts/ckeditor/plugins/mediaembed/plugin.js +0 -67
  267. data/vendor/assets/javascripts/ckeditor/plugins/oembed/lang/de.js +0 -12
  268. data/vendor/assets/javascripts/ckeditor/plugins/oembed/lang/en.js +0 -12
  269. data/vendor/assets/javascripts/ckeditor/plugins/oembed/lang/fr.js +0 -14
  270. data/vendor/assets/javascripts/ckeditor/plugins/oembed/lang/nl.js +0 -12
  271. data/vendor/assets/javascripts/ckeditor/plugins/oembed/lang/ru.js +0 -12
  272. data/vendor/assets/javascripts/ckeditor/plugins/oembed/libs/jquery.oembed.js +0 -912
  273. data/vendor/assets/javascripts/ckeditor/plugins/oembed/libs/jquery.oembed.min.js +0 -1
  274. data/vendor/assets/javascripts/ckeditor/plugins/oembed/plugin.js +0 -102
  275. data/vendor/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +0 -31
  276. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ru.js +0 -13
  277. data/vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/plugin.js +0 -138
  278. data/vendor/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +0 -20
  279. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_iequirks.css +0 -689
  280. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_iequirks.css +0 -1245
  281. data/vendor/assets/javascripts/ckeditor/skins/moono/icons.png +0 -0
@@ -1 +0,0 @@
1
- (function($){$.fn.oembed=function(url,options,embedAction){settings=$.extend(true,$.fn.oembed.defaults,options);var shortURLList=["0rz.tw","1link.in","1url.com","2.gp","2big.at","2tu.us","3.ly","307.to","4ms.me","4sq.com","4url.cc","6url.com","7.ly","a.gg","a.nf","aa.cx","abcurl.net","ad.vu","adf.ly","adjix.com","afx.cc","all.fuseurl.com","alturl.com","amzn.to","ar.gy","arst.ch","atu.ca","azc.cc","b23.ru","b2l.me","bacn.me","bcool.bz","binged.it","bit.ly","bizj.us","bloat.me","bravo.ly","bsa.ly","budurl.com","canurl.com","chilp.it","chzb.gr","cl.lk","cl.ly","clck.ru","cli.gs","cliccami.info","clickthru.ca","clop.in","conta.cc","cort.as","cot.ag","crks.me","ctvr.us","cutt.us","dai.ly","decenturl.com","dfl8.me","digbig.com","http:\/\/digg\.com\/[^\/]+$","disq.us","dld.bz","dlvr.it","do.my","doiop.com","dopen.us","easyuri.com","easyurl.net","eepurl.com","eweri.com","fa.by","fav.me","fb.me","fbshare.me","ff.im","fff.to","fire.to","firsturl.de","firsturl.net","flic.kr","flq.us","fly2.ws","fon.gs","freak.to","fuseurl.com","fuzzy.to","fwd4.me","fwib.net","g.ro.lt","gizmo.do","gl.am","go.9nl.com","go.ign.com","go.usa.gov","goo.gl","goshrink.com","gurl.es","hex.io","hiderefer.com","hmm.ph","href.in","hsblinks.com","htxt.it","huff.to","hulu.com","hurl.me","hurl.ws","icanhaz.com","idek.net","ilix.in","is.gd","its.my","ix.lt","j.mp","jijr.com","kl.am","klck.me","korta.nu","krunchd.com","l9k.net","lat.ms","liip.to","liltext.com","linkbee.com","linkbun.ch","liurl.cn","ln-s.net","ln-s.ru","lnk.gd","lnk.ms","lnkd.in","lnkurl.com","lru.jp","lt.tl","lurl.no","macte.ch","mash.to","merky.de","migre.me","miniurl.com","minurl.fr","mke.me","moby.to","moourl.com","mrte.ch","myloc.me","myurl.in","n.pr","nbc.co","nblo.gs","nn.nf","not.my","notlong.com","nsfw.in","nutshellurl.com","nxy.in","nyti.ms","o-x.fr","oc1.us","om.ly","omf.gd","omoikane.net","on.cnn.com","on.mktw.net","onforb.es","orz.se","ow.ly","ping.fm","pli.gs","pnt.me","politi.co","post.ly","pp.gg","profile.to","ptiturl.com","pub.vitrue.com","qlnk.net","qte.me","qu.tc","qy.fi","r.ebay.com","r.im","rb6.me","read.bi","readthis.ca","reallytinyurl.com","redir.ec","redirects.ca","redirx.com","retwt.me","ri.ms","rickroll.it","riz.gd","rt.nu","ru.ly","rubyurl.com","rurl.org","rww.tw","s4c.in","s7y.us","safe.mn","sameurl.com","sdut.us","shar.es","shink.de","shorl.com","short.ie","short.to","shortlinks.co.uk","shorturl.com","shout.to","show.my","shrinkify.com","shrinkr.com","shrt.fr","shrt.st","shrten.com","shrunkin.com","simurl.com","slate.me","smallr.com","smsh.me","smurl.name","sn.im","snipr.com","snipurl.com","snurl.com","sp2.ro","spedr.com","srnk.net","srs.li","starturl.com","stks.co","su.pr","surl.co.uk","surl.hu","t.cn","t.co","t.lh.com","ta.gd","tbd.ly","tcrn.ch","tgr.me","tgr.ph","tighturl.com","tiniuri.com","tiny.cc","tiny.ly","tiny.pl","tinylink.in","tinyuri.ca","tinyurl.com","tk.","tl.gd","tmi.me","tnij.org","tnw.to","tny.com","to.ly","togoto.us","totc.us","toysr.us","tpm.ly","tr.im","tra.kz","trunc.it","twhub.com","twirl.at","twitclicks.com","twitterurl.net","twitterurl.org","twiturl.de","twurl.cc","twurl.nl","u.mavrev.com","u.nu","u76.org","ub0.cc","ulu.lu","updating.me","ur1.ca","url.az","url.co.uk","url.ie","url360.me","url4.eu","urlborg.com","urlbrief.com","urlcover.com","urlcut.com","urlenco.de","urli.nl","urls.im","urlshorteningservicefortwitter.com","urlx.ie","urlzen.com","usat.ly","use.my","vb.ly","vevo.ly","vgn.am","vl.am","vm.lc","w55.de","wapo.st","wapurl.co.uk","wipi.es","wp.me","x.vu","xr.com","xrl.in","xrl.us","xurl.es","xurl.jp","y.ahoo.it","yatuc.com","ye.pe","yep.it","yfrog.com","yhoo.it","yiyd.com","youtu.be","yuarel.com","z0p.de","zi.ma","zi.mu","zipmyurl.com","zud.me","zurl.ws","zz.gd","zzang.kr","›.ws","✩.ws","✿.ws","❥.ws","➔.ws","➞.ws","➡.ws","➨.ws","➯.ws","➹.ws","➽.ws"];if($('#jqoembeddata').length===0)$('<span id="jqoembeddata"></span>').appendTo('body');return this.each(function(){var container=$(this),resourceURL=(url&&(!url.indexOf('http://')||!url.indexOf('https://')))?url:container.attr("href"),provider;if(embedAction){settings.onEmbed=embedAction}else if(!settings.onEmbed){settings.onEmbed=function(oembedData){$.fn.oembed.insertCode(this,settings.embedMethod,oembedData)}}if(resourceURL!==null&&resourceURL!==undefined){for(var j=0,l=shortURLList.length;j<l;j++){var regExp=new RegExp('://'+shortURLList[j]+'/',"i");if(resourceURL.match(regExp)!==null){var ajaxopts=$.extend({url:"http://api.longurl.org/v2/expand",dataType:'jsonp',data:{url:resourceURL,format:"json"},success:function(data){resourceURL=data['long-url'];provider=$.fn.oembed.getOEmbedProvider(data['long-url']);if(provider!==null){provider.params=getNormalizedParams(settings[provider.name])||{};provider.maxWidth=settings.maxWidth;provider.maxHeight=settings.maxHeight;embedCode(container,resourceURL,provider)}else{settings.onProviderNotFound.call(container,resourceURL)}}},settings.ajaxOptions||{});$.ajax(ajaxopts);return container}}provider=$.fn.oembed.getOEmbedProvider(resourceURL);if(provider!==null){provider.params=getNormalizedParams(settings[provider.name])||{};provider.maxWidth=settings.maxWidth;provider.maxHeight=settings.maxHeight;embedCode(container,resourceURL,provider)}else{settings.onProviderNotFound.call(container,resourceURL)}}return container})};var settings;$.fn.oembed.defaults={maxWidth:null,maxHeight:null,includeHandle:true,embedMethod:'auto',onProviderNotFound:function(){},beforeEmbed:function(){},afterEmbed:function(){},onEmbed:false,onError:function(){},ajaxOptions:{}};function rand(length,current){current=current?current:'';return length?rand(--length,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz".charAt(Math.floor(Math.random()*60))+current):current}function getRequestUrl(provider,externalUrl){var url=provider.apiendpoint,qs="",i;url+=(url.indexOf("?")<=0)?"?":"&";url=url.replace('#','%23');if(provider.maxWidth!==null&&(typeof provider.params.maxwidth==='undefined'||provider.params.maxwidth===null)){provider.params.maxwidth=provider.maxWidth}if(provider.maxHeight!==null&&(typeof provider.params.maxheight==='undefined'||provider.params.maxheight===null)){provider.params.maxheight=provider.maxHeight}for(i in provider.params){if(i==provider.callbackparameter)continue;if(provider.params[i]!==null)qs+="&"+escape(i)+"="+provider.params[i]}url+="format="+provider.format+"&url="+escape(externalUrl)+qs;if(provider.dataType!='json')url+="&"+provider.callbackparameter+"=?";return url}function success(oembedData,externalUrl,container){$('#jqoembeddata').data(externalUrl,oembedData.code);settings.beforeEmbed.call(container,oembedData);settings.onEmbed.call(container,oembedData);settings.afterEmbed.call(container,oembedData)}function embedCode(container,externalUrl,embedProvider){if($('#jqoembeddata').data(externalUrl)!=undefined&&embedProvider.embedtag.tag!='iframe'){var oembedData={code:$('#jqoembeddata').data(externalUrl)};success(oembedData,externalUrl,container)}else if(embedProvider.yql){var from=embedProvider.yql.from||'htmlstring';var url=embedProvider.yql.url?embedProvider.yql.url(externalUrl):externalUrl;var query='SELECT * FROM '+from+' WHERE url="'+(url)+'"'+" and "+(/html/.test(from)?'xpath':'itemPath')+"='"+(embedProvider.yql.xpath||'/')+"'";if(from=='html')query+=" and compat='html5'";var ajaxopts=$.extend({url:"http://query.yahooapis.com/v1/public/yql",dataType:'jsonp',data:{q:query,format:"json",env:'store://datatables.org/alltableswithkeys',callback:"?"},success:function(data){var result;if(embedProvider.yql.xpath&&embedProvider.yql.xpath=='//meta|//title|//link'){var meta={};if(data.query.results==null){data.query.results={"meta":[]}}for(var i=0,l=data.query.results.meta.length;i<l;i++){var name=data.query.results.meta[i].name||data.query.results.meta[i].property||null;if(name==null)continue;meta[name.toLowerCase()]=data.query.results.meta[i].content}if(!meta.hasOwnProperty("title")||!meta.hasOwnProperty("og:title")){if(data.query.results.title!=null){meta.title=data.query.results.title}}if(!meta.hasOwnProperty("og:image")&&data.query.results.hasOwnProperty("link")){for(var i=0,l=data.query.results.link.length;i<l;i++){if(data.query.results.link[i].hasOwnProperty("rel")){if(data.query.results.link[i].rel=="apple-touch-icon"){if(data.query.results.link[i].href.charAt(0)=="/"){meta["og:image"]=url.match(/^(([a-z]+:)?(\/\/)?[^\/]+\/).*$/)[1]+data.query.results.link[i].href}else{meta["og:image"]=data.query.results.link[i].href}}}}}result=embedProvider.yql.datareturn(meta)}else{result=embedProvider.yql.datareturn?embedProvider.yql.datareturn(data.query.results):data.query.results.result}if(result===false)return;var oembedData=$.extend({},result);oembedData.code=result;success(oembedData,externalUrl,container)},error:settings.onError.call(container,externalUrl,embedProvider)},settings.ajaxOptions||{});$.ajax(ajaxopts)}else if(embedProvider.templateRegex){if(embedProvider.embedtag.tag!==''){var flashvars=embedProvider.embedtag.flashvars||'';var tag=embedProvider.embedtag.tag||'embed';var width=embedProvider.embedtag.width||'auto';var nocache=embedProvider.embedtag.nocache||0;var height=embedProvider.embedtag.height||'auto';var src=externalUrl.replace(embedProvider.templateRegex,embedProvider.apiendpoint);if(!embedProvider.nocache)src+='&jqoemcache='+rand(5);if(embedProvider.apikey)src=src.replace('_APIKEY_',settings.apikeys[embedProvider.name]);var code=$('<'+tag+'/>').attr('src',src).attr('width',width).attr('height',height).attr('allowfullscreen',embedProvider.embedtag.allowfullscreen||'true').attr('allowscriptaccess',embedProvider.embedtag.allowfullscreen||'always').css('max-height',settings.maxHeight||'auto').css('max-width',settings.maxWidth||'auto');if(tag=='embed')code.attr('type',embedProvider.embedtag.type||"application/x-shockwave-flash").attr('flashvars',externalUrl.replace(embedProvider.templateRegex,flashvars));if(tag=='iframe')code.attr('scrolling',embedProvider.embedtag.scrolling||"no").attr('frameborder',embedProvider.embedtag.frameborder||"0");var oembedData={code:code};success(oembedData,externalUrl,container)}else if(embedProvider.apiendpoint){if(embedProvider.apikey)embedProvider.apiendpoint=embedProvider.apiendpoint.replace('_APIKEY_',settings.apikeys[embedProvider.name]);ajaxopts=$.extend({url:externalUrl.replace(embedProvider.templateRegex,embedProvider.apiendpoint),dataType:'jsonp',success:function(data){var oembedData=$.extend({},data);oembedData.code=embedProvider.templateData(data);success(oembedData,externalUrl,container)},error:settings.onError.call(container,externalUrl,embedProvider)},settings.ajaxOptions||{});$.ajax(ajaxopts)}else{var oembedData={code:externalUrl.replace(embedProvider.templateRegex,embedProvider.template)};success(oembedData,externalUrl,container)}}else{var requestUrl=getRequestUrl(embedProvider,externalUrl),ajaxopts=$.extend({url:requestUrl,dataType:embedProvider.dataType||'jsonp',success:function(data){var oembedData=$.extend({},data);switch(oembedData.type){case"file":case"photo":oembedData.code=$.fn.oembed.getPhotoCode(externalUrl,oembedData);break;case"video":case"rich":oembedData.code=$.fn.oembed.getRichCode(externalUrl,oembedData);break;default:oembedData.code=$.fn.oembed.getGenericCode(externalUrl,oembedData);break}success(oembedData,externalUrl,container)},error:settings.onError.call(container,externalUrl,embedProvider)},settings.ajaxOptions||{});$.ajax(ajaxopts)}};function getNormalizedParams(params){if(params===null)return null;var key,normalizedParams={};for(key in params){if(key!==null)normalizedParams[key.toLowerCase()]=params[key]}return normalizedParams}$.fn.oembed.insertCode=function(container,embedMethod,oembedData){if(oembedData===null)return;if(embedMethod=='auto'&&container.attr("href")!==null)embedMethod='append';else if(embedMethod=='auto')embedMethod='replace';switch(embedMethod){case"replace":container.replaceWith(oembedData.code);break;case"fill":container.html(oembedData.code);break;case"append":container.wrap('<div class="oembedall-container"></div>');var oembedContainer=container.parent();if(settings.includeHandle){$('<span class="oembedall-closehide">&darr;</span>').insertBefore(container).click(function(){var encodedString=encodeURIComponent($(this).text());$(this).html((encodedString=='%E2%86%91')?'&darr;':'&uarr;');$(this).parent().children().last().toggle()})}oembedContainer.append('<br/>');try{oembedData.code.clone().appendTo(oembedContainer)}catch(e){oembedContainer.append(oembedData.code)}if(settings.maxWidth){var post_width=oembedContainer.parent().width();if(post_width<settings.maxWidth){var iframe_width_orig=$('iframe',oembedContainer).width();var iframe_height_orig=$('iframe',oembedContainer).height();var ratio=iframe_width_orig/post_width;$('iframe',oembedContainer).width(iframe_width_orig/ratio);$('iframe',oembedContainer).height(iframe_height_orig/ratio)}else{if(settings.maxWidth){$('iframe',oembedContainer).width(settings.maxWidth)}if(settings.maxHeight){$('iframe',oembedContainer).height(settings.maxHeight)}}}break}};$.fn.oembed.getPhotoCode=function(url,oembedData){var code,alt=oembedData.title?oembedData.title:'';alt+=oembedData.author_name?' - '+oembedData.author_name:'';alt+=oembedData.provider_name?' - '+oembedData.provider_name:'';code='<div><a href="'+url+'" target=\'_blank\'><img src="'+oembedData.url+'" alt="'+alt+'"/></a></div>';if(oembedData.html)code+="<div>"+oembedData.html+"</div>";return code};$.fn.oembed.getRichCode=function(url,oembedData){var code=oembedData.html;return code};$.fn.oembed.getGenericCode=function(url,oembedData){var title=(oembedData.title!==null)?oembedData.title:url,code='<a href="'+url+'">'+title+'</a>';if(oembedData.html)code+="<div>"+oembedData.html+"</div>";return code};$.fn.oembed.getOEmbedProvider=function(url){for(var i=0;i<$.fn.oembed.providers.length;i++){for(var j=0,l=$.fn.oembed.providers[i].urlschemes.length;j<l;j++){var regExp=new RegExp($.fn.oembed.providers[i].urlschemes[j],"i");if(url.match(regExp)!==null)return $.fn.oembed.providers[i]}}return null};$.fn.oembed.OEmbedProvider=function(name,type,urlschemesarray,apiendpoint,extraSettings){this.name=name;this.type=type;this.urlschemes=urlschemesarray;this.apiendpoint=apiendpoint;this.maxWidth=500;this.maxHeight=400;extraSettings=extraSettings||{};if(extraSettings.useYQL){if(extraSettings.useYQL=='xml'){extraSettings.yql={xpath:"//oembed/html",from:'xml',apiendpoint:this.apiendpoint,url:function(externalurl){return this.apiendpoint+'?format=xml&url='+externalurl},datareturn:function(results){return results.html.replace(/.*\[CDATA\[(.*)\]\]>$/,'$1')||''}}}else{extraSettings.yql={from:'json',apiendpoint:this.apiendpoint,url:function(externalurl){return this.apiendpoint+'?format=json&url='+externalurl},datareturn:function(results){if(results.json.type!='video'&&(results.json.url||results.json.thumbnail_url)){return'<img src="'+(results.json.url||results.json.thumbnail_url)+'" />'}return results.json.html||''}}}this.apiendpoint=null}for(var property in extraSettings){this[property]=extraSettings[property]}this.format=this.format||'json';this.callbackparameter=this.callbackparameter||"callback";this.embedtag=this.embedtag||{tag:""}};$.fn.oembed.providers=[new $.fn.oembed.OEmbedProvider("youtube","video",["youtube\\.com/watch.+v=[\\w-]+&?","youtu\\.be/[\\w-]+"],'http://www.youtube.com/oembed',{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("youtubeiframe","video",["youtube.com/embed"],"$1?wmode=transparent",{templateRegex:/(.*)/,embedtag:{tag:'iframe',width:'425',height:'349'}}),new $.fn.oembed.OEmbedProvider("wistia","video",["wistia.com/m/.+","wistia.com/embed/.+","wi.st/m/.+","wi.st/embed/.+"],'http://fast.wistia.com/oembed',{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("xtranormal","video",["xtranormal\\.com/watch/.+"],"http://www.xtranormal.com/xtraplayr/$1/$2",{templateRegex:/.*com\/watch\/([\w\-]+)\/([\w\-]+).*/,embedtag:{tag:'iframe',width:'320',height:'269'}}),new $.fn.oembed.OEmbedProvider("scivee","video",["scivee.tv/node/.+"],"http://www.scivee.tv/flash/embedCast.swf?",{templateRegex:/.*tv\/node\/(.+)/,embedtag:{width:'480',height:'400',flashvars:"id=$1&type=3"}}),new $.fn.oembed.OEmbedProvider("veoh","video",["veoh.com/watch/.+"],"http://www.veoh.com/swf/webplayer/WebPlayer.swf?version=AFrontend.5.7.0.1337&permalinkId=$1&player=videodetailsembedded&videoAutoPlay=0&id=anonymous",{templateRegex:/.*watch\/([^\?]+).*/,embedtag:{width:'410',height:'341'}}),new $.fn.oembed.OEmbedProvider("gametrailers","video",["gametrailers\\.com/video/.+"],"http://media.mtvnservices.com/mgid:moses:video:gametrailers.com:$2",{templateRegex:/.*com\/video\/([\w\-]+)\/([\w\-]+).*/,embedtag:{width:'512',height:'288'}}),new $.fn.oembed.OEmbedProvider("funnyordie","video",["funnyordie\\.com/videos/.+"],"http://player.ordienetworks.com/flash/fodplayer.swf?",{templateRegex:/.*videos\/([^\/]+)\/([^\/]+)?/,embedtag:{width:512,height:328,flashvars:"key=$1"}}),new $.fn.oembed.OEmbedProvider("colledgehumour","video",["collegehumor\\.com/video/.+"],"http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=$1&use_node_id=true&fullscreen=1",{templateRegex:/.*video\/([^\/]+).*/,embedtag:{width:600,height:338}}),new $.fn.oembed.OEmbedProvider("metacafe","video",["metacafe\\.com/watch/.+"],"http://www.metacafe.com/fplayer/$1/$2.swf",{templateRegex:/.*watch\/(\d+)\/(\w+)\/.*/,embedtag:{width:400,height:345}}),new $.fn.oembed.OEmbedProvider("bambuser","video",["bambuser\\.com\/channel\/.*\/broadcast\/.*"],"http://static.bambuser.com/r/player.swf?vid=$1",{templateRegex:/.*bambuser\.com\/channel\/.*\/broadcast\/(\w+).*/,embedtag:{width:512,height:339}}),new $.fn.oembed.OEmbedProvider("twitvid","video",["twitvid\\.com/.+"],"http://www.twitvid.com/embed.php?guid=$1&autoplay=0",{templateRegex:/.*twitvid\.com\/(\w+).*/,embedtag:{tag:'iframe',width:480,height:360}}),new $.fn.oembed.OEmbedProvider("aniboom","video",["aniboom\\.com/animation-video/.+"],"http://api.aniboom.com/e/$1",{templateRegex:/.*animation-video\/(\d+).*/,embedtag:{width:594,height:334}}),new $.fn.oembed.OEmbedProvider("vzaar","video",["vzaar\\.com/videos/.+","vzaar.tv/.+"],"http://view.vzaar.com/$1/player?",{templateRegex:/.*\/(\d+).*/,embedtag:{tag:'iframe',width:576,height:324}}),new $.fn.oembed.OEmbedProvider("snotr","video",["snotr\\.com/video/.+"],"http://www.snotr.com/embed/$1",{templateRegex:/.*\/(\d+).*/,embedtag:{tag:'iframe',width:400,height:330,nocache:1}}),new $.fn.oembed.OEmbedProvider("youku","video",["v.youku.com/v_show/id_.+"],"http://player.youku.com/player.php/sid/$1/v.swf",{templateRegex:/.*id_(.+)\.html.*/,embedtag:{width:480,height:400,nocache:1}}),new $.fn.oembed.OEmbedProvider("tudou","video",["tudou.com/programs/view/.+\/"],"http://www.tudou.com/v/$1/v.swf",{templateRegex:/.*view\/(.+)\//,embedtag:{width:480,height:400,nocache:1}}),new $.fn.oembed.OEmbedProvider("embedr","video",["embedr\\.com/playlist/.+"],"http://embedr.com/swf/slider/$1/425/520/default/false/std?",{templateRegex:/.*playlist\/([^\/]+).*/,embedtag:{width:425,height:520}}),new $.fn.oembed.OEmbedProvider("blip","video",["blip\\.tv/.+"],"http://blip.tv/oembed/"),new $.fn.oembed.OEmbedProvider("minoto-video","video",["http://api.minoto-video.com/publishers/.+/videos/.+","http://dashboard.minoto-video.com/main/video/details/.+","http://embed.minoto-video.com/.+"],"http://api.minoto-video.com/services/oembed.json",{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("animoto","video",["animoto.com/play/.+"],"http://animoto.com/services/oembed"),new $.fn.oembed.OEmbedProvider("hulu","video",["hulu\\.com/watch/.*"],"http://www.hulu.com/api/oembed.json"),new $.fn.oembed.OEmbedProvider("ustream","video",["ustream\\.tv/recorded/.*"],"http://www.ustream.tv/oembed",{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("videojug","video",["videojug\\.com/(film|payer|interview).*"],"http://www.videojug.com/oembed.json",{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("sapo","video",["videos\\.sapo\\.pt/.*"],"http://videos.sapo.pt/oembed",{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("vodpod","video",["vodpod.com/watch/.*"],"http://vodpod.com/oembed.js",{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("vimeo","video",["http:\/\/www\.vimeo\.com\/groups\/.*\/videos\/.*","http:\/\/www\.vimeo\.com\/.*","http:\/\/vimeo\.com\/groups\/.*\/videos\/.*","http:\/\/vimeo\.com\/.*"],"http://vimeo.com/api/oembed.json"),new $.fn.oembed.OEmbedProvider("dailymotion","video",["dailymotion\\.com/.+"],'http://www.dailymotion.com/services/oembed'),new $.fn.oembed.OEmbedProvider("5min","video",["www\\.5min\\.com/.+"],'http://api.5min.com/oembed.xml',{useYQL:'xml'}),new $.fn.oembed.OEmbedProvider("National Film Board of Canada","video",["nfb\\.ca/film/.+"],'http://www.nfb.ca/remote/services/oembed/',{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("qik","video",["qik\\.com/\\w+"],'http://qik.com/api/oembed.json',{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("revision3","video",["revision3\\.com"],"http://revision3.com/api/oembed/"),new $.fn.oembed.OEmbedProvider("dotsub","video",["dotsub\\.com/view/.+"],"http://dotsub.com/services/oembed",{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("clikthrough","video",["clikthrough\\.com/theater/video/\\d+"],"http://clikthrough.com/services/oembed"),new $.fn.oembed.OEmbedProvider("Kinomap","video",["kinomap\\.com/.+"],"http://www.kinomap.com/oembed"),new $.fn.oembed.OEmbedProvider("VHX","video",["vhx.tv/.+"],"http://vhx.tv/services/oembed.json"),new $.fn.oembed.OEmbedProvider("bambuser","video",["bambuser.com/.+"],"http://api.bambuser.com/oembed/iframe.json"),new $.fn.oembed.OEmbedProvider("justin.tv","video",["justin.tv/.+"],'http://api.justin.tv/api/embed/from_url.json',{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("official.fm","rich",["official.fm/.+"],'http://official.fm/services/oembed',{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("chirbit","rich",["chirb.it/.+"],'http://chirb.it/oembed.json',{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("Huffduffer","rich",["huffduffer.com/[-.\\w@]+/\\d+"],"http://huffduffer.com/oembed"),new $.fn.oembed.OEmbedProvider("shoudio","rich",["shoudio.com/.+","shoud.io/.+"],"http://shoudio.com/api/oembed"),new $.fn.oembed.OEmbedProvider("mixcloud","rich",["mixcloud.com/.+"],'http://www.mixcloud.com/oembed/',{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("rdio.com","rich",["rd.io/.+","rdio.com"],"http://www.rdio.com/api/oembed/"),new $.fn.oembed.OEmbedProvider("Soundcloud","rich",["soundcloud.com/.+","snd.sc/.+"],"http://soundcloud.com/oembed",{format:'js'}),new $.fn.oembed.OEmbedProvider("bandcamp","rich",["bandcamp\\.com/album/.+"],null,{yql:{xpath:"//meta[contains(@content, \\'EmbeddedPlayer\\')]",from:'html',datareturn:function(results){return results.meta?'<iframe width="400" height="100" src="'+results.meta.content+'" allowtransparency="true" frameborder="0"></iframe>':false}}}),new $.fn.oembed.OEmbedProvider("deviantart","photo",["deviantart.com/.+","fav.me/.+","deviantart.com/.+"],"http://backend.deviantart.com/oembed",{format:'jsonp'}),new $.fn.oembed.OEmbedProvider("skitch","photo",["skitch.com/.+"],null,{yql:{xpath:"json",from:'json',url:function(externalurl){return'http://skitch.com/oembed/?format=json&url='+externalurl},datareturn:function(data){return $.fn.oembed.getPhotoCode(data.json.url,data.json)}}}),new $.fn.oembed.OEmbedProvider("mobypicture","photo",["mobypicture.com/user/.+/view/.+","moby.to/.+"],"http://api.mobypicture.com/oEmbed"),new $.fn.oembed.OEmbedProvider("flickr","photo",["flickr\\.com/photos/.+"],"http://flickr.com/services/oembed",{callbackparameter:'jsoncallback'}),new $.fn.oembed.OEmbedProvider("photobucket","photo",["photobucket\\.com/(albums|groups)/.+"],"http://photobucket.com/oembed/"),new $.fn.oembed.OEmbedProvider("instagram","photo",["instagr\\.?am(\\.com)?/.+"],"http://api.instagram.com/oembed"),new $.fn.oembed.OEmbedProvider("SmugMug","photo",["smugmug.com/[-.\\w@]+/.+"],"http://api.smugmug.com/services/oembed/"),new $.fn.oembed.OEmbedProvider("dribbble","photo",["dribbble.com/shots/.+"],"http://api.dribbble.com/shots/$1?callback=?",{templateRegex:/.*shots\/([\d]+).*/,templateData:function(data){if(!data.image_teaser_url)return false;return'<img src="'+data.image_teaser_url+'"/>'}}),new $.fn.oembed.OEmbedProvider("chart.ly","photo",["chart\\.ly/[a-z0-9]{6,8}"],"http://chart.ly/uploads/large_$1.png",{templateRegex:/.*ly\/([^\/]+).*/,embedtag:{tag:'img'},nocache:1}),new $.fn.oembed.OEmbedProvider("circuitlab","photo",["circuitlab.com/circuit/.+"],"https://www.circuitlab.com/circuit/$1/screenshot/540x405/",{templateRegex:/.*circuit\/([^\/]+).*/,embedtag:{tag:'img'},nocache:1}),new $.fn.oembed.OEmbedProvider("23hq","photo",["23hq.com/[-.\\w@]+/photo/.+"],"http://www.23hq.com/23/oembed",{useYQL:"json"}),new $.fn.oembed.OEmbedProvider("img.ly","photo",["img\\.ly/.+"],"http://img.ly/show/thumb/$1",{templateRegex:/.*ly\/([^\/]+).*/,embedtag:{tag:'img'},nocache:1}),new $.fn.oembed.OEmbedProvider("twitgoo.com","photo",["twitgoo\\.com/.+"],"http://twitgoo.com/show/thumb/$1",{templateRegex:/.*com\/([^\/]+).*/,embedtag:{tag:'img'},nocache:1}),new $.fn.oembed.OEmbedProvider("imgur.com","photo",["imgur\\.com/gallery/.+"],"http://imgur.com/$1l.jpg",{templateRegex:/.*gallery\/([^\/]+).*/,embedtag:{tag:'img'},nocache:1}),new $.fn.oembed.OEmbedProvider("visual.ly","rich",["visual\\.ly/.+"],null,{yql:{xpath:"//a[@id=\\'gc_article_graphic_image\\']/img",from:'htmlstring'}}),new $.fn.oembed.OEmbedProvider("gravtar","photo",["mailto:.+"],null,{templateRegex:/mailto:([^\/]+).*/,template:function(wm,email){return'<img src="http://gravatar.com/avatar/'+email.md5()+'.jpg" alt="on Gravtar" class="jqoaImg">'}}),new $.fn.oembed.OEmbedProvider("twitter","rich",["twitter.com/.+"],"https://api.twitter.com/1/statuses/oembed.json"),new $.fn.oembed.OEmbedProvider("gmep","rich",["gmep.imeducate.com/.*","gmep.org/.*"],"http://gmep.org/oembed.json"),new $.fn.oembed.OEmbedProvider("urtak","rich",["urtak.com/(u|clr)/.+"],"http://oembed.urtak.com/1/oembed"),new $.fn.oembed.OEmbedProvider("cacoo","rich",["cacoo.com/.+"],"http://cacoo.com/oembed.json"),new $.fn.oembed.OEmbedProvider("dailymile","rich",["dailymile.com/people/.*/entries/.*"],"http://api.dailymile.com/oembed"),new $.fn.oembed.OEmbedProvider("dipity","rich",["dipity.com/timeline/.+"],'http://www.dipity.com/oembed/timeline/',{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("sketchfab","rich",["sketchfab.com/show/.+"],'http://sketchfab.com/oembed',{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("speakerdeck","rich",["speakerdeck.com/.+"],'http://speakerdeck.com/oembed.json',{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("popplet","rich",["popplet.com/app/.*"],"http://popplet.com/app/Popplet_Alpha.swf?page_id=$1&em=1",{templateRegex:/.*#\/([^\/]+).*/,embedtag:{width:460,height:460}}),new $.fn.oembed.OEmbedProvider("pearltrees","rich",["pearltrees.com/.*"],"http://cdn.pearltrees.com/s/embed/getApp?",{templateRegex:/.*N-f=1_(\d+).*N-p=(\d+).*/,embedtag:{width:460,height:460,flashvars:"lang=en_US&amp;embedId=pt-embed-$1-693&amp;treeId=$1&amp;pearlId=$2&amp;treeTitle=Diagrams%2FVisualization&amp;site=www.pearltrees.com%2FF"}}),new $.fn.oembed.OEmbedProvider("prezi","rich",["prezi.com/.*"],"http://prezi.com/bin/preziloader.swf?",{templateRegex:/.*com\/([^\/]+)\/.*/,embedtag:{width:550,height:400,flashvars:"prezi_id=$1&amp;lock_to_path=0&amp;color=ffffff&amp;autoplay=no&amp;autohide_ctrls=0"}}),new $.fn.oembed.OEmbedProvider("tourwrist","rich",["tourwrist.com/tours/.+"],null,{templateRegex:/.*tours.([\d]+).*/,template:function(wm,tourid){setTimeout(function(){if(loadEmbeds)loadEmbeds()},2000);return"<div id='"+tourid+"' class='tourwrist-tour-embed direct'></div> <script type='text/javascript' src='http://tourwrist.com/tour_embed.js'></script>"}}),new $.fn.oembed.OEmbedProvider("meetup","rich",["meetup\\.(com|ps)/.+"],"http://api.meetup.com/oembed"),new $.fn.oembed.OEmbedProvider("ebay","rich",["ebay\\.*"],"http://togo.ebay.com/togo/togo.swf?2008013100",{templateRegex:/.*\/([^\/]+)\/(\d{10,13}).*/,embedtag:{width:355,height:300,flashvars:"base=http://togo.ebay.com/togo/&lang=en-us&mode=normal&itemid=$2&query=$1"}}),new $.fn.oembed.OEmbedProvider("wikipedia","rich",["wikipedia.org/wiki/.+"],"http://$1.wikipedia.org/w/api.php?action=parse&page=$2&format=json&section=0&callback=?",{templateRegex:/.*\/\/([\w]+).*\/wiki\/([^\/]+).*/,templateData:function(data){if(!data.parse)return false;var text=data.parse['text']['*'].replace(/href="\/wiki/g,'href="http://en.wikipedia.org/wiki');return'<div id="content"><h3><a class="nav-link" href="http://en.wikipedia.org/wiki/'+data.parse['displaytitle']+'">'+data.parse['displaytitle']+'</a></h3>'+text+'</div>'}}),new $.fn.oembed.OEmbedProvider("imdb","rich",["imdb.com/title/.+"],"http://www.imdbapi.com/?i=$1&callback=?",{templateRegex:/.*\/title\/([^\/]+).*/,templateData:function(data){if(!data.Title)return false;return'<div id="content"><h3><a class="nav-link" href="http://imdb.com/title/'+data.ID+'/">'+data.Title+'</a> ('+data.Year+')</h3><p>Starring: '+data.Actors+'</p><div id="photo-wrap" style="margin: auto;width:600px;height:450px;"><img class="photo" id="photo-display" src="'+data.Poster+'" alt="'+data.Title+'"></div> <div id="view-photo-caption">'+data.Plot+'</div></div>'}}),new $.fn.oembed.OEmbedProvider("livejournal","rich",["livejournal.com/"],"http://ljpic.seacrow.com/json/$2$4?jsonp=?",{templateRegex:/(http:\/\/(((?!users).)+)\.livejournal\.com|.*users\.livejournal\.com\/([^\/]+)).*/,templateData:function(data){if(!data.username)return false;return'<div><img src="'+data.image+'" align="left" style="margin-right: 1em;" /><span class="oembedall-ljuser"><a href="http://'+data.username+'.livejournal.com/profile"><img src="http://www.livejournal.com/img/userinfo.gif" alt="[info]" width="17" height="17" /></a><a href="http://'+data.username+'.livejournal.com/">'+data.username+'</a></span><br />'+data.name+'</div>'}}),new $.fn.oembed.OEmbedProvider("circuitbee","rich",["circuitbee\\.com/circuit/view/.+"],"http://c.circuitbee.com/build/r/schematic-embed.html?id=$1",{templateRegex:/.*circuit\/view\/(\d+).*/,embedtag:{tag:'iframe',width:'500',height:'350'}}),new $.fn.oembed.OEmbedProvider("googlecalendar","rich",["www.google.com/calendar/embed?.+"],"$1",{templateRegex:/(.*)/,embedtag:{tag:'iframe',width:'800',height:'600'}}),new $.fn.oembed.OEmbedProvider("jsfiddle","rich",["jsfiddle.net/[^/]+/?"],"http://jsfiddle.net/$1/embedded/result,js,resources,html,css/?",{templateRegex:/.*net\/([^\/]+).*/,embedtag:{tag:'iframe',width:'100%',height:'300'}}),new $.fn.oembed.OEmbedProvider("jsbin","rich",["jsbin.com/.+"],"http://jsbin.com/$1/?",{templateRegex:/.*com\/([^\/]+).*/,embedtag:{tag:'iframe',width:'100%',height:'300'}}),new $.fn.oembed.OEmbedProvider("jotform","rich",["form.jotform.co/form/.+"],"$1?",{templateRegex:/(.*)/,embedtag:{tag:'iframe',width:'100%',height:'507'}}),new $.fn.oembed.OEmbedProvider("reelapp","rich",["reelapp\\.com/.+"],"http://www.reelapp.com/$1/embed",{templateRegex:/.*com\/(\S{6}).*/,embedtag:{tag:'iframe',width:'400',height:'338'}}),new $.fn.oembed.OEmbedProvider("linkedin","rich",["linkedin.com/pub/.+"],"https://www.linkedin.com/cws/member/public_profile?public_profile_url=$1&format=inline&isFramed=true",{templateRegex:/(.*)/,embedtag:{tag:'iframe',width:'368px',height:'auto'}}),new $.fn.oembed.OEmbedProvider("timetoast","rich",["timetoast.com/timelines/[0-9]+"],"http://www.timetoast.com/flash/TimelineViewer.swf?passedTimelines=$1",{templateRegex:/.*timelines\/([0-9]*)/,embedtag:{width:550,height:400,nocache:1}}),new $.fn.oembed.OEmbedProvider("pastebin","rich",["pastebin\\.com/[\\S]{8}"],"http://pastebin.com/embed_iframe.php?i=$1",{templateRegex:/.*\/(\S{8}).*/,embedtag:{tag:'iframe',width:'100%',height:'auto'}}),new $.fn.oembed.OEmbedProvider("pastie","rich",["pastie\\.org/pastes/.+"],null,{yql:{xpath:'//pre[@class="textmate-source"]'}}),new $.fn.oembed.OEmbedProvider("github","rich",["gist.github.com/.+"],"https://github.com/api/oembed"),new $.fn.oembed.OEmbedProvider("github","rich",["github.com/[-.\\w@]+/[-.\\w@]+"],"https://api.github.com/repos/$1/$2?callback=?",{templateRegex:/.*\/([^\/]+)\/([^\/]+).*/,templateData:function(data){if(!data.data.html_url)return false;return'<div class="oembedall-githubrepos"><ul class="oembedall-repo-stats"><li>'+data.data.language+'</li><li class="oembedall-watchers"><a title="Watchers" href="'+data.data.html_url+'/watchers">&#x25c9; '+data.data.watchers+'</a></li>'+'<li class="oembedall-forks"><a title="Forks" href="'+data.data.html_url+'/network">&#x0265; '+data.data.forks+'</a></li></ul><h3><a href="'+data.data.html_url+'">'+data.data.name+'</a></h3><div class="oembedall-body"><p class="oembedall-description">'+data.data.description+'</p>'+'<p class="oembedall-updated-at">Last updated: '+data.data.pushed_at+'</p></div></div>'}}),new $.fn.oembed.OEmbedProvider("facebook","rich",["facebook.com/(people/[^\\/]+/\\d+|[^\\/]+$)"],"https://graph.facebook.com/$2$3/?callback=?",{templateRegex:/.*facebook.com\/(people\/[^\/]+\/(\d+).*|([^\/]+$))/,templateData:function(data){if(!data.id)return false;var out='<div class="oembedall-facebook1"><div class="oembedall-facebook2"><a href="http://www.facebook.com/">facebook</a> ';if(data.from)out+='<a href="http://www.facebook.com/'+data.from.id+'">'+data.from.name+'</a>';else if(data.link)out+='<a href="'+data.link+'">'+data.name+'</a>';else if(data.username)out+='<a href="http://www.facebook.com/'+data.username+'">'+data.name+'</a>';else out+='<a href="http://www.facebook.com/'+data.id+'">'+data.name+'</a>';out+='</div><div class="oembedall-facebookBody"><div class="contents">';if(data.picture)out+='<a href="'+data.link+'"><img src="'+data.picture+'"></a>';else out+='<img src="https://graph.facebook.com/'+data.id+'/picture">';if(data.from)out+='<a href="'+data.link+'">'+data.name+'</a>';if(data.founded)out+='Founded: <strong>'+data.founded+'</strong><br>';if(data.category)out+='Category: <strong>'+data.category+'</strong><br>';if(data.website)out+='Website: <strong><a href="'+data.website+'">'+data.website+'</a></strong><br>';if(data.gender)out+='Gender: <strong>'+data.gender+'</strong><br>';if(data.description)out+=data.description+'<br>';out+='</div></div>';return out}}),new $.fn.oembed.OEmbedProvider("stackoverflow","rich",["stackoverflow.com/questions/[\\d]+"],"http://api.stackoverflow.com/1.1/questions/$1?body=true&jsonp=?",{templateRegex:/.*questions\/([\d]+).*/,templateData:function(data){if(!data.questions)return false;var q=data.questions[0];var body=$(q.body).text();var out='<div class="oembedall-stoqembed"><div class="oembedall-statscontainer"><div class="oembedall-statsarrow"></div><div class="oembedall-stats"><div class="oembedall-vote"><div class="oembedall-votes">'+'<span class="oembedall-vote-count-post"><strong>'+(q.up_vote_count-q.down_vote_count)+'</strong></span><div class="oembedall-viewcount">vote(s)</div></div>'+'</div><div class="oembedall-status"><strong>'+q.answer_count+'</strong>answer</div></div><div class="oembedall-views">'+q.view_count+' view(s)</div></div>'+'<div class="oembedall-summary"><h3><a class="oembedall-question-hyperlink" href="http://stackoverflow.com/questions/'+q.question_id+'/">'+q.title+'</a></h3>'+'<div class="oembedall-excerpt">'+body.substring(0,100)+'...</div><div class="oembedall-tags">';for(i in q.tags)out+='<a title="" class="oembedall-post-tag" href="http://stackoverflow.com/questions/tagged/'+q.tags[i]+'">'+q.tags[i]+'</a>';out+='</div><div class="oembedall-fr"><div class="oembedall-user-info"><div class="oembedall-user-gravatar32"><a href="http://stackoverflow.com/users/'+q.owner.user_id+'/'+q.owner.display_name+'">'+'<img width="32" height="32" alt="" src="http://www.gravatar.com/avatar/'+q.owner.email_hash+'?s=32&amp;d=identicon&amp;r=PG"></a></div><div class="oembedall-user-details">'+'<a href="http://stackoverflow.com/users/'+q.owner.user_id+'/'+q.owner.display_name+'">'+q.owner.display_name+'</a><br><span title="reputation score" class="oembedall-reputation-score">'+q.owner.reputation+'</span></div></div></div></div></div>';return out}}),new $.fn.oembed.OEmbedProvider("wordpress","rich",["wordpress\\.com/.+","blogs\\.cnn\\.com/.+","techcrunch\\.com/.+","wp\\.me/.+"],"http://public-api.wordpress.com/oembed/1.0/?for=jquery-oembed-all"),new $.fn.oembed.OEmbedProvider("screenr","rich",["screenr\.com"],"http://www.screenr.com/embed/$1",{templateRegex:/.*\/([^\/]+).*/,embedtag:{tag:'iframe',width:'650',height:396}}),new $.fn.oembed.OEmbedProvider("gigpans","rich",["gigapan\\.org/[-.\\w@]+/\\d+"],"http://gigapan.org/gigapans/$1/options/nosnapshots/iframe/flash.html",{templateRegex:/.*\/(\d+)\/?.*/,embedtag:{tag:'iframe',width:'100%',height:400}}),new $.fn.oembed.OEmbedProvider("scribd","rich",["scribd\\.com/.+"],"http://www.scribd.com/embeds/$1/content?start_page=1&view_mode=list",{templateRegex:/.*doc\/([^\/]+).*/,embedtag:{tag:'iframe',width:'100%',height:600}}),new $.fn.oembed.OEmbedProvider("kickstarter","rich",["kickstarter\\.com/projects/.+"],"$1/widget/card.html",{templateRegex:/([^\?]+).*/,embedtag:{tag:'iframe',width:'220',height:380}}),new $.fn.oembed.OEmbedProvider("amazon","rich",["amzn.com/B+","amazon.com.*/(B\\S+)($|\\/.*)"],"http://rcm.amazon.com/e/cm?t=_APIKEY_&o=1&p=8&l=as1&asins=$1&ref=qf_br_asin_til&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr",{apikey:true,templateRegex:/.*\/(B[0-9A-Z]+)($|\/.*)/,embedtag:{tag:'iframe',width:'120px',height:'240px'}}),new $.fn.oembed.OEmbedProvider("slideshare","rich",["slideshare\.net"],"http://www.slideshare.net/api/oembed/2",{format:'jsonp'}),new $.fn.oembed.OEmbedProvider("roomsharejp","rich",["roomshare\\.jp/(en/)?post/.*"],"http://roomshare.jp/oembed.json"),new $.fn.oembed.OEmbedProvider("lanyard","rich",["lanyrd.com/\\d+/.+"],null,{yql:{xpath:'(//div[@class="primary"])[1]',from:'htmlstring',datareturn:function(results){if(!results.result)return false;return'<div class="oembedall-lanyard">'+results.result+'</div>'}}}),new $.fn.oembed.OEmbedProvider("asciiartfarts","rich",["asciiartfarts.com/\\d+.html"],null,{yql:{xpath:'//pre/font',from:'htmlstring',datareturn:function(results){if(!results.result)return false;return'<pre style="background-color:000;">'+results.result+'</div>'}}}),new $.fn.oembed.OEmbedProvider("opengraph","rich",[".*"],null,{yql:{xpath:"//meta|//title|//link",from:'html',datareturn:function(results){if(!results['og:title']&&results['title']&&results['description'])results['og:title']=results['title'];if(!results['og:title']&&!results['title'])return false;var code=$('<p/>');if(results['og:video']){var embed=$('<embed src="'+results['og:video']+'"/>');embed.attr('type',results['og:video:type']||"application/x-shockwave-flash").css('max-height',settings.maxHeight||'auto').css('max-width',settings.maxWidth||'auto');if(results['og:video:width'])embed.attr('width',results['og:video:width']);if(results['og:video:height'])embed.attr('height',results['og:video:height']);code.append(embed)}else if(results['og:image']){var img=$('<img src="'+results['og:image']+'">');img.css('max-height',settings.maxHeight||'auto').css('max-width',settings.maxWidth||'auto');if(results['og:image:width'])img.attr('width',results['og:image:width']);if(results['og:image:height'])img.attr('height',results['og:image:height']);code.append(img)}if(results['og:title'])code.append('<b>'+results['og:title']+'</b><br/>');if(results['og:description'])code.append(results['og:description']+'<br/>');else if(results['description'])code.append(results['description']+'<br/>');return code}}})]})(jQuery);String.prototype.md5=function(){var a=function(a,b){var c=(a&65535)+(b&65535);var d=(a>>16)+(b>>16)+(c>>16);return d<<16|c&65535};var b=function(a,b){return a<<b|a>>>32-b};var c=function(c,d,e,f,g,h){return a(b(a(a(d,c),a(f,h)),g),e)};var d=function(a,b,d,e,f,g,h){return c(b&d|~b&e,a,b,f,g,h)};var e=function(a,b,d,e,f,g,h){return c(b&e|d&~e,a,b,f,g,h)};var f=function(a,b,d,e,f,g,h){return c(b^d^e,a,b,f,g,h)};var g=function(a,b,d,e,f,g,h){return c(d^(b|~e),a,b,f,g,h)};var h=function(b){var c,h,i,j,k,l=b.length;var m=1732584193;var n=-271733879;var o=-1732584194;var p=271733878;for(k=0;k<l;k+=16){c=m;h=n;i=o;j=p;m=d(m,n,o,p,b[k+0],7,-680876936);p=d(p,m,n,o,b[k+1],12,-389564586);o=d(o,p,m,n,b[k+2],17,606105819);n=d(n,o,p,m,b[k+3],22,-1044525330);m=d(m,n,o,p,b[k+4],7,-176418897);p=d(p,m,n,o,b[k+5],12,1200080426);o=d(o,p,m,n,b[k+6],17,-1473231341);n=d(n,o,p,m,b[k+7],22,-45705983);m=d(m,n,o,p,b[k+8],7,1770035416);p=d(p,m,n,o,b[k+9],12,-1958414417);o=d(o,p,m,n,b[k+10],17,-42063);n=d(n,o,p,m,b[k+11],22,-1990404162);m=d(m,n,o,p,b[k+12],7,1804603682);p=d(p,m,n,o,b[k+13],12,-40341101);o=d(o,p,m,n,b[k+14],17,-1502002290);n=d(n,o,p,m,b[k+15],22,1236535329);m=e(m,n,o,p,b[k+1],5,-165796510);p=e(p,m,n,o,b[k+6],9,-1069501632);o=e(o,p,m,n,b[k+11],14,643717713);n=e(n,o,p,m,b[k+0],20,-373897302);m=e(m,n,o,p,b[k+5],5,-701558691);p=e(p,m,n,o,b[k+10],9,38016083);o=e(o,p,m,n,b[k+15],14,-660478335);n=e(n,o,p,m,b[k+4],20,-405537848);m=e(m,n,o,p,b[k+9],5,568446438);p=e(p,m,n,o,b[k+14],9,-1019803690);o=e(o,p,m,n,b[k+3],14,-187363961);n=e(n,o,p,m,b[k+8],20,1163531501);m=e(m,n,o,p,b[k+13],5,-1444681467);p=e(p,m,n,o,b[k+2],9,-51403784);o=e(o,p,m,n,b[k+7],14,1735328473);n=e(n,o,p,m,b[k+12],20,-1926607734);m=f(m,n,o,p,b[k+5],4,-378558);p=f(p,m,n,o,b[k+8],11,-2022574463);o=f(o,p,m,n,b[k+11],16,1839030562);n=f(n,o,p,m,b[k+14],23,-35309556);m=f(m,n,o,p,b[k+1],4,-1530992060);p=f(p,m,n,o,b[k+4],11,1272893353);o=f(o,p,m,n,b[k+7],16,-155497632);n=f(n,o,p,m,b[k+10],23,-1094730640);m=f(m,n,o,p,b[k+13],4,681279174);p=f(p,m,n,o,b[k+0],11,-358537222);o=f(o,p,m,n,b[k+3],16,-722521979);n=f(n,o,p,m,b[k+6],23,76029189);m=f(m,n,o,p,b[k+9],4,-640364487);p=f(p,m,n,o,b[k+12],11,-421815835);o=f(o,p,m,n,b[k+15],16,530742520);n=f(n,o,p,m,b[k+2],23,-995338651);m=g(m,n,o,p,b[k+0],6,-198630844);p=g(p,m,n,o,b[k+7],10,1126891415);o=g(o,p,m,n,b[k+14],15,-1416354905);n=g(n,o,p,m,b[k+5],21,-57434055);m=g(m,n,o,p,b[k+12],6,1700485571);p=g(p,m,n,o,b[k+3],10,-1894986606);o=g(o,p,m,n,b[k+10],15,-1051523);n=g(n,o,p,m,b[k+1],21,-2054922799);m=g(m,n,o,p,b[k+8],6,1873313359);p=g(p,m,n,o,b[k+15],10,-30611744);o=g(o,p,m,n,b[k+6],15,-1560198380);n=g(n,o,p,m,b[k+13],21,1309151649);m=g(m,n,o,p,b[k+4],6,-145523070);p=g(p,m,n,o,b[k+11],10,-1120210379);o=g(o,p,m,n,b[k+2],15,718787259);n=g(n,o,p,m,b[k+9],21,-343485551);m=a(m,c);n=a(n,h);o=a(o,i);p=a(p,j)}return[m,n,o,p]};var i=function(a){var b="0123456789abcdef",c="",d,e=a.length*4;for(d=0;d<e;d++){c+=b.charAt(a[d>>2]>>d%4*8+4&15)+b.charAt(a[d>>2]>>d%4*8&15)}return c};var j=function(a){var b=(a.length+8>>6)+1;var c=[],d,e=b*16,f,g=a.length;for(d=0;d<e;d++){c.push(0)}for(f=0;f<g;f++){c[f>>2]|=(a.charCodeAt(f)&255)<<f%4*8}c[f>>2]|=128<<f%4*8;c[b*16-2]=g*8;return c};return i(h(j(this)))};
@@ -1,102 +0,0 @@
1
- /*
2
- * oEmbed Plugin plugin
3
- * Copyright (c) Ingo Herbote
4
- * Licensed under the MIT license
5
- * jQuery Embed Plugin: http://code.google.com/p/jquery-oembed/ (MIT License)
6
- * Plugin for: http://ckeditor.com/license (GPL/LGPL/MPL: http://ckeditor.com/license)
7
- */
8
-
9
- (function() {
10
- CKEDITOR.plugins.add('oembed', {
11
- requires: ['dialog'],
12
- lang: ['de', 'en', 'nl', 'fr', 'ru'],
13
- init: function(editor) {
14
- // Load jquery?
15
- if (typeof(jQuery) == 'undefined') {
16
- CKEDITOR.scriptLoader.load('http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js', function() {
17
- if (typeof(jQuery.fn.oembed) == 'undefined') {
18
- CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(CKEDITOR.plugins.getPath('oembed') + 'libs/jquery.oembed.min.js'));
19
- }
20
- });
21
-
22
- } else if (typeof(jQuery.fn.oembed) == 'undefined') {
23
- CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(CKEDITOR.plugins.getPath('oembed') + 'libs/jquery.oembed.min.js'));
24
- }
25
-
26
- editor.addCommand('oembed', new CKEDITOR.dialogCommand('oembed'));
27
- editor.ui.addButton('oembed', {
28
- label: editor.lang.oembed.button,
29
- command: 'oembed',
30
- icon: this.path + 'images/icon.png'
31
- });
32
- CKEDITOR.dialog.add('oembed', function(editor) {
33
- return {
34
- title: editor.lang.oembed.title,
35
- minWidth: CKEDITOR.env.ie && CKEDITOR.env.quirks ? 568 : 550,
36
- minHeight: 155,
37
- onOk: function() {
38
- var inputCode = this.getValueOf('general', 'embedCode');//.replace('https:', 'http:');
39
- if (inputCode.length < 1 || inputCode.indexOf('http') < 0) {
40
- alert(editor.lang.oembed.invalidUrl);
41
- return false;
42
- }
43
-
44
- var width = this.getContentElement('general', 'width').getInputElement().getValue();
45
- var height = this.getContentElement('general', 'height').getInputElement().getValue();
46
- var editorInstance = this.getParentEditor();
47
- jQuery('body').oembed(inputCode, {
48
- onEmbed: function(e) {
49
- if (typeof e.code === 'string') {
50
- editorInstance.insertHtml(editor.config.oembed_WrapperClass != null ? '<div class="' + editor.config.oembed_WrapperClass + '" />' : '<div />');
51
- editorInstance.insertHtml(e.code);
52
-
53
- CKEDITOR.dialog.getCurrent().hide();
54
- } else {
55
- alert(editor.lang.oembed.noEmbedCode);
56
- }
57
- },
58
- maxHeight: height,
59
- maxWidth: width,
60
- embedMethod: 'editor'
61
- });
62
- return false;
63
- },
64
- contents: [{
65
- label: editor.lang.common.generalTab,
66
- id: 'general',
67
- elements: [{
68
- type: 'html',
69
- id: 'oembedHeader',
70
- html: '<div style="white-space:normal;width:500px;padding-bottom:10px">' + editor.lang.oembed.pasteUrl + '</div>'
71
- }, {
72
- type: 'text',
73
- id: 'embedCode',
74
- focus: function() {
75
- this.getElement().focus();
76
- },
77
- label: editor.lang.oembed.url,
78
- title: editor.lang.oembed.pasteUrl
79
-
80
- }, {
81
- type: 'hbox',
82
- widths: ['50%', '50%'],
83
- children: [{
84
- type: 'text',
85
- id: 'width',
86
- 'default': editor.config.oembed_maxWidth != null ? editor.config.oembed_maxWidth : '560',
87
- label: editor.lang.oembed.width,
88
- title: editor.lang.oembed.widthTitle
89
- }, {
90
- type: 'text',
91
- id: 'height',
92
- 'default': editor.config.oembed_maxHeight != null ? editor.config.oembed_maxHeight : '315',
93
- label: editor.lang.oembed.height,
94
- title: editor.lang.oembed.heightTitle
95
- }]
96
- }]
97
- }]
98
- };
99
- });
100
- }
101
- });
102
- })();
@@ -1,31 +0,0 @@
1
- /*
2
- Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
3
- For licensing, see LICENSE.html or http://ckeditor.com/license
4
- */
5
- (function(){function z(a){for(var a=a.toUpperCase(),b=A.length,c=0,d=0;d<b;++d)for(var e=A[d],f=e[1].length;a.substr(0,f)==e[1];a=a.substr(f))c+=e[0];return c}function B(a){for(var a=a.toUpperCase(),b=C.length,c=1,d=1;0<a.length;d*=b)c+=C.indexOf(a.charAt(a.length-1))*d,a=a.substr(0,a.length-1);return c}var D=CKEDITOR.htmlParser.fragment.prototype,v=CKEDITOR.htmlParser.element.prototype;D.onlyChild=v.onlyChild=function(){var a=this.children;return 1==a.length&&a[0]||null};v.removeAnyChildWithName=
6
- function(a){for(var b=this.children,c=[],d,e=0;e<b.length;e++)d=b[e],d.name&&(d.name==a&&(c.push(d),b.splice(e--,1)),c=c.concat(d.removeAnyChildWithName(a)));return c};v.getAncestor=function(a){for(var b=this.parent;b&&(!b.name||!b.name.match(a));)b=b.parent;return b};D.firstChild=v.firstChild=function(a){for(var b,c=0;c<this.children.length;c++)if(b=this.children[c],a(b)||b.name&&(b=b.firstChild(a)))return b;return null};v.addStyle=function(a,b,c){var d="";if("string"==typeof b)d+=a+":"+b+";";else{if("object"==
7
- typeof a)for(var e in a)a.hasOwnProperty(e)&&(d+=e+":"+a[e]+";");else d+=a;c=b}this.attributes||(this.attributes={});a=this.attributes.style||"";a=(c?[d,a]:[a,d]).join(";");this.attributes.style=a.replace(/^;|;(?=;)/,"")};v.getStyle=function(a){var b=this.attributes.style;if(b)return b=CKEDITOR.tools.parseCssText(b,1),b[a]};CKEDITOR.dtd.parentOf=function(a){var b={},c;for(c in this)-1==c.indexOf("$")&&this[c][a]&&(b[c]=1);return b};var H=/^([.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz){1}?/i,
8
- E=/^(?:\b0[^\s]*\s*){1,4}$/,y={ol:{decimal:/\d+/,"lower-roman":/^m{0,4}(cm|cd|d?c{0,3})(xc|xl|l?x{0,3})(ix|iv|v?i{0,3})$/,"upper-roman":/^M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$/,"lower-alpha":/^[a-z]+$/,"upper-alpha":/^[A-Z]+$/},ul:{disc:/[l\u00B7\u2002]/,circle:/[\u006F\u00D8]/,square:/[\u006E\u25C6]/}},A=[[1E3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]],C="ABCDEFGHIJKLMNOPQRSTUVWXYZ",w=0,o=null,x,F=CKEDITOR.plugins.pastefromword=
9
- {utils:{createListBulletMarker:function(a,b){var c=new CKEDITOR.htmlParser.element("cke:listbullet");c.attributes={"cke:listsymbol":a[0]};c.add(new CKEDITOR.htmlParser.text(b));return c},isListBulletIndicator:function(a){if(/mso-list\s*:\s*Ignore/i.test(a.attributes&&a.attributes.style))return!0},isContainingOnlySpaces:function(a){var b;return(b=a.onlyChild())&&/^(:?\s|&nbsp;)+$/.test(b.value)},resolveList:function(a){var b=a.attributes,c;if((c=a.removeAnyChildWithName("cke:listbullet"))&&c.length&&
10
- (c=c[0]))return a.name="cke:li",b.style&&(b.style=F.filters.stylesFilter([["text-indent"],["line-height"],[/^margin(:?-left)?$/,null,function(a){a=a.split(" ");a=CKEDITOR.tools.convertToPx(a[3]||a[1]||a[0]);!w&&(null!==o&&a>o)&&(w=a-o);o=a;b["cke:indent"]=w&&Math.ceil(a/w)+1||1}],[/^mso-list$/,null,function(a){var a=a.split(" "),c=Number(a[0].match(/\d+/)),a=Number(a[1].match(/\d+/));1==a&&(c!==x&&(b["cke:reset"]=1),x=c);b["cke:indent"]=a}]])(b.style,a)||""),b["cke:indent"]||(o=0,b["cke:indent"]=
11
- 1),CKEDITOR.tools.extend(b,c.attributes),!0;x=o=w=null;return!1},getStyleComponents:function(){var a=CKEDITOR.dom.element.createFromHtml('<div style="position:absolute;left:-9999px;top:-9999px;"></div>',CKEDITOR.document);CKEDITOR.document.getBody().append(a);return function(b,c,d){a.setStyle(b,c);for(var b={},c=d.length,e=0;e<c;e++)b[d[e]]=a.getStyle(d[e]);return b}}(),listDtdParents:CKEDITOR.dtd.parentOf("ol")},filters:{flattenList:function(a,b){var b="number"==typeof b?b:1,c=a.attributes,d;switch(c.type){case "a":d=
12
- "lower-alpha";break;case "1":d="decimal"}for(var e=a.children,f,h=0;h<e.length;h++)if(f=e[h],f.name in CKEDITOR.dtd.$listItem){var g=f.attributes,i=f.children,m=i[i.length-1];m.name in CKEDITOR.dtd.$list&&(a.add(m,h+1),--i.length||e.splice(h--,1));f.name="cke:li";c.start&&!h&&(g.value=c.start);F.filters.stylesFilter([["tab-stops",null,function(a){(a=a.split(" ")[1].match(H))&&(o=CKEDITOR.tools.convertToPx(a[0]))}],1==b?["mso-list",null,function(a){a=a.split(" ");a=Number(a[0].match(/\d+/));a!==x&&
13
- (g["cke:reset"]=1);x=a}]:null])(g.style);g["cke:indent"]=b;g["cke:listtype"]=a.name;g["cke:list-style-type"]=d}else if(f.name in CKEDITOR.dtd.$list){arguments.callee.apply(this,[f,b+1]);e=e.slice(0,h).concat(f.children).concat(e.slice(h+1));a.children=[];f=0;for(i=e.length;f<i;f++)a.add(e[f])}delete a.name;c["cke:list"]=1},assembleList:function(a){for(var b=a.children,c,d,e,f,h,g,a=[],i,m,j,l,k,r,p=0;p<b.length;p++)if(c=b[p],"cke:li"==c.name)if(c.name="li",d=c.attributes,j=(j=d["cke:listsymbol"])&&
14
- j.match(/^(?:[(]?)([^\s]+?)([.)]?)$/),l=k=r=null,d["cke:ignored"])b.splice(p--,1);else{d["cke:reset"]&&(g=f=h=null);e=Number(d["cke:indent"]);e!=f&&(m=i=null);if(j){if(m&&y[m][i].test(j[1]))l=m,k=i;else for(var s in y)for(var t in y[s])if(y[s][t].test(j[1]))if("ol"==s&&/alpha|roman/.test(t)){if(i=/roman/.test(t)?z(j[1]):B(j[1]),!r||i<r)r=i,l=s,k=t}else{l=s;k=t;break}!l&&(l=j[2]?"ol":"ul")}else l=d["cke:listtype"]||"ol",k=d["cke:list-style-type"];m=l;i=k||("ol"==l?"decimal":"disc");k&&k!=("ol"==l?
15
- "decimal":"disc")&&c.addStyle("list-style-type",k);if("ol"==l&&j){switch(k){case "decimal":r=Number(j[1]);break;case "lower-roman":case "upper-roman":r=z(j[1]);break;case "lower-alpha":case "upper-alpha":r=B(j[1])}c.attributes.value=r}if(g){if(e>f)a.push(g=new CKEDITOR.htmlParser.element(l)),g.add(c),h.add(g);else{if(e<f){f-=e;for(var n;f--&&(n=g.parent);)g=n.parent}g.add(c)}b.splice(p--,1)}else a.push(g=new CKEDITOR.htmlParser.element(l)),g.add(c),b[p]=g;h=c;f=e}else g&&(g=f=h=null);for(p=0;p<a.length;p++)if(g=
16
- a[p],s=g.children,i=i=void 0,t=g.children.length,n=i=void 0,b=/list-style-type:(.*?)(?:;|$)/,f=CKEDITOR.plugins.pastefromword.filters.stylesFilter,i=g.attributes,!b.exec(i.style)){for(h=0;h<t;h++)if(i=s[h],i.attributes.value&&Number(i.attributes.value)==h+1&&delete i.attributes.value,i=b.exec(i.attributes.style))if(i[1]==n||!n)n=i[1];else{n=null;break}if(n){for(h=0;h<t;h++)i=s[h].attributes,i.style&&(i.style=f([["list-style-type"]])(i.style)||"");g.addStyle("list-style-type",n)}}x=o=w=null},falsyFilter:function(){return!1},
17
- stylesFilter:function(a,b){return function(c,d){var e=[];(c||"").replace(/&quot;/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(c,g,f){g=g.toLowerCase();"font-family"==g&&(f=f.replace(/["']/g,""));for(var m,j,l,k=0;k<a.length;k++)if(a[k]&&(c=a[k][0],m=a[k][1],j=a[k][2],l=a[k][3],g.match(c)&&(!m||f.match(m)))){g=l||g;b&&(j=j||f);"function"==typeof j&&(j=j(f,d,g));j&&j.push&&(g=j[0],j=j[1]);"string"==typeof j&&e.push([g,j]);return}!b&&e.push([g,f])});for(var f=0;f<e.length;f++)e[f]=
18
- e[f].join(":");return e.length?e.join(";")+";":!1}},elementMigrateFilter:function(a,b){return a?function(c){var d=b?(new CKEDITOR.style(a,b))._.definition:a;c.name=d.element;CKEDITOR.tools.extend(c.attributes,CKEDITOR.tools.clone(d.attributes));c.addStyle(CKEDITOR.style.getStyleText(d))}:function(){}},styleMigrateFilter:function(a,b){var c=this.elementMigrateFilter;return a?function(d,e){var f=new CKEDITOR.htmlParser.element(null),h={};h[b]=d;c(a,h)(f);f.children=e.children;e.children=[f]}:function(){}},
19
- bogusAttrFilter:function(a,b){if(-1==b.name.indexOf("cke:"))return!1},applyStyleFilter:null},getRules:function(a){var b=CKEDITOR.dtd,c=CKEDITOR.tools.extend({},b.$block,b.$listItem,b.$tableContent),d=a.config,e=this.filters,a=e.falsyFilter,f=e.stylesFilter,h=e.elementMigrateFilter,g=CKEDITOR.tools.bind(this.filters.styleMigrateFilter,this.filters),i=this.utils.createListBulletMarker,m=e.flattenList,j=e.assembleList,l=this.utils.isListBulletIndicator,k=this.utils.isContainingOnlySpaces,r=this.utils.resolveList,
20
- p=function(a){a=CKEDITOR.tools.convertToPx(a);return isNaN(a)?a:a+"px"},s=this.utils.getStyleComponents,t=this.utils.listDtdParents,n=!1!==d.pasteFromWordRemoveFontStyles,o=!1!==d.pasteFromWordRemoveStyles;return{elementNames:[[/meta|link|script/,""]],root:function(a){a.filterChildren();j(a)},elements:{"^":function(a){var b;CKEDITOR.env.gecko&&(b=e.applyStyleFilter)&&b(a)},$:function(a){var u=a.name||"",e=a.attributes;u in c&&e.style&&(e.style=f([[/^(:?width|height)$/,null,p]])(e.style)||"");if(u.match(/h\d/)){a.filterChildren();
21
- if(r(a))return;h(d["format_"+u])(a)}else if(u in b.$inline)a.filterChildren(),k(a)&&delete a.name;else if(-1!=u.indexOf(":")&&-1==u.indexOf("cke")){a.filterChildren();if("v:imagedata"==u){if(u=a.attributes["o:href"])a.attributes.src=u;a.name="img";return}delete a.name}u in t&&(a.filterChildren(),j(a))},style:function(a){if(CKEDITOR.env.gecko){var a=(a=a.onlyChild().value.match(/\/\* Style Definitions \*\/([\s\S]*?)\/\*/))&&a[1],b={};a&&(a.replace(/[\n\r]/g,"").replace(/(.+?)\{(.+?)\}/g,function(a,
22
- c,d){for(var c=c.split(","),a=c.length,q=0;q<a;q++)CKEDITOR.tools.trim(c[q]).replace(/^(\w+)(\.[\w-]+)?$/g,function(a,c,q){c=c||"*";q=q.substring(1,q.length);q.match(/MsoNormal/)||(b[c]||(b[c]={}),q?b[c][q]=d:b[c]=d)})}),e.applyStyleFilter=function(a){var c=b["*"]?"*":a.name,q=a.attributes&&a.attributes["class"];c in b&&(c=b[c],"object"==typeof c&&(c=c[q]),c&&a.addStyle(c,!0))})}return!1},p:function(a){if(/MsoListParagraph/i.exec(a.attributes["class"])||a.getStyle("mso-list")){var b=a.firstChild(function(a){return a.type==
23
- CKEDITOR.NODE_TEXT&&!k(a.parent)});(b=b&&b.parent)&&b.addStyle("mso-list","Ignore")}a.filterChildren();r(a)||(d.enterMode==CKEDITOR.ENTER_BR?(delete a.name,a.add(new CKEDITOR.htmlParser.element("br"))):h(d["format_"+(d.enterMode==CKEDITOR.ENTER_P?"p":"div")])(a))},div:function(a){var b=a.onlyChild();if(b&&"table"==b.name){var c=a.attributes;b.attributes=CKEDITOR.tools.extend(b.attributes,c);c.style&&b.addStyle(c.style);b=new CKEDITOR.htmlParser.element("div");b.addStyle("clear","both");a.add(b);delete a.name}},
24
- td:function(a){a.getAncestor("thead")&&(a.name="th")},ol:m,ul:m,dl:m,font:function(a){if(l(a.parent))delete a.name;else{a.filterChildren();var b=a.attributes,c=b.style,d=a.parent;"font"==d.name?(CKEDITOR.tools.extend(d.attributes,a.attributes),c&&d.addStyle(c),delete a.name):(c=c||"",b.color&&("#000000"!=b.color&&(c+="color:"+b.color+";"),delete b.color),b.face&&(c+="font-family:"+b.face+";",delete b.face),b.size&&(c+="font-size:"+(3<b.size?"large":3>b.size?"small":"medium")+";",delete b.size),a.name=
25
- "span",a.addStyle(c))}},span:function(a){if(l(a.parent))return!1;a.filterChildren();if(k(a))return delete a.name,null;if(l(a)){var b=a.firstChild(function(a){return a.value||"img"==a.name}),c=(b=b&&(b.value||"l."))&&b.match(/^(?:[(]?)([^\s]+?)([.)]?)$/);if(c)return b=i(c,b),(a=a.getAncestor("span"))&&/ mso-hide:\s*all|display:\s*none /.test(a.attributes.style)&&(b.attributes["cke:ignored"]=1),b}if(c=(b=a.attributes)&&b.style)b.style=f([["line-height"],[/^font-family$/,null,!n?g(d.font_style,"family"):
26
- null],[/^font-size$/,null,!n?g(d.fontSize_style,"size"):null],[/^color$/,null,!n?g(d.colorButton_foreStyle,"color"):null],[/^background-color$/,null,!n?g(d.colorButton_backStyle,"color"):null]])(c,a)||"";b.style||delete b.style;CKEDITOR.tools.isEmpty(b)&&delete a.name;return null},b:h(d.coreStyles_bold),i:h(d.coreStyles_italic),u:h(d.coreStyles_underline),s:h(d.coreStyles_strike),sup:h(d.coreStyles_superscript),sub:h(d.coreStyles_subscript),a:function(a){var b=a.attributes;b&&!b.href&&b.name?delete a.name:
27
- CKEDITOR.env.webkit&&(b.href&&b.href.match(/file:\/\/\/[\S]+#/i))&&(b.href=b.href.replace(/file:\/\/\/[^#]+/i,""))},"cke:listbullet":function(a){a.getAncestor(/h\d/)&&!d.pasteFromWordNumberedHeadingToList&&delete a.name}},attributeNames:[[/^onmouse(:?out|over)/,""],[/^onload$/,""],[/(?:v|o):\w+/,""],[/^lang/,""]],attributes:{style:f(o?[[/^list-style-type$/,null],[/^margin$|^margin-(?!bottom|top)/,null,function(a,b,c){if(b.name in{p:1,div:1}){b="ltr"==d.contentsLangDirection?"margin-left":"margin-right";
28
- if("margin"==c)a=s(c,a,[b])[b];else if(c!=b)return null;if(a&&!E.test(a))return[b,a]}return null}],[/^clear$/],[/^border.*|margin.*|vertical-align|float$/,null,function(a,b){if("img"==b.name)return a}],[/^width|height$/,null,function(a,b){if(b.name in{table:1,td:1,th:1,img:1})return a}]]:[[/^mso-/],[/-color$/,null,function(a){if("transparent"==a)return!1;if(CKEDITOR.env.gecko)return a.replace(/-moz-use-text-color/g,"transparent")}],[/^margin$/,E],["text-indent","0cm"],["page-break-before"],["tab-stops"],
29
- ["display","none"],n?[/font-?/]:null],o),width:function(a,c){if(c.name in b.$tableContent)return!1},border:function(a,c){if(c.name in b.$tableContent)return!1},"class":a,bgcolor:a,valign:o?a:function(a,b){b.addStyle("vertical-align",a);return!1}},comment:!CKEDITOR.env.ie?function(a,b){var c=a.match(/<img.*?>/),d=a.match(/^\[if !supportLists\]([\s\S]*?)\[endif\]$/);return d?(d=(c=d[1]||c&&"l.")&&c.match(/>(?:[(]?)([^\s]+?)([.)]?)</),i(d,c)):CKEDITOR.env.gecko&&c?(c=CKEDITOR.htmlParser.fragment.fromHtml(c[0]).children[0],
30
- (d=(d=(d=b.previous)&&d.value.match(/<v:imagedata[^>]*o:href=['"](.*?)['"]/))&&d[1])&&(c.attributes.src=d),c):!1}:a}}},G=function(){this.dataFilter=new CKEDITOR.htmlParser.filter};G.prototype={toHtml:function(a){var a=CKEDITOR.htmlParser.fragment.fromHtml(a),b=new CKEDITOR.htmlParser.basicWriter;a.writeHtml(b,this.dataFilter);return b.getHtml(!0)}};CKEDITOR.cleanWord=function(a,b){CKEDITOR.env.gecko&&(a=a.replace(/(<\!--\[if[^<]*?\])--\>([\S\s]*?)<\!--(\[endif\]--\>)/gi,"$1$2$3"));CKEDITOR.env.webkit&&
31
- (a=a.replace(/(class="MsoListParagraph[^>]+><\!--\[if !supportLists\]--\>)([^<]+<span[^<]+<\/span>)(<\!--\[endif\]--\>)/gi,"$1<span>$2</span>$3"));var c=new G,d=c.dataFilter;d.addRules(CKEDITOR.plugins.pastefromword.getRules(b));b.fire("beforeCleanWord",{filter:d});try{a=c.toHtml(a)}catch(e){alert(b.lang.pastefromword.error)}a=a.replace(/cke:.*?".*?"/g,"");a=a.replace(/style=""/g,"");return a=a.replace(/<span>/g,"")}})();
@@ -1,13 +0,0 @@
1
- /*
2
- Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
3
- For licensing, see LICENSE.html or http://ckeditor.com/license
4
- */
5
- CKEDITOR.plugins.setLang("specialchar","ru",{euro:"Euro sign",lsquo:"Left single quotation mark",rsquo:"Right single quotation mark",ldquo:"Left double quotation mark",rdquo:"Right double quotation mark",ndash:"En dash",mdash:"Em dash",iexcl:"Inverted exclamation mark",cent:"Cent sign",pound:"Pound sign",curren:"Currency sign",yen:"Yen sign",brvbar:"Broken bar",sect:"Section sign",uml:"Diaeresis",copy:"Copyright sign",ordf:"Feminine ordinal indicator",laquo:"Left-pointing double angle quotation mark",
6
- not:"Not sign",reg:"Registered sign",macr:"Macron",deg:"Degree sign",sup2:"Superscript two",sup3:"Superscript three",acute:"Acute accent",micro:"Micro sign",para:"Pilcrow sign",middot:"Middle dot",cedil:"Cedilla",sup1:"Superscript one",ordm:"Masculine ordinal indicator",raquo:"Right-pointing double angle quotation mark",frac14:"Vulgar fraction one quarter",frac12:"Vulgar fraction one half",frac34:"Vulgar fraction three quarters",iquest:"Inverted question mark",Agrave:"Latin capital letter A with grave accent",
7
- Aacute:"Latin capital letter A with acute accent",Acirc:"Latin capital letter A with circumflex",Atilde:"Latin capital letter A with tilde",Auml:"Latin capital letter A with diaeresis",Aring:"Latin capital letter A with ring above",AElig:"Latin Capital letter Æ",Ccedil:"Latin capital letter C with cedilla",Egrave:"Latin capital letter E with grave accent",Eacute:"Latin capital letter E with acute accent",Ecirc:"Latin capital letter E with circumflex",Euml:"Latin capital letter E with diaeresis",Igrave:"Latin capital letter I with grave accent",
8
- Iacute:"Latin capital letter I with acute accent",Icirc:"Latin capital letter I with circumflex",Iuml:"Latin capital letter I with diaeresis",ETH:"Latin capital letter Eth",Ntilde:"Latin capital letter N with tilde",Ograve:"Latin capital letter O with grave accent",Oacute:"Latin capital letter O with acute accent",Ocirc:"Latin capital letter O with circumflex",Otilde:"Latin capital letter O with tilde",Ouml:"Latin capital letter O with diaeresis",times:"Multiplication sign",Oslash:"Latin capital letter O with stroke",
9
- Ugrave:"Latin capital letter U with grave accent",Uacute:"Latin capital letter U with acute accent",Ucirc:"Latin capital letter U with circumflex",Uuml:"Latin capital letter U with diaeresis",Yacute:"Latin capital letter Y with acute accent",THORN:"Latin capital letter Thorn",szlig:"Latin small letter sharp s",agrave:"Latin small letter a with grave accent",aacute:"Latin small letter a with acute accent",acirc:"Latin small letter a with circumflex",atilde:"Latin small letter a with tilde",auml:"Latin small letter a with diaeresis",
10
- aring:"Latin small letter a with ring above",aelig:"Latin small letter æ",ccedil:"Latin small letter c with cedilla",egrave:"Latin small letter e with grave accent",eacute:"Latin small letter e with acute accent",ecirc:"Latin small letter e with circumflex",euml:"Latin small letter e with diaeresis",igrave:"Latin small letter i with grave accent",iacute:"Latin small letter i with acute accent",icirc:"Latin small letter i with circumflex",iuml:"Latin small letter i with diaeresis",eth:"Latin small letter eth",
11
- ntilde:"Latin small letter n with tilde",ograve:"Latin small letter o with grave accent",oacute:"Latin small letter o with acute accent",ocirc:"Latin small letter o with circumflex",otilde:"Latin small letter o with tilde",ouml:"Latin small letter o with diaeresis",divide:"Division sign",oslash:"Latin small letter o with stroke",ugrave:"Latin small letter u with grave accent",uacute:"Latin small letter u with acute accent",ucirc:"Latin small letter u with circumflex",uuml:"Latin small letter u with diaeresis",
12
- yacute:"Latin small letter y with acute accent",thorn:"Latin small letter thorn",yuml:"Latin small letter y with diaeresis",OElig:"Latin capital ligature OE",oelig:"Latin small ligature oe",372:"Latin capital letter W with circumflex",374:"Latin capital letter Y with circumflex",373:"Latin small letter w with circumflex",375:"Latin small letter y with circumflex",sbquo:"Single low-9 quotation mark",8219:"Single high-reversed-9 quotation mark",bdquo:"Double low-9 quotation mark",hellip:"Horizontal ellipsis",
13
- trade:"Trade mark sign",9658:"Black right-pointing pointer",bull:"Bullet",rarr:"Rightwards arrow",rArr:"Rightwards double arrow",hArr:"Left right double arrow",diams:"Black diamond suit",asymp:"Almost equal to"});
@@ -1,138 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
3
- * For licensing, see LICENSE.html or http://ckeditor.com/license
4
- */
5
-
6
- /**
7
- * @fileOverview stylesheetParser plugin.
8
- */
9
-
10
- (function() {
11
- // We want to extract only the elements with classes defined in the stylesheets:
12
- function parseClasses( aRules, skipSelectors, validSelectors ) {
13
- // aRules are just the different rules in the style sheets
14
- // We want to merge them and them split them by commas, so we end up with only
15
- // the selectors
16
- var s = aRules.join( ' ' );
17
- // Remove selectors splitting the elements, leave only the class selector (.)
18
- s = s.replace( /(,|>|\+|~)/g, ' ' );
19
- // Remove attribute selectors: table[border="0"]
20
- s = s.replace( /\[[^\]]*/g, '' );
21
- // Remove Ids: div#main
22
- s = s.replace( /#[^\s]*/g, '' );
23
- // Remove pseudo-selectors and pseudo-elements: :hover :nth-child(2n+1) ::before
24
- s = s.replace( /\:{1,2}[^\s]*/g, '' );
25
-
26
- s = s.replace( /\s+/g, ' ' );
27
-
28
- var aSelectors = s.split( ' ' ),
29
- aClasses = [];
30
-
31
- for ( var i = 0; i < aSelectors.length; i++ ) {
32
- var selector = aSelectors[ i ];
33
-
34
- if ( validSelectors.test( selector ) && !skipSelectors.test( selector ) ) {
35
- // If we still don't know about this one, add it
36
- if ( CKEDITOR.tools.indexOf( aClasses, selector ) == -1 )
37
- aClasses.push( selector );
38
- }
39
- }
40
-
41
- return aClasses;
42
- }
43
-
44
- function LoadStylesCSS( theDoc, skipSelectors, validSelectors ) {
45
- var styles = [],
46
- // It will hold all the rules of the applied stylesheets (except those internal to CKEditor)
47
- aRules = [],
48
- i;
49
-
50
- for ( i = 0; i < theDoc.styleSheets.length; i++ ) {
51
- var sheet = theDoc.styleSheets[ i ],
52
- node = sheet.ownerNode || sheet.owningElement;
53
-
54
- // Skip the internal stylesheets
55
- if ( node.getAttribute( 'data-cke-temp' ) )
56
- continue;
57
-
58
- // Exclude stylesheets injected by extensions
59
- if ( sheet.href && sheet.href.substr( 0, 9 ) == 'chrome://' )
60
- continue;
61
-
62
- // Bulletproof with x-domain content stylesheet.
63
- try {
64
- var sheetRules = sheet.cssRules || sheet.rules;
65
- for ( var j = 0; j < sheetRules.length; j++ )
66
- aRules.push( sheetRules[ j ].selectorText );
67
- } catch ( e ) {}
68
- }
69
-
70
- var aClasses = parseClasses( aRules, skipSelectors, validSelectors );
71
-
72
- // Add each style to our "Styles" collection.
73
- for ( i = 0; i < aClasses.length; i++ ) {
74
- var oElement = aClasses[ i ].split( '.' ),
75
- element = oElement[ 0 ].toLowerCase(),
76
- sClassName = oElement[ 1 ];
77
-
78
- styles.push({
79
- name: element + '.' + sClassName,
80
- element: element,
81
- attributes: { 'class': sClassName }
82
- });
83
- }
84
-
85
- return styles;
86
- }
87
-
88
- // Register a plugin named "stylesheetparser".
89
- CKEDITOR.plugins.add( 'stylesheetparser', {
90
- onLoad: function() {
91
- var obj = CKEDITOR.editor.prototype;
92
- obj.getStylesSet = CKEDITOR.tools.override( obj.getStylesSet, function( org ) {
93
- return function( callback ) {
94
- var self = this;
95
- org.call( this, function( definitions ) {
96
- // Rules that must be skipped
97
- var skipSelectors = self.config.stylesheetParser_skipSelectors || ( /(^body\.|^\.)/i ),
98
- // Rules that are valid
99
- validSelectors = self.config.stylesheetParser_validSelectors || ( /\w+\.\w+/ );
100
-
101
- callback( ( self._.stylesDefinitions = definitions.concat( LoadStylesCSS( self.document.$, skipSelectors, validSelectors ) ) ) );
102
- });
103
- };
104
- });
105
-
106
- }
107
- });
108
- })();
109
-
110
-
111
- /**
112
- * A regular expression that defines whether a CSS rule will be
113
- * skipped by the Stylesheet Parser plugin. A CSS rule matching
114
- * the regular expression will be ignored and will not be available
115
- * in the Styles drop-down list.
116
- *
117
- * // Ignore rules for body and caption elements, classes starting with "high", and any class defined for no specific element.
118
- * config.stylesheetParser_skipSelectors = /(^body\.|^caption\.|\.high|^\.)/i;
119
- *
120
- * @since 3.6
121
- * @cfg {RegExp} [stylesheetParser_skipSelectors=/(^body\.|^\.)/i]
122
- * @member CKEDITOR.config
123
- * @see CKEDITOR.config#stylesheetParser_validSelectors
124
- */
125
-
126
- /**
127
- * A regular expression that defines which CSS rules will be used
128
- * by the Stylesheet Parser plugin. A CSS rule matching the regular
129
- * expression will be available in the Styles drop-down list.
130
- *
131
- * // Only add rules for p and span elements.
132
- * config.stylesheetParser_validSelectors = /\^(p|span)\.\w+/;
133
- *
134
- * @since 3.6
135
- * @cfg {RegExp} [stylesheetParser_validSelectors=/\w+\.\w+/]
136
- * @member CKEDITOR.config
137
- * @see CKEDITOR.config#stylesheetParser_skipSelectors
138
- */
@@ -1,20 +0,0 @@
1
- /*
2
- Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
3
- For licensing, see LICENSE.html or http://ckeditor.com/license
4
- */
5
- (function(){function r(a){for(var f=0,l=0,k=0,m,e=a.$.rows.length;k<e;k++){m=a.$.rows[k];for(var d=f=0,c,b=m.cells.length;d<b;d++)c=m.cells[d],f+=c.colSpan;f>l&&(l=f)}return l}function o(a){return function(){var f=this.getValue(),f=!!(CKEDITOR.dialog.validate.integer()(f)&&0<f);f||(alert(a),this.select());return f}}function n(a,f){var l=function(e){return new CKEDITOR.dom.element(e,a.document)},n=a.editable(),m=a.plugins.dialogadvtab;return{title:a.lang.table.title,minWidth:310,minHeight:CKEDITOR.env.ie?
6
- 310:280,onLoad:function(){var e=this,a=e.getContentElement("advanced","advStyles");if(a)a.on("change",function(){var a=this.getStyle("width",""),b=e.getContentElement("info","txtWidth");b&&b.setValue(a,!0);a=this.getStyle("height","");(b=e.getContentElement("info","txtHeight"))&&b.setValue(a,!0)})},onShow:function(){var e=a.getSelection(),d=e.getRanges(),c,b=this.getContentElement("info","txtRows"),h=this.getContentElement("info","txtCols"),p=this.getContentElement("info","txtWidth"),g=this.getContentElement("info",
7
- "txtHeight");"tableProperties"==f&&((e=e.getSelectedElement())&&e.is("table")?c=e:0<d.length&&(CKEDITOR.env.webkit&&d[0].shrink(CKEDITOR.NODE_ELEMENT),c=a.elementPath(d[0].getCommonAncestor(!0)).contains("table",1)),this._.selectedElement=c);c?(this.setupContent(c),b&&b.disable(),h&&h.disable()):(b&&b.enable(),h&&h.enable());p&&p.onChange();g&&g.onChange()},onOk:function(){var e=a.getSelection(),d=this._.selectedElement&&e.createBookmarks(),c=this._.selectedElement||l("table"),b={};this.commitContent(b,
8
- c);if(b.info){b=b.info;if(!this._.selectedElement)for(var h=c.append(l("tbody")),f=parseInt(b.txtRows,10)||0,g=parseInt(b.txtCols,10)||0,i=0;i<f;i++)for(var j=h.append(l("tr")),k=0;k<g;k++){var m=j.append(l("td"));CKEDITOR.env.ie||m.append(l("br"))}f=b.selHeaders;if(!c.$.tHead&&("row"==f||"both"==f)){j=new CKEDITOR.dom.element(c.$.createTHead());h=c.getElementsByTag("tbody").getItem(0);h=h.getElementsByTag("tr").getItem(0);for(i=0;i<h.getChildCount();i++)g=h.getChild(i),g.type==CKEDITOR.NODE_ELEMENT&&
9
- !g.data("cke-bookmark")&&(g.renameNode("th"),g.setAttribute("scope","col"));j.append(h.remove())}if(null!==c.$.tHead&&!("row"==f||"both"==f)){j=new CKEDITOR.dom.element(c.$.tHead);h=c.getElementsByTag("tbody").getItem(0);for(k=h.getFirst();0<j.getChildCount();){h=j.getFirst();for(i=0;i<h.getChildCount();i++)g=h.getChild(i),g.type==CKEDITOR.NODE_ELEMENT&&(g.renameNode("td"),g.removeAttribute("scope"));h.insertBefore(k)}j.remove()}if(!this.hasColumnHeaders&&("col"==f||"both"==f))for(j=0;j<c.$.rows.length;j++)g=
10
- new CKEDITOR.dom.element(c.$.rows[j].cells[0]),g.renameNode("th"),g.setAttribute("scope","row");if(this.hasColumnHeaders&&!("col"==f||"both"==f))for(i=0;i<c.$.rows.length;i++)j=new CKEDITOR.dom.element(c.$.rows[i]),"tbody"==j.getParent().getName()&&(g=new CKEDITOR.dom.element(j.$.cells[0]),g.renameNode("td"),g.removeAttribute("scope"));b.txtHeight?c.setStyle("height",b.txtHeight):c.removeStyle("height");b.txtWidth?c.setStyle("width",b.txtWidth):c.removeStyle("width");c.getAttribute("style")||c.removeAttribute("style")}if(this._.selectedElement)try{e.selectBookmarks(d)}catch(n){}else a.insertElement(c),
11
- setTimeout(function(){var e=new CKEDITOR.dom.element(c.$.rows[0].cells[0]),b=a.createRange();b.moveToPosition(e,CKEDITOR.POSITION_AFTER_START);b.select()},0)},contents:[{id:"info",label:a.lang.table.title,elements:[{type:"hbox",widths:[null,null],styles:["vertical-align:top"],children:[{type:"vbox",padding:0,children:[{type:"text",id:"txtRows","default":3,label:a.lang.table.rows,required:!0,controlStyle:"width:5em",validate:o(a.lang.table.invalidRows),setup:function(e){this.setValue(e.$.rows.length)},
12
- commit:k},{type:"text",id:"txtCols","default":2,label:a.lang.table.columns,required:!0,controlStyle:"width:5em",validate:o(a.lang.table.invalidCols),setup:function(e){this.setValue(r(e))},commit:k},{type:"html",html:"&nbsp;"},{type:"select",id:"selHeaders","default":"",label:a.lang.table.headers,items:[[a.lang.table.headersNone,""],[a.lang.table.headersRow,"row"],[a.lang.table.headersColumn,"col"],[a.lang.table.headersBoth,"both"]],setup:function(e){var a=this.getDialog();a.hasColumnHeaders=!0;for(var c=
13
- 0;c<e.$.rows.length;c++){var b=e.$.rows[c].cells[0];if(b&&"th"!=b.nodeName.toLowerCase()){a.hasColumnHeaders=!1;break}}null!==e.$.tHead?this.setValue(a.hasColumnHeaders?"both":"row"):this.setValue(a.hasColumnHeaders?"col":"")},commit:k},{type:"text",id:"txtBorder","default":1,label:a.lang.table.border,controlStyle:"width:3em",validate:CKEDITOR.dialog.validate.number(a.lang.table.invalidBorder),setup:function(a){this.setValue(a.getAttribute("border")||"")},commit:function(a,d){this.getValue()?d.setAttribute("border",
14
- this.getValue()):d.removeAttribute("border")}},{id:"cmbAlign",type:"select","default":"",label:a.lang.common.align,items:[[a.lang.common.notSet,""],[a.lang.common.alignLeft,"left"],[a.lang.common.alignCenter,"center"],[a.lang.common.alignRight,"right"]],setup:function(a){this.setValue(a.getAttribute("align")||"")},commit:function(a,d){this.getValue()?d.setAttribute("align",this.getValue()):d.removeAttribute("align")}}]},{type:"vbox",padding:0,children:[{type:"hbox",widths:["5em"],children:[{type:"text",
15
- id:"txtWidth",controlStyle:"width:5em",label:a.lang.common.width,title:a.lang.common.cssLengthTooltip,"default":500>n.getSize("width")?"100%":500,getValue:q,validate:CKEDITOR.dialog.validate.cssLength(a.lang.common.invalidCssLength.replace("%1",a.lang.common.width)),onChange:function(){var a=this.getDialog().getContentElement("advanced","advStyles");a&&a.updateStyle("width",this.getValue())},setup:function(a){this.setValue(a.getStyle("width"))},commit:k}]},{type:"hbox",widths:["5em"],children:[{type:"text",
16
- id:"txtHeight",controlStyle:"width:5em",label:a.lang.common.height,title:a.lang.common.cssLengthTooltip,"default":"",getValue:q,validate:CKEDITOR.dialog.validate.cssLength(a.lang.common.invalidCssLength.replace("%1",a.lang.common.height)),onChange:function(){var a=this.getDialog().getContentElement("advanced","advStyles");a&&a.updateStyle("height",this.getValue())},setup:function(a){(a=a.getStyle("height"))&&this.setValue(a)},commit:k}]},{type:"html",html:"&nbsp;"},{type:"text",id:"txtCellSpace",
17
- controlStyle:"width:3em",label:a.lang.table.cellSpace,"default":1,validate:CKEDITOR.dialog.validate.number(a.lang.table.invalidCellSpacing),setup:function(a){this.setValue(a.getAttribute("cellSpacing")||"")},commit:function(a,d){this.getValue()?d.setAttribute("cellSpacing",this.getValue()):d.removeAttribute("cellSpacing")}},{type:"text",id:"txtCellPad",controlStyle:"width:3em",label:a.lang.table.cellPad,"default":1,validate:CKEDITOR.dialog.validate.number(a.lang.table.invalidCellPadding),setup:function(a){this.setValue(a.getAttribute("cellPadding")||
18
- "")},commit:function(a,d){this.getValue()?d.setAttribute("cellPadding",this.getValue()):d.removeAttribute("cellPadding")}}]}]},{type:"html",align:"right",html:""},{type:"vbox",padding:0,children:[{type:"text",id:"txtCaption",label:a.lang.table.caption,setup:function(a){this.enable();a=a.getElementsByTag("caption");if(0<a.count()){var a=a.getItem(0),d=a.getFirst(CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT));d&&!d.equals(a.getBogus())?(this.disable(),this.setValue(a.getText())):(a=CKEDITOR.tools.trim(a.getText()),
19
- this.setValue(a))}},commit:function(e,d){if(this.isEnabled()){var c=this.getValue(),b=d.getElementsByTag("caption");if(c)0<b.count()?(b=b.getItem(0),b.setHtml("")):(b=new CKEDITOR.dom.element("caption",a.document),d.getChildCount()?b.insertBefore(d.getFirst()):b.appendTo(d)),b.append(new CKEDITOR.dom.text(c,a.document));else if(0<b.count())for(c=b.count()-1;0<=c;c--)b.getItem(c).remove()}}},{type:"text",id:"txtSummary",label:a.lang.table.summary,setup:function(a){this.setValue(a.getAttribute("summary")||
20
- "")},commit:function(a,d){this.getValue()?d.setAttribute("summary",this.getValue()):d.removeAttribute("summary")}}]}]},m&&m.createAdvancedTab(a)]}}var q=CKEDITOR.tools.cssLength,k=function(a){var f=this.id;a.info||(a.info={});a.info[f]=this.getValue()};CKEDITOR.dialog.add("table",function(a){return n(a,"table")});CKEDITOR.dialog.add("tableProperties",function(a){return n(a,"tableProperties")})})();
@@ -1,689 +0,0 @@
1
- /*
2
- Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
3
- For licensing, see LICENSE.html or http://ckeditor.com/license
4
- */
5
- .cke_dialog {
6
- visibility: visible;
7
- }
8
-
9
- .cke_dialog_body {
10
- z-index: 1;
11
- background: #eaeaea;
12
- border: 1px solid #b2b2b2;
13
- border-bottom-color: #999;
14
- -moz-border-radius: 3px;
15
- -webkit-border-radius: 3px;
16
- border-radius: 3px;
17
- -moz-box-shadow: 0 0 3px rgba(0,0,0,.15);
18
- -webkit-box-shadow: 0 0 3px rgba(0,0,0,.15);
19
- box-shadow: 0 0 3px rgba(0,0,0,.15);
20
- }
21
-
22
- .cke_browser_gecko19 .cke_dialog_body {
23
- position: relative;
24
- }
25
-
26
- .cke_dialog strong {
27
- font-weight: bold;
28
- }
29
-
30
- .cke_dialog_title {
31
- font-weight: bold;
32
- font-size: 13px;
33
- cursor: move;
34
- position: relative;
35
- color: #474747;
36
- text-shadow: 0 1px 0 rgba(255,255,255,.75);
37
- border-bottom: 1px solid #999;
38
- padding: 6px 10px;
39
- -moz-border-radius: 2px 2px 0 0;
40
- -webkit-border-radius: 2px 2px 0 0;
41
- border-radius: 2px 2px 0 0;
42
- -moz-box-shadow: 0 1px 0 #fff inset;
43
- -webkit-box-shadow: 0 1px 0 #fff inset;
44
- box-shadow: 0 1px 0 #fff inset;
45
- background: #cfd1cf;
46
- background-image: -webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#cfd1cf));
47
- background-image: -moz-linear-gradient(top,#f5f5f5,#cfd1cf);
48
- background-image: -webkit-linear-gradient(top,#f5f5f5,#cfd1cf);
49
- background-image: -o-linear-gradient(top,#f5f5f5,#cfd1cf);
50
- background-image: -ms-linear-gradient(top,#f5f5f5,#cfd1cf);
51
- background-image: linear-gradient(top,#f5f5f5,#cfd1cf);
52
- filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='#fff5f5f5',endColorstr='#ffcfd1cf');
53
- }
54
-
55
- .cke_dialog_contents {
56
- background-color: #fff;
57
- overflow: auto;
58
- padding: 15px 10px 5px 10px;
59
- margin-top: 30px;
60
- border-top: 1px solid #bfbfbf;
61
- -moz-border-radius: 0 0 3px 3px;
62
- -webkit-border-radius: 0 0 3px 3px;
63
- border-radius: 0 0 3px 3px;
64
- }
65
-
66
- .cke_dialog_contents_body {
67
- overflow: auto;
68
- padding: 17px 10px 5px 10px;
69
- margin-top: 22px;
70
- }
71
-
72
- .cke_dialog_footer {
73
- text-align: right;
74
- position: relative;
75
- border: 0;
76
- outline: 1px solid #bfbfbf;
77
- -moz-box-shadow: 0 1px 0 #fff inset;
78
- -webkit-box-shadow: 0 1px 0 #fff inset;
79
- box-shadow: 0 1px 0 #fff inset;
80
- -moz-border-radius: 0 0 2px 2px;
81
- -webkit-border-radius: 0 0 2px 2px;
82
- border-radius: 0 0 2px 2px;
83
- background: #cfd1cf;
84
- background-image: -webkit-gradient(linear,left top,left bottom,from(#ebebeb),to(#cfd1cf));
85
- background-image: -moz-linear-gradient(top,#ebebeb,#cfd1cf);
86
- background-image: -webkit-linear-gradient(top,#ebebeb,#cfd1cf);
87
- background-image: -o-linear-gradient(top,#ebebeb,#cfd1cf);
88
- background-image: -ms-linear-gradient(top,#ebebeb,#cfd1cf);
89
- background-image: linear-gradient(top,#ebebeb,#cfd1cf);
90
- filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='#ffebebeb',endColorstr='#cfd1cf');
91
- }
92
-
93
- .cke_rtl .cke_dialog_footer {
94
- text-align: left;
95
- }
96
-
97
- .cke_hc .cke_dialog_footer {
98
- outline: 0;
99
- border-top: 1px solid #fff;
100
- }
101
-
102
- .cke_dialog .cke_resizer {
103
- margin-top: 22px;
104
- }
105
-
106
- .cke_dialog .cke_resizer_rtl {
107
- margin-left: 5px;
108
- }
109
-
110
- .cke_dialog .cke_resizer_ltr {
111
- margin-right: 5px;
112
- }
113
-
114
- .cke_dialog_tabs {
115
- height: 24px;
116
- display: inline-block;
117
- margin: 5px 0 0;
118
- position: absolute;
119
- z-index: 2;
120
- left: 10px;
121
- }
122
-
123
- .cke_rtl .cke_dialog_tabs {
124
- right: 10px;
125
- }
126
-
127
- a.cke_dialog_tab {
128
- height: 16px;
129
- padding: 4px 8px;
130
- margin-right: 3px;
131
- display: inline-block;
132
- cursor: pointer;
133
- line-height: 16px;
134
- outline: 0;
135
- color: #595959;
136
- border: 1px solid #bfbfbf;
137
- -moz-border-radius: 3px 3px 0 0;
138
- -webkit-border-radius: 3px 3px 0 0;
139
- border-radius: 3px 3px 0 0;
140
- background: #d4d4d4;
141
- background-image: -webkit-gradient(linear,left top,left bottom,from(#fafafa),to(#ededed));
142
- background-image: -moz-linear-gradient(top,#fafafa,#ededed);
143
- background-image: -webkit-linear-gradient(top,#fafafa,#ededed);
144
- background-image: -o-linear-gradient(top,#fafafa,#ededed);
145
- background-image: -ms-linear-gradient(top,#fafafa,#ededed);
146
- background-image: linear-gradient(top,#fafafa,#ededed);
147
- filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='#fffafafa',endColorstr='#ffededed');
148
- }
149
-
150
- .cke_rtl a.cke_dialog_tab {
151
- margin-right: 0;
152
- margin-left: 3px;
153
- }
154
-
155
- a.cke_dialog_tab:hover {
156
- background: #ebebeb;
157
- background: -moz-linear-gradient(top,#ebebeb 0,#dfdfdf 100%);
158
- background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#ebebeb),color-stop(100%,#dfdfdf));
159
- background: -webkit-linear-gradient(top,#ebebeb 0,#dfdfdf 100%);
160
- background: -o-linear-gradient(top,#ebebeb 0,#dfdfdf 100%);
161
- background: -ms-linear-gradient(top,#ebebeb 0,#dfdfdf 100%);
162
- background: linear-gradient(to bottom,#ebebeb 0,#dfdfdf 100%);
163
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ebebeb',endColorstr='#dfdfdf',GradientType=0);
164
- }
165
-
166
- a.cke_dialog_tab_selected {
167
- background: #fff;
168
- color: #383838;
169
- border-bottom-color: #fff;
170
- cursor: default;
171
- filter: none;
172
- }
173
-
174
- a.cke_dialog_tab_selected:hover {
175
- background: #ededed;
176
- background: -moz-linear-gradient(top,#ededed 0,#fff 100%);
177
- background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#ededed),color-stop(100%,#fff));
178
- background: -webkit-linear-gradient(top,#ededed 0,#fff 100%);
179
- background: -o-linear-gradient(top,#ededed 0,#fff 100%);
180
- background: -ms-linear-gradient(top,#ededed 0,#fff 100%);
181
- background: linear-gradient(to bottom,#ededed 0,#fff 100%);
182
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed',endColorstr='#ffffff',GradientType=0);
183
- }
184
-
185
- .cke_hc a.cke_dialog_tab:hover,.cke_hc a.cke_dialog_tab_selected {
186
- border: 3px solid;
187
- padding: 2px 6px;
188
- }
189
-
190
- .cke_single_page .cke_dialog_tabs {
191
- display: none;
192
- }
193
-
194
- .cke_single_page .cke_dialog_contents {
195
- padding-top: 5px;
196
- margin-top: 0;
197
- border-top: 0;
198
- }
199
-
200
- .cke_dialog_close_button {
201
- background-image: url(images/close.png);
202
- background-repeat: no-repeat;
203
- background-position: 0 0;
204
- position: absolute;
205
- cursor: pointer;
206
- text-align: center;
207
- height: 20px;
208
- width: 20px;
209
- top: 5px;
210
- z-index: 5;
211
- }
212
-
213
- .cke_dialog_close_button span {
214
- display: none;
215
- }
216
-
217
- .cke_hc .cke_dialog_close_button span {
218
- display: inline;
219
- cursor: pointer;
220
- font-weight: bold;
221
- position: relative;
222
- top: 3px;
223
- }
224
-
225
- .cke_ltr .cke_dialog_close_button {
226
- right: 5px;
227
- }
228
-
229
- .cke_rtl .cke_dialog_close_button {
230
- left: 6px;
231
- }
232
-
233
- .cke_dialog_close_button {
234
- top: 4px;
235
- }
236
-
237
- div.cke_disabled .cke_dialog_ui_labeled_content div * {
238
- background-color: #ddd;
239
- cursor: default;
240
- }
241
-
242
- .cke_dialog_ui_vbox table,.cke_dialog_ui_hbox table {
243
- margin: auto;
244
- }
245
-
246
- .cke_dialog_ui_vbox_child {
247
- padding: 5px 0;
248
- }
249
-
250
- .cke_dialog_ui_hbox {
251
- width: 100%;
252
- }
253
-
254
- .cke_dialog_ui_hbox_first,.cke_dialog_ui_hbox_child,.cke_dialog_ui_hbox_last {
255
- vertical-align: top;
256
- }
257
-
258
- .cke_ltr .cke_dialog_ui_hbox_first,.cke_ltr .cke_dialog_ui_hbox_child {
259
- padding-right: 10px;
260
- }
261
-
262
- .cke_rtl .cke_dialog_ui_hbox_first,.cke_rtl .cke_dialog_ui_hbox_child {
263
- padding-left: 10px;
264
- }
265
-
266
- .cke_ltr .cke_dialog_footer_buttons .cke_dialog_ui_hbox_first,.cke_ltr .cke_dialog_footer_buttons .cke_dialog_ui_hbox_child {
267
- padding-right: 5px;
268
- }
269
-
270
- .cke_rtl .cke_dialog_footer_buttons .cke_dialog_ui_hbox_first,.cke_rtl .cke_dialog_footer_buttons .cke_dialog_ui_hbox_child {
271
- padding-left: 5px;
272
- padding-right: 0;
273
- }
274
-
275
- .cke_hc div.cke_dialog_ui_input_text,.cke_hc div.cke_dialog_ui_input_password,.cke_hc div.cke_dialog_ui_input_textarea,.cke_hc div.cke_dialog_ui_input_select,.cke_hc div.cke_dialog_ui_input_file {
276
- border: 1px solid;
277
- }
278
-
279
- textarea.cke_dialog_ui_input_textarea {
280
- overflow: auto;
281
- resize: none;
282
- }
283
-
284
- input.cke_dialog_ui_input_text,input.cke_dialog_ui_input_password,textarea.cke_dialog_ui_input_textarea {
285
- background-color: #fff;
286
- border: 1px solid #c9cccf;
287
- border-top-color: #aeb3b9;
288
- padding: 4px 6px;
289
- outline: 0;
290
- width: 100%;
291
- *width: 95%;
292
- -moz-box-sizing: border-box;
293
- -webkit-box-sizing: border-box;
294
- box-sizing: border-box;
295
- -moz-border-radius: 3px;
296
- -webkit-border-radius: 3px;
297
- border-radius: 3px;
298
- -moz-box-shadow: 0 1px 2px rgba(0,0,0,.15) inset;
299
- -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.15) inset;
300
- box-shadow: 0 1px 2px rgba(0,0,0,.15) inset;
301
- }
302
-
303
- input.cke_dialog_ui_input_text:hover,input.cke_dialog_ui_input_password:hover,textarea.cke_dialog_ui_input_textarea:hover {
304
- border: 1px solid #aeb3b9;
305
- border-top-color: #a0a6ad;
306
- }
307
-
308
- input.cke_dialog_ui_input_text:focus,input.cke_dialog_ui_input_password:focus,textarea.cke_dialog_ui_input_textarea:focus,select.cke_dialog_ui_input_select:focus {
309
- outline: 0;
310
- border: 1px solid #139ff7;
311
- border-top-color: #1392e9;
312
- }
313
-
314
- a.cke_dialog_ui_button {
315
- display: inline-block;
316
- *display: inline;
317
- *zoom: 1;
318
- padding: 3px 0;
319
- margin: 0;
320
- text-align: center;
321
- color: #333;
322
- vertical-align: middle;
323
- cursor: pointer;
324
- border: 1px solid #b6b6b6;
325
- border-bottom-color: #999;
326
- -moz-border-radius: 3px;
327
- -webkit-border-radius: 3px;
328
- border-radius: 3px;
329
- -moz-box-shadow: 0 1px 0 rgba(255,255,255,.5),0 0 2px rgba(255,255,255,.15) inset,0 1px 0 rgba(255,255,255,.15) inset;
330
- -webkit-box-shadow: 0 1px 0 rgba(255,255,255,.5),0 0 2px rgba(255,255,255,.15) inset,0 1px 0 rgba(255,255,255,.15) inset;
331
- box-shadow: 0 1px 0 rgba(255,255,255,.5),0 0 2px rgba(255,255,255,.15) inset,0 1px 0 rgba(255,255,255,.15) inset;
332
- background: #e4e4e4;
333
- background-image: -webkit-gradient(linear,left top,left bottom,from(#fff),to(#e4e4e4));
334
- background-image: -moz-linear-gradient(top,#fff,#e4e4e4);
335
- background-image: -webkit-linear-gradient(top,#fff,#e4e4e4);
336
- background-image: -o-linear-gradient(top,#fff,#e4e4e4);
337
- background-image: -ms-linear-gradient(top,#fff,#e4e4e4);
338
- background-image: linear-gradient(top,#fff,#e4e4e4);
339
- filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='#ffffffff',endColorstr='#ffe4e4e4');
340
- }
341
-
342
- span.cke_dialog_ui_button {
343
- padding: 0 12px;
344
- }
345
-
346
- a.cke_dialog_ui_button:hover {
347
- border-color: #9e9e9e;
348
- background: #ccc;
349
- background-image: -webkit-gradient(linear,left top,left bottom,from(#f2f2f2),to(#ccc));
350
- background-image: -moz-linear-gradient(top,#f2f2f2,#ccc);
351
- background-image: -webkit-linear-gradient(top,#f2f2f2,#ccc);
352
- background-image: -o-linear-gradient(top,#f2f2f2,#ccc);
353
- background-image: -ms-linear-gradient(top,#f2f2f2,#ccc);
354
- background-image: linear-gradient(top,#f2f2f2,#ccc);
355
- filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='#fff2f2f2',endColorstr='#ffcccccc');
356
- }
357
-
358
- a.cke_dialog_ui_button:focus,a.cke_dialog_ui_button:active {
359
- border-color: #969696;
360
- outline: 0;
361
- -moz-box-shadow: 0 0 6px rgba(0,0,0,.4) inset;
362
- -webkit-box-shadow: 0 0 6px rgba(0,0,0,.4) inset;
363
- box-shadow: 0 0 6px rgba(0,0,0,.4) inset;
364
- }
365
-
366
- .cke_hc a.cke_dialog_ui_button:hover,.cke_hc a.cke_dialog_ui_button:focus,.cke_hc a.cke_dialog_ui_button:active {
367
- border: 3px solid;
368
- padding-top: 1px;
369
- padding-bottom: 1px;
370
- }
371
-
372
- .cke_hc a.cke_dialog_ui_button:hover span,.cke_hc a.cke_dialog_ui_button:focus span,.cke_hc a.cke_dialog_ui_button:active span {
373
- padding-left: 10px;
374
- padding-right: 10px;
375
- }
376
-
377
- .cke_dialog_footer_buttons a.cke_dialog_ui_button span {
378
- color: inherit;
379
- font-size: 12px;
380
- font-weight: bold;
381
- line-height: 20px;
382
- }
383
-
384
- a.cke_dialog_ui_button_ok {
385
- color: #fff;
386
- text-shadow: 0 -1px 0 #55830c;
387
- border-color: #62a60a #62a60a #4d9200;
388
- background: #69b10b;
389
- background-image: -webkit-gradient(linear,0 0,0 100%,from(#9ad717),to(#69b10b));
390
- background-image: -webkit-linear-gradient(top,#9ad717,#69b10b);
391
- background-image: -o-linear-gradient(top,#9ad717,#69b10b);
392
- background-image: linear-gradient(to bottom,#9ad717,#69b10b);
393
- background-image: -moz-linear-gradient(top,#9ad717,#69b10b);
394
- filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='#ff9ad717',endColorstr='#ff69b10b');
395
- }
396
-
397
- a.cke_dialog_ui_button_ok:hover {
398
- border-color: #5b9909 #5b9909 #478500;
399
- background: #88be14;
400
- background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#88be14),color-stop(100%,#5d9c0a));
401
- background: -webkit-linear-gradient(top,#88be14 0,#5d9c0a 100%);
402
- background: -o-linear-gradient(top,#88be14 0,#5d9c0a 100%);
403
- background: linear-gradient(to bottom,#88be14 0,#5d9c0a 100%);
404
- background: -moz-linear-gradient(top,#88be14 0,#5d9c0a 100%);
405
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#88be14',endColorstr='#5d9c0a',GradientType=0);
406
- }
407
-
408
- a.cke_dialog_ui_button span {
409
- text-shadow: 0 1px 0 #fff;
410
- }
411
-
412
- a.cke_dialog_ui_button_ok span {
413
- text-shadow: 0 -1px 0 #55830c;
414
- }
415
-
416
- span.cke_dialog_ui_button {
417
- cursor: pointer;
418
- }
419
-
420
- a.cke_dialog_ui_button_ok:focus,a.cke_dialog_ui_button_ok:active,a.cke_dialog_ui_button_cancel:focus,a.cke_dialog_ui_button_cancel:active {
421
- border-width: 2px;
422
- padding: 2px 0;
423
- }
424
-
425
- a.cke_dialog_ui_button_ok:focus,a.cke_dialog_ui_button_ok:active {
426
- border-color: #568c0a;
427
- }
428
-
429
- a.cke_dialog_ui_button_ok:focus span,a.cke_dialog_ui_button_ok:active span,a.cke_dialog_ui_button_cancel:focus span,a.cke_dialog_ui_button_cancel:active span {
430
- padding: 0 11px;
431
- }
432
-
433
- .cke_dialog_footer_buttons {
434
- display: inline-table;
435
- margin: 5px;
436
- width: auto;
437
- position: relative;
438
- vertical-align: middle;
439
- }
440
-
441
- div.cke_dialog_ui_input_select {
442
- display: table;
443
- }
444
-
445
- select.cke_dialog_ui_input_select {
446
- height: 24px;
447
- line-height: 24px;
448
- background-color: #fff;
449
- border: 1px solid #c9cccf;
450
- border-top-color: #aeb3b9;
451
- padding: 2px 6px;
452
- outline: 0;
453
- -moz-border-radius: 3px;
454
- -webkit-border-radius: 3px;
455
- border-radius: 3px;
456
- -moz-box-shadow: 0 1px 2px rgba(0,0,0,.15) inset;
457
- -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.15) inset;
458
- box-shadow: 0 1px 2px rgba(0,0,0,.15) inset;
459
- }
460
-
461
- .cke_dialog_ui_input_file {
462
- width: 100%;
463
- height: 25px;
464
- }
465
-
466
- .cke_hc .cke_dialog_ui_labeled_content input:focus,.cke_hc .cke_dialog_ui_labeled_content select:focus,.cke_hc .cke_dialog_ui_labeled_content textarea:focus {
467
- outline: 1px dotted;
468
- }
469
-
470
- .cke_dialog .cke_dark_background {
471
- background-color: #dedede;
472
- }
473
-
474
- .cke_dialog .cke_light_background {
475
- background-color: #ebebeb;
476
- }
477
-
478
- .cke_dialog .cke_centered {
479
- text-align: center;
480
- }
481
-
482
- .cke_dialog a.cke_btn_reset {
483
- float: right;
484
- background-position: 0 -32px;
485
- background-image: url(images/mini.png);
486
- width: 16px;
487
- height: 16px;
488
- background-repeat: no-repeat;
489
- border: 1px none;
490
- font-size: 1px;
491
- }
492
-
493
- .cke_rtl .cke_dialog a.cke_btn_reset {
494
- float: left;
495
- }
496
-
497
- .cke_dialog a.cke_btn_locked,.cke_dialog a.cke_btn_unlocked {
498
- float: left;
499
- background-position: 0 0;
500
- background-image: url(images/mini.png);
501
- width: 16px;
502
- height: 16px;
503
- background-repeat: no-repeat;
504
- border: none 1px;
505
- font-size: 1px;
506
- }
507
-
508
- .cke_dialog a.cke_btn_locked .cke_icon {
509
- display: none;
510
- }
511
-
512
- .cke_rtl .cke_dialog a.cke_btn_locked,.cke_rtl .cke_dialog a.cke_btn_unlocked {
513
- float: right;
514
- }
515
-
516
- .cke_dialog a.cke_btn_unlocked {
517
- background-position: 0 -16px;
518
- background-image: url(images/mini.png);
519
- }
520
-
521
- .cke_dialog .cke_btn_over {
522
- border: outset 1px;
523
- cursor: pointer;
524
- }
525
-
526
- .cke_dialog .ImagePreviewBox {
527
- border: 2px ridge black;
528
- overflow: scroll;
529
- height: 200px;
530
- width: 300px;
531
- padding: 2px;
532
- background-color: white;
533
- }
534
-
535
- .cke_dialog .ImagePreviewBox table td {
536
- white-space: normal;
537
- }
538
-
539
- .cke_dialog .ImagePreviewLoader {
540
- position: absolute;
541
- white-space: normal;
542
- overflow: hidden;
543
- height: 160px;
544
- width: 230px;
545
- margin: 2px;
546
- padding: 2px;
547
- opacity: .9;
548
- filter: alpha(opacity = 90);
549
- background-color: #e4e4e4;
550
- }
551
-
552
- .cke_dialog .FlashPreviewBox {
553
- white-space: normal;
554
- border: 2px ridge black;
555
- overflow: auto;
556
- height: 160px;
557
- width: 390px;
558
- padding: 2px;
559
- background-color: white;
560
- }
561
-
562
- .cke_dialog .cke_pastetext {
563
- width: 346px;
564
- height: 170px;
565
- }
566
-
567
- .cke_dialog .cke_pastetext textarea {
568
- width: 340px;
569
- height: 170px;
570
- resize: none;
571
- }
572
-
573
- .cke_dialog iframe.cke_pasteframe {
574
- width: 346px;
575
- height: 130px;
576
- background-color: white;
577
- border: 1px solid #aeb3b9;
578
- -moz-border-radius: 3px;
579
- -webkit-border-radius: 3px;
580
- border-radius: 3px;
581
- }
582
-
583
- .cke_dialog .cke_hand {
584
- cursor: pointer;
585
- }
586
-
587
- .cke_disabled {
588
- color: #a0a0a0;
589
- }
590
-
591
- .cke_dialog_body .cke_label {
592
- display: none;
593
- }
594
-
595
- .cke_dialog_body label {
596
- display: inline;
597
- margin-bottom: auto;
598
- cursor: default;
599
- }
600
-
601
- .cke_dialog_body label.cke_required {
602
- font-weight: bold;
603
- }
604
-
605
- a.cke_smile {
606
- overflow: hidden;
607
- display: block;
608
- text-align: center;
609
- padding: .3em 0;
610
- }
611
-
612
- a.cke_smile img {
613
- vertical-align: middle;
614
- }
615
-
616
- a.cke_specialchar {
617
- cursor: inherit;
618
- display: block;
619
- height: 1.25em;
620
- padding: .2em .3em;
621
- text-align: center;
622
- }
623
-
624
- a.cke_smile,a.cke_specialchar {
625
- border: 1px solid transparent;
626
- }
627
-
628
- a.cke_smile:hover,a.cke_smile:focus,a.cke_smile:active,a.cke_specialchar:hover,a.cke_specialchar:focus,a.cke_specialchar:active {
629
- background: #fff;
630
- outline: 0;
631
- }
632
-
633
- a.cke_smile:hover,a.cke_specialchar:hover {
634
- border-color: #888;
635
- }
636
-
637
- a.cke_smile:focus,a.cke_smile:active,a.cke_specialchar:focus,a.cke_specialchar:active {
638
- border-color: #139ff7;
639
- }
640
-
641
- .cke_dialog_contents a.colorChooser {
642
- display: block;
643
- margin-top: 6px;
644
- margin-left: 10px;
645
- width: 80px;
646
- }
647
-
648
- .cke_rtl .cke_dialog_contents a.colorChooser {
649
- margin-right: 10px;
650
- }
651
-
652
- .cke_dialog_ui_checkbox_input:focus,.cke_dialog_ui_radio_input:focus,.cke_btn_over {
653
- outline: 1px dotted #696969;
654
- }
655
-
656
- .cke_iframe_shim {
657
- display: block;
658
- position: absolute;
659
- top: 0;
660
- left: 0;
661
- z-index: -1;
662
- filter: alpha(opacity = 0);
663
- width: 100%;
664
- height: 100%;
665
- }
666
-
667
- .cke_rtl input.cke_dialog_ui_input_text,.cke_rtl input.cke_dialog_ui_input_password {
668
- padding-right: 2px;
669
- }
670
-
671
- .cke_rtl div.cke_dialog_ui_input_text,.cke_rtl div.cke_dialog_ui_input_password {
672
- padding-left: 2px;
673
- }
674
-
675
- .cke_rtl div.cke_dialog_ui_input_text {
676
- padding-right: 1px;
677
- }
678
-
679
- .cke_rtl .cke_dialog_ui_vbox_child,.cke_rtl .cke_dialog_ui_hbox_child,.cke_rtl .cke_dialog_ui_hbox_first,.cke_rtl .cke_dialog_ui_hbox_last {
680
- padding-right: 2px!important;
681
- }
682
-
683
- .cke_hc .cke_dialog_title,.cke_hc .cke_dialog_footer,.cke_hc a.cke_dialog_tab,.cke_hc a.cke_dialog_ui_button,.cke_hc a.cke_dialog_ui_button:hover,.cke_hc a.cke_dialog_ui_button_ok,.cke_hc a.cke_dialog_ui_button_ok:hover {
684
- filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
685
- }
686
-
687
- .cke_hc div.cke_dialog_ui_input_text,.cke_hc div.cke_dialog_ui_input_password,.cke_hc div.cke_dialog_ui_input_textarea,.cke_hc div.cke_dialog_ui_input_select,.cke_hc div.cke_dialog_ui_input_file {
688
- border: 0;
689
- }