Permalink
Browse files

multiple fixes: tinyMCE update, django 1.3 support, multilanguage sup…

…port
  • Loading branch information...
revolunet committed Mar 23, 2012
1 parent 6a07362 commit 5fea9735d93a148e0c037a99aefa655d89475c95
Showing with 42,703 additions and 15 deletions.
  1. +6 −4 chunks/admin.py
  2. +1 −1 chunks/admin_views.py
  3. +5 −2 chunks/models.py
  4. +1 −0 chunks/static/js/tiny_config.js
  5. +1 −0 chunks/static/js/tiny_mce/langs/en.js
  6. +504 −0 chunks/static/js/tiny_mce/license.txt
  7. +5 −0 chunks/static/js/tiny_mce/plugins/advhr/css/advhr.css
  8. +1 −0 chunks/static/js/tiny_mce/plugins/advhr/editor_plugin.js
  9. +57 −0 chunks/static/js/tiny_mce/plugins/advhr/editor_plugin_src.js
  10. +43 −0 chunks/static/js/tiny_mce/plugins/advhr/js/rule.js
  11. +1 −0 chunks/static/js/tiny_mce/plugins/advhr/langs/en_dlg.js
  12. +58 −0 chunks/static/js/tiny_mce/plugins/advhr/rule.htm
  13. +13 −0 chunks/static/js/tiny_mce/plugins/advimage/css/advimage.css
  14. +1 −0 chunks/static/js/tiny_mce/plugins/advimage/editor_plugin.js
  15. +50 −0 chunks/static/js/tiny_mce/plugins/advimage/editor_plugin_src.js
  16. +235 −0 chunks/static/js/tiny_mce/plugins/advimage/image.htm
  17. BIN chunks/static/js/tiny_mce/plugins/advimage/img/sample.gif
  18. +462 −0 chunks/static/js/tiny_mce/plugins/advimage/js/image.js
  19. +1 −0 chunks/static/js/tiny_mce/plugins/advimage/langs/en_dlg.js
  20. +8 −0 chunks/static/js/tiny_mce/plugins/advlink/css/advlink.css
  21. +1 −0 chunks/static/js/tiny_mce/plugins/advlink/editor_plugin.js
  22. +61 −0 chunks/static/js/tiny_mce/plugins/advlink/editor_plugin_src.js
  23. +539 −0 chunks/static/js/tiny_mce/plugins/advlink/js/advlink.js
  24. +1 −0 chunks/static/js/tiny_mce/plugins/advlink/langs/en_dlg.js
  25. +338 −0 chunks/static/js/tiny_mce/plugins/advlink/link.htm
  26. +1 −0 chunks/static/js/tiny_mce/plugins/advlist/editor_plugin.js
  27. +176 −0 chunks/static/js/tiny_mce/plugins/advlist/editor_plugin_src.js
  28. +1 −0 chunks/static/js/tiny_mce/plugins/autolink/editor_plugin.js
  29. +174 −0 chunks/static/js/tiny_mce/plugins/autolink/editor_plugin_src.js
  30. +1 −0 chunks/static/js/tiny_mce/plugins/autoresize/editor_plugin.js
  31. +119 −0 chunks/static/js/tiny_mce/plugins/autoresize/editor_plugin_src.js
  32. +1 −0 chunks/static/js/tiny_mce/plugins/autosave/editor_plugin.js
  33. +431 −0 chunks/static/js/tiny_mce/plugins/autosave/editor_plugin_src.js
  34. +4 −0 chunks/static/js/tiny_mce/plugins/autosave/langs/en.js
  35. +1 −0 chunks/static/js/tiny_mce/plugins/bbcode/editor_plugin.js
  36. +120 −0 chunks/static/js/tiny_mce/plugins/bbcode/editor_plugin_src.js
  37. +1 −0 chunks/static/js/tiny_mce/plugins/contextmenu/editor_plugin.js
  38. +161 −0 chunks/static/js/tiny_mce/plugins/contextmenu/editor_plugin_src.js
  39. +1 −0 chunks/static/js/tiny_mce/plugins/directionality/editor_plugin.js
  40. +82 −0 chunks/static/js/tiny_mce/plugins/directionality/editor_plugin_src.js
  41. +1 −0 chunks/static/js/tiny_mce/plugins/emotions/editor_plugin.js
  42. +43 −0 chunks/static/js/tiny_mce/plugins/emotions/editor_plugin_src.js
  43. +42 −0 chunks/static/js/tiny_mce/plugins/emotions/emotions.htm
  44. BIN chunks/static/js/tiny_mce/plugins/emotions/img/smiley-cool.gif
  45. BIN chunks/static/js/tiny_mce/plugins/emotions/img/smiley-cry.gif
  46. BIN chunks/static/js/tiny_mce/plugins/emotions/img/smiley-embarassed.gif
  47. BIN chunks/static/js/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif
  48. BIN chunks/static/js/tiny_mce/plugins/emotions/img/smiley-frown.gif
  49. BIN chunks/static/js/tiny_mce/plugins/emotions/img/smiley-innocent.gif
  50. BIN chunks/static/js/tiny_mce/plugins/emotions/img/smiley-kiss.gif
  51. BIN chunks/static/js/tiny_mce/plugins/emotions/img/smiley-laughing.gif
  52. BIN chunks/static/js/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif
  53. BIN chunks/static/js/tiny_mce/plugins/emotions/img/smiley-sealed.gif
  54. BIN chunks/static/js/tiny_mce/plugins/emotions/img/smiley-smile.gif
  55. BIN chunks/static/js/tiny_mce/plugins/emotions/img/smiley-surprised.gif
  56. BIN chunks/static/js/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif
  57. BIN chunks/static/js/tiny_mce/plugins/emotions/img/smiley-undecided.gif
  58. BIN chunks/static/js/tiny_mce/plugins/emotions/img/smiley-wink.gif
  59. BIN chunks/static/js/tiny_mce/plugins/emotions/img/smiley-yell.gif
  60. +43 −0 chunks/static/js/tiny_mce/plugins/emotions/js/emotions.js
  61. +1 −0 chunks/static/js/tiny_mce/plugins/emotions/langs/en_dlg.js
  62. +22 −0 chunks/static/js/tiny_mce/plugins/example/dialog.htm
  63. +1 −0 chunks/static/js/tiny_mce/plugins/example/editor_plugin.js
  64. +84 −0 chunks/static/js/tiny_mce/plugins/example/editor_plugin_src.js
  65. BIN chunks/static/js/tiny_mce/plugins/example/img/example.gif
  66. +19 −0 chunks/static/js/tiny_mce/plugins/example/js/dialog.js
  67. +3 −0 chunks/static/js/tiny_mce/plugins/example/langs/en.js
  68. +3 −0 chunks/static/js/tiny_mce/plugins/example/langs/en_dlg.js
  69. +1 −0 chunks/static/js/tiny_mce/plugins/example_dependency/editor_plugin.js
  70. +50 −0 chunks/static/js/tiny_mce/plugins/example_dependency/editor_plugin_src.js
  71. +143 −0 chunks/static/js/tiny_mce/plugins/fullpage/css/fullpage.css
  72. +1 −0 chunks/static/js/tiny_mce/plugins/fullpage/editor_plugin.js
  73. +405 −0 chunks/static/js/tiny_mce/plugins/fullpage/editor_plugin_src.js
  74. +259 −0 chunks/static/js/tiny_mce/plugins/fullpage/fullpage.htm
  75. +232 −0 chunks/static/js/tiny_mce/plugins/fullpage/js/fullpage.js
  76. +1 −0 chunks/static/js/tiny_mce/plugins/fullpage/langs/en_dlg.js
  77. +1 −0 chunks/static/js/tiny_mce/plugins/fullscreen/editor_plugin.js
  78. +159 −0 chunks/static/js/tiny_mce/plugins/fullscreen/editor_plugin_src.js
  79. +110 −0 chunks/static/js/tiny_mce/plugins/fullscreen/fullscreen.htm
  80. +1 −0 chunks/static/js/tiny_mce/plugins/iespell/editor_plugin.js
  81. +54 −0 chunks/static/js/tiny_mce/plugins/iespell/editor_plugin_src.js
  82. +1 −0 chunks/static/js/tiny_mce/plugins/imagelist/editor_plugin.js
  83. +35 −0 chunks/static/js/tiny_mce/plugins/imagelist/editor_plugin_src.js
  84. +53 −0 chunks/static/js/tiny_mce/plugins/imagelist/imagelist.htm
  85. +22 −0 chunks/static/js/tiny_mce/plugins/imagelist/js/imagelist.js
  86. +5 −0 chunks/static/js/tiny_mce/plugins/imagelist/langs/en_dlg.js
  87. +1 −0 chunks/static/js/tiny_mce/plugins/inlinepopups/editor_plugin.js
  88. +699 −0 chunks/static/js/tiny_mce/plugins/inlinepopups/editor_plugin_src.js
  89. BIN chunks/static/js/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif
  90. BIN chunks/static/js/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif
  91. BIN chunks/static/js/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif
  92. BIN chunks/static/js/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif
  93. BIN chunks/static/js/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif
  94. BIN chunks/static/js/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif
  95. BIN chunks/static/js/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif
  96. +90 −0 chunks/static/js/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css
  97. +387 −0 chunks/static/js/tiny_mce/plugins/inlinepopups/template.htm
  98. +1 −0 chunks/static/js/tiny_mce/plugins/insertdatetime/editor_plugin.js
  99. +83 −0 chunks/static/js/tiny_mce/plugins/insertdatetime/editor_plugin_src.js
  100. +1 −0 chunks/static/js/tiny_mce/plugins/layer/editor_plugin.js
  101. +262 −0 chunks/static/js/tiny_mce/plugins/layer/editor_plugin_src.js
  102. +1 −0 chunks/static/js/tiny_mce/plugins/legacyoutput/editor_plugin.js
  103. +139 −0 chunks/static/js/tiny_mce/plugins/legacyoutput/editor_plugin_src.js
  104. +1 −0 chunks/static/js/tiny_mce/plugins/lists/editor_plugin.js
  105. +951 −0 chunks/static/js/tiny_mce/plugins/lists/editor_plugin_src.js
  106. +17 −0 chunks/static/js/tiny_mce/plugins/media/css/media.css
  107. +1 −0 chunks/static/js/tiny_mce/plugins/media/editor_plugin.js
  108. +890 −0 chunks/static/js/tiny_mce/plugins/media/editor_plugin_src.js
  109. +73 −0 chunks/static/js/tiny_mce/plugins/media/js/embed.js
  110. +470 −0 chunks/static/js/tiny_mce/plugins/media/js/media.js
  111. +1 −0 chunks/static/js/tiny_mce/plugins/media/langs/en_dlg.js
  112. +922 −0 chunks/static/js/tiny_mce/plugins/media/media.htm
  113. BIN chunks/static/js/tiny_mce/plugins/media/moxieplayer.swf
  114. +1 −0 chunks/static/js/tiny_mce/plugins/nonbreaking/editor_plugin.js
  115. +54 −0 chunks/static/js/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
  116. +1 −0 chunks/static/js/tiny_mce/plugins/noneditable/editor_plugin.js
  117. +438 −0 chunks/static/js/tiny_mce/plugins/noneditable/editor_plugin_src.js
  118. +1 −0 chunks/static/js/tiny_mce/plugins/pagebreak/editor_plugin.js
  119. +74 −0 chunks/static/js/tiny_mce/plugins/pagebreak/editor_plugin_src.js
  120. +1 −0 chunks/static/js/tiny_mce/plugins/paste/editor_plugin.js
  121. +871 −0 chunks/static/js/tiny_mce/plugins/paste/editor_plugin_src.js
  122. +36 −0 chunks/static/js/tiny_mce/plugins/paste/js/pastetext.js
  123. +51 −0 chunks/static/js/tiny_mce/plugins/paste/js/pasteword.js
  124. +1 −0 chunks/static/js/tiny_mce/plugins/paste/langs/en_dlg.js
  125. +27 −0 chunks/static/js/tiny_mce/plugins/paste/pastetext.htm
  126. +21 −0 chunks/static/js/tiny_mce/plugins/paste/pasteword.htm
  127. +1 −0 chunks/static/js/tiny_mce/plugins/preview/editor_plugin.js
  128. +53 −0 chunks/static/js/tiny_mce/plugins/preview/editor_plugin_src.js
  129. +28 −0 chunks/static/js/tiny_mce/plugins/preview/example.html
  130. +73 −0 chunks/static/js/tiny_mce/plugins/preview/jscripts/embed.js
  131. +17 −0 chunks/static/js/tiny_mce/plugins/preview/preview.html
  132. +1 −0 chunks/static/js/tiny_mce/plugins/print/editor_plugin.js
  133. +34 −0 chunks/static/js/tiny_mce/plugins/print/editor_plugin_src.js
  134. +1 −0 chunks/static/js/tiny_mce/plugins/save/editor_plugin.js
  135. +101 −0 chunks/static/js/tiny_mce/plugins/save/editor_plugin_src.js
  136. +6 −0 chunks/static/js/tiny_mce/plugins/searchreplace/css/searchreplace.css
  137. +1 −0 chunks/static/js/tiny_mce/plugins/searchreplace/editor_plugin.js
  138. +61 −0 chunks/static/js/tiny_mce/plugins/searchreplace/editor_plugin_src.js
  139. +142 −0 chunks/static/js/tiny_mce/plugins/searchreplace/js/searchreplace.js
  140. +1 −0 chunks/static/js/tiny_mce/plugins/searchreplace/langs/en_dlg.js
  141. +100 −0 chunks/static/js/tiny_mce/plugins/searchreplace/searchreplace.htm
  142. +1 −0 chunks/static/js/tiny_mce/plugins/spellchecker/css/content.css
  143. +1 −0 chunks/static/js/tiny_mce/plugins/spellchecker/editor_plugin.js
  144. +436 −0 chunks/static/js/tiny_mce/plugins/spellchecker/editor_plugin_src.js
  145. BIN chunks/static/js/tiny_mce/plugins/spellchecker/img/wline.gif
  146. +14 −0 chunks/static/js/tiny_mce/plugins/style/css/props.css
  147. +1 −0 chunks/static/js/tiny_mce/plugins/style/editor_plugin.js
  148. +71 −0 chunks/static/js/tiny_mce/plugins/style/editor_plugin_src.js
  149. +709 −0 chunks/static/js/tiny_mce/plugins/style/js/props.js
  150. +1 −0 chunks/static/js/tiny_mce/plugins/style/langs/en_dlg.js
  151. +845 −0 chunks/static/js/tiny_mce/plugins/style/props.htm
  152. +19 −0 chunks/static/js/tiny_mce/plugins/style/readme.txt
  153. +1 −0 chunks/static/js/tiny_mce/plugins/tabfocus/editor_plugin.js
  154. +122 −0 chunks/static/js/tiny_mce/plugins/tabfocus/editor_plugin_src.js
  155. +180 −0 chunks/static/js/tiny_mce/plugins/table/cell.htm
  156. +17 −0 chunks/static/js/tiny_mce/plugins/table/css/cell.css
  157. +25 −0 chunks/static/js/tiny_mce/plugins/table/css/row.css
  158. +13 −0 chunks/static/js/tiny_mce/plugins/table/css/table.css
  159. +1 −0 chunks/static/js/tiny_mce/plugins/table/editor_plugin.js
  160. +1,428 −0 chunks/static/js/tiny_mce/plugins/table/editor_plugin_src.js
  161. +319 −0 chunks/static/js/tiny_mce/plugins/table/js/cell.js
  162. +27 −0 chunks/static/js/tiny_mce/plugins/table/js/merge_cells.js
  163. +237 −0 chunks/static/js/tiny_mce/plugins/table/js/row.js
  164. +489 −0 chunks/static/js/tiny_mce/plugins/table/js/table.js
  165. +1 −0 chunks/static/js/tiny_mce/plugins/table/langs/en_dlg.js
  166. +32 −0 chunks/static/js/tiny_mce/plugins/table/merge_cells.htm
  167. +158 −0 chunks/static/js/tiny_mce/plugins/table/row.htm
  168. +188 −0 chunks/static/js/tiny_mce/plugins/table/table.htm
  169. +12 −0 chunks/static/js/tiny_mce/plugins/template/blank.htm
  170. +23 −0 chunks/static/js/tiny_mce/plugins/template/css/template.css
  171. +1 −0 chunks/static/js/tiny_mce/plugins/template/editor_plugin.js
  172. +159 −0 chunks/static/js/tiny_mce/plugins/template/editor_plugin_src.js
  173. +106 −0 chunks/static/js/tiny_mce/plugins/template/js/template.js
  174. +1 −0 chunks/static/js/tiny_mce/plugins/template/langs/en_dlg.js
  175. +31 −0 chunks/static/js/tiny_mce/plugins/template/template.htm
  176. +19 −0 chunks/static/js/tiny_mce/plugins/visualblocks/css/visualblocks.css
  177. +1 −0 chunks/static/js/tiny_mce/plugins/visualblocks/editor_plugin.js
  178. +63 −0 chunks/static/js/tiny_mce/plugins/visualblocks/editor_plugin_src.js
  179. +1 −0 chunks/static/js/tiny_mce/plugins/visualchars/editor_plugin.js
  180. +83 −0 chunks/static/js/tiny_mce/plugins/visualchars/editor_plugin_src.js
  181. +1 −0 chunks/static/js/tiny_mce/plugins/wordcount/editor_plugin.js
  182. +122 −0 chunks/static/js/tiny_mce/plugins/wordcount/editor_plugin_src.js
  183. +142 −0 chunks/static/js/tiny_mce/plugins/xhtmlxtras/abbr.htm
  184. +142 −0 chunks/static/js/tiny_mce/plugins/xhtmlxtras/acronym.htm
  185. +149 −0 chunks/static/js/tiny_mce/plugins/xhtmlxtras/attributes.htm
  186. +142 −0 chunks/static/js/tiny_mce/plugins/xhtmlxtras/cite.htm
  187. +11 −0 chunks/static/js/tiny_mce/plugins/xhtmlxtras/css/attributes.css
  188. +9 −0 chunks/static/js/tiny_mce/plugins/xhtmlxtras/css/popup.css
  189. +162 −0 chunks/static/js/tiny_mce/plugins/xhtmlxtras/del.htm
  190. +1 −0 chunks/static/js/tiny_mce/plugins/xhtmlxtras/editor_plugin.js
  191. +132 −0 chunks/static/js/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js
  192. +162 −0 chunks/static/js/tiny_mce/plugins/xhtmlxtras/ins.htm
  193. +28 −0 chunks/static/js/tiny_mce/plugins/xhtmlxtras/js/abbr.js
  194. +28 −0 chunks/static/js/tiny_mce/plugins/xhtmlxtras/js/acronym.js
  195. +111 −0 chunks/static/js/tiny_mce/plugins/xhtmlxtras/js/attributes.js
  196. +28 −0 chunks/static/js/tiny_mce/plugins/xhtmlxtras/js/cite.js
  197. +53 −0 chunks/static/js/tiny_mce/plugins/xhtmlxtras/js/del.js
  198. +229 −0 chunks/static/js/tiny_mce/plugins/xhtmlxtras/js/element_common.js
  199. +53 −0 chunks/static/js/tiny_mce/plugins/xhtmlxtras/js/ins.js
  200. +1 −0 chunks/static/js/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js
  201. +52 −0 chunks/static/js/tiny_mce/themes/advanced/about.htm
  202. +26 −0 chunks/static/js/tiny_mce/themes/advanced/anchor.htm
  203. +55 −0 chunks/static/js/tiny_mce/themes/advanced/charmap.htm
  204. +74 −0 chunks/static/js/tiny_mce/themes/advanced/color_picker.htm
  205. +1 −0 chunks/static/js/tiny_mce/themes/advanced/editor_template.js
  206. +1,467 −0 chunks/static/js/tiny_mce/themes/advanced/editor_template_src.js
  207. +80 −0 chunks/static/js/tiny_mce/themes/advanced/image.htm
  208. BIN chunks/static/js/tiny_mce/themes/advanced/img/colorpicker.jpg
  209. BIN chunks/static/js/tiny_mce/themes/advanced/img/flash.gif
  210. BIN chunks/static/js/tiny_mce/themes/advanced/img/icons.gif
  211. BIN chunks/static/js/tiny_mce/themes/advanced/img/iframe.gif
  212. BIN chunks/static/js/tiny_mce/themes/advanced/img/pagebreak.gif
  213. BIN chunks/static/js/tiny_mce/themes/advanced/img/quicktime.gif
  214. BIN chunks/static/js/tiny_mce/themes/advanced/img/realmedia.gif
  215. BIN chunks/static/js/tiny_mce/themes/advanced/img/shockwave.gif
  216. BIN chunks/static/js/tiny_mce/themes/advanced/img/trans.gif
  217. BIN chunks/static/js/tiny_mce/themes/advanced/img/video.gif
  218. BIN chunks/static/js/tiny_mce/themes/advanced/img/windowsmedia.gif
  219. +73 −0 chunks/static/js/tiny_mce/themes/advanced/js/about.js
  220. +44 −0 chunks/static/js/tiny_mce/themes/advanced/js/anchor.js
  221. +363 −0 chunks/static/js/tiny_mce/themes/advanced/js/charmap.js
  222. +345 −0 chunks/static/js/tiny_mce/themes/advanced/js/color_picker.js
  223. +251 −0 chunks/static/js/tiny_mce/themes/advanced/js/image.js
  224. +153 −0 chunks/static/js/tiny_mce/themes/advanced/js/link.js
  225. +78 −0 chunks/static/js/tiny_mce/themes/advanced/js/source_editor.js
  226. +1 −0 chunks/static/js/tiny_mce/themes/advanced/langs/en.js
  227. +1 −0 chunks/static/js/tiny_mce/themes/advanced/langs/en_dlg.js
  228. +57 −0 chunks/static/js/tiny_mce/themes/advanced/link.htm
  229. +47 −0 chunks/static/js/tiny_mce/themes/advanced/shortcuts.htm
  230. +51 −0 chunks/static/js/tiny_mce/themes/advanced/skins/default/content.css
  231. +117 −0 chunks/static/js/tiny_mce/themes/advanced/skins/default/dialog.css
  232. BIN chunks/static/js/tiny_mce/themes/advanced/skins/default/img/buttons.png
  233. BIN chunks/static/js/tiny_mce/themes/advanced/skins/default/img/items.gif
  234. BIN chunks/static/js/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif
  235. BIN chunks/static/js/tiny_mce/themes/advanced/skins/default/img/menu_check.gif
  236. BIN chunks/static/js/tiny_mce/themes/advanced/skins/default/img/progress.gif
  237. BIN chunks/static/js/tiny_mce/themes/advanced/skins/default/img/tabs.gif
  238. +215 −0 chunks/static/js/tiny_mce/themes/advanced/skins/default/ui.css
  239. +25 −0 chunks/static/js/tiny_mce/themes/advanced/skins/highcontrast/content.css
  240. +105 −0 chunks/static/js/tiny_mce/themes/advanced/skins/highcontrast/dialog.css
  241. +102 −0 chunks/static/js/tiny_mce/themes/advanced/skins/highcontrast/ui.css
  242. +49 −0 chunks/static/js/tiny_mce/themes/advanced/skins/o2k7/content.css
  243. +117 −0 chunks/static/js/tiny_mce/themes/advanced/skins/o2k7/dialog.css
  244. BIN chunks/static/js/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png
  245. BIN chunks/static/js/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png
  246. BIN chunks/static/js/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png
  247. +218 −0 chunks/static/js/tiny_mce/themes/advanced/skins/o2k7/ui.css
  248. +8 −0 chunks/static/js/tiny_mce/themes/advanced/skins/o2k7/ui_black.css
  249. +5 −0 chunks/static/js/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css
  250. +25 −0 chunks/static/js/tiny_mce/themes/advanced/source_editor.htm
  251. +1 −0 chunks/static/js/tiny_mce/themes/simple/editor_template.js
  252. +84 −0 chunks/static/js/tiny_mce/themes/simple/editor_template_src.js
  253. BIN chunks/static/js/tiny_mce/themes/simple/img/icons.gif
  254. +1 −0 chunks/static/js/tiny_mce/themes/simple/langs/en.js
  255. +25 −0 chunks/static/js/tiny_mce/themes/simple/skins/default/content.css
  256. +32 −0 chunks/static/js/tiny_mce/themes/simple/skins/default/ui.css
  257. +17 −0 chunks/static/js/tiny_mce/themes/simple/skins/o2k7/content.css
  258. BIN chunks/static/js/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png
  259. +35 −0 chunks/static/js/tiny_mce/themes/simple/skins/o2k7/ui.css
  260. +1 −0 chunks/static/js/tiny_mce/tiny_mce.js
  261. +5 −0 chunks/static/js/tiny_mce/tiny_mce_popup.js
  262. +17,396 −0 chunks/static/js/tiny_mce/tiny_mce_src.js
  263. +70 −0 chunks/static/js/tiny_mce/utils/editable_selects.js
  264. +210 −0 chunks/static/js/tiny_mce/utils/form_utils.js
  265. +162 −0 chunks/static/js/tiny_mce/utils/mctabs.js
  266. +252 −0 chunks/static/js/tiny_mce/utils/validate.js
  267. +15 −7 chunks/templatetags/chunks.py
  268. +1 −1 chunks/urls.py
View
@@ -1,12 +1,14 @@
from django.contrib import admin
from models import Chunk
+
class ChunkAdmin(admin.ModelAdmin):
- list_display = ('key',)
+ list_display = ('key', 'lang')
search_fields = ('key', 'content')
- class Media: # based on MEDIA_URL
- js = ('js/tiny_mce/tiny_mce_src.js',
+
+ class Media:
+ js = ('js/tiny_mce/tiny_mce.js',
'js/tiny_config.js',
)
-admin.site.register(Chunk, ChunkAdmin)
+admin.site.register(Chunk, ChunkAdmin)
View
@@ -1 +1 @@
-import osfrom django.contrib.admin.views.decorators import staff_member_requiredfrom django.conf import settingsfrom django.http import HttpResponse, HttpResponseRedirectALLOWED_FORMATS = ['gif', 'jpg', 'jpeg', 'png']@staff_member_requireddef imageupload(request): """ upload images only """ for key in request.FILES.keys(): upload = request.FILES[key] # check duplicates in target folder fName = upload.name if fName[fName.rfind('.')+1:].lower() in ALLOWED_FORMATS: dstFile = os.path.join(settings.CHUNKS_UPLOAD_ROOT, fName) dest = open(dstFile, 'wb') for chunk in upload.chunks(): dest.write(chunk) dest.close() return HttpResponseRedirect(request.POST.get('from', request.META.get('HTTP_REFERER', '/'))) return HttpResponse('erreur') @staff_member_required def imagelist(request): """ liste uploaded images """ filez = [] if not os.path.isdir(settings.CHUNKS_UPLOAD_ROOT): os.makedirs(settings.CHUNKS_UPLOAD_ROOT) for file in os.listdir(settings.CHUNKS_UPLOAD_ROOT): fname = os.path.join(settings.CHUNKS_UPLOAD_ROOT, file) if os.path.isfile(fname) and file[file.rfind('.')+1:].lower() in ALLOWED_FORMATS: filez.append(file) return HttpResponse('{"images":[%s]}' % ','.join(['"%s"' % file for file in filez]), mimetype='application/json')
+import osfrom django.contrib.admin.views.decorators import staff_member_requiredfrom django.conf import settingsfrom django.http import HttpResponse, HttpResponseRedirectfrom django.utils import simplejsonfrom django.views.decorators.csrf import csrf_exemptALLOWED_FORMATS = ['gif', 'jpg', 'jpeg', 'png']@staff_member_required@csrf_exemptdef imageupload(request): """ upload images only """ for key in request.FILES.keys(): upload = request.FILES[key] # check duplicates in target folder fName = upload.name if fName[fName.rfind('.') + 1:].lower() in ALLOWED_FORMATS: if not os.path.isdir(settings.CHUNKS_UPLOAD_ROOT): os.mkdir(settings.CHUNKS_UPLOAD_ROOT) dstFile = os.path.join(settings.CHUNKS_UPLOAD_ROOT, fName) dest = open(dstFile, 'wb') for chunk in upload.chunks(): dest.write(chunk) dest.close() return HttpResponseRedirect(request.POST.get('from', request.META.get('HTTP_REFERER', '/'))) return HttpResponse('erreur')@staff_member_required@csrf_exemptdef imagelist(request): """ liste uploaded images """ filez = [] if not os.path.isdir(settings.CHUNKS_UPLOAD_ROOT): os.makedirs(settings.CHUNKS_UPLOAD_ROOT) for file in os.listdir(settings.CHUNKS_UPLOAD_ROOT): fname = os.path.join(settings.CHUNKS_UPLOAD_ROOT, file) if os.path.isfile(fname) and file[file.rfind('.') + 1:].lower() in ALLOWED_FORMATS: filez.append(file) return HttpResponse(simplejson.dumps({"images": filez}), mimetype='application/json')
View
@@ -1,14 +1,17 @@
from django.db import models
+from django.conf import settings
+
class Chunk(models.Model):
"""
A Chunk is a piece of content associated
- with a unique key that can be inserted into
+ with a key that can be inserted into
any template with the use of a special template
tag
"""
- key = models.CharField(help_text="A unique name for this chunk of content", blank=False, max_length=255, unique=True)
+ key = models.CharField(help_text="name for this chunk of content", blank=False, max_length=50)
content = models.TextField(blank=True)
+ lang = models.CharField(blank=True, null=True, max_length=10, choices=settings.LANGUAGES)
def __unicode__(self):
return u"%s" % (self.key,)

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 5fea973

Please sign in to comment.