alchemy_cms 2.0.rc3 → 2.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (219) hide show
  1. data/.gitignore +3 -1
  2. data/.rspec +1 -2
  3. data/.travis.yml +11 -0
  4. data/.yardopts +0 -1
  5. data/Gemfile +1 -2
  6. data/README.md +14 -0
  7. data/alchemy_cms.gemspec +4 -2
  8. data/app/controllers/admin/clipboard_controller.rb +8 -9
  9. data/app/controllers/admin/contents_controller.rb +4 -2
  10. data/app/controllers/admin/essence_pictures_controller.rb +2 -2
  11. data/app/controllers/admin/layoutpages_controller.rb +2 -0
  12. data/app/controllers/admin/pages_controller.rb +5 -5
  13. data/app/controllers/admin/pictures_controller.rb +2 -1
  14. data/app/controllers/admin/trash_controller.rb +2 -0
  15. data/app/controllers/alchemy_controller.rb +10 -4
  16. data/app/controllers/elements_controller.rb +1 -1
  17. data/app/helpers/admin/elements_helper.rb +32 -1
  18. data/app/helpers/alchemy_helper.rb +15 -818
  19. data/app/helpers/contents_helper.rb +69 -0
  20. data/app/helpers/elements_helper.rb +161 -0
  21. data/app/helpers/essences_helper.rb +167 -0
  22. data/app/helpers/pages_helper.rb +401 -19
  23. data/app/models/attachment.rb +4 -0
  24. data/app/models/element.rb +27 -14
  25. data/app/models/page.rb +75 -38
  26. data/app/views/admin/essence_pictures/destroy.js.erb +1 -1
  27. data/app/views/admin/pages/_create_language_form.html.erb +2 -1
  28. data/app/views/admin/pages/new.html.erb +1 -1
  29. data/app/views/admin/pages/update.js.erb +1 -1
  30. data/app/views/admin/partials/_upload_form.html.erb +2 -2
  31. data/app/views/admin/pictures/index.html.erb +7 -4
  32. data/app/views/essences/_essence_picture_editor.html.erb +1 -3
  33. data/app/views/layouts/alchemy.html.erb +59 -59
  34. data/app/views/layouts/pages.html.erb +2 -4
  35. data/app/views/{partials/_navigation_image_link.html.erb → navigation/_image_link.html.erb} +0 -0
  36. data/app/views/{partials/_navigation_link.html.erb → navigation/_link.html.erb} +1 -1
  37. data/app/views/{partials/_navigation_renderer.html.erb → navigation/_renderer.html.erb} +0 -0
  38. data/app/views/page_layouts/_contact.html.erb +1 -1
  39. data/app/views/page_layouts/_external.html.erb +0 -1
  40. data/app/views/page_layouts/_intro.html.erb +1 -1
  41. data/app/views/page_layouts/_news.html.erb +1 -1
  42. data/app/views/page_layouts/_search.html.erb +1 -1
  43. data/app/views/page_layouts/_standard.html.erb +1 -1
  44. data/assets/images/icons.png +0 -0
  45. data/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/alchemy/window.css +49 -31
  46. data/assets/stylesheets/alchemy.css +111 -91
  47. data/assets/stylesheets/elements.css +12 -16
  48. data/bin/alchemy +1 -1
  49. data/config/alchemy/config.yml +4 -0
  50. data/config/initializers/tinymce_hammer.rb +1 -0
  51. data/config/locales/de.yml +3 -1
  52. data/config/locales/en.yml +2 -0
  53. data/config/routes.rb +6 -4
  54. data/lib/alchemy/capistrano.rb +4 -7
  55. data/lib/alchemy/page_layout.rb +12 -8
  56. data/lib/alchemy/version.rb +1 -1
  57. data/spec/controllers/admin/clipboard_controller_spec.rb +23 -0
  58. data/spec/dummy/db/schema.rb +9 -9
  59. data/spec/factories.rb +24 -6
  60. data/spec/helpers/admin/elements_helper_spec.rb +20 -0
  61. data/spec/helpers/alchemy_helper_spec.rb +41 -0
  62. data/spec/helpers/contents_helper_spec.rb +27 -0
  63. data/spec/helpers/elements_helper_spec.rb +39 -0
  64. data/spec/helpers/essences_helper_spec.rb +49 -0
  65. data/spec/helpers/pages_helper_spec.rb +140 -0
  66. data/spec/integration/security_spec.rb +1 -1
  67. data/spec/integration/standardset_spec.rb +29 -0
  68. data/spec/models/element_spec.rb +49 -0
  69. data/spec/{language_spec.rb → models/language_spec.rb} +0 -0
  70. data/spec/models/page_spec.rb +139 -0
  71. data/spec/{user_spec.rb → models/user_spec.rb} +0 -0
  72. data/spec/page_layout_spec.rb +21 -0
  73. data/spec/routing_spec.rb +53 -0
  74. data/spec/spec_helper.rb +12 -11
  75. metadata +54 -303
  76. data/spec/dummy/config/alchemy/config.yml +0 -199
  77. data/spec/dummy/config/alchemy/elements.yml +0 -91
  78. data/spec/dummy/config/alchemy/page_layouts.yml +0 -29
  79. data/spec/dummy/public/images/alchemy/ajax_loader.gif +0 -0
  80. data/spec/dummy/public/images/alchemy/alchemy-logo.png +0 -0
  81. data/spec/dummy/public/images/alchemy/flags.png +0 -0
  82. data/spec/dummy/public/images/alchemy/gui/navi-tab.png +0 -0
  83. data/spec/dummy/public/images/alchemy/gui/shading.png +0 -0
  84. data/spec/dummy/public/images/alchemy/gui/shading_90.png +0 -0
  85. data/spec/dummy/public/images/alchemy/gui/toggle.png +0 -0
  86. data/spec/dummy/public/images/alchemy/icons.png +0 -0
  87. data/spec/dummy/public/images/alchemy/jquery-sb/select_arrow.gif +0 -0
  88. data/spec/dummy/public/images/alchemy/jquery-sb/select_arrow_bg.gif +0 -0
  89. data/spec/dummy/public/images/alchemy/jquery-sb/select_arrow_bg_hover.gif +0 -0
  90. data/spec/dummy/public/images/alchemy/jquery-ui/ui-icons_666666_256x240.png +0 -0
  91. data/spec/dummy/public/images/alchemy/placeholder.png +0 -0
  92. data/spec/dummy/public/images/alchemy/swfupload/browse_button.png +0 -0
  93. data/spec/dummy/public/javascripts/alchemy/alchemy.element_editor_selector.js +0 -88
  94. data/spec/dummy/public/javascripts/alchemy/alchemy.growler.js +0 -44
  95. data/spec/dummy/public/javascripts/alchemy/alchemy.image_cropper.js +0 -56
  96. data/spec/dummy/public/javascripts/alchemy/alchemy.js +0 -892
  97. data/spec/dummy/public/javascripts/alchemy/alchemy.link_overlay.js +0 -221
  98. data/spec/dummy/public/javascripts/alchemy/alchemy.page_sorter.js +0 -42
  99. data/spec/dummy/public/javascripts/alchemy/alchemy.preview.js +0 -145
  100. data/spec/dummy/public/javascripts/alchemy/jquery-ui.js +0 -428
  101. data/spec/dummy/public/javascripts/alchemy/jquery.Jcrop.min.js +0 -246
  102. data/spec/dummy/public/javascripts/alchemy/jquery.dialogextend.min.js +0 -8
  103. data/spec/dummy/public/javascripts/alchemy/jquery.in-place-edit.js +0 -171
  104. data/spec/dummy/public/javascripts/alchemy/jquery.js +0 -18
  105. data/spec/dummy/public/javascripts/alchemy/jquery.rails.js +0 -315
  106. data/spec/dummy/public/javascripts/alchemy/jquery.sb.min.js +0 -14
  107. data/spec/dummy/public/javascripts/alchemy/jquery.scrollTo-1.4.2-min.js +0 -11
  108. data/spec/dummy/public/javascripts/alchemy/jquery.ui.nestedSortable.js +0 -291
  109. data/spec/dummy/public/javascripts/alchemy/jquery.ui.tabspaging.js +0 -281
  110. data/spec/dummy/public/javascripts/alchemy/swfupload/fileprogress.js +0 -203
  111. data/spec/dummy/public/javascripts/alchemy/swfupload/handlers.js +0 -171
  112. data/spec/dummy/public/javascripts/alchemy/swfupload/queue.js +0 -98
  113. data/spec/dummy/public/javascripts/alchemy/swfupload/swfupload.js +0 -980
  114. data/spec/dummy/public/javascripts/alchemy/swfupload/swfupload.swf +0 -0
  115. data/spec/dummy/public/javascripts/alchemy/tiny_mce/jquery.tinymce.js +0 -1
  116. data/spec/dummy/public/javascripts/alchemy/tiny_mce/langs/de.js +0 -1
  117. data/spec/dummy/public/javascripts/alchemy/tiny_mce/langs/en.js +0 -223
  118. data/spec/dummy/public/javascripts/alchemy/tiny_mce/license.txt +0 -504
  119. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/alchemy_link/editor_plugin.js +0 -43
  120. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/alchemy_link/langs/de.js +0 -4
  121. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/alchemy_link/langs/en.js +0 -4
  122. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/fullscreen/editor_plugin.js +0 -1
  123. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/fullscreen/fullscreen.htm +0 -109
  124. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/inlinepopups/editor_plugin.js +0 -1
  125. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/inlinepopups/skins/alchemy/window.css +0 -402
  126. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/inlinepopups/template.htm +0 -387
  127. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/lists/editor_plugin.js +0 -1
  128. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/paste/editor_plugin.js +0 -1
  129. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/paste/js/pastetext.js +0 -36
  130. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/paste/js/pasteword.js +0 -51
  131. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/paste/langs/de_dlg.js +0 -1
  132. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/paste/langs/en_dlg.js +0 -5
  133. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/paste/pastetext.htm +0 -27
  134. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/paste/pasteword.htm +0 -21
  135. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/cell.htm +0 -180
  136. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/css/cell.css +0 -17
  137. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/css/row.css +0 -25
  138. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/css/table.css +0 -13
  139. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/editor_plugin.js +0 -1
  140. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/js/cell.js +0 -319
  141. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/js/merge_cells.js +0 -27
  142. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/js/row.js +0 -237
  143. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/js/table.js +0 -450
  144. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/langs/de_dlg.js +0 -1
  145. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/langs/en_dlg.js +0 -75
  146. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/merge_cells.htm +0 -32
  147. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/row.htm +0 -158
  148. data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/table.htm +0 -188
  149. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/about.htm +0 -52
  150. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/anchor.htm +0 -26
  151. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/charmap.htm +0 -51
  152. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/color_picker.htm +0 -74
  153. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/editor_template.js +0 -1
  154. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/image.htm +0 -80
  155. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
  156. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/img/flash.gif +0 -0
  157. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/img/icons.gif +0 -0
  158. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/img/iframe.gif +0 -0
  159. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/img/pagebreak.gif +0 -0
  160. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/img/quicktime.gif +0 -0
  161. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/img/realmedia.gif +0 -0
  162. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/img/shockwave.gif +0 -0
  163. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/img/trans.gif +0 -0
  164. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/img/video.gif +0 -0
  165. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/img/windowsmedia.gif +0 -0
  166. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/js/about.js +0 -73
  167. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/js/anchor.js +0 -42
  168. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/js/charmap.js +0 -355
  169. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/js/color_picker.js +0 -329
  170. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/js/image.js +0 -247
  171. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/js/link.js +0 -153
  172. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/js/source_editor.js +0 -56
  173. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/langs/de.js +0 -1
  174. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/langs/de_dlg.js +0 -1
  175. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/langs/en.js +0 -68
  176. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/langs/en_dlg.js +0 -54
  177. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/link.htm +0 -57
  178. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/shortcuts.htm +0 -47
  179. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/default/content.css +0 -47
  180. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/default/dialog.css +0 -117
  181. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
  182. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/default/img/items.gif +0 -0
  183. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
  184. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/default/img/menu_check.gif +0 -0
  185. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/default/img/progress.gif +0 -0
  186. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
  187. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/default/ui.css +0 -214
  188. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/highcontrast/content.css +0 -23
  189. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/highcontrast/dialog.css +0 -105
  190. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/highcontrast/ui.css +0 -102
  191. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/o2k7/content.css +0 -46
  192. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/o2k7/dialog.css +0 -117
  193. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
  194. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
  195. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
  196. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/o2k7/ui.css +0 -217
  197. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +0 -8
  198. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +0 -5
  199. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/source_editor.htm +0 -25
  200. data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/simple/langs/de.js +0 -1
  201. data/spec/dummy/public/javascripts/alchemy/tiny_mce/tiny_mce.js +0 -1
  202. data/spec/dummy/public/javascripts/alchemy/tiny_mce/tiny_mce_popup.js +0 -5
  203. data/spec/dummy/public/javascripts/alchemy/tiny_mce/utils/editable_selects.js +0 -70
  204. data/spec/dummy/public/javascripts/alchemy/tiny_mce/utils/form_utils.js +0 -210
  205. data/spec/dummy/public/javascripts/alchemy/tiny_mce/utils/mctabs.js +0 -162
  206. data/spec/dummy/public/javascripts/alchemy/tiny_mce/utils/validate.js +0 -252
  207. data/spec/dummy/public/stylesheets/alchemy/Jcrop.gif +0 -0
  208. data/spec/dummy/public/stylesheets/alchemy/alchemy.css +0 -3653
  209. data/spec/dummy/public/stylesheets/alchemy/alchemy_tinymce_content.css +0 -94
  210. data/spec/dummy/public/stylesheets/alchemy/alchemy_tinymce_dialog.css +0 -415
  211. data/spec/dummy/public/stylesheets/alchemy/default/img/tabs.gif +0 -0
  212. data/spec/dummy/public/stylesheets/alchemy/elements.css +0 -900
  213. data/spec/dummy/public/stylesheets/alchemy/flags.css +0 -1
  214. data/spec/dummy/public/stylesheets/alchemy/ie6.css +0 -18
  215. data/spec/dummy/public/stylesheets/alchemy/jquery-ui-1.8.7.alchemy.css +0 -2023
  216. data/spec/dummy/public/stylesheets/alchemy/jquery.Jcrop.css +0 -35
  217. data/spec/dummy/public/stylesheets/alchemy/jquery.sb.css +0 -244
  218. data/spec/dummy/public/stylesheets/alchemy/standard_set.css +0 -374
  219. data/spec/page_spec.rb +0 -50
@@ -1,52 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml">
3
- <head>
4
- <title>{#advanced_dlg.about_title}</title>
5
- <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
6
- <script type="text/javascript" src="../../utils/mctabs.js"></script>
7
- <script type="text/javascript" src="js/about.js"></script>
8
- </head>
9
- <body id="about" style="display: none">
10
- <div class="tabs">
11
- <ul>
12
- <li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advanced_dlg.about_general}</a></span></li>
13
- <li id="help_tab" style="display:none" aria-hidden="true" aria-controls="help_panel"><span><a href="javascript:mcTabs.displayTab('help_tab','help_panel');" onmousedown="return false;">{#advanced_dlg.about_help}</a></span></li>
14
- <li id="plugins_tab" aria-controls="plugins_panel"><span><a href="javascript:mcTabs.displayTab('plugins_tab','plugins_panel');" onmousedown="return false;">{#advanced_dlg.about_plugins}</a></span></li>
15
- </ul>
16
- </div>
17
-
18
- <div class="panel_wrapper">
19
- <div id="general_panel" class="panel current">
20
- <h3>{#advanced_dlg.about_title}</h3>
21
- <p>Version: <span id="version"></span> (<span id="date"></span>)</p>
22
- <p>TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under <a href="../../license.txt" target="_blank">LGPL</a>
23
- by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances.</p>
24
- <p>Copyright &copy; 2003-2008, <a href="http://www.moxiecode.com" target="_blank">Moxiecode Systems AB</a>, All rights reserved.</p>
25
- <p>For more information about this software visit the <a href="http://tinymce.moxiecode.com" target="_blank">TinyMCE website</a>.</p>
26
-
27
- <div id="buttoncontainer">
28
- <a href="http://www.moxiecode.com" target="_blank"><img src="http://tinymce.moxiecode.com/images/gotmoxie.png" alt="Got Moxie?" border="0" /></a>
29
- </div>
30
- </div>
31
-
32
- <div id="plugins_panel" class="panel">
33
- <div id="pluginscontainer">
34
- <h3>{#advanced_dlg.about_loaded}</h3>
35
-
36
- <div id="plugintablecontainer">
37
- </div>
38
-
39
- <p>&nbsp;</p>
40
- </div>
41
- </div>
42
-
43
- <div id="help_panel" class="panel noscroll" style="overflow: visible;">
44
- <div id="iframecontainer"></div>
45
- </div>
46
- </div>
47
-
48
- <div class="mceActionPanel">
49
- <input type="button" id="cancel" name="cancel" value="{#close}" onclick="tinyMCEPopup.close();" />
50
- </div>
51
- </body>
52
- </html>
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml">
3
- <head>
4
- <title>{#advanced_dlg.anchor_title}</title>
5
- <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
6
- <script type="text/javascript" src="js/anchor.js"></script>
7
- </head>
8
- <body style="display: none" role="application" aria-labelledby="app_title">
9
- <form onsubmit="AnchorDialog.update();return false;" action="#">
10
- <table border="0" cellpadding="4" cellspacing="0" role="presentation">
11
- <tr>
12
- <td colspan="2" class="title" id="app_title">{#advanced_dlg.anchor_title}</td>
13
- </tr>
14
- <tr>
15
- <td class="nowrap"><label for="anchorName">{#advanced_dlg.anchor_name}:</label></td>
16
- <td><input name="anchorName" type="text" class="mceFocus" id="anchorName" value="" style="width: 200px" aria-required="true" /></td>
17
- </tr>
18
- </table>
19
-
20
- <div class="mceActionPanel">
21
- <input type="submit" id="insert" name="insert" value="{#update}" />
22
- <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
23
- </div>
24
- </form>
25
- </body>
26
- </html>
@@ -1,51 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml">
3
- <head>
4
- <title>{#advanced_dlg.charmap_title}</title>
5
- <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
6
- <script type="text/javascript" src="js/charmap.js"></script>
7
- </head>
8
- <body id="charmap" style="display:none">
9
- <table align="center" border="0" cellspacing="0" cellpadding="2" role="presentation">
10
- <tr>
11
- <td colspan="2" class="title" ><label for="charmapView" id="charmap_label">{#advanced_dlg.charmap_title}</label></td>
12
- </tr>
13
- <tr>
14
- <td id="charmapView" rowspan="2" align="left" valign="top">
15
- <!-- Chars will be rendered here -->
16
- </td>
17
- <td width="100" align="center" valign="top">
18
- <table border="0" cellpadding="0" cellspacing="0" width="100" style="height:100px" role="presentation">
19
- <tr>
20
- <td id="codeV">&nbsp;</td>
21
- </tr>
22
- <tr>
23
- <td id="codeN">&nbsp;</td>
24
- </tr>
25
- </table>
26
- </td>
27
- </tr>
28
- <tr>
29
- <td valign="bottom" style="padding-bottom: 3px;">
30
- <table width="100" align="center" border="0" cellpadding="2" cellspacing="0" role="presentation">
31
- <tr>
32
- <td align="center" style="border-left: 1px solid #666699; border-top: 1px solid #666699; border-right: 1px solid #666699;"><label for="codeA">HTML-Code</label></td>
33
- </tr>
34
- <tr>
35
- <td style="font-size: 16px; font-weight: bold; border-left: 1px solid #666699; border-bottom: 1px solid #666699; border-right: 1px solid #666699;" id="codeA" align="center">&nbsp;</td>
36
- </tr>
37
- <tr>
38
- <td style="font-size: 1px;">&nbsp;</td>
39
- </tr>
40
- <tr>
41
- <td align="center" style="border-left: 1px solid #666699; border-top: 1px solid #666699; border-right: 1px solid #666699;"><label for="codeB">NUM-Code</label></td>
42
- </tr>
43
- <tr>
44
- <td style="font-size: 16px; font-weight: bold; border-left: 1px solid #666699; border-bottom: 1px solid #666699; border-right: 1px solid #666699;" id="codeB" align="center">&nbsp;</td>
45
- </tr>
46
- </table>
47
- </td>
48
- </tr>
49
- </table>
50
- </body>
51
- </html>
@@ -1,74 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml">
3
- <head>
4
- <title>{#advanced_dlg.colorpicker_title}</title>
5
- <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
6
- <script type="text/javascript" src="../../utils/mctabs.js"></script>
7
- <script type="text/javascript" src="js/color_picker.js"></script>
8
- </head>
9
- <body id="colorpicker" style="display: none" role="application" aria-labelledby="app_label">
10
- <span class="mceVoiceLabel" id="app_label" style="display:none;">{#advanced_dlg.colorpicker_title}</span>
11
- <form onsubmit="insertAction();return false" action="#">
12
- <div class="tabs">
13
- <ul>
14
- <li id="picker_tab" aria-controls="picker_panel" class="current"><span><a href="javascript:mcTabs.displayTab('picker_tab','picker_panel');" onmousedown="return false;">{#advanced_dlg.colorpicker_picker_tab}</a></span></li>
15
- <li id="rgb_tab" aria-controls="rgb_panel"><span><a href="javascript:;" onclick="mcTabs.displayTab('rgb_tab','rgb_panel');" onmousedown="return false;">{#advanced_dlg.colorpicker_palette_tab}</a></span></li>
16
- <li id="named_tab" aria-controls="named_panel"><span><a href="javascript:;" onclick="javascript:mcTabs.displayTab('named_tab','named_panel');" onmousedown="return false;">{#advanced_dlg.colorpicker_named_tab}</a></span></li>
17
- </ul>
18
- </div>
19
-
20
- <div class="panel_wrapper">
21
- <div id="picker_panel" class="panel current">
22
- <fieldset>
23
- <legend>{#advanced_dlg.colorpicker_picker_title}</legend>
24
- <div id="picker">
25
- <img id="colors" src="img/colorpicker.jpg" onclick="computeColor(event)" onmousedown="isMouseDown = true;return false;" onmouseup="isMouseDown = false;" onmousemove="if (isMouseDown && isMouseOver) computeColor(event); return false;" onmouseover="isMouseOver=true;" onmouseout="isMouseOver=false;" alt="" />
26
-
27
- <div id="light">
28
- <!-- Will be filled with divs -->
29
- </div>
30
-
31
- <br style="clear: both" />
32
- </div>
33
- </fieldset>
34
- </div>
35
-
36
- <div id="rgb_panel" class="panel">
37
- <fieldset>
38
- <legend id="webcolors_title">{#advanced_dlg.colorpicker_palette_title}</legend>
39
- <div id="webcolors">
40
- <!-- Gets filled with web safe colors-->
41
- </div>
42
-
43
- <br style="clear: both" />
44
- </fieldset>
45
- </div>
46
-
47
- <div id="named_panel" class="panel">
48
- <fieldset id="named_picker_label">
49
- <legend id="named_title">{#advanced_dlg.colorpicker_named_title}</legend>
50
- <div id="namedcolors" role="listbox" tabindex="0" aria-labelledby="named_picker_label">
51
- <!-- Gets filled with named colors-->
52
- </div>
53
-
54
- <br style="clear: both" />
55
-
56
- <div id="colornamecontainer">
57
- {#advanced_dlg.colorpicker_name} <span id="colorname"></span>
58
- </div>
59
- </fieldset>
60
- </div>
61
- </div>
62
-
63
- <div class="mceActionPanel">
64
- <input type="submit" id="insert" name="insert" value="{#apply}" />
65
-
66
- <div id="preview"></div>
67
-
68
- <div id="previewblock">
69
- <label for="color">{#advanced_dlg.colorpicker_color}</label> <input id="color" type="text" size="8" class="text mceFocus" aria-required="true" />
70
- </div>
71
- </div>
72
- </form>
73
- </body>
74
- </html>
@@ -1 +0,0 @@
1
- (function(e){var d=e.DOM,b=e.dom.Event,h=e.extend,f=e.each,a=e.util.Cookie,g,c=e.explode;e.ThemeManager.requireLangPack("advanced");e.create("tinymce.themes.AdvancedTheme",{sizes:[8,10,12,14,18,24,36],controls:{bold:["bold_desc","Bold"],italic:["italic_desc","Italic"],underline:["underline_desc","Underline"],strikethrough:["striketrough_desc","Strikethrough"],justifyleft:["justifyleft_desc","JustifyLeft"],justifycenter:["justifycenter_desc","JustifyCenter"],justifyright:["justifyright_desc","JustifyRight"],justifyfull:["justifyfull_desc","JustifyFull"],bullist:["bullist_desc","InsertUnorderedList"],numlist:["numlist_desc","InsertOrderedList"],outdent:["outdent_desc","Outdent"],indent:["indent_desc","Indent"],cut:["cut_desc","Cut"],copy:["copy_desc","Copy"],paste:["paste_desc","Paste"],undo:["undo_desc","Undo"],redo:["redo_desc","Redo"],link:["link_desc","mceLink"],unlink:["unlink_desc","unlink"],image:["image_desc","mceImage"],cleanup:["cleanup_desc","mceCleanup"],help:["help_desc","mceHelp"],code:["code_desc","mceCodeEditor"],hr:["hr_desc","InsertHorizontalRule"],removeformat:["removeformat_desc","RemoveFormat"],sub:["sub_desc","subscript"],sup:["sup_desc","superscript"],forecolor:["forecolor_desc","ForeColor"],forecolorpicker:["forecolor_desc","mceForeColor"],backcolor:["backcolor_desc","HiliteColor"],backcolorpicker:["backcolor_desc","mceBackColor"],charmap:["charmap_desc","mceCharMap"],visualaid:["visualaid_desc","mceToggleVisualAid"],anchor:["anchor_desc","mceInsertAnchor"],newdocument:["newdocument_desc","mceNewDocument"],blockquote:["blockquote_desc","mceBlockQuote"]},stateControls:["bold","italic","underline","strikethrough","bullist","numlist","justifyleft","justifycenter","justifyright","justifyfull","sub","sup","blockquote"],init:function(j,k){var l=this,m,i,n;l.editor=j;l.url=k;l.onResolveName=new e.util.Dispatcher(this);j.forcedHighContrastMode=j.settings.detect_highcontrast&&l._isHighContrast();j.settings.skin=j.forcedHighContrastMode?"highcontrast":j.settings.skin;l.settings=m=h({theme_advanced_path:true,theme_advanced_toolbar_location:"bottom",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect",theme_advanced_buttons2:"bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code",theme_advanced_buttons3:"hr,removeformat,visualaid,|,sub,sup,|,charmap",theme_advanced_blockformats:"p,address,pre,h1,h2,h3,h4,h5,h6",theme_advanced_toolbar_align:"center",theme_advanced_fonts:"Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",theme_advanced_more_colors:1,theme_advanced_row_height:23,theme_advanced_resize_horizontal:1,theme_advanced_resizing_use_cookie:1,theme_advanced_font_sizes:"1,2,3,4,5,6,7",theme_advanced_font_selector:"span",theme_advanced_show_current_color:0,readonly:j.settings.readonly},j.settings);if(!m.font_size_style_values){m.font_size_style_values="8pt,10pt,12pt,14pt,18pt,24pt,36pt"}if(e.is(m.theme_advanced_font_sizes,"string")){m.font_size_style_values=e.explode(m.font_size_style_values);m.font_size_classes=e.explode(m.font_size_classes||"");n={};j.settings.theme_advanced_font_sizes=m.theme_advanced_font_sizes;f(j.getParam("theme_advanced_font_sizes","","hash"),function(q,p){var o;if(p==q&&q>=1&&q<=7){p=q+" ("+l.sizes[q-1]+"pt)";o=m.font_size_classes[q-1];q=m.font_size_style_values[q-1]||(l.sizes[q-1]+"pt")}if(/^\s*\./.test(q)){o=q.replace(/\./g,"")}n[p]=o?{"class":o}:{fontSize:q}});m.theme_advanced_font_sizes=n}if((i=m.theme_advanced_path_location)&&i!="none"){m.theme_advanced_statusbar_location=m.theme_advanced_path_location}if(m.theme_advanced_statusbar_location=="none"){m.theme_advanced_statusbar_location=0}if(j.settings.content_css!==false){j.contentCSS.push(j.baseURI.toAbsolute(k+"/skins/"+j.settings.skin+"/content.css"))}j.onInit.add(function(){if(!j.settings.readonly){j.onNodeChange.add(l._nodeChanged,l);j.onKeyUp.add(l._updateUndoStatus,l);j.onMouseUp.add(l._updateUndoStatus,l);j.dom.bind(j.dom.getRoot(),"dragend",function(){l._updateUndoStatus(j)})}});j.onSetProgressState.add(function(q,o,r){var s,t=q.id,p;if(o){l.progressTimer=setTimeout(function(){s=q.getContainer();s=s.insertBefore(d.create("DIV",{style:"position:relative"}),s.firstChild);p=d.get(q.id+"_tbl");d.add(s,"div",{id:t+"_blocker","class":"mceBlocker",style:{width:p.clientWidth+2,height:p.clientHeight+2}});d.add(s,"div",{id:t+"_progress","class":"mceProgress",style:{left:p.clientWidth/2,top:p.clientHeight/2}})},r||0)}else{d.remove(t+"_blocker");d.remove(t+"_progress");clearTimeout(l.progressTimer)}});d.loadCSS(m.editor_css?j.documentBaseURI.toAbsolute(m.editor_css):k+"/skins/"+j.settings.skin+"/ui.css");if(m.skin_variant){d.loadCSS(k+"/skins/"+j.settings.skin+"/ui_"+m.skin_variant+".css")}},_isHighContrast:function(){var i,j=d.add(d.getRoot(),"div",{style:"background-color: rgb(171,239,86);"});i=(d.getStyle(j,"background-color",true)+"").toLowerCase().replace(/ /g,"");d.remove(j);return i!="rgb(171,239,86)"&&i!="#abef56"},createControl:function(l,i){var j,k;if(k=i.createControl(l)){return k}switch(l){case"styleselect":return this._createStyleSelect();case"formatselect":return this._createBlockFormats();case"fontselect":return this._createFontSelect();case"fontsizeselect":return this._createFontSizeSelect();case"forecolor":return this._createForeColorMenu();case"backcolor":return this._createBackColorMenu()}if((j=this.controls[l])){return i.createButton(l,{title:"advanced."+j[0],cmd:j[1],ui:j[2],value:j[3]})}},execCommand:function(k,j,l){var i=this["_"+k];if(i){i.call(this,j,l);return true}return false},_importClasses:function(k){var i=this.editor,j=i.controlManager.get("styleselect");if(j.getLength()==0){f(i.dom.getClasses(),function(n,l){var m="style_"+l;i.formatter.register(m,{inline:"span",attributes:{"class":n["class"]},selector:"*"});j.add(n["class"],m)})}},_createStyleSelect:function(m){var k=this,i=k.editor,j=i.controlManager,l;l=j.createListBox("styleselect",{title:"advanced.style_select",onselect:function(o){var p,n=[];f(l.items,function(q){n.push(q.value)});i.focus();i.undoManager.add();p=i.formatter.matchAll(n);if(!o||p[0]==o){if(p[0]){i.formatter.remove(p[0])}}else{i.formatter.apply(o)}i.undoManager.add();i.nodeChanged();return false}});i.onInit.add(function(){var o=0,n=i.getParam("style_formats");if(n){f(n,function(p){var q,r=0;f(p,function(){r++});if(r>1){q=p.name=p.name||"style_"+(o++);i.formatter.register(q,p);l.add(p.title,q)}else{l.add(p.title)}})}else{f(i.getParam("theme_advanced_styles","","hash"),function(r,q){var p;if(r){p="style_"+(o++);i.formatter.register(p,{inline:"span",classes:r,selector:"*"});l.add(k.editor.translate(q),p)}})}});if(l.getLength()==0){l.onPostRender.add(function(o,p){if(!l.NativeListBox){b.add(p.id+"_text","focus",k._importClasses,k);b.add(p.id+"_text","mousedown",k._importClasses,k);b.add(p.id+"_open","focus",k._importClasses,k);b.add(p.id+"_open","mousedown",k._importClasses,k)}else{b.add(p.id,"focus",k._importClasses,k)}})}return l},_createFontSelect:function(){var k,j=this,i=j.editor;k=i.controlManager.createListBox("fontselect",{title:"advanced.fontdefault",onselect:function(l){var m=k.items[k.selectedIndex];if(!l&&m){i.execCommand("FontName",false,m.value);return}i.execCommand("FontName",false,l);k.select(function(n){return l==n});if(m&&m.value==l){k.select(null)}return false}});if(k){f(i.getParam("theme_advanced_fonts",j.settings.theme_advanced_fonts,"hash"),function(m,l){k.add(i.translate(l),m,{style:m.indexOf("dings")==-1?"font-family:"+m:""})})}return k},_createFontSizeSelect:function(){var m=this,k=m.editor,n,l=0,j=[];n=k.controlManager.createListBox("fontsizeselect",{title:"advanced.font_size",onselect:function(i){var o=n.items[n.selectedIndex];if(!i&&o){o=o.value;if(o["class"]){k.formatter.toggle("fontsize_class",{value:o["class"]});k.undoManager.add();k.nodeChanged()}else{k.execCommand("FontSize",false,o.fontSize)}return}if(i["class"]){k.focus();k.undoManager.add();k.formatter.toggle("fontsize_class",{value:i["class"]});k.undoManager.add();k.nodeChanged()}else{k.execCommand("FontSize",false,i.fontSize)}n.select(function(p){return i==p});if(o&&(o.value.fontSize==i.fontSize||o.value["class"]==i["class"])){n.select(null)}return false}});if(n){f(m.settings.theme_advanced_font_sizes,function(o,i){var p=o.fontSize;if(p>=1&&p<=7){p=m.sizes[parseInt(p)-1]+"pt"}n.add(i,o,{style:"font-size:"+p,"class":"mceFontSize"+(l++)+(" "+(o["class"]||""))})})}return n},_createBlockFormats:function(){var k,i={p:"advanced.paragraph",address:"advanced.address",pre:"advanced.pre",h1:"advanced.h1",h2:"advanced.h2",h3:"advanced.h3",h4:"advanced.h4",h5:"advanced.h5",h6:"advanced.h6",div:"advanced.div",blockquote:"advanced.blockquote",code:"advanced.code",dt:"advanced.dt",dd:"advanced.dd",samp:"advanced.samp"},j=this;k=j.editor.controlManager.createListBox("formatselect",{title:"advanced.block",onselect:function(l){j.editor.execCommand("FormatBlock",false,l);return false}});if(k){f(j.editor.getParam("theme_advanced_blockformats",j.settings.theme_advanced_blockformats,"hash"),function(m,l){k.add(j.editor.translate(l!=m?l:i[m]),m,{"class":"mce_formatPreview mce_"+m})})}return k},_createForeColorMenu:function(){var m,j=this,k=j.settings,l={},i;if(k.theme_advanced_more_colors){l.more_colors_func=function(){j._mceColorPicker(0,{color:m.value,func:function(n){m.setColor(n)}})}}if(i=k.theme_advanced_text_colors){l.colors=i}if(k.theme_advanced_default_foreground_color){l.default_color=k.theme_advanced_default_foreground_color}l.title="advanced.forecolor_desc";l.cmd="ForeColor";l.scope=this;m=j.editor.controlManager.createColorSplitButton("forecolor",l);return m},_createBackColorMenu:function(){var m,j=this,k=j.settings,l={},i;if(k.theme_advanced_more_colors){l.more_colors_func=function(){j._mceColorPicker(0,{color:m.value,func:function(n){m.setColor(n)}})}}if(i=k.theme_advanced_background_colors){l.colors=i}if(k.theme_advanced_default_background_color){l.default_color=k.theme_advanced_default_background_color}l.title="advanced.backcolor_desc";l.cmd="HiliteColor";l.scope=this;m=j.editor.controlManager.createColorSplitButton("backcolor",l);return m},renderUI:function(k){var m,l,q,v=this,r=v.editor,w=v.settings,u,j,i;if(r.settings){r.settings.aria_label=w.aria_label+r.getLang("advanced.help_shortcut")}m=j=d.create("span",{role:"application","aria-labelledby":r.id+"_voice",id:r.id+"_parent","class":"mceEditor "+r.settings.skin+"Skin"+(w.skin_variant?" "+r.settings.skin+"Skin"+v._ufirst(w.skin_variant):"")});d.add(m,"span",{"class":"mceVoiceLabel",style:"display:none;",id:r.id+"_voice"},w.aria_label);if(!d.boxModel){m=d.add(m,"div",{"class":"mceOldBoxModel"})}m=u=d.add(m,"table",{role:"presentation",id:r.id+"_tbl","class":"mceLayout",cellSpacing:0,cellPadding:0});m=q=d.add(m,"tbody");switch((w.theme_advanced_layout_manager||"").toLowerCase()){case"rowlayout":l=v._rowLayout(w,q,k);break;case"customlayout":l=r.execCallback("theme_advanced_custom_layout",w,q,k,j);break;default:l=v._simpleLayout(w,q,k,j)}m=k.targetNode;i=u.rows;d.addClass(i[0],"mceFirst");d.addClass(i[i.length-1],"mceLast");f(d.select("tr",q),function(o){d.addClass(o.firstChild,"mceFirst");d.addClass(o.childNodes[o.childNodes.length-1],"mceLast")});if(d.get(w.theme_advanced_toolbar_container)){d.get(w.theme_advanced_toolbar_container).appendChild(j)}else{d.insertAfter(j,m)}b.add(r.id+"_path_row","click",function(n){n=n.target;if(n.nodeName=="A"){v._sel(n.className.replace(/^.*mcePath_([0-9]+).*$/,"$1"));return b.cancel(n)}});if(!r.getParam("accessibility_focus")){b.add(d.add(j,"a",{href:"#"},"<!-- IE -->"),"focus",function(){tinyMCE.get(r.id).focus()})}if(w.theme_advanced_toolbar_location=="external"){k.deltaHeight=0}v.deltaHeight=k.deltaHeight;k.targetNode=null;r.onKeyDown.add(function(p,n){var s=121,o=122;if(n.altKey){if(n.keyCode===s){window.focus();v.toolbarGroup.focus();return b.cancel(n)}else{if(n.keyCode===o){d.get(p.id+"_path_row").focus();return b.cancel(n)}}}});r.addShortcut("alt+0","","mceShortcuts",v);return{iframeContainer:l,editorContainer:r.id+"_parent",sizeContainer:u,deltaHeight:k.deltaHeight}},getInfo:function(){return{longname:"Advanced theme",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",version:e.majorVersion+"."+e.minorVersion}},resizeBy:function(i,j){var k=d.get(this.editor.id+"_ifr");this.resizeTo(k.clientWidth+i,k.clientHeight+j)},resizeTo:function(i,m,k){var j=this.editor,l=this.settings,n=d.get(j.id+"_tbl"),o=d.get(j.id+"_ifr");i=Math.max(l.theme_advanced_resizing_min_width||100,i);m=Math.max(l.theme_advanced_resizing_min_height||100,m);i=Math.min(l.theme_advanced_resizing_max_width||65535,i);m=Math.min(l.theme_advanced_resizing_max_height||65535,m);d.setStyle(n,"height","");d.setStyle(o,"height",m);if(l.theme_advanced_resize_horizontal){d.setStyle(n,"width","");d.setStyle(o,"width",i);if(i<n.clientWidth){i=n.clientWidth;d.setStyle(o,"width",n.clientWidth)}}if(k&&l.theme_advanced_resizing_use_cookie){a.setHash("TinyMCE_"+j.id+"_size",{cw:i,ch:m})}},destroy:function(){var i=this.editor.id;b.clear(i+"_resize");b.clear(i+"_path_row");b.clear(i+"_external_close")},_simpleLayout:function(y,r,k,i){var x=this,u=x.editor,v=y.theme_advanced_toolbar_location,m=y.theme_advanced_statusbar_location,l,j,q,w;if(y.readonly){l=d.add(r,"tr");l=j=d.add(l,"td",{"class":"mceIframeContainer"});return j}if(v=="top"){x._addToolbars(r,k)}if(v=="external"){l=w=d.create("div",{style:"position:relative"});l=d.add(l,"div",{id:u.id+"_external","class":"mceExternalToolbar"});d.add(l,"a",{id:u.id+"_external_close",href:"javascript:;","class":"mceExternalClose"});l=d.add(l,"table",{id:u.id+"_tblext",cellSpacing:0,cellPadding:0});q=d.add(l,"tbody");if(i.firstChild.className=="mceOldBoxModel"){i.firstChild.appendChild(w)}else{i.insertBefore(w,i.firstChild)}x._addToolbars(q,k);u.onMouseUp.add(function(){var o=d.get(u.id+"_external");d.show(o);d.hide(g);var n=b.add(u.id+"_external_close","click",function(){d.hide(u.id+"_external");b.remove(u.id+"_external_close","click",n)});d.show(o);d.setStyle(o,"top",0-d.getRect(u.id+"_tblext").h-1);d.hide(o);d.show(o);o.style.filter="";g=u.id+"_external";o=null})}if(m=="top"){x._addStatusBar(r,k)}if(!y.theme_advanced_toolbar_container){l=d.add(r,"tr");l=j=d.add(l,"td",{"class":"mceIframeContainer"})}if(v=="bottom"){x._addToolbars(r,k)}if(m=="bottom"){x._addStatusBar(r,k)}return j},_rowLayout:function(w,m,k){var v=this,p=v.editor,u,x,i=p.controlManager,l,j,r,q;u=w.theme_advanced_containers_default_class||"";x=w.theme_advanced_containers_default_align||"center";f(c(w.theme_advanced_containers||""),function(s,o){var n=w["theme_advanced_container_"+s]||"";switch(s.toLowerCase()){case"mceeditor":l=d.add(m,"tr");l=j=d.add(l,"td",{"class":"mceIframeContainer"});break;case"mceelementpath":v._addStatusBar(m,k);break;default:q=(w["theme_advanced_container_"+s+"_align"]||x).toLowerCase();q="mce"+v._ufirst(q);l=d.add(d.add(m,"tr"),"td",{"class":"mceToolbar "+(w["theme_advanced_container_"+s+"_class"]||u)+" "+q||x});r=i.createToolbar("toolbar"+o);v._addControls(n,r);d.setHTML(l,r.renderHTML());k.deltaHeight-=w.theme_advanced_row_height}});return j},_addControls:function(j,i){var k=this,l=k.settings,m,n=k.editor.controlManager;if(l.theme_advanced_disable&&!k._disabled){m={};f(c(l.theme_advanced_disable),function(o){m[o]=1});k._disabled=m}else{m=k._disabled}f(c(j),function(p){var o;if(m&&m[p]){return}if(p=="tablecontrols"){f(["table","|","row_props","cell_props","|","row_before","row_after","delete_row","|","col_before","col_after","delete_col","|","split_cells","merge_cells"],function(q){q=k.createControl(q,n);if(q){i.add(q)}});return}o=k.createControl(p,n);if(o){i.add(o)}})},_addToolbars:function(x,k){var A=this,p,m,r=A.editor,B=A.settings,z,j=r.controlManager,u,l,q=[],y,w;w=j.createToolbarGroup("toolbargroup",{name:r.getLang("advanced.toolbar"),tab_focus_toolbar:r.getParam("theme_advanced_tab_focus_toolbar")});A.toolbarGroup=w;y=B.theme_advanced_toolbar_align.toLowerCase();y="mce"+A._ufirst(y);l=d.add(d.add(x,"tr",{role:"presentation"}),"td",{"class":"mceToolbar "+y,role:"presentation"});for(p=1;(z=B["theme_advanced_buttons"+p]);p++){m=j.createToolbar("toolbar"+p,{"class":"mceToolbarRow"+p});if(B["theme_advanced_buttons"+p+"_add"]){z+=","+B["theme_advanced_buttons"+p+"_add"]}if(B["theme_advanced_buttons"+p+"_add_before"]){z=B["theme_advanced_buttons"+p+"_add_before"]+","+z}A._addControls(z,m);w.add(m);k.deltaHeight-=B.theme_advanced_row_height}q.push(w.renderHTML());q.push(d.createHTML("a",{href:"#",accesskey:"z",title:r.getLang("advanced.toolbar_focus"),onfocus:"tinyMCE.getInstanceById('"+r.id+"').focus();"},"<!-- IE -->"));d.setHTML(l,q.join(""))},_addStatusBar:function(m,j){var k,v=this,p=v.editor,w=v.settings,i,q,u,l;k=d.add(m,"tr");k=l=d.add(k,"td",{"class":"mceStatusbar"});k=d.add(k,"div",{id:p.id+"_path_row",role:"group","aria-labelledby":p.id+"_path_voice"});if(w.theme_advanced_path){d.add(k,"span",{id:p.id+"_path_voice"},p.translate("advanced.path"));d.add(k,"span",{},": ")}else{d.add(k,"span",{},"&#160;")}if(w.theme_advanced_resizing){d.add(l,"a",{id:p.id+"_resize",href:"javascript:;",onclick:"return false;","class":"mceResize"});if(w.theme_advanced_resizing_use_cookie){p.onPostRender.add(function(){var n=a.getHash("TinyMCE_"+p.id+"_size"),r=d.get(p.id+"_tbl");if(!n){return}v.resizeTo(n.cw,n.ch)})}p.onPostRender.add(function(){b.add(p.id+"_resize","click",function(n){n.preventDefault()});b.add(p.id+"_resize","mousedown",function(D){var t,r,s,o,C,z,A,F,n,E,x;function y(G){G.preventDefault();n=A+(G.screenX-C);E=F+(G.screenY-z);v.resizeTo(n,E)}function B(G){b.remove(d.doc,"mousemove",t);b.remove(p.getDoc(),"mousemove",r);b.remove(d.doc,"mouseup",s);b.remove(p.getDoc(),"mouseup",o);n=A+(G.screenX-C);E=F+(G.screenY-z);v.resizeTo(n,E,true)}D.preventDefault();C=D.screenX;z=D.screenY;x=d.get(v.editor.id+"_ifr");A=n=x.clientWidth;F=E=x.clientHeight;t=b.add(d.doc,"mousemove",y);r=b.add(p.getDoc(),"mousemove",y);s=b.add(d.doc,"mouseup",B);o=b.add(p.getDoc(),"mouseup",B)})})}j.deltaHeight-=21;k=m=null},_updateUndoStatus:function(j){var i=j.controlManager,k=j.undoManager;i.setDisabled("undo",!k.hasUndo()&&!k.typing);i.setDisabled("redo",!k.hasRedo())},_nodeChanged:function(m,r,D,q,E){var y=this,C,F=0,x,G,z=y.settings,w,k,u,B,l,j,i;e.each(y.stateControls,function(n){r.setActive(n,m.queryCommandState(y.controls[n][1]))});function o(p){var s,n=E.parents,t=p;if(typeof(p)=="string"){t=function(v){return v.nodeName==p}}for(s=0;s<n.length;s++){if(t(n[s])){return n[s]}}}r.setActive("visualaid",m.hasVisual);y._updateUndoStatus(m);r.setDisabled("outdent",!m.queryCommandState("Outdent"));C=o("A");if(G=r.get("link")){if(!C||!C.name){G.setDisabled(!C&&q);G.setActive(!!C)}}if(G=r.get("unlink")){G.setDisabled(!C&&q);G.setActive(!!C&&!C.name)}if(G=r.get("anchor")){G.setActive(!q&&!!C&&C.name)}C=o("IMG");if(G=r.get("image")){G.setActive(!q&&!!C&&D.className.indexOf("mceItem")==-1)}if(G=r.get("styleselect")){y._importClasses();j=[];f(G.items,function(n){j.push(n.value)});i=m.formatter.matchAll(j);G.select(i[0])}if(G=r.get("formatselect")){C=o(d.isBlock);if(C){G.select(C.nodeName.toLowerCase())}}o(function(p){if(p.nodeName==="SPAN"){if(!w&&p.className){w=p.className}}if(m.dom.is(p,z.theme_advanced_font_selector)){if(!k&&p.style.fontSize){k=p.style.fontSize}if(!u&&p.style.fontFamily){u=p.style.fontFamily.replace(/[\"\']+/g,"").replace(/^([^,]+).*/,"$1").toLowerCase()}if(!B&&p.style.color){B=p.style.color}if(!l&&p.style.backgroundColor){l=p.style.backgroundColor}}return false});if(G=r.get("fontselect")){G.select(function(n){return n.replace(/^([^,]+).*/,"$1").toLowerCase()==u})}if(G=r.get("fontsizeselect")){if(z.theme_advanced_runtime_fontsize&&!k&&!w){k=m.dom.getStyle(D,"fontSize",true)}G.select(function(n){if(n.fontSize&&n.fontSize===k){return true}if(n["class"]&&n["class"]===w){return true}})}if(z.theme_advanced_show_current_color){function A(p,n){if(G=r.get(p)){if(!n){n=G.settings.default_color}if(n!==G.value){G.displayColor(n)}}}A("forecolor",B);A("backcolor",l)}if(z.theme_advanced_show_current_color){function A(p,n){if(G=r.get(p)){if(!n){n=G.settings.default_color}if(n!==G.value){G.displayColor(n)}}}A("forecolor",B);A("backcolor",l)}if(z.theme_advanced_path&&z.theme_advanced_statusbar_location){C=d.get(m.id+"_path")||d.add(m.id+"_path_row","span",{id:m.id+"_path"});if(y.statusKeyboardNavigation){y.statusKeyboardNavigation.destroy();y.statusKeyboardNavigation=null}d.setHTML(C,"");o(function(H){var p=H.nodeName.toLowerCase(),s,v,t="";if(H.nodeType!=1||p==="br"||H.getAttribute("data-mce-bogus")||d.hasClass(H,"mceItemHidden")||d.hasClass(H,"mceItemRemoved")){return}if(e.isIE&&H.scopeName!=="HTML"){p=H.scopeName+":"+p}p=p.replace(/mce\:/g,"");switch(p){case"b":p="strong";break;case"i":p="em";break;case"img":if(x=d.getAttrib(H,"src")){t+="src: "+x+" "}break;case"a":if(x=d.getAttrib(H,"name")){t+="name: "+x+" ";p+="#"+x}if(x=d.getAttrib(H,"href")){t+="href: "+x+" "}break;case"font":if(x=d.getAttrib(H,"face")){t+="font: "+x+" "}if(x=d.getAttrib(H,"size")){t+="size: "+x+" "}if(x=d.getAttrib(H,"color")){t+="color: "+x+" "}break;case"span":if(x=d.getAttrib(H,"style")){t+="style: "+x+" "}break}if(x=d.getAttrib(H,"id")){t+="id: "+x+" "}if(x=H.className){x=x.replace(/\b\s*(webkit|mce|Apple-)\w+\s*\b/g,"");if(x){t+="class: "+x+" ";if(d.isBlock(H)||p=="img"||p=="span"){p+="."+x}}}p=p.replace(/(html:)/g,"");p={name:p,node:H,title:t};y.onResolveName.dispatch(y,p);t=p.title;p=p.name;v=d.create("a",{href:"javascript:;",role:"button",onmousedown:"return false;",title:t,"class":"mcePath_"+(F++)},p);if(C.hasChildNodes()){C.insertBefore(d.create("span",{"aria-hidden":"true"},"\u00a0\u00bb "),C.firstChild);C.insertBefore(v,C.firstChild)}else{C.appendChild(v)}},m.getBody());if(d.select("a",C).length>0){y.statusKeyboardNavigation=new e.ui.KeyboardNavigation({root:m.id+"_path_row",items:d.select("a",C),excludeFromTabOrder:true,onCancel:function(){m.focus()}},d)}}},_sel:function(i){this.editor.execCommand("mceSelectNodeDepth",false,i)},_mceInsertAnchor:function(k,j){var i=this.editor;i.windowManager.open({url:this.url+"/anchor.htm",width:320+parseInt(i.getLang("advanced.anchor_delta_width",0)),height:90+parseInt(i.getLang("advanced.anchor_delta_height",0)),inline:true},{theme_url:this.url})},_mceCharMap:function(){var i=this.editor;i.windowManager.open({url:this.url+"/charmap.htm",width:550+parseInt(i.getLang("advanced.charmap_delta_width",0)),height:250+parseInt(i.getLang("advanced.charmap_delta_height",0)),inline:true},{theme_url:this.url})},_mceHelp:function(){var i=this.editor;i.windowManager.open({url:this.url+"/about.htm",width:480,height:380,inline:true},{theme_url:this.url})},_mceShortcuts:function(){var i=this.editor;i.windowManager.open({url:this.url+"/shortcuts.htm",width:480,height:380,inline:true},{theme_url:this.url})},_mceColorPicker:function(k,j){var i=this.editor;j=j||{};i.windowManager.open({url:this.url+"/color_picker.htm",width:375+parseInt(i.getLang("advanced.colorpicker_delta_width",0)),height:250+parseInt(i.getLang("advanced.colorpicker_delta_height",0)),close_previous:false,inline:true},{input_color:j.color,func:j.func,theme_url:this.url})},_mceCodeEditor:function(j,k){var i=this.editor;i.windowManager.open({url:this.url+"/source_editor.htm",width:parseInt(i.getParam("theme_advanced_source_editor_width",720)),height:parseInt(i.getParam("theme_advanced_source_editor_height",580)),inline:true,resizable:true,maximizable:true},{theme_url:this.url})},_mceImage:function(j,k){var i=this.editor;if(i.dom.getAttrib(i.selection.getNode(),"class").indexOf("mceItem")!=-1){return}i.windowManager.open({url:this.url+"/image.htm",width:355+parseInt(i.getLang("advanced.image_delta_width",0)),height:275+parseInt(i.getLang("advanced.image_delta_height",0)),inline:true},{theme_url:this.url})},_mceLink:function(j,k){var i=this.editor;i.windowManager.open({url:this.url+"/link.htm",width:310+parseInt(i.getLang("advanced.link_delta_width",0)),height:200+parseInt(i.getLang("advanced.link_delta_height",0)),inline:true},{theme_url:this.url})},_mceNewDocument:function(){var i=this.editor;i.windowManager.confirm("advanced.newdocument",function(j){if(j){i.execCommand("mceSetContent",false,"")}})},_mceForeColor:function(){var i=this;this._mceColorPicker(0,{color:i.fgColor,func:function(j){i.fgColor=j;i.editor.execCommand("ForeColor",false,j)}})},_mceBackColor:function(){var i=this;this._mceColorPicker(0,{color:i.bgColor,func:function(j){i.bgColor=j;i.editor.execCommand("HiliteColor",false,j)}})},_ufirst:function(i){return i.substring(0,1).toUpperCase()+i.substring(1)}});e.ThemeManager.add("advanced",e.themes.AdvancedTheme)}(tinymce));
@@ -1,80 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml">
3
- <head>
4
- <title>{#advanced_dlg.image_title}</title>
5
- <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
6
- <script type="text/javascript" src="../../utils/mctabs.js"></script>
7
- <script type="text/javascript" src="../../utils/form_utils.js"></script>
8
- <script type="text/javascript" src="js/image.js"></script>
9
- </head>
10
- <body id="image" style="display: none">
11
- <form onsubmit="ImageDialog.update();return false;" action="#">
12
- <div class="tabs">
13
- <ul>
14
- <li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advanced_dlg.image_title}</a></span></li>
15
- </ul>
16
- </div>
17
-
18
- <div class="panel_wrapper">
19
- <div id="general_panel" class="panel current">
20
- <table border="0" cellpadding="4" cellspacing="0">
21
- <tr>
22
- <td class="nowrap"><label for="src">{#advanced_dlg.image_src}</label></td>
23
- <td><table border="0" cellspacing="0" cellpadding="0">
24
- <tr>
25
- <td><input id="src" name="src" type="text" class="mceFocus" value="" style="width: 200px" onchange="ImageDialog.getImageData();" /></td>
26
- <td id="srcbrowsercontainer">&nbsp;</td>
27
- </tr>
28
- </table></td>
29
- </tr>
30
- <tr>
31
- <td><label for="image_list">{#advanced_dlg.image_list}</label></td>
32
- <td><select id="image_list" name="image_list" onchange="document.getElementById('src').value=this.options[this.selectedIndex].value;document.getElementById('alt').value=this.options[this.selectedIndex].text;"></select></td>
33
- </tr>
34
- <tr>
35
- <td class="nowrap"><label for="alt">{#advanced_dlg.image_alt}</label></td>
36
- <td><input id="alt" name="alt" type="text" value="" style="width: 200px" /></td>
37
- </tr>
38
- <tr>
39
- <td class="nowrap"><label for="align">{#advanced_dlg.image_align}</label></td>
40
- <td><select id="align" name="align" onchange="ImageDialog.updateStyle();">
41
- <option value="">{#not_set}</option>
42
- <option value="baseline">{#advanced_dlg.image_align_baseline}</option>
43
- <option value="top">{#advanced_dlg.image_align_top}</option>
44
- <option value="middle">{#advanced_dlg.image_align_middle}</option>
45
- <option value="bottom">{#advanced_dlg.image_align_bottom}</option>
46
- <option value="text-top">{#advanced_dlg.image_align_texttop}</option>
47
- <option value="text-bottom">{#advanced_dlg.image_align_textbottom}</option>
48
- <option value="left">{#advanced_dlg.image_align_left}</option>
49
- <option value="right">{#advanced_dlg.image_align_right}</option>
50
- </select></td>
51
- </tr>
52
- <tr>
53
- <td class="nowrap"><label for="width">{#advanced_dlg.image_dimensions}</label></td>
54
- <td><input id="width" name="width" type="text" value="" size="3" maxlength="5" />
55
- x
56
- <input id="height" name="height" type="text" value="" size="3" maxlength="5" /></td>
57
- </tr>
58
- <tr>
59
- <td class="nowrap"><label for="border">{#advanced_dlg.image_border}</label></td>
60
- <td><input id="border" name="border" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
61
- </tr>
62
- <tr>
63
- <td class="nowrap"><label for="vspace">{#advanced_dlg.image_vspace}</label></td>
64
- <td><input id="vspace" name="vspace" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
65
- </tr>
66
- <tr>
67
- <td class="nowrap"><label for="hspace">{#advanced_dlg.image_hspace}</label></td>
68
- <td><input id="hspace" name="hspace" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
69
- </tr>
70
- </table>
71
- </div>
72
- </div>
73
-
74
- <div class="mceActionPanel">
75
- <input type="submit" id="insert" name="insert" value="{#insert}" />
76
- <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
77
- </div>
78
- </form>
79
- </body>
80
- </html>
@@ -1,73 +0,0 @@
1
- tinyMCEPopup.requireLangPack();
2
-
3
- function init() {
4
- var ed, tcont;
5
-
6
- tinyMCEPopup.resizeToInnerSize();
7
- ed = tinyMCEPopup.editor;
8
-
9
- // Give FF some time
10
- window.setTimeout(insertHelpIFrame, 10);
11
-
12
- tcont = document.getElementById('plugintablecontainer');
13
- document.getElementById('plugins_tab').style.display = 'none';
14
-
15
- var html = "";
16
- html += '<table id="plugintable">';
17
- html += '<thead>';
18
- html += '<tr>';
19
- html += '<td>' + ed.getLang('advanced_dlg.about_plugin') + '</td>';
20
- html += '<td>' + ed.getLang('advanced_dlg.about_author') + '</td>';
21
- html += '<td>' + ed.getLang('advanced_dlg.about_version') + '</td>';
22
- html += '</tr>';
23
- html += '</thead>';
24
- html += '<tbody>';
25
-
26
- tinymce.each(ed.plugins, function(p, n) {
27
- var info;
28
-
29
- if (!p.getInfo)
30
- return;
31
-
32
- html += '<tr>';
33
-
34
- info = p.getInfo();
35
-
36
- if (info.infourl != null && info.infourl != '')
37
- html += '<td width="50%" title="' + n + '"><a href="' + info.infourl + '" target="_blank">' + info.longname + '</a></td>';
38
- else
39
- html += '<td width="50%" title="' + n + '">' + info.longname + '</td>';
40
-
41
- if (info.authorurl != null && info.authorurl != '')
42
- html += '<td width="35%"><a href="' + info.authorurl + '" target="_blank">' + info.author + '</a></td>';
43
- else
44
- html += '<td width="35%">' + info.author + '</td>';
45
-
46
- html += '<td width="15%">' + info.version + '</td>';
47
- html += '</tr>';
48
-
49
- document.getElementById('plugins_tab').style.display = '';
50
-
51
- });
52
-
53
- html += '</tbody>';
54
- html += '</table>';
55
-
56
- tcont.innerHTML = html;
57
-
58
- tinyMCEPopup.dom.get('version').innerHTML = tinymce.majorVersion + "." + tinymce.minorVersion;
59
- tinyMCEPopup.dom.get('date').innerHTML = tinymce.releaseDate;
60
- }
61
-
62
- function insertHelpIFrame() {
63
- var html;
64
-
65
- if (tinyMCEPopup.getParam('docs_url')) {
66
- html = '<iframe width="100%" height="300" src="' + tinyMCEPopup.editor.baseURI.toAbsolute(tinyMCEPopup.getParam('docs_url')) + '"></iframe>';
67
- document.getElementById('iframecontainer').innerHTML = html;
68
- document.getElementById('help_tab').style.display = 'block';
69
- document.getElementById('help_tab').setAttribute("aria-hidden", "false");
70
- }
71
- }
72
-
73
- tinyMCEPopup.onInit.add(init);
@@ -1,42 +0,0 @@
1
- tinyMCEPopup.requireLangPack();
2
-
3
- var AnchorDialog = {
4
- init : function(ed) {
5
- var action, elm, f = document.forms[0];
6
-
7
- this.editor = ed;
8
- elm = ed.dom.getParent(ed.selection.getNode(), 'A');
9
- v = ed.dom.getAttrib(elm, 'name');
10
-
11
- if (v) {
12
- this.action = 'update';
13
- f.anchorName.value = v;
14
- }
15
-
16
- f.insert.value = ed.getLang(elm ? 'update' : 'insert');
17
- },
18
-
19
- update : function() {
20
- var ed = this.editor, elm, name = document.forms[0].anchorName.value;
21
-
22
- if (!name || !/^[a-z][a-z0-9\-\_:\.]*$/i.test(name)) {
23
- tinyMCEPopup.alert('advanced_dlg.anchor_invalid');
24
- return;
25
- }
26
-
27
- tinyMCEPopup.restoreSelection();
28
-
29
- if (this.action != 'update')
30
- ed.selection.collapse(1);
31
-
32
- elm = ed.dom.getParent(ed.selection.getNode(), 'A');
33
- if (elm)
34
- elm.name = name;
35
- else
36
- ed.execCommand('mceInsertContent', 0, ed.dom.createHTML('a', {name : name, 'class' : 'mceItemAnchor'}, ''));
37
-
38
- tinyMCEPopup.close();
39
- }
40
- };
41
-
42
- tinyMCEPopup.onInit.add(AnchorDialog.init, AnchorDialog);
@@ -1,355 +0,0 @@
1
- /**
2
- * charmap.js
3
- *
4
- * Copyright 2009, Moxiecode Systems AB
5
- * Released under LGPL License.
6
- *
7
- * License: http://tinymce.moxiecode.com/license
8
- * Contributing: http://tinymce.moxiecode.com/contributing
9
- */
10
-
11
- tinyMCEPopup.requireLangPack();
12
-
13
- var charmap = [
14
- ['&nbsp;', '&#160;', true, 'no-break space'],
15
- ['&amp;', '&#38;', true, 'ampersand'],
16
- ['&quot;', '&#34;', true, 'quotation mark'],
17
- // finance
18
- ['&cent;', '&#162;', true, 'cent sign'],
19
- ['&euro;', '&#8364;', true, 'euro sign'],
20
- ['&pound;', '&#163;', true, 'pound sign'],
21
- ['&yen;', '&#165;', true, 'yen sign'],
22
- // signs
23
- ['&copy;', '&#169;', true, 'copyright sign'],
24
- ['&reg;', '&#174;', true, 'registered sign'],
25
- ['&trade;', '&#8482;', true, 'trade mark sign'],
26
- ['&permil;', '&#8240;', true, 'per mille sign'],
27
- ['&micro;', '&#181;', true, 'micro sign'],
28
- ['&middot;', '&#183;', true, 'middle dot'],
29
- ['&bull;', '&#8226;', true, 'bullet'],
30
- ['&hellip;', '&#8230;', true, 'three dot leader'],
31
- ['&prime;', '&#8242;', true, 'minutes / feet'],
32
- ['&Prime;', '&#8243;', true, 'seconds / inches'],
33
- ['&sect;', '&#167;', true, 'section sign'],
34
- ['&para;', '&#182;', true, 'paragraph sign'],
35
- ['&szlig;', '&#223;', true, 'sharp s / ess-zed'],
36
- // quotations
37
- ['&lsaquo;', '&#8249;', true, 'single left-pointing angle quotation mark'],
38
- ['&rsaquo;', '&#8250;', true, 'single right-pointing angle quotation mark'],
39
- ['&laquo;', '&#171;', true, 'left pointing guillemet'],
40
- ['&raquo;', '&#187;', true, 'right pointing guillemet'],
41
- ['&lsquo;', '&#8216;', true, 'left single quotation mark'],
42
- ['&rsquo;', '&#8217;', true, 'right single quotation mark'],
43
- ['&ldquo;', '&#8220;', true, 'left double quotation mark'],
44
- ['&rdquo;', '&#8221;', true, 'right double quotation mark'],
45
- ['&sbquo;', '&#8218;', true, 'single low-9 quotation mark'],
46
- ['&bdquo;', '&#8222;', true, 'double low-9 quotation mark'],
47
- ['&lt;', '&#60;', true, 'less-than sign'],
48
- ['&gt;', '&#62;', true, 'greater-than sign'],
49
- ['&le;', '&#8804;', true, 'less-than or equal to'],
50
- ['&ge;', '&#8805;', true, 'greater-than or equal to'],
51
- ['&ndash;', '&#8211;', true, 'en dash'],
52
- ['&mdash;', '&#8212;', true, 'em dash'],
53
- ['&macr;', '&#175;', true, 'macron'],
54
- ['&oline;', '&#8254;', true, 'overline'],
55
- ['&curren;', '&#164;', true, 'currency sign'],
56
- ['&brvbar;', '&#166;', true, 'broken bar'],
57
- ['&uml;', '&#168;', true, 'diaeresis'],
58
- ['&iexcl;', '&#161;', true, 'inverted exclamation mark'],
59
- ['&iquest;', '&#191;', true, 'turned question mark'],
60
- ['&circ;', '&#710;', true, 'circumflex accent'],
61
- ['&tilde;', '&#732;', true, 'small tilde'],
62
- ['&deg;', '&#176;', true, 'degree sign'],
63
- ['&minus;', '&#8722;', true, 'minus sign'],
64
- ['&plusmn;', '&#177;', true, 'plus-minus sign'],
65
- ['&divide;', '&#247;', true, 'division sign'],
66
- ['&frasl;', '&#8260;', true, 'fraction slash'],
67
- ['&times;', '&#215;', true, 'multiplication sign'],
68
- ['&sup1;', '&#185;', true, 'superscript one'],
69
- ['&sup2;', '&#178;', true, 'superscript two'],
70
- ['&sup3;', '&#179;', true, 'superscript three'],
71
- ['&frac14;', '&#188;', true, 'fraction one quarter'],
72
- ['&frac12;', '&#189;', true, 'fraction one half'],
73
- ['&frac34;', '&#190;', true, 'fraction three quarters'],
74
- // math / logical
75
- ['&fnof;', '&#402;', true, 'function / florin'],
76
- ['&int;', '&#8747;', true, 'integral'],
77
- ['&sum;', '&#8721;', true, 'n-ary sumation'],
78
- ['&infin;', '&#8734;', true, 'infinity'],
79
- ['&radic;', '&#8730;', true, 'square root'],
80
- ['&sim;', '&#8764;', false,'similar to'],
81
- ['&cong;', '&#8773;', false,'approximately equal to'],
82
- ['&asymp;', '&#8776;', true, 'almost equal to'],
83
- ['&ne;', '&#8800;', true, 'not equal to'],
84
- ['&equiv;', '&#8801;', true, 'identical to'],
85
- ['&isin;', '&#8712;', false,'element of'],
86
- ['&notin;', '&#8713;', false,'not an element of'],
87
- ['&ni;', '&#8715;', false,'contains as member'],
88
- ['&prod;', '&#8719;', true, 'n-ary product'],
89
- ['&and;', '&#8743;', false,'logical and'],
90
- ['&or;', '&#8744;', false,'logical or'],
91
- ['&not;', '&#172;', true, 'not sign'],
92
- ['&cap;', '&#8745;', true, 'intersection'],
93
- ['&cup;', '&#8746;', false,'union'],
94
- ['&part;', '&#8706;', true, 'partial differential'],
95
- ['&forall;', '&#8704;', false,'for all'],
96
- ['&exist;', '&#8707;', false,'there exists'],
97
- ['&empty;', '&#8709;', false,'diameter'],
98
- ['&nabla;', '&#8711;', false,'backward difference'],
99
- ['&lowast;', '&#8727;', false,'asterisk operator'],
100
- ['&prop;', '&#8733;', false,'proportional to'],
101
- ['&ang;', '&#8736;', false,'angle'],
102
- // undefined
103
- ['&acute;', '&#180;', true, 'acute accent'],
104
- ['&cedil;', '&#184;', true, 'cedilla'],
105
- ['&ordf;', '&#170;', true, 'feminine ordinal indicator'],
106
- ['&ordm;', '&#186;', true, 'masculine ordinal indicator'],
107
- ['&dagger;', '&#8224;', true, 'dagger'],
108
- ['&Dagger;', '&#8225;', true, 'double dagger'],
109
- // alphabetical special chars
110
- ['&Agrave;', '&#192;', true, 'A - grave'],
111
- ['&Aacute;', '&#193;', true, 'A - acute'],
112
- ['&Acirc;', '&#194;', true, 'A - circumflex'],
113
- ['&Atilde;', '&#195;', true, 'A - tilde'],
114
- ['&Auml;', '&#196;', true, 'A - diaeresis'],
115
- ['&Aring;', '&#197;', true, 'A - ring above'],
116
- ['&AElig;', '&#198;', true, 'ligature AE'],
117
- ['&Ccedil;', '&#199;', true, 'C - cedilla'],
118
- ['&Egrave;', '&#200;', true, 'E - grave'],
119
- ['&Eacute;', '&#201;', true, 'E - acute'],
120
- ['&Ecirc;', '&#202;', true, 'E - circumflex'],
121
- ['&Euml;', '&#203;', true, 'E - diaeresis'],
122
- ['&Igrave;', '&#204;', true, 'I - grave'],
123
- ['&Iacute;', '&#205;', true, 'I - acute'],
124
- ['&Icirc;', '&#206;', true, 'I - circumflex'],
125
- ['&Iuml;', '&#207;', true, 'I - diaeresis'],
126
- ['&ETH;', '&#208;', true, 'ETH'],
127
- ['&Ntilde;', '&#209;', true, 'N - tilde'],
128
- ['&Ograve;', '&#210;', true, 'O - grave'],
129
- ['&Oacute;', '&#211;', true, 'O - acute'],
130
- ['&Ocirc;', '&#212;', true, 'O - circumflex'],
131
- ['&Otilde;', '&#213;', true, 'O - tilde'],
132
- ['&Ouml;', '&#214;', true, 'O - diaeresis'],
133
- ['&Oslash;', '&#216;', true, 'O - slash'],
134
- ['&OElig;', '&#338;', true, 'ligature OE'],
135
- ['&Scaron;', '&#352;', true, 'S - caron'],
136
- ['&Ugrave;', '&#217;', true, 'U - grave'],
137
- ['&Uacute;', '&#218;', true, 'U - acute'],
138
- ['&Ucirc;', '&#219;', true, 'U - circumflex'],
139
- ['&Uuml;', '&#220;', true, 'U - diaeresis'],
140
- ['&Yacute;', '&#221;', true, 'Y - acute'],
141
- ['&Yuml;', '&#376;', true, 'Y - diaeresis'],
142
- ['&THORN;', '&#222;', true, 'THORN'],
143
- ['&agrave;', '&#224;', true, 'a - grave'],
144
- ['&aacute;', '&#225;', true, 'a - acute'],
145
- ['&acirc;', '&#226;', true, 'a - circumflex'],
146
- ['&atilde;', '&#227;', true, 'a - tilde'],
147
- ['&auml;', '&#228;', true, 'a - diaeresis'],
148
- ['&aring;', '&#229;', true, 'a - ring above'],
149
- ['&aelig;', '&#230;', true, 'ligature ae'],
150
- ['&ccedil;', '&#231;', true, 'c - cedilla'],
151
- ['&egrave;', '&#232;', true, 'e - grave'],
152
- ['&eacute;', '&#233;', true, 'e - acute'],
153
- ['&ecirc;', '&#234;', true, 'e - circumflex'],
154
- ['&euml;', '&#235;', true, 'e - diaeresis'],
155
- ['&igrave;', '&#236;', true, 'i - grave'],
156
- ['&iacute;', '&#237;', true, 'i - acute'],
157
- ['&icirc;', '&#238;', true, 'i - circumflex'],
158
- ['&iuml;', '&#239;', true, 'i - diaeresis'],
159
- ['&eth;', '&#240;', true, 'eth'],
160
- ['&ntilde;', '&#241;', true, 'n - tilde'],
161
- ['&ograve;', '&#242;', true, 'o - grave'],
162
- ['&oacute;', '&#243;', true, 'o - acute'],
163
- ['&ocirc;', '&#244;', true, 'o - circumflex'],
164
- ['&otilde;', '&#245;', true, 'o - tilde'],
165
- ['&ouml;', '&#246;', true, 'o - diaeresis'],
166
- ['&oslash;', '&#248;', true, 'o slash'],
167
- ['&oelig;', '&#339;', true, 'ligature oe'],
168
- ['&scaron;', '&#353;', true, 's - caron'],
169
- ['&ugrave;', '&#249;', true, 'u - grave'],
170
- ['&uacute;', '&#250;', true, 'u - acute'],
171
- ['&ucirc;', '&#251;', true, 'u - circumflex'],
172
- ['&uuml;', '&#252;', true, 'u - diaeresis'],
173
- ['&yacute;', '&#253;', true, 'y - acute'],
174
- ['&thorn;', '&#254;', true, 'thorn'],
175
- ['&yuml;', '&#255;', true, 'y - diaeresis'],
176
- ['&Alpha;', '&#913;', true, 'Alpha'],
177
- ['&Beta;', '&#914;', true, 'Beta'],
178
- ['&Gamma;', '&#915;', true, 'Gamma'],
179
- ['&Delta;', '&#916;', true, 'Delta'],
180
- ['&Epsilon;', '&#917;', true, 'Epsilon'],
181
- ['&Zeta;', '&#918;', true, 'Zeta'],
182
- ['&Eta;', '&#919;', true, 'Eta'],
183
- ['&Theta;', '&#920;', true, 'Theta'],
184
- ['&Iota;', '&#921;', true, 'Iota'],
185
- ['&Kappa;', '&#922;', true, 'Kappa'],
186
- ['&Lambda;', '&#923;', true, 'Lambda'],
187
- ['&Mu;', '&#924;', true, 'Mu'],
188
- ['&Nu;', '&#925;', true, 'Nu'],
189
- ['&Xi;', '&#926;', true, 'Xi'],
190
- ['&Omicron;', '&#927;', true, 'Omicron'],
191
- ['&Pi;', '&#928;', true, 'Pi'],
192
- ['&Rho;', '&#929;', true, 'Rho'],
193
- ['&Sigma;', '&#931;', true, 'Sigma'],
194
- ['&Tau;', '&#932;', true, 'Tau'],
195
- ['&Upsilon;', '&#933;', true, 'Upsilon'],
196
- ['&Phi;', '&#934;', true, 'Phi'],
197
- ['&Chi;', '&#935;', true, 'Chi'],
198
- ['&Psi;', '&#936;', true, 'Psi'],
199
- ['&Omega;', '&#937;', true, 'Omega'],
200
- ['&alpha;', '&#945;', true, 'alpha'],
201
- ['&beta;', '&#946;', true, 'beta'],
202
- ['&gamma;', '&#947;', true, 'gamma'],
203
- ['&delta;', '&#948;', true, 'delta'],
204
- ['&epsilon;', '&#949;', true, 'epsilon'],
205
- ['&zeta;', '&#950;', true, 'zeta'],
206
- ['&eta;', '&#951;', true, 'eta'],
207
- ['&theta;', '&#952;', true, 'theta'],
208
- ['&iota;', '&#953;', true, 'iota'],
209
- ['&kappa;', '&#954;', true, 'kappa'],
210
- ['&lambda;', '&#955;', true, 'lambda'],
211
- ['&mu;', '&#956;', true, 'mu'],
212
- ['&nu;', '&#957;', true, 'nu'],
213
- ['&xi;', '&#958;', true, 'xi'],
214
- ['&omicron;', '&#959;', true, 'omicron'],
215
- ['&pi;', '&#960;', true, 'pi'],
216
- ['&rho;', '&#961;', true, 'rho'],
217
- ['&sigmaf;', '&#962;', true, 'final sigma'],
218
- ['&sigma;', '&#963;', true, 'sigma'],
219
- ['&tau;', '&#964;', true, 'tau'],
220
- ['&upsilon;', '&#965;', true, 'upsilon'],
221
- ['&phi;', '&#966;', true, 'phi'],
222
- ['&chi;', '&#967;', true, 'chi'],
223
- ['&psi;', '&#968;', true, 'psi'],
224
- ['&omega;', '&#969;', true, 'omega'],
225
- // symbols
226
- ['&alefsym;', '&#8501;', false,'alef symbol'],
227
- ['&piv;', '&#982;', false,'pi symbol'],
228
- ['&real;', '&#8476;', false,'real part symbol'],
229
- ['&thetasym;','&#977;', false,'theta symbol'],
230
- ['&upsih;', '&#978;', false,'upsilon - hook symbol'],
231
- ['&weierp;', '&#8472;', false,'Weierstrass p'],
232
- ['&image;', '&#8465;', false,'imaginary part'],
233
- // arrows
234
- ['&larr;', '&#8592;', true, 'leftwards arrow'],
235
- ['&uarr;', '&#8593;', true, 'upwards arrow'],
236
- ['&rarr;', '&#8594;', true, 'rightwards arrow'],
237
- ['&darr;', '&#8595;', true, 'downwards arrow'],
238
- ['&harr;', '&#8596;', true, 'left right arrow'],
239
- ['&crarr;', '&#8629;', false,'carriage return'],
240
- ['&lArr;', '&#8656;', false,'leftwards double arrow'],
241
- ['&uArr;', '&#8657;', false,'upwards double arrow'],
242
- ['&rArr;', '&#8658;', false,'rightwards double arrow'],
243
- ['&dArr;', '&#8659;', false,'downwards double arrow'],
244
- ['&hArr;', '&#8660;', false,'left right double arrow'],
245
- ['&there4;', '&#8756;', false,'therefore'],
246
- ['&sub;', '&#8834;', false,'subset of'],
247
- ['&sup;', '&#8835;', false,'superset of'],
248
- ['&nsub;', '&#8836;', false,'not a subset of'],
249
- ['&sube;', '&#8838;', false,'subset of or equal to'],
250
- ['&supe;', '&#8839;', false,'superset of or equal to'],
251
- ['&oplus;', '&#8853;', false,'circled plus'],
252
- ['&otimes;', '&#8855;', false,'circled times'],
253
- ['&perp;', '&#8869;', false,'perpendicular'],
254
- ['&sdot;', '&#8901;', false,'dot operator'],
255
- ['&lceil;', '&#8968;', false,'left ceiling'],
256
- ['&rceil;', '&#8969;', false,'right ceiling'],
257
- ['&lfloor;', '&#8970;', false,'left floor'],
258
- ['&rfloor;', '&#8971;', false,'right floor'],
259
- ['&lang;', '&#9001;', false,'left-pointing angle bracket'],
260
- ['&rang;', '&#9002;', false,'right-pointing angle bracket'],
261
- ['&loz;', '&#9674;', true, 'lozenge'],
262
- ['&spades;', '&#9824;', true, 'black spade suit'],
263
- ['&clubs;', '&#9827;', true, 'black club suit'],
264
- ['&hearts;', '&#9829;', true, 'black heart suit'],
265
- ['&diams;', '&#9830;', true, 'black diamond suit'],
266
- ['&ensp;', '&#8194;', false,'en space'],
267
- ['&emsp;', '&#8195;', false,'em space'],
268
- ['&thinsp;', '&#8201;', false,'thin space'],
269
- ['&zwnj;', '&#8204;', false,'zero width non-joiner'],
270
- ['&zwj;', '&#8205;', false,'zero width joiner'],
271
- ['&lrm;', '&#8206;', false,'left-to-right mark'],
272
- ['&rlm;', '&#8207;', false,'right-to-left mark'],
273
- ['&shy;', '&#173;', false,'soft hyphen']
274
- ];
275
-
276
- tinyMCEPopup.onInit.add(function() {
277
- tinyMCEPopup.dom.setHTML('charmapView', renderCharMapHTML());
278
- addKeyboardNavigation();
279
- });
280
-
281
- function addKeyboardNavigation(){
282
- var tableElm, cells, settings;
283
-
284
- cells = tinyMCEPopup.dom.select(".charmaplink", "charmapgroup");
285
-
286
- settings ={
287
- root: "charmapgroup",
288
- items: cells
289
- };
290
-
291
- tinyMCEPopup.editor.windowManager.createInstance('tinymce.ui.KeyboardNavigation', settings, tinyMCEPopup.dom);
292
- }
293
-
294
- function renderCharMapHTML() {
295
- var charsPerRow = 20, tdWidth=20, tdHeight=20, i;
296
- var html = '<div id="charmapgroup" aria-labelledby="charmap_label" tabindex="0" role="listbox">'+
297
- '<table role="presentation" border="0" cellspacing="1" cellpadding="0" width="' + (tdWidth*charsPerRow) +
298
- '"><tr height="' + tdHeight + '">';
299
- var cols=-1;
300
-
301
- for (i=0; i<charmap.length; i++) {
302
- var previewCharFn;
303
-
304
- if (charmap[i][2]==true) {
305
- cols++;
306
- previewCharFn = 'previewChar(\'' + charmap[i][1].substring(1,charmap[i][1].length) + '\',\'' + charmap[i][0].substring(1,charmap[i][0].length) + '\',\'' + charmap[i][3] + '\');';
307
- html += ''
308
- + '<td class="charmap">'
309
- + '<a class="charmaplink" role="button" onmouseover="'+previewCharFn+'" onfocus="'+previewCharFn+'" href="javascript:void(0)" onclick="insertChar(\'' + charmap[i][1].substring(2,charmap[i][1].length-1) + '\');" onclick="return false;" onmousedown="return false;" title="' + charmap[i][3] + '">'
310
- + charmap[i][1]
311
- + '</a></td>';
312
- if ((cols+1) % charsPerRow == 0)
313
- html += '</tr><tr height="' + tdHeight + '">';
314
- }
315
- }
316
-
317
- if (cols % charsPerRow > 0) {
318
- var padd = charsPerRow - (cols % charsPerRow);
319
- for (var i=0; i<padd-1; i++)
320
- html += '<td width="' + tdWidth + '" height="' + tdHeight + '" class="charmap">&nbsp;</td>';
321
- }
322
-
323
- html += '</tr></table></div>';
324
- html = html.replace(/<tr height="20"><\/tr>/g, '');
325
-
326
- return html;
327
- }
328
-
329
- function insertChar(chr) {
330
- tinyMCEPopup.execCommand('mceInsertContent', false, '&#' + chr + ';');
331
-
332
- // Refocus in window
333
- if (tinyMCEPopup.isWindow)
334
- window.focus();
335
-
336
- tinyMCEPopup.editor.focus();
337
- tinyMCEPopup.close();
338
- }
339
-
340
- function previewChar(codeA, codeB, codeN) {
341
- var elmA = document.getElementById('codeA');
342
- var elmB = document.getElementById('codeB');
343
- var elmV = document.getElementById('codeV');
344
- var elmN = document.getElementById('codeN');
345
-
346
- if (codeA=='#160;') {
347
- elmV.innerHTML = '__';
348
- } else {
349
- elmV.innerHTML = '&' + codeA;
350
- }
351
-
352
- elmB.innerHTML = '&amp;' + codeA;
353
- elmA.innerHTML = '&amp;' + codeB;
354
- elmN.innerHTML = codeN;
355
- }