it-logica-application-backbone 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. data/VERSION +1 -1
  2. data/app/assets/javascripts/backbone_js/tinymce/changelog.txt +100 -1198
  3. data/app/assets/javascripts/backbone_js/tinymce/examples/css/content.css +105 -105
  4. data/app/assets/javascripts/backbone_js/tinymce/examples/index.html +98 -98
  5. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/jquery.tinymce.js +1 -1
  6. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/license.txt +504 -504
  7. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advhr/css/advhr.css +5 -5
  8. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin_src.js +56 -56
  9. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advhr/js/rule.js +43 -43
  10. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advhr/rule.htm +58 -58
  11. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advimage/css/advimage.css +13 -13
  12. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js +49 -49
  13. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advimage/image.htm +235 -235
  14. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advimage/js/image.js +464 -462
  15. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advlink/css/advlink.css +8 -8
  16. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin_src.js +60 -60
  17. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advlink/js/advlink.js +543 -539
  18. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advlink/link.htm +338 -338
  19. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advlist/editor_plugin_src.js +175 -175
  20. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/autolink/editor_plugin.js +1 -1
  21. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/autolink/editor_plugin_src.js +8 -4
  22. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/autosave/editor_plugin.js +1 -1
  23. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/autosave/editor_plugin_src.js +433 -431
  24. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/autosave/langs/en.js +3 -3
  25. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js +119 -119
  26. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -1
  27. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js +163 -161
  28. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/directionality/editor_plugin.js +1 -1
  29. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/directionality/editor_plugin_src.js +84 -81
  30. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin_src.js +42 -42
  31. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/emotions/emotions.htm +42 -42
  32. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/emotions/js/emotions.js +43 -43
  33. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/example/dialog.htm +22 -22
  34. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/example/editor_plugin_src.js +83 -83
  35. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js +19 -19
  36. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/example/langs/en.js +3 -3
  37. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/example/langs/en_dlg.js +3 -3
  38. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/fullpage/css/fullpage.css +142 -142
  39. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/fullpage/editor_plugin_src.js +405 -405
  40. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/fullpage/fullpage.htm +259 -259
  41. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/fullpage/js/fullpage.js +232 -232
  42. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/fullscreen/editor_plugin.js +1 -1
  43. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/fullscreen/editor_plugin_src.js +159 -159
  44. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/fullscreen/fullscreen.htm +110 -110
  45. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin_src.js +53 -53
  46. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +699 -699
  47. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/template.htm +387 -387
  48. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +82 -82
  49. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/layer/editor_plugin_src.js +261 -261
  50. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/legacyoutput/editor_plugin.js +1 -1
  51. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/legacyoutput/editor_plugin_src.js +137 -137
  52. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/lists/editor_plugin.js +1 -1
  53. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/lists/editor_plugin_src.js +18 -14
  54. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/media/css/media.css +17 -17
  55. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/media/editor_plugin.js +1 -1
  56. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/media/editor_plugin_src.js +898 -890
  57. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/media/js/embed.js +73 -73
  58. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/media/js/media.js +503 -470
  59. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/media/media.htm +922 -922
  60. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +53 -53
  61. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/noneditable/editor_plugin.js +1 -1
  62. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/noneditable/editor_plugin_src.js +536 -539
  63. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/pagebreak/editor_plugin_src.js +73 -73
  64. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/paste/editor_plugin.js +1 -1
  65. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/paste/editor_plugin_src.js +885 -871
  66. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/paste/js/pastetext.js +36 -36
  67. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/paste/js/pasteword.js +51 -51
  68. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/paste/pastetext.htm +26 -26
  69. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/paste/pasteword.htm +21 -21
  70. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/preview/example.html +28 -28
  71. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/preview/jscripts/embed.js +73 -73
  72. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/preview/preview.html +17 -17
  73. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/print/editor_plugin_src.js +34 -34
  74. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/save/editor_plugin_src.js +100 -100
  75. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/searchreplace/css/searchreplace.css +6 -6
  76. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js +60 -60
  77. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/searchreplace/js/searchreplace.js +142 -142
  78. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/searchreplace/searchreplace.htm +100 -100
  79. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/spellchecker/css/content.css +1 -0
  80. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -0
  81. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js +436 -0
  82. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/spellchecker/img/wline.gif +0 -0
  83. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/style/css/props.css +14 -14
  84. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/style/editor_plugin_src.js +71 -71
  85. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/style/js/props.js +709 -709
  86. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/cell.htm +180 -180
  87. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/css/cell.css +16 -16
  88. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/css/row.css +25 -25
  89. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/css/table.css +13 -13
  90. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin.js +1 -1
  91. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin_src.js +79 -55
  92. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/js/cell.js +319 -319
  93. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/js/merge_cells.js +27 -27
  94. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/js/row.js +237 -237
  95. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/js/table.js +499 -487
  96. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/merge_cells.htm +32 -32
  97. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/row.htm +158 -158
  98. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/table.htm +188 -188
  99. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/template/blank.htm +12 -12
  100. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/template/css/template.css +23 -23
  101. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/template/editor_plugin_src.js +158 -158
  102. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/template/js/template.js +106 -106
  103. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/template/template.htm +31 -31
  104. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/visualblocks/css/visualblocks.css +21 -21
  105. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/visualblocks/editor_plugin_src.js +62 -62
  106. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/visualchars/editor_plugin_src.js +82 -82
  107. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/wordcount/editor_plugin_src.js +122 -122
  108. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/abbr.htm +142 -142
  109. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/acronym.htm +142 -142
  110. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/attributes.htm +149 -149
  111. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/cite.htm +142 -142
  112. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css +11 -11
  113. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/popup.css +9 -9
  114. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/del.htm +162 -162
  115. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +131 -131
  116. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/ins.htm +162 -162
  117. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js +28 -28
  118. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js +28 -28
  119. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js +111 -111
  120. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/cite.js +28 -28
  121. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/del.js +53 -53
  122. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js +229 -229
  123. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/ins.js +53 -53
  124. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/about.htm +52 -52
  125. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/anchor.htm +26 -26
  126. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/charmap.htm +55 -55
  127. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/color_picker.htm +70 -70
  128. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/editor_template.js +1 -1
  129. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/editor_template_src.js +1490 -1481
  130. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/image.htm +80 -80
  131. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/js/about.js +73 -73
  132. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/js/anchor.js +56 -44
  133. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/js/charmap.js +363 -363
  134. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/js/image.js +253 -253
  135. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/js/link.js +159 -153
  136. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/js/source_editor.js +78 -78
  137. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/link.htm +57 -57
  138. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/shortcuts.htm +47 -47
  139. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/content.css +50 -51
  140. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/dialog.css +118 -118
  141. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/ui.css +219 -219
  142. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/skins/highcontrast/content.css +24 -25
  143. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/skins/highcontrast/dialog.css +106 -106
  144. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/skins/highcontrast/ui.css +106 -106
  145. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/content.css +48 -49
  146. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css +118 -118
  147. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui.css +222 -222
  148. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +7 -7
  149. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +5 -5
  150. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/source_editor.htm +25 -25
  151. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/simple/editor_template_src.js +83 -83
  152. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/simple/skins/default/content.css +25 -25
  153. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/simple/skins/default/ui.css +32 -32
  154. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/simple/skins/o2k7/content.css +17 -17
  155. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/simple/skins/o2k7/ui.css +35 -35
  156. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/tiny_mce.js +1 -1
  157. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/tiny_mce_popup.js +1 -1
  158. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/tiny_mce_src.js +17769 -16902
  159. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/utils/editable_selects.js +70 -70
  160. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/utils/form_utils.js +210 -210
  161. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/utils/mctabs.js +161 -161
  162. data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/utils/validate.js +252 -252
  163. data/it-logica-application-backbone.gemspec +6 -2
  164. metadata +19 -15
@@ -1,31 +1,31 @@
1
- <html xmlns="http://www.w3.org/1999/xhtml">
2
- <head>
3
- <title>{#template_dlg.title}</title>
4
- <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
5
- <script type="text/javascript" src="js/template.js"></script>
6
- <link href="css/template.css" rel="stylesheet" type="text/css" />
7
- </head>
8
- <body onresize="TemplateDialog.resize();">
9
- <form onsubmit="TemplateDialog.insert();return false;">
10
- <div id="frmbody">
11
- <div class="title">{#template_dlg.desc}</div>
12
- <div class="frmRow"><label for="tpath" title="{#template_dlg.select}">{#template_dlg.label}:</label>
13
- <select id="tpath" name="tpath" onchange="TemplateDialog.selectTemplate(this.options[this.selectedIndex].value, this.options[this.selectedIndex].text);" class="mceFocus">
14
- <option value="">{#template_dlg.select}...</option>
15
- </select>
16
- <span id="warning"></span></div>
17
- <div class="frmRow"><label for="tdesc">{#template_dlg.desc_label}:</label>
18
- <span id="tmpldesc"></span></div>
19
- <fieldset>
20
- <legend>{#template_dlg.preview}</legend>
21
- <iframe id="templatesrc" name="templatesrc" src="blank.htm" width="690" height="400" frameborder="0"></iframe>
22
- </fieldset>
23
- </div>
24
-
25
- <div class="mceActionPanel">
26
- <input type="submit" id="insert" name="insert" value="{#insert}" />
27
- <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
28
- </div>
29
- </form>
30
- </body>
31
- </html>
1
+ <html xmlns="http://www.w3.org/1999/xhtml">
2
+ <head>
3
+ <title>{#template_dlg.title}</title>
4
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
5
+ <script type="text/javascript" src="js/template.js"></script>
6
+ <link href="css/template.css" rel="stylesheet" type="text/css" />
7
+ </head>
8
+ <body onresize="TemplateDialog.resize();">
9
+ <form onsubmit="TemplateDialog.insert();return false;">
10
+ <div id="frmbody">
11
+ <div class="title">{#template_dlg.desc}</div>
12
+ <div class="frmRow"><label for="tpath" title="{#template_dlg.select}">{#template_dlg.label}:</label>
13
+ <select id="tpath" name="tpath" onchange="TemplateDialog.selectTemplate(this.options[this.selectedIndex].value, this.options[this.selectedIndex].text);" class="mceFocus">
14
+ <option value="">{#template_dlg.select}...</option>
15
+ </select>
16
+ <span id="warning"></span></div>
17
+ <div class="frmRow"><label for="tdesc">{#template_dlg.desc_label}:</label>
18
+ <span id="tmpldesc"></span></div>
19
+ <fieldset>
20
+ <legend>{#template_dlg.preview}</legend>
21
+ <iframe id="templatesrc" name="templatesrc" src="blank.htm" width="690" height="400" frameborder="0"></iframe>
22
+ </fieldset>
23
+ </div>
24
+
25
+ <div class="mceActionPanel">
26
+ <input type="submit" id="insert" name="insert" value="{#insert}" />
27
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
28
+ </div>
29
+ </form>
30
+ </body>
31
+ </html>
@@ -1,21 +1,21 @@
1
- p, h1, h2, h3, h4, h5, h6, hgroup, aside, div, section, article, blockquote, address, pre, figure {display: block; padding-top: 10px; border: 1px dashed #BBB; background: transparent no-repeat}
2
- p, h1, h2, h3, h4, h5, h6, hgroup, aside, div, section, article, address, pre, figure {margin-left: 3px}
3
- section, article, address, hgroup, aside, figure {margin: 0 0 1em 3px}
4
-
5
- p {background-image: url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7)}
6
- h1 {background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==)}
7
- h2 {background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==)}
8
- h3 {background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7)}
9
- h4 {background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==)}
10
- h5 {background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==)}
11
- h6 {background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==)}
12
- div {background-image: url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7)}
13
- section {background-image: url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=)}
14
- article {background-image: url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7)}
15
- blockquote {background-image: url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7)}
16
- address {background-image: url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=)}
17
- pre {background-image: url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==)}
18
- hgroup {background-image: url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7)}
19
- aside {background-image: url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=)}
20
- figure {background-image: url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7)}
21
- figcaption {border: 1px dashed #BBB}
1
+ p, h1, h2, h3, h4, h5, h6, hgroup, aside, div, section, article, blockquote, address, pre, figure {display: block; padding-top: 10px; border: 1px dashed #BBB; background: transparent no-repeat}
2
+ p, h1, h2, h3, h4, h5, h6, hgroup, aside, div, section, article, address, pre, figure {margin-left: 3px}
3
+ section, article, address, hgroup, aside, figure {margin: 0 0 1em 3px}
4
+
5
+ p {background-image: url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7)}
6
+ h1 {background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==)}
7
+ h2 {background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==)}
8
+ h3 {background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7)}
9
+ h4 {background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==)}
10
+ h5 {background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==)}
11
+ h6 {background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==)}
12
+ div {background-image: url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7)}
13
+ section {background-image: url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=)}
14
+ article {background-image: url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7)}
15
+ blockquote {background-image: url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7)}
16
+ address {background-image: url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=)}
17
+ pre {background-image: url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==)}
18
+ hgroup {background-image: url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7)}
19
+ aside {background-image: url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=)}
20
+ figure {background-image: url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7)}
21
+ figcaption {border: 1px dashed #BBB}
@@ -1,63 +1,63 @@
1
- /**
2
- * editor_plugin_src.js
3
- *
4
- * Copyright 2012, 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
- (function() {
12
- tinymce.create('tinymce.plugins.VisualBlocks', {
13
- init : function(ed, url) {
14
- var cssId;
15
-
16
- // We don't support older browsers like IE6/7 and they don't provide prototypes for DOM objects
17
- if (!window.NodeList) {
18
- return;
19
- }
20
-
21
- ed.addCommand('mceVisualBlocks', function() {
22
- var dom = ed.dom, linkElm;
23
-
24
- if (!cssId) {
25
- cssId = dom.uniqueId();
26
- linkElm = dom.create('link', {
27
- id: cssId,
28
- rel : 'stylesheet',
29
- href : url + '/css/visualblocks.css'
30
- });
31
-
32
- ed.getDoc().getElementsByTagName('head')[0].appendChild(linkElm);
33
- } else {
34
- linkElm = dom.get(cssId);
35
- linkElm.disabled = !linkElm.disabled;
36
- }
37
-
38
- ed.controlManager.setActive('visualblocks', !linkElm.disabled);
39
- });
40
-
41
- ed.addButton('visualblocks', {title : 'visualblocks.desc', cmd : 'mceVisualBlocks'});
42
-
43
- ed.onInit.add(function() {
44
- if (ed.settings.visualblocks_default_state) {
45
- ed.execCommand('mceVisualBlocks', false, null, {skip_focus : true});
46
- }
47
- });
48
- },
49
-
50
- getInfo : function() {
51
- return {
52
- longname : 'Visual blocks',
53
- author : 'Moxiecode Systems AB',
54
- authorurl : 'http://tinymce.moxiecode.com',
55
- infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/visualblocks',
56
- version : tinymce.majorVersion + "." + tinymce.minorVersion
57
- };
58
- }
59
- });
60
-
61
- // Register plugin
62
- tinymce.PluginManager.add('visualblocks', tinymce.plugins.VisualBlocks);
1
+ /**
2
+ * editor_plugin_src.js
3
+ *
4
+ * Copyright 2012, 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
+ (function() {
12
+ tinymce.create('tinymce.plugins.VisualBlocks', {
13
+ init : function(ed, url) {
14
+ var cssId;
15
+
16
+ // We don't support older browsers like IE6/7 and they don't provide prototypes for DOM objects
17
+ if (!window.NodeList) {
18
+ return;
19
+ }
20
+
21
+ ed.addCommand('mceVisualBlocks', function() {
22
+ var dom = ed.dom, linkElm;
23
+
24
+ if (!cssId) {
25
+ cssId = dom.uniqueId();
26
+ linkElm = dom.create('link', {
27
+ id: cssId,
28
+ rel : 'stylesheet',
29
+ href : url + '/css/visualblocks.css'
30
+ });
31
+
32
+ ed.getDoc().getElementsByTagName('head')[0].appendChild(linkElm);
33
+ } else {
34
+ linkElm = dom.get(cssId);
35
+ linkElm.disabled = !linkElm.disabled;
36
+ }
37
+
38
+ ed.controlManager.setActive('visualblocks', !linkElm.disabled);
39
+ });
40
+
41
+ ed.addButton('visualblocks', {title : 'visualblocks.desc', cmd : 'mceVisualBlocks'});
42
+
43
+ ed.onInit.add(function() {
44
+ if (ed.settings.visualblocks_default_state) {
45
+ ed.execCommand('mceVisualBlocks', false, null, {skip_focus : true});
46
+ }
47
+ });
48
+ },
49
+
50
+ getInfo : function() {
51
+ return {
52
+ longname : 'Visual blocks',
53
+ author : 'Moxiecode Systems AB',
54
+ authorurl : 'http://tinymce.moxiecode.com',
55
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/visualblocks',
56
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
57
+ };
58
+ }
59
+ });
60
+
61
+ // Register plugin
62
+ tinymce.PluginManager.add('visualblocks', tinymce.plugins.VisualBlocks);
63
63
  })();
@@ -1,83 +1,83 @@
1
- /**
2
- * editor_plugin_src.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
- (function() {
12
- tinymce.create('tinymce.plugins.VisualChars', {
13
- init : function(ed, url) {
14
- var t = this;
15
-
16
- t.editor = ed;
17
-
18
- // Register commands
19
- ed.addCommand('mceVisualChars', t._toggleVisualChars, t);
20
-
21
- // Register buttons
22
- ed.addButton('visualchars', {title : 'visualchars.desc', cmd : 'mceVisualChars'});
23
-
24
- ed.onBeforeGetContent.add(function(ed, o) {
25
- if (t.state && o.format != 'raw' && !o.draft) {
26
- t.state = true;
27
- t._toggleVisualChars(false);
28
- }
29
- });
30
- },
31
-
32
- getInfo : function() {
33
- return {
34
- longname : 'Visual characters',
35
- author : 'Moxiecode Systems AB',
36
- authorurl : 'http://tinymce.moxiecode.com',
37
- infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/visualchars',
38
- version : tinymce.majorVersion + "." + tinymce.minorVersion
39
- };
40
- },
41
-
42
- // Private methods
43
-
44
- _toggleVisualChars : function(bookmark) {
45
- var t = this, ed = t.editor, nl, i, h, d = ed.getDoc(), b = ed.getBody(), nv, s = ed.selection, bo, div, bm;
46
-
47
- t.state = !t.state;
48
- ed.controlManager.setActive('visualchars', t.state);
49
-
50
- if (bookmark)
51
- bm = s.getBookmark();
52
-
53
- if (t.state) {
54
- nl = [];
55
- tinymce.walk(b, function(n) {
56
- if (n.nodeType == 3 && n.nodeValue && n.nodeValue.indexOf('\u00a0') != -1)
57
- nl.push(n);
58
- }, 'childNodes');
59
-
60
- for (i = 0; i < nl.length; i++) {
61
- nv = nl[i].nodeValue;
62
- nv = nv.replace(/(\u00a0)/g, '<span data-mce-bogus="1" class="mceItemHidden mceItemNbsp">$1</span>');
63
-
64
- div = ed.dom.create('div', null, nv);
65
- while (node = div.lastChild)
66
- ed.dom.insertAfter(node, nl[i]);
67
-
68
- ed.dom.remove(nl[i]);
69
- }
70
- } else {
71
- nl = ed.dom.select('span.mceItemNbsp', b);
72
-
73
- for (i = nl.length - 1; i >= 0; i--)
74
- ed.dom.remove(nl[i], 1);
75
- }
76
-
77
- s.moveToBookmark(bm);
78
- }
79
- });
80
-
81
- // Register plugin
82
- tinymce.PluginManager.add('visualchars', tinymce.plugins.VisualChars);
1
+ /**
2
+ * editor_plugin_src.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
+ (function() {
12
+ tinymce.create('tinymce.plugins.VisualChars', {
13
+ init : function(ed, url) {
14
+ var t = this;
15
+
16
+ t.editor = ed;
17
+
18
+ // Register commands
19
+ ed.addCommand('mceVisualChars', t._toggleVisualChars, t);
20
+
21
+ // Register buttons
22
+ ed.addButton('visualchars', {title : 'visualchars.desc', cmd : 'mceVisualChars'});
23
+
24
+ ed.onBeforeGetContent.add(function(ed, o) {
25
+ if (t.state && o.format != 'raw' && !o.draft) {
26
+ t.state = true;
27
+ t._toggleVisualChars(false);
28
+ }
29
+ });
30
+ },
31
+
32
+ getInfo : function() {
33
+ return {
34
+ longname : 'Visual characters',
35
+ author : 'Moxiecode Systems AB',
36
+ authorurl : 'http://tinymce.moxiecode.com',
37
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/visualchars',
38
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
39
+ };
40
+ },
41
+
42
+ // Private methods
43
+
44
+ _toggleVisualChars : function(bookmark) {
45
+ var t = this, ed = t.editor, nl, i, h, d = ed.getDoc(), b = ed.getBody(), nv, s = ed.selection, bo, div, bm;
46
+
47
+ t.state = !t.state;
48
+ ed.controlManager.setActive('visualchars', t.state);
49
+
50
+ if (bookmark)
51
+ bm = s.getBookmark();
52
+
53
+ if (t.state) {
54
+ nl = [];
55
+ tinymce.walk(b, function(n) {
56
+ if (n.nodeType == 3 && n.nodeValue && n.nodeValue.indexOf('\u00a0') != -1)
57
+ nl.push(n);
58
+ }, 'childNodes');
59
+
60
+ for (i = 0; i < nl.length; i++) {
61
+ nv = nl[i].nodeValue;
62
+ nv = nv.replace(/(\u00a0)/g, '<span data-mce-bogus="1" class="mceItemHidden mceItemNbsp">$1</span>');
63
+
64
+ div = ed.dom.create('div', null, nv);
65
+ while (node = div.lastChild)
66
+ ed.dom.insertAfter(node, nl[i]);
67
+
68
+ ed.dom.remove(nl[i]);
69
+ }
70
+ } else {
71
+ nl = ed.dom.select('span.mceItemNbsp', b);
72
+
73
+ for (i = nl.length - 1; i >= 0; i--)
74
+ ed.dom.remove(nl[i], 1);
75
+ }
76
+
77
+ s.moveToBookmark(bm);
78
+ }
79
+ });
80
+
81
+ // Register plugin
82
+ tinymce.PluginManager.add('visualchars', tinymce.plugins.VisualChars);
83
83
  })();
@@ -1,122 +1,122 @@
1
- /**
2
- * editor_plugin_src.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
- (function() {
12
- tinymce.create('tinymce.plugins.WordCount', {
13
- block : 0,
14
- id : null,
15
- countre : null,
16
- cleanre : null,
17
-
18
- init : function(ed, url) {
19
- var t = this, last = 0, VK = tinymce.VK;
20
-
21
- t.countre = ed.getParam('wordcount_countregex', /[\w\u2019\'-]+/g); // u2019 == &rsquo;
22
- t.cleanre = ed.getParam('wordcount_cleanregex', /[0-9.(),;:!?%#$?\'\"_+=\\\/-]*/g);
23
- t.update_rate = ed.getParam('wordcount_update_rate', 2000);
24
- t.update_on_delete = ed.getParam('wordcount_update_on_delete', false);
25
- t.id = ed.id + '-word-count';
26
-
27
- ed.onPostRender.add(function(ed, cm) {
28
- var row, id;
29
-
30
- // Add it to the specified id or the theme advanced path
31
- id = ed.getParam('wordcount_target_id');
32
- if (!id) {
33
- row = tinymce.DOM.get(ed.id + '_path_row');
34
-
35
- if (row)
36
- tinymce.DOM.add(row.parentNode, 'div', {'style': 'float: right'}, ed.getLang('wordcount.words', 'Words: ') + '<span id="' + t.id + '">0</span>');
37
- } else {
38
- tinymce.DOM.add(id, 'span', {}, '<span id="' + t.id + '">0</span>');
39
- }
40
- });
41
-
42
- ed.onInit.add(function(ed) {
43
- ed.selection.onSetContent.add(function() {
44
- t._count(ed);
45
- });
46
-
47
- t._count(ed);
48
- });
49
-
50
- ed.onSetContent.add(function(ed) {
51
- t._count(ed);
52
- });
53
-
54
- function checkKeys(key) {
55
- return key !== last && (key === VK.ENTER || last === VK.SPACEBAR || checkDelOrBksp(last));
56
- }
57
-
58
- function checkDelOrBksp(key) {
59
- return key === VK.DELETE || key === VK.BACKSPACE;
60
- }
61
-
62
- ed.onKeyUp.add(function(ed, e) {
63
- if (checkKeys(e.keyCode) || t.update_on_delete && checkDelOrBksp(e.keyCode)) {
64
- t._count(ed);
65
- }
66
-
67
- last = e.keyCode;
68
- });
69
- },
70
-
71
- _getCount : function(ed) {
72
- var tc = 0;
73
- var tx = ed.getContent({ format: 'raw' });
74
-
75
- if (tx) {
76
- tx = tx.replace(/\.\.\./g, ' '); // convert ellipses to spaces
77
- tx = tx.replace(/<.[^<>]*?>/g, ' ').replace(/&nbsp;|&#160;/gi, ' '); // remove html tags and space chars
78
-
79
- // deal with html entities
80
- tx = tx.replace(/(\w+)(&.+?;)+(\w+)/, "$1$3").replace(/&.+?;/g, ' ');
81
- tx = tx.replace(this.cleanre, ''); // remove numbers and punctuation
82
-
83
- var wordArray = tx.match(this.countre);
84
- if (wordArray) {
85
- tc = wordArray.length;
86
- }
87
- }
88
-
89
- return tc;
90
- },
91
-
92
- _count : function(ed) {
93
- var t = this;
94
-
95
- // Keep multiple calls from happening at the same time
96
- if (t.block)
97
- return;
98
-
99
- t.block = 1;
100
-
101
- setTimeout(function() {
102
- if (!ed.destroyed) {
103
- var tc = t._getCount(ed);
104
- tinymce.DOM.setHTML(t.id, tc.toString());
105
- setTimeout(function() {t.block = 0;}, t.update_rate);
106
- }
107
- }, 1);
108
- },
109
-
110
- getInfo: function() {
111
- return {
112
- longname : 'Word Count plugin',
113
- author : 'Moxiecode Systems AB',
114
- authorurl : 'http://tinymce.moxiecode.com',
115
- infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/wordcount',
116
- version : tinymce.majorVersion + "." + tinymce.minorVersion
117
- };
118
- }
119
- });
120
-
121
- tinymce.PluginManager.add('wordcount', tinymce.plugins.WordCount);
122
- })();
1
+ /**
2
+ * editor_plugin_src.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
+ (function() {
12
+ tinymce.create('tinymce.plugins.WordCount', {
13
+ block : 0,
14
+ id : null,
15
+ countre : null,
16
+ cleanre : null,
17
+
18
+ init : function(ed, url) {
19
+ var t = this, last = 0, VK = tinymce.VK;
20
+
21
+ t.countre = ed.getParam('wordcount_countregex', /[\w\u2019\'-]+/g); // u2019 == &rsquo;
22
+ t.cleanre = ed.getParam('wordcount_cleanregex', /[0-9.(),;:!?%#$?\'\"_+=\\\/-]*/g);
23
+ t.update_rate = ed.getParam('wordcount_update_rate', 2000);
24
+ t.update_on_delete = ed.getParam('wordcount_update_on_delete', false);
25
+ t.id = ed.id + '-word-count';
26
+
27
+ ed.onPostRender.add(function(ed, cm) {
28
+ var row, id;
29
+
30
+ // Add it to the specified id or the theme advanced path
31
+ id = ed.getParam('wordcount_target_id');
32
+ if (!id) {
33
+ row = tinymce.DOM.get(ed.id + '_path_row');
34
+
35
+ if (row)
36
+ tinymce.DOM.add(row.parentNode, 'div', {'style': 'float: right'}, ed.getLang('wordcount.words', 'Words: ') + '<span id="' + t.id + '">0</span>');
37
+ } else {
38
+ tinymce.DOM.add(id, 'span', {}, '<span id="' + t.id + '">0</span>');
39
+ }
40
+ });
41
+
42
+ ed.onInit.add(function(ed) {
43
+ ed.selection.onSetContent.add(function() {
44
+ t._count(ed);
45
+ });
46
+
47
+ t._count(ed);
48
+ });
49
+
50
+ ed.onSetContent.add(function(ed) {
51
+ t._count(ed);
52
+ });
53
+
54
+ function checkKeys(key) {
55
+ return key !== last && (key === VK.ENTER || last === VK.SPACEBAR || checkDelOrBksp(last));
56
+ }
57
+
58
+ function checkDelOrBksp(key) {
59
+ return key === VK.DELETE || key === VK.BACKSPACE;
60
+ }
61
+
62
+ ed.onKeyUp.add(function(ed, e) {
63
+ if (checkKeys(e.keyCode) || t.update_on_delete && checkDelOrBksp(e.keyCode)) {
64
+ t._count(ed);
65
+ }
66
+
67
+ last = e.keyCode;
68
+ });
69
+ },
70
+
71
+ _getCount : function(ed) {
72
+ var tc = 0;
73
+ var tx = ed.getContent({ format: 'raw' });
74
+
75
+ if (tx) {
76
+ tx = tx.replace(/\.\.\./g, ' '); // convert ellipses to spaces
77
+ tx = tx.replace(/<.[^<>]*?>/g, ' ').replace(/&nbsp;|&#160;/gi, ' '); // remove html tags and space chars
78
+
79
+ // deal with html entities
80
+ tx = tx.replace(/(\w+)(&.+?;)+(\w+)/, "$1$3").replace(/&.+?;/g, ' ');
81
+ tx = tx.replace(this.cleanre, ''); // remove numbers and punctuation
82
+
83
+ var wordArray = tx.match(this.countre);
84
+ if (wordArray) {
85
+ tc = wordArray.length;
86
+ }
87
+ }
88
+
89
+ return tc;
90
+ },
91
+
92
+ _count : function(ed) {
93
+ var t = this;
94
+
95
+ // Keep multiple calls from happening at the same time
96
+ if (t.block)
97
+ return;
98
+
99
+ t.block = 1;
100
+
101
+ setTimeout(function() {
102
+ if (!ed.destroyed) {
103
+ var tc = t._getCount(ed);
104
+ tinymce.DOM.setHTML(t.id, tc.toString());
105
+ setTimeout(function() {t.block = 0;}, t.update_rate);
106
+ }
107
+ }, 1);
108
+ },
109
+
110
+ getInfo: function() {
111
+ return {
112
+ longname : 'Word Count plugin',
113
+ author : 'Moxiecode Systems AB',
114
+ authorurl : 'http://tinymce.moxiecode.com',
115
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/wordcount',
116
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
117
+ };
118
+ }
119
+ });
120
+
121
+ tinymce.PluginManager.add('wordcount', tinymce.plugins.WordCount);
122
+ })();