From 7c7d42b5f1c3c9cea62b4a73a97e07cea25f8d30 Mon Sep 17 00:00:00 2001
From: Evan Prodromou
Date: Thu, 11 Mar 2010 10:18:11 -0500
Subject: enable tinymce editor
---
plugins/TinyMCE/TinyMCEPlugin.php | 96 +
plugins/TinyMCE/js/jquery.tinymce.js | 1 +
plugins/TinyMCE/js/langs/en.js | 169 +
plugins/TinyMCE/js/license.txt | 504 +
plugins/TinyMCE/js/plugins/advhr/css/advhr.css | 5 +
plugins/TinyMCE/js/plugins/advhr/editor_plugin.js | 1 +
.../TinyMCE/js/plugins/advhr/editor_plugin_src.js | 57 +
plugins/TinyMCE/js/plugins/advhr/js/rule.js | 43 +
plugins/TinyMCE/js/plugins/advhr/langs/en_dlg.js | 5 +
plugins/TinyMCE/js/plugins/advhr/rule.htm | 57 +
.../TinyMCE/js/plugins/advimage/css/advimage.css | 13 +
.../TinyMCE/js/plugins/advimage/editor_plugin.js | 1 +
.../js/plugins/advimage/editor_plugin_src.js | 50 +
plugins/TinyMCE/js/plugins/advimage/image.htm | 232 +
plugins/TinyMCE/js/plugins/advimage/img/sample.gif | Bin 0 -> 1624 bytes
plugins/TinyMCE/js/plugins/advimage/js/image.js | 443 +
.../TinyMCE/js/plugins/advimage/langs/en_dlg.js | 43 +
plugins/TinyMCE/js/plugins/advlink/css/advlink.css | 8 +
.../TinyMCE/js/plugins/advlink/editor_plugin.js | 1 +
.../js/plugins/advlink/editor_plugin_src.js | 61 +
plugins/TinyMCE/js/plugins/advlink/js/advlink.js | 528 +
plugins/TinyMCE/js/plugins/advlink/langs/en_dlg.js | 52 +
plugins/TinyMCE/js/plugins/advlink/link.htm | 333 +
.../TinyMCE/js/plugins/advlist/editor_plugin.js | 1 +
.../js/plugins/advlist/editor_plugin_src.js | 154 +
.../TinyMCE/js/plugins/autoresize/editor_plugin.js | 1 +
.../js/plugins/autoresize/editor_plugin_src.js | 117 +
.../TinyMCE/js/plugins/autosave/editor_plugin.js | 1 +
.../js/plugins/autosave/editor_plugin_src.js | 422 +
plugins/TinyMCE/js/plugins/autosave/langs/en.js | 4 +
plugins/TinyMCE/js/plugins/bbcode/editor_plugin.js | 1 +
.../TinyMCE/js/plugins/bbcode/editor_plugin_src.js | 120 +
.../js/plugins/contextmenu/editor_plugin.js | 1 +
.../js/plugins/contextmenu/editor_plugin_src.js | 127 +
.../js/plugins/directionality/editor_plugin.js | 1 +
.../js/plugins/directionality/editor_plugin_src.js | 82 +
.../TinyMCE/js/plugins/emotions/editor_plugin.js | 1 +
.../js/plugins/emotions/editor_plugin_src.js | 43 +
plugins/TinyMCE/js/plugins/emotions/emotions.htm | 40 +
.../js/plugins/emotions/img/smiley-cool.gif | Bin 0 -> 354 bytes
.../TinyMCE/js/plugins/emotions/img/smiley-cry.gif | Bin 0 -> 329 bytes
.../js/plugins/emotions/img/smiley-embarassed.gif | Bin 0 -> 331 bytes
.../plugins/emotions/img/smiley-foot-in-mouth.gif | Bin 0 -> 344 bytes
.../js/plugins/emotions/img/smiley-frown.gif | Bin 0 -> 340 bytes
.../js/plugins/emotions/img/smiley-innocent.gif | Bin 0 -> 336 bytes
.../js/plugins/emotions/img/smiley-kiss.gif | Bin 0 -> 338 bytes
.../js/plugins/emotions/img/smiley-laughing.gif | Bin 0 -> 344 bytes
.../js/plugins/emotions/img/smiley-money-mouth.gif | Bin 0 -> 321 bytes
.../js/plugins/emotions/img/smiley-sealed.gif | Bin 0 -> 325 bytes
.../js/plugins/emotions/img/smiley-smile.gif | Bin 0 -> 345 bytes
.../js/plugins/emotions/img/smiley-surprised.gif | Bin 0 -> 342 bytes
.../js/plugins/emotions/img/smiley-tongue-out.gif | Bin 0 -> 328 bytes
.../js/plugins/emotions/img/smiley-undecided.gif | Bin 0 -> 337 bytes
.../js/plugins/emotions/img/smiley-wink.gif | Bin 0 -> 351 bytes
.../js/plugins/emotions/img/smiley-yell.gif | Bin 0 -> 336 bytes
plugins/TinyMCE/js/plugins/emotions/js/emotions.js | 22 +
.../TinyMCE/js/plugins/emotions/langs/en_dlg.js | 20 +
plugins/TinyMCE/js/plugins/example/dialog.htm | 22 +
.../TinyMCE/js/plugins/example/editor_plugin.js | 1 +
.../js/plugins/example/editor_plugin_src.js | 84 +
plugins/TinyMCE/js/plugins/example/img/example.gif | Bin 0 -> 87 bytes
plugins/TinyMCE/js/plugins/example/js/dialog.js | 19 +
plugins/TinyMCE/js/plugins/example/langs/en.js | 3 +
plugins/TinyMCE/js/plugins/example/langs/en_dlg.js | 3 +
.../TinyMCE/js/plugins/fullpage/css/fullpage.css | 182 +
.../TinyMCE/js/plugins/fullpage/editor_plugin.js | 1 +
.../js/plugins/fullpage/editor_plugin_src.js | 149 +
plugins/TinyMCE/js/plugins/fullpage/fullpage.htm | 571 +
plugins/TinyMCE/js/plugins/fullpage/js/fullpage.js | 471 +
.../TinyMCE/js/plugins/fullpage/langs/en_dlg.js | 85 +
.../TinyMCE/js/plugins/fullscreen/editor_plugin.js | 1 +
.../js/plugins/fullscreen/editor_plugin_src.js | 148 +
.../TinyMCE/js/plugins/fullscreen/fullscreen.htm | 109 +
.../TinyMCE/js/plugins/iespell/editor_plugin.js | 1 +
.../js/plugins/iespell/editor_plugin_src.js | 54 +
.../js/plugins/inlinepopups/editor_plugin.js | 1 +
.../js/plugins/inlinepopups/editor_plugin_src.js | 635 +
.../inlinepopups/skins/clearlooks2/img/alert.gif | Bin 0 -> 818 bytes
.../inlinepopups/skins/clearlooks2/img/button.gif | Bin 0 -> 280 bytes
.../inlinepopups/skins/clearlooks2/img/buttons.gif | Bin 0 -> 1195 bytes
.../inlinepopups/skins/clearlooks2/img/confirm.gif | Bin 0 -> 915 bytes
.../inlinepopups/skins/clearlooks2/img/corners.gif | Bin 0 -> 911 bytes
.../skins/clearlooks2/img/horizontal.gif | Bin 0 -> 769 bytes
.../skins/clearlooks2/img/vertical.gif | Bin 0 -> 92 bytes
.../inlinepopups/skins/clearlooks2/window.css | 90 +
.../TinyMCE/js/plugins/inlinepopups/template.htm | 387 +
.../js/plugins/insertdatetime/editor_plugin.js | 1 +
.../js/plugins/insertdatetime/editor_plugin_src.js | 83 +
plugins/TinyMCE/js/plugins/layer/editor_plugin.js | 1 +
.../TinyMCE/js/plugins/layer/editor_plugin_src.js | 212 +
.../js/plugins/legacyoutput/editor_plugin.js | 1 +
.../js/plugins/legacyoutput/editor_plugin_src.js | 136 +
plugins/TinyMCE/js/plugins/media/css/content.css | 6 +
plugins/TinyMCE/js/plugins/media/css/media.css | 16 +
plugins/TinyMCE/js/plugins/media/editor_plugin.js | 1 +
.../TinyMCE/js/plugins/media/editor_plugin_src.js | 414 +
plugins/TinyMCE/js/plugins/media/img/flash.gif | Bin 0 -> 241 bytes
.../TinyMCE/js/plugins/media/img/flv_player.swf | Bin 0 -> 11668 bytes
plugins/TinyMCE/js/plugins/media/img/quicktime.gif | Bin 0 -> 303 bytes
plugins/TinyMCE/js/plugins/media/img/realmedia.gif | Bin 0 -> 439 bytes
plugins/TinyMCE/js/plugins/media/img/shockwave.gif | Bin 0 -> 387 bytes
plugins/TinyMCE/js/plugins/media/img/trans.gif | Bin 0 -> 43 bytes
.../TinyMCE/js/plugins/media/img/windowsmedia.gif | Bin 0 -> 415 bytes
plugins/TinyMCE/js/plugins/media/js/embed.js | 73 +
plugins/TinyMCE/js/plugins/media/js/media.js | 630 +
plugins/TinyMCE/js/plugins/media/langs/en_dlg.js | 103 +
plugins/TinyMCE/js/plugins/media/media.htm | 817 ++
.../js/plugins/nonbreaking/editor_plugin.js | 1 +
.../js/plugins/nonbreaking/editor_plugin_src.js | 53 +
.../js/plugins/noneditable/editor_plugin.js | 1 +
.../js/plugins/noneditable/editor_plugin_src.js | 90 +
.../TinyMCE/js/plugins/pagebreak/css/content.css | 1 +
.../TinyMCE/js/plugins/pagebreak/editor_plugin.js | 1 +
.../js/plugins/pagebreak/editor_plugin_src.js | 77 +
.../TinyMCE/js/plugins/pagebreak/img/pagebreak.gif | Bin 0 -> 325 bytes
plugins/TinyMCE/js/plugins/pagebreak/img/trans.gif | Bin 0 -> 43 bytes
plugins/TinyMCE/js/plugins/paste/editor_plugin.js | 1 +
.../TinyMCE/js/plugins/paste/editor_plugin_src.js | 929 ++
plugins/TinyMCE/js/plugins/paste/js/pastetext.js | 36 +
plugins/TinyMCE/js/plugins/paste/js/pasteword.js | 51 +
plugins/TinyMCE/js/plugins/paste/langs/en_dlg.js | 5 +
plugins/TinyMCE/js/plugins/paste/pastetext.htm | 27 +
plugins/TinyMCE/js/plugins/paste/pasteword.htm | 21 +
.../TinyMCE/js/plugins/preview/editor_plugin.js | 1 +
.../js/plugins/preview/editor_plugin_src.js | 53 +
plugins/TinyMCE/js/plugins/preview/example.html | 28 +
.../TinyMCE/js/plugins/preview/jscripts/embed.js | 73 +
plugins/TinyMCE/js/plugins/preview/preview.html | 17 +
plugins/TinyMCE/js/plugins/print/editor_plugin.js | 1 +
.../TinyMCE/js/plugins/print/editor_plugin_src.js | 34 +
plugins/TinyMCE/js/plugins/save/editor_plugin.js | 1 +
.../TinyMCE/js/plugins/save/editor_plugin_src.js | 101 +
.../js/plugins/searchreplace/css/searchreplace.css | 6 +
.../js/plugins/searchreplace/editor_plugin.js | 1 +
.../js/plugins/searchreplace/editor_plugin_src.js | 57 +
.../js/plugins/searchreplace/js/searchreplace.js | 130 +
.../js/plugins/searchreplace/langs/en_dlg.js | 16 +
.../js/plugins/searchreplace/searchreplace.htm | 99 +
.../js/plugins/spellchecker/css/content.css | 1 +
.../js/plugins/spellchecker/editor_plugin.js | 1 +
.../js/plugins/spellchecker/editor_plugin_src.js | 341 +
.../TinyMCE/js/plugins/spellchecker/img/wline.gif | Bin 0 -> 46 bytes
plugins/TinyMCE/js/plugins/style/css/props.css | 13 +
plugins/TinyMCE/js/plugins/style/editor_plugin.js | 1 +
.../TinyMCE/js/plugins/style/editor_plugin_src.js | 55 +
plugins/TinyMCE/js/plugins/style/js/props.js | 641 +
plugins/TinyMCE/js/plugins/style/langs/en_dlg.js | 63 +
plugins/TinyMCE/js/plugins/style/props.htm | 728 ++
.../TinyMCE/js/plugins/tabfocus/editor_plugin.js | 1 +
.../js/plugins/tabfocus/editor_plugin_src.js | 112 +
plugins/TinyMCE/js/plugins/table/cell.htm | 178 +
plugins/TinyMCE/js/plugins/table/css/cell.css | 17 +
plugins/TinyMCE/js/plugins/table/css/row.css | 25 +
plugins/TinyMCE/js/plugins/table/css/table.css | 13 +
plugins/TinyMCE/js/plugins/table/editor_plugin.js | 1 +
.../TinyMCE/js/plugins/table/editor_plugin_src.js | 1118 ++
plugins/TinyMCE/js/plugins/table/js/cell.js | 286 +
plugins/TinyMCE/js/plugins/table/js/merge_cells.js | 27 +
plugins/TinyMCE/js/plugins/table/js/row.js | 237 +
plugins/TinyMCE/js/plugins/table/js/table.js | 449 +
plugins/TinyMCE/js/plugins/table/langs/en_dlg.js | 74 +
plugins/TinyMCE/js/plugins/table/merge_cells.htm | 32 +
plugins/TinyMCE/js/plugins/table/row.htm | 155 +
plugins/TinyMCE/js/plugins/table/table.htm | 187 +
plugins/TinyMCE/js/plugins/template/blank.htm | 12 +
.../TinyMCE/js/plugins/template/css/template.css | 23 +
.../TinyMCE/js/plugins/template/editor_plugin.js | 1 +
.../js/plugins/template/editor_plugin_src.js | 159 +
plugins/TinyMCE/js/plugins/template/js/template.js | 106 +
.../TinyMCE/js/plugins/template/langs/en_dlg.js | 15 +
plugins/TinyMCE/js/plugins/template/template.htm | 32 +
.../js/plugins/visualchars/editor_plugin.js | 1 +
.../js/plugins/visualchars/editor_plugin_src.js | 76 +
.../TinyMCE/js/plugins/wordcount/editor_plugin.js | 1 +
.../js/plugins/wordcount/editor_plugin_src.js | 98 +
plugins/TinyMCE/js/plugins/xhtmlxtras/abbr.htm | 141 +
plugins/TinyMCE/js/plugins/xhtmlxtras/acronym.htm | 141 +
.../TinyMCE/js/plugins/xhtmlxtras/attributes.htm | 148 +
plugins/TinyMCE/js/plugins/xhtmlxtras/cite.htm | 141 +
.../js/plugins/xhtmlxtras/css/attributes.css | 11 +
.../TinyMCE/js/plugins/xhtmlxtras/css/popup.css | 9 +
plugins/TinyMCE/js/plugins/xhtmlxtras/del.htm | 161 +
.../TinyMCE/js/plugins/xhtmlxtras/editor_plugin.js | 1 +
.../js/plugins/xhtmlxtras/editor_plugin_src.js | 144 +
plugins/TinyMCE/js/plugins/xhtmlxtras/ins.htm | 161 +
plugins/TinyMCE/js/plugins/xhtmlxtras/js/abbr.js | 28 +
.../TinyMCE/js/plugins/xhtmlxtras/js/acronym.js | 28 +
.../TinyMCE/js/plugins/xhtmlxtras/js/attributes.js | 126 +
plugins/TinyMCE/js/plugins/xhtmlxtras/js/cite.js | 28 +
plugins/TinyMCE/js/plugins/xhtmlxtras/js/del.js | 63 +
.../js/plugins/xhtmlxtras/js/element_common.js | 231 +
plugins/TinyMCE/js/plugins/xhtmlxtras/js/ins.js | 62 +
.../TinyMCE/js/plugins/xhtmlxtras/langs/en_dlg.js | 32 +
plugins/TinyMCE/js/themes/advanced/about.htm | 54 +
plugins/TinyMCE/js/themes/advanced/anchor.htm | 26 +
plugins/TinyMCE/js/themes/advanced/charmap.htm | 53 +
.../TinyMCE/js/themes/advanced/color_picker.htm | 73 +
.../TinyMCE/js/themes/advanced/editor_template.js | 1 +
.../js/themes/advanced/editor_template_src.js | 1204 ++
plugins/TinyMCE/js/themes/advanced/image.htm | 80 +
.../TinyMCE/js/themes/advanced/img/colorpicker.jpg | Bin 0 -> 3189 bytes
plugins/TinyMCE/js/themes/advanced/img/icons.gif | Bin 0 -> 11794 bytes
plugins/TinyMCE/js/themes/advanced/js/about.js | 72 +
plugins/TinyMCE/js/themes/advanced/js/anchor.js | 37 +
plugins/TinyMCE/js/themes/advanced/js/charmap.js | 335 +
.../TinyMCE/js/themes/advanced/js/color_picker.js | 253 +
plugins/TinyMCE/js/themes/advanced/js/image.js | 245 +
plugins/TinyMCE/js/themes/advanced/js/link.js | 156 +
.../TinyMCE/js/themes/advanced/js/source_editor.js | 62 +
plugins/TinyMCE/js/themes/advanced/langs/en.js | 62 +
plugins/TinyMCE/js/themes/advanced/langs/en_dlg.js | 51 +
plugins/TinyMCE/js/themes/advanced/link.htm | 58 +
.../js/themes/advanced/skins/default/content.css | 35 +
.../js/themes/advanced/skins/default/dialog.css | 117 +
.../themes/advanced/skins/default/img/buttons.png | Bin 0 -> 3274 bytes
.../js/themes/advanced/skins/default/img/items.gif | Bin 0 -> 70 bytes
.../advanced/skins/default/img/menu_arrow.gif | Bin 0 -> 68 bytes
.../advanced/skins/default/img/menu_check.gif | Bin 0 -> 70 bytes
.../themes/advanced/skins/default/img/progress.gif | Bin 0 -> 1787 bytes
.../js/themes/advanced/skins/default/img/tabs.gif | Bin 0 -> 1326 bytes
.../js/themes/advanced/skins/default/ui.css | 215 +
.../js/themes/advanced/skins/o2k7/content.css | 35 +
.../js/themes/advanced/skins/o2k7/dialog.css | 116 +
.../themes/advanced/skins/o2k7/img/button_bg.png | Bin 0 -> 5859 bytes
.../advanced/skins/o2k7/img/button_bg_black.png | Bin 0 -> 3736 bytes
.../advanced/skins/o2k7/img/button_bg_silver.png | Bin 0 -> 5358 bytes
.../TinyMCE/js/themes/advanced/skins/o2k7/ui.css | 216 +
.../js/themes/advanced/skins/o2k7/ui_black.css | 8 +
.../js/themes/advanced/skins/o2k7/ui_silver.css | 5 +
.../TinyMCE/js/themes/advanced/source_editor.htm | 26 +
.../TinyMCE/js/themes/simple/editor_template.js | 1 +
.../js/themes/simple/editor_template_src.js | 85 +
plugins/TinyMCE/js/themes/simple/img/icons.gif | Bin 0 -> 1440 bytes
plugins/TinyMCE/js/themes/simple/langs/en.js | 11 +
.../js/themes/simple/skins/default/content.css | 25 +
.../TinyMCE/js/themes/simple/skins/default/ui.css | 32 +
.../js/themes/simple/skins/o2k7/content.css | 17 +
.../js/themes/simple/skins/o2k7/img/button_bg.png | Bin 0 -> 5102 bytes
plugins/TinyMCE/js/themes/simple/skins/o2k7/ui.css | 35 +
plugins/TinyMCE/js/tiny_mce.js | 1 +
plugins/TinyMCE/js/tiny_mce_popup.js | 5 +
plugins/TinyMCE/js/tiny_mce_src.js | 13067 +++++++++++++++++++
plugins/TinyMCE/js/utils/editable_selects.js | 70 +
plugins/TinyMCE/js/utils/form_utils.js | 200 +
plugins/TinyMCE/js/utils/mctabs.js | 77 +
plugins/TinyMCE/js/utils/validate.js | 220 +
plugins/TinyMCE/locale/Sample.po | 56 +
247 files changed, 35717 insertions(+)
create mode 100644 plugins/TinyMCE/TinyMCEPlugin.php
create mode 100644 plugins/TinyMCE/js/jquery.tinymce.js
create mode 100644 plugins/TinyMCE/js/langs/en.js
create mode 100644 plugins/TinyMCE/js/license.txt
create mode 100644 plugins/TinyMCE/js/plugins/advhr/css/advhr.css
create mode 100644 plugins/TinyMCE/js/plugins/advhr/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/advhr/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/advhr/js/rule.js
create mode 100644 plugins/TinyMCE/js/plugins/advhr/langs/en_dlg.js
create mode 100644 plugins/TinyMCE/js/plugins/advhr/rule.htm
create mode 100644 plugins/TinyMCE/js/plugins/advimage/css/advimage.css
create mode 100644 plugins/TinyMCE/js/plugins/advimage/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/advimage/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/advimage/image.htm
create mode 100644 plugins/TinyMCE/js/plugins/advimage/img/sample.gif
create mode 100644 plugins/TinyMCE/js/plugins/advimage/js/image.js
create mode 100644 plugins/TinyMCE/js/plugins/advimage/langs/en_dlg.js
create mode 100644 plugins/TinyMCE/js/plugins/advlink/css/advlink.css
create mode 100644 plugins/TinyMCE/js/plugins/advlink/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/advlink/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/advlink/js/advlink.js
create mode 100644 plugins/TinyMCE/js/plugins/advlink/langs/en_dlg.js
create mode 100644 plugins/TinyMCE/js/plugins/advlink/link.htm
create mode 100644 plugins/TinyMCE/js/plugins/advlist/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/advlist/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/autoresize/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/autoresize/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/autosave/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/autosave/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/autosave/langs/en.js
create mode 100644 plugins/TinyMCE/js/plugins/bbcode/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/bbcode/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/contextmenu/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/contextmenu/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/directionality/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/directionality/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/emotions/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/emotions/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/emotions/emotions.htm
create mode 100644 plugins/TinyMCE/js/plugins/emotions/img/smiley-cool.gif
create mode 100644 plugins/TinyMCE/js/plugins/emotions/img/smiley-cry.gif
create mode 100644 plugins/TinyMCE/js/plugins/emotions/img/smiley-embarassed.gif
create mode 100644 plugins/TinyMCE/js/plugins/emotions/img/smiley-foot-in-mouth.gif
create mode 100644 plugins/TinyMCE/js/plugins/emotions/img/smiley-frown.gif
create mode 100644 plugins/TinyMCE/js/plugins/emotions/img/smiley-innocent.gif
create mode 100644 plugins/TinyMCE/js/plugins/emotions/img/smiley-kiss.gif
create mode 100644 plugins/TinyMCE/js/plugins/emotions/img/smiley-laughing.gif
create mode 100644 plugins/TinyMCE/js/plugins/emotions/img/smiley-money-mouth.gif
create mode 100644 plugins/TinyMCE/js/plugins/emotions/img/smiley-sealed.gif
create mode 100644 plugins/TinyMCE/js/plugins/emotions/img/smiley-smile.gif
create mode 100644 plugins/TinyMCE/js/plugins/emotions/img/smiley-surprised.gif
create mode 100644 plugins/TinyMCE/js/plugins/emotions/img/smiley-tongue-out.gif
create mode 100644 plugins/TinyMCE/js/plugins/emotions/img/smiley-undecided.gif
create mode 100644 plugins/TinyMCE/js/plugins/emotions/img/smiley-wink.gif
create mode 100644 plugins/TinyMCE/js/plugins/emotions/img/smiley-yell.gif
create mode 100644 plugins/TinyMCE/js/plugins/emotions/js/emotions.js
create mode 100644 plugins/TinyMCE/js/plugins/emotions/langs/en_dlg.js
create mode 100644 plugins/TinyMCE/js/plugins/example/dialog.htm
create mode 100644 plugins/TinyMCE/js/plugins/example/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/example/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/example/img/example.gif
create mode 100644 plugins/TinyMCE/js/plugins/example/js/dialog.js
create mode 100644 plugins/TinyMCE/js/plugins/example/langs/en.js
create mode 100644 plugins/TinyMCE/js/plugins/example/langs/en_dlg.js
create mode 100644 plugins/TinyMCE/js/plugins/fullpage/css/fullpage.css
create mode 100644 plugins/TinyMCE/js/plugins/fullpage/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/fullpage/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/fullpage/fullpage.htm
create mode 100644 plugins/TinyMCE/js/plugins/fullpage/js/fullpage.js
create mode 100644 plugins/TinyMCE/js/plugins/fullpage/langs/en_dlg.js
create mode 100644 plugins/TinyMCE/js/plugins/fullscreen/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/fullscreen/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/fullscreen/fullscreen.htm
create mode 100644 plugins/TinyMCE/js/plugins/iespell/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/iespell/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/inlinepopups/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/inlinepopups/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/inlinepopups/skins/clearlooks2/img/alert.gif
create mode 100644 plugins/TinyMCE/js/plugins/inlinepopups/skins/clearlooks2/img/button.gif
create mode 100644 plugins/TinyMCE/js/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif
create mode 100644 plugins/TinyMCE/js/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif
create mode 100644 plugins/TinyMCE/js/plugins/inlinepopups/skins/clearlooks2/img/corners.gif
create mode 100644 plugins/TinyMCE/js/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif
create mode 100644 plugins/TinyMCE/js/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif
create mode 100644 plugins/TinyMCE/js/plugins/inlinepopups/skins/clearlooks2/window.css
create mode 100644 plugins/TinyMCE/js/plugins/inlinepopups/template.htm
create mode 100644 plugins/TinyMCE/js/plugins/insertdatetime/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/insertdatetime/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/layer/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/layer/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/legacyoutput/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/legacyoutput/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/media/css/content.css
create mode 100644 plugins/TinyMCE/js/plugins/media/css/media.css
create mode 100644 plugins/TinyMCE/js/plugins/media/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/media/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/media/img/flash.gif
create mode 100644 plugins/TinyMCE/js/plugins/media/img/flv_player.swf
create mode 100644 plugins/TinyMCE/js/plugins/media/img/quicktime.gif
create mode 100644 plugins/TinyMCE/js/plugins/media/img/realmedia.gif
create mode 100644 plugins/TinyMCE/js/plugins/media/img/shockwave.gif
create mode 100644 plugins/TinyMCE/js/plugins/media/img/trans.gif
create mode 100644 plugins/TinyMCE/js/plugins/media/img/windowsmedia.gif
create mode 100644 plugins/TinyMCE/js/plugins/media/js/embed.js
create mode 100644 plugins/TinyMCE/js/plugins/media/js/media.js
create mode 100644 plugins/TinyMCE/js/plugins/media/langs/en_dlg.js
create mode 100644 plugins/TinyMCE/js/plugins/media/media.htm
create mode 100644 plugins/TinyMCE/js/plugins/nonbreaking/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/nonbreaking/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/noneditable/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/noneditable/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/pagebreak/css/content.css
create mode 100644 plugins/TinyMCE/js/plugins/pagebreak/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/pagebreak/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/pagebreak/img/pagebreak.gif
create mode 100644 plugins/TinyMCE/js/plugins/pagebreak/img/trans.gif
create mode 100644 plugins/TinyMCE/js/plugins/paste/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/paste/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/paste/js/pastetext.js
create mode 100644 plugins/TinyMCE/js/plugins/paste/js/pasteword.js
create mode 100644 plugins/TinyMCE/js/plugins/paste/langs/en_dlg.js
create mode 100644 plugins/TinyMCE/js/plugins/paste/pastetext.htm
create mode 100644 plugins/TinyMCE/js/plugins/paste/pasteword.htm
create mode 100644 plugins/TinyMCE/js/plugins/preview/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/preview/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/preview/example.html
create mode 100644 plugins/TinyMCE/js/plugins/preview/jscripts/embed.js
create mode 100644 plugins/TinyMCE/js/plugins/preview/preview.html
create mode 100644 plugins/TinyMCE/js/plugins/print/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/print/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/save/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/save/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/searchreplace/css/searchreplace.css
create mode 100644 plugins/TinyMCE/js/plugins/searchreplace/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/searchreplace/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/searchreplace/js/searchreplace.js
create mode 100644 plugins/TinyMCE/js/plugins/searchreplace/langs/en_dlg.js
create mode 100644 plugins/TinyMCE/js/plugins/searchreplace/searchreplace.htm
create mode 100644 plugins/TinyMCE/js/plugins/spellchecker/css/content.css
create mode 100644 plugins/TinyMCE/js/plugins/spellchecker/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/spellchecker/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/spellchecker/img/wline.gif
create mode 100644 plugins/TinyMCE/js/plugins/style/css/props.css
create mode 100644 plugins/TinyMCE/js/plugins/style/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/style/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/style/js/props.js
create mode 100644 plugins/TinyMCE/js/plugins/style/langs/en_dlg.js
create mode 100644 plugins/TinyMCE/js/plugins/style/props.htm
create mode 100644 plugins/TinyMCE/js/plugins/tabfocus/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/tabfocus/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/table/cell.htm
create mode 100644 plugins/TinyMCE/js/plugins/table/css/cell.css
create mode 100644 plugins/TinyMCE/js/plugins/table/css/row.css
create mode 100644 plugins/TinyMCE/js/plugins/table/css/table.css
create mode 100644 plugins/TinyMCE/js/plugins/table/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/table/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/table/js/cell.js
create mode 100644 plugins/TinyMCE/js/plugins/table/js/merge_cells.js
create mode 100644 plugins/TinyMCE/js/plugins/table/js/row.js
create mode 100644 plugins/TinyMCE/js/plugins/table/js/table.js
create mode 100644 plugins/TinyMCE/js/plugins/table/langs/en_dlg.js
create mode 100644 plugins/TinyMCE/js/plugins/table/merge_cells.htm
create mode 100644 plugins/TinyMCE/js/plugins/table/row.htm
create mode 100644 plugins/TinyMCE/js/plugins/table/table.htm
create mode 100644 plugins/TinyMCE/js/plugins/template/blank.htm
create mode 100644 plugins/TinyMCE/js/plugins/template/css/template.css
create mode 100644 plugins/TinyMCE/js/plugins/template/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/template/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/template/js/template.js
create mode 100644 plugins/TinyMCE/js/plugins/template/langs/en_dlg.js
create mode 100644 plugins/TinyMCE/js/plugins/template/template.htm
create mode 100644 plugins/TinyMCE/js/plugins/visualchars/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/visualchars/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/wordcount/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/wordcount/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/xhtmlxtras/abbr.htm
create mode 100644 plugins/TinyMCE/js/plugins/xhtmlxtras/acronym.htm
create mode 100644 plugins/TinyMCE/js/plugins/xhtmlxtras/attributes.htm
create mode 100644 plugins/TinyMCE/js/plugins/xhtmlxtras/cite.htm
create mode 100644 plugins/TinyMCE/js/plugins/xhtmlxtras/css/attributes.css
create mode 100644 plugins/TinyMCE/js/plugins/xhtmlxtras/css/popup.css
create mode 100644 plugins/TinyMCE/js/plugins/xhtmlxtras/del.htm
create mode 100644 plugins/TinyMCE/js/plugins/xhtmlxtras/editor_plugin.js
create mode 100644 plugins/TinyMCE/js/plugins/xhtmlxtras/editor_plugin_src.js
create mode 100644 plugins/TinyMCE/js/plugins/xhtmlxtras/ins.htm
create mode 100644 plugins/TinyMCE/js/plugins/xhtmlxtras/js/abbr.js
create mode 100644 plugins/TinyMCE/js/plugins/xhtmlxtras/js/acronym.js
create mode 100644 plugins/TinyMCE/js/plugins/xhtmlxtras/js/attributes.js
create mode 100644 plugins/TinyMCE/js/plugins/xhtmlxtras/js/cite.js
create mode 100644 plugins/TinyMCE/js/plugins/xhtmlxtras/js/del.js
create mode 100644 plugins/TinyMCE/js/plugins/xhtmlxtras/js/element_common.js
create mode 100644 plugins/TinyMCE/js/plugins/xhtmlxtras/js/ins.js
create mode 100644 plugins/TinyMCE/js/plugins/xhtmlxtras/langs/en_dlg.js
create mode 100644 plugins/TinyMCE/js/themes/advanced/about.htm
create mode 100644 plugins/TinyMCE/js/themes/advanced/anchor.htm
create mode 100644 plugins/TinyMCE/js/themes/advanced/charmap.htm
create mode 100644 plugins/TinyMCE/js/themes/advanced/color_picker.htm
create mode 100644 plugins/TinyMCE/js/themes/advanced/editor_template.js
create mode 100644 plugins/TinyMCE/js/themes/advanced/editor_template_src.js
create mode 100644 plugins/TinyMCE/js/themes/advanced/image.htm
create mode 100644 plugins/TinyMCE/js/themes/advanced/img/colorpicker.jpg
create mode 100644 plugins/TinyMCE/js/themes/advanced/img/icons.gif
create mode 100644 plugins/TinyMCE/js/themes/advanced/js/about.js
create mode 100644 plugins/TinyMCE/js/themes/advanced/js/anchor.js
create mode 100644 plugins/TinyMCE/js/themes/advanced/js/charmap.js
create mode 100644 plugins/TinyMCE/js/themes/advanced/js/color_picker.js
create mode 100644 plugins/TinyMCE/js/themes/advanced/js/image.js
create mode 100644 plugins/TinyMCE/js/themes/advanced/js/link.js
create mode 100644 plugins/TinyMCE/js/themes/advanced/js/source_editor.js
create mode 100644 plugins/TinyMCE/js/themes/advanced/langs/en.js
create mode 100644 plugins/TinyMCE/js/themes/advanced/langs/en_dlg.js
create mode 100644 plugins/TinyMCE/js/themes/advanced/link.htm
create mode 100644 plugins/TinyMCE/js/themes/advanced/skins/default/content.css
create mode 100644 plugins/TinyMCE/js/themes/advanced/skins/default/dialog.css
create mode 100644 plugins/TinyMCE/js/themes/advanced/skins/default/img/buttons.png
create mode 100644 plugins/TinyMCE/js/themes/advanced/skins/default/img/items.gif
create mode 100644 plugins/TinyMCE/js/themes/advanced/skins/default/img/menu_arrow.gif
create mode 100644 plugins/TinyMCE/js/themes/advanced/skins/default/img/menu_check.gif
create mode 100644 plugins/TinyMCE/js/themes/advanced/skins/default/img/progress.gif
create mode 100644 plugins/TinyMCE/js/themes/advanced/skins/default/img/tabs.gif
create mode 100644 plugins/TinyMCE/js/themes/advanced/skins/default/ui.css
create mode 100644 plugins/TinyMCE/js/themes/advanced/skins/o2k7/content.css
create mode 100644 plugins/TinyMCE/js/themes/advanced/skins/o2k7/dialog.css
create mode 100644 plugins/TinyMCE/js/themes/advanced/skins/o2k7/img/button_bg.png
create mode 100644 plugins/TinyMCE/js/themes/advanced/skins/o2k7/img/button_bg_black.png
create mode 100644 plugins/TinyMCE/js/themes/advanced/skins/o2k7/img/button_bg_silver.png
create mode 100644 plugins/TinyMCE/js/themes/advanced/skins/o2k7/ui.css
create mode 100644 plugins/TinyMCE/js/themes/advanced/skins/o2k7/ui_black.css
create mode 100644 plugins/TinyMCE/js/themes/advanced/skins/o2k7/ui_silver.css
create mode 100644 plugins/TinyMCE/js/themes/advanced/source_editor.htm
create mode 100644 plugins/TinyMCE/js/themes/simple/editor_template.js
create mode 100644 plugins/TinyMCE/js/themes/simple/editor_template_src.js
create mode 100644 plugins/TinyMCE/js/themes/simple/img/icons.gif
create mode 100644 plugins/TinyMCE/js/themes/simple/langs/en.js
create mode 100644 plugins/TinyMCE/js/themes/simple/skins/default/content.css
create mode 100644 plugins/TinyMCE/js/themes/simple/skins/default/ui.css
create mode 100644 plugins/TinyMCE/js/themes/simple/skins/o2k7/content.css
create mode 100644 plugins/TinyMCE/js/themes/simple/skins/o2k7/img/button_bg.png
create mode 100644 plugins/TinyMCE/js/themes/simple/skins/o2k7/ui.css
create mode 100644 plugins/TinyMCE/js/tiny_mce.js
create mode 100644 plugins/TinyMCE/js/tiny_mce_popup.js
create mode 100644 plugins/TinyMCE/js/tiny_mce_src.js
create mode 100644 plugins/TinyMCE/js/utils/editable_selects.js
create mode 100644 plugins/TinyMCE/js/utils/form_utils.js
create mode 100644 plugins/TinyMCE/js/utils/mctabs.js
create mode 100644 plugins/TinyMCE/js/utils/validate.js
create mode 100644 plugins/TinyMCE/locale/Sample.po
(limited to 'plugins')
diff --git a/plugins/TinyMCE/TinyMCEPlugin.php b/plugins/TinyMCE/TinyMCEPlugin.php
new file mode 100644
index 000000000..1d9d4a288
--- /dev/null
+++ b/plugins/TinyMCE/TinyMCEPlugin.php
@@ -0,0 +1,96 @@
+.
+ *
+ * @category WYSIWYG
+ * @package StatusNet
+ * @author Evan Prodromou
+ * @copyright 2010 StatusNet, Inc.
+ * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
+ * @link http://status.net/
+ */
+
+if (!defined('STATUSNET')) {
+ // This check helps protect against security problems;
+ // your code file can't be executed directly from the web.
+ exit(1);
+}
+
+/**
+ * Use TinyMCE library to allow rich text editing in the browser
+ *
+ * Converts the notice form in browser to a rich-text editor.
+ *
+ * @category WYSIWYG
+ * @package StatusNet
+ * @author Evan Prodromou
+ * @copyright 2010 StatusNet, Inc.
+ * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
+ * @link http://status.net/
+ */
+
+class TinyMCEPlugin extends Plugin
+{
+ function onEndShowScripts($action)
+ {
+ if (common_logged_in()) {
+ $action->script(common_path('plugins/TinyMCE/js/jquery.tinymce.js'));
+ $action->inlineScript($this->_inlineScript());
+ }
+
+ return true;
+ }
+
+ function onEndShowStyles($action)
+ {
+ $action->style('span#notice_data-text_container { float: left }');
+ return true;
+ }
+
+ function onPluginVersion(&$versions)
+ {
+ $versions[] = array('name' => 'TinyMCE',
+ 'version' => STATUSNET_VERSION,
+ 'author' => 'Evan Prodromou',
+ 'homepage' => 'http://status.net/wiki/Plugin:TinyMCE',
+ 'rawdescription' =>
+ _m('Use TinyMCE library to allow rich text editing in the browser'));
+ return true;
+ }
+
+ function _inlineScript()
+ {
+ $path = common_path('plugins/TinyMCE/js/tiny_mce.js');
+
+ $scr = <<0){if(l=tinyMCE.get(m[0].id)){return l.getContent()}}}}function h(m){var l=null;(m)&&(m.id)&&(c.tinymce)&&(l=tinyMCE.get(m.id));return l}function g(l){return !!((l)&&(l.length)&&(c.tinymce)&&(l.is(":tinymce")))}var j={};b.each(["text","html","val"],function(n,l){var o=j[l]=b.fn[l],m=(l==="text");b.fn[l]=function(r){var p=this;if(!g(p)){return o.call(p,r)}if(r!==e){k.call(p.filter(":tinymce"),r);o.call(p.not(":tinymce"),r);return p}else{var q="";(m?p:p.eq(0)).each(function(t,u){var s=h(u);q+=s?(m?s.getContent().replace(/<(?:"[^"]*"|'[^']*'|[^'">])*>/g,""):s.getContent()):o.call(b(u),r)});return q}}});b.each(["append","prepend"],function(n,m){var o=j[m]=b.fn[m],l=(m==="prepend");b.fn[m]=function(q){var p=this;if(!g(p)){return o.call(p,q)}if(q!==e){p.filter(":tinymce").each(function(s,t){var r=h(t);r&&r.setContent(l?q+r.getContent():r.getContent()+q)});o.call(p.not(":tinymce"),q);return p}}});b.each(["remove","replaceWith","replaceAll","empty"],function(m,l){var n=j[l]=b.fn[l];b.fn[l]=function(){i.call(this,l);return n.apply(this,arguments)}});j.attr=b.fn.attr;b.fn.attr=function(n,q,o){var m=this;if((!n)||(n!=="value")||(!g(m))){return j.attr.call(m,n,q,o)}if(q!==e){k.call(m.filter(":tinymce"),q);j.attr.call(m.not(":tinymce"),n,q,o);return m}else{var p=m[0],l=h(p);return l?l.getContent():j.attr.call(b(p),n,q,o)}}}})(jQuery);
\ No newline at end of file
diff --git a/plugins/TinyMCE/js/langs/en.js b/plugins/TinyMCE/js/langs/en.js
new file mode 100644
index 000000000..075bef70d
--- /dev/null
+++ b/plugins/TinyMCE/js/langs/en.js
@@ -0,0 +1,169 @@
+tinyMCE.addI18n({en:{
+common:{
+edit_confirm:"Do you want to use the WYSIWYG mode for this textarea?",
+apply:"Apply",
+insert:"Insert",
+update:"Update",
+cancel:"Cancel",
+close:"Close",
+browse:"Browse",
+class_name:"Class",
+not_set:"-- Not set --",
+clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?",
+clipboard_no_support:"Currently not supported by your browser, use keyboard shortcuts instead.",
+popup_blocked:"Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.",
+invalid_data:"Error: Invalid values entered, these are marked in red.",
+more_colors:"More colors"
+},
+contextmenu:{
+align:"Alignment",
+left:"Left",
+center:"Center",
+right:"Right",
+full:"Full"
+},
+insertdatetime:{
+date_fmt:"%Y-%m-%d",
+time_fmt:"%H:%M:%S",
+insertdate_desc:"Insert date",
+inserttime_desc:"Insert time",
+months_long:"January,February,March,April,May,June,July,August,September,October,November,December",
+months_short:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",
+day_long:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday",
+day_short:"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun"
+},
+print:{
+print_desc:"Print"
+},
+preview:{
+preview_desc:"Preview"
+},
+directionality:{
+ltr_desc:"Direction left to right",
+rtl_desc:"Direction right to left"
+},
+layer:{
+insertlayer_desc:"Insert new layer",
+forward_desc:"Move forward",
+backward_desc:"Move backward",
+absolute_desc:"Toggle absolute positioning",
+content:"New layer..."
+},
+save:{
+save_desc:"Save",
+cancel_desc:"Cancel all changes"
+},
+nonbreaking:{
+nonbreaking_desc:"Insert non-breaking space character"
+},
+iespell:{
+iespell_desc:"Run spell checking",
+download:"ieSpell not detected. Do you want to install it now?"
+},
+advhr:{
+advhr_desc:"Horizontal rule"
+},
+emotions:{
+emotions_desc:"Emotions"
+},
+searchreplace:{
+search_desc:"Find",
+replace_desc:"Find/Replace"
+},
+advimage:{
+image_desc:"Insert/edit image"
+},
+advlink:{
+link_desc:"Insert/edit link"
+},
+xhtmlxtras:{
+cite_desc:"Citation",
+abbr_desc:"Abbreviation",
+acronym_desc:"Acronym",
+del_desc:"Deletion",
+ins_desc:"Insertion",
+attribs_desc:"Insert/Edit Attributes"
+},
+style:{
+desc:"Edit CSS Style"
+},
+paste:{
+paste_text_desc:"Paste as Plain Text",
+paste_word_desc:"Paste from Word",
+selectall_desc:"Select All"
+},
+paste_dlg:{
+text_title:"Use CTRL+V on your keyboard to paste the text into the window.",
+text_linebreaks:"Keep linebreaks",
+word_title:"Use CTRL+V on your keyboard to paste the text into the window."
+},
+table:{
+desc:"Inserts a new table",
+row_before_desc:"Insert row before",
+row_after_desc:"Insert row after",
+delete_row_desc:"Delete row",
+col_before_desc:"Insert column before",
+col_after_desc:"Insert column after",
+delete_col_desc:"Remove column",
+split_cells_desc:"Split merged table cells",
+merge_cells_desc:"Merge table cells",
+row_desc:"Table row properties",
+cell_desc:"Table cell properties",
+props_desc:"Table properties",
+paste_row_before_desc:"Paste table row before",
+paste_row_after_desc:"Paste table row after",
+cut_row_desc:"Cut table row",
+copy_row_desc:"Copy table row",
+del:"Delete table",
+row:"Row",
+col:"Column",
+cell:"Cell"
+},
+autosave:{
+unload_msg:"The changes you made will be lost if you navigate away from this page.",
+restore_content: "Restore auto-saved content",
+warning_message: "If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?"
+},
+fullscreen:{
+desc:"Toggle fullscreen mode"
+},
+media:{
+desc:"Insert / edit embedded media",
+edit:"Edit embedded media"
+},
+fullpage:{
+desc:"Document properties"
+},
+template:{
+desc:"Insert predefined template content"
+},
+visualchars:{
+desc:"Visual control characters on/off."
+},
+spellchecker:{
+desc:"Toggle spellchecker",
+menu:"Spellchecker settings",
+ignore_word:"Ignore word",
+ignore_words:"Ignore all",
+langs:"Languages",
+wait:"Please wait...",
+sug:"Suggestions",
+no_sug:"No suggestions",
+no_mpell:"No misspellings found."
+},
+pagebreak:{
+desc:"Insert page break."
+},
+advlist : {
+ types : 'Types',
+ def : 'Default',
+ lower_alpha : "Lower alpha",
+ lower_greek : "Lower greek",
+ lower_roman : "Lower roman",
+ upper_alpha : "Upper alpha",
+ upper_roman : "Upper roman",
+ circle : "Circle",
+ disc : "Disc",
+ square : "Square"
+}
+}});
\ No newline at end of file
diff --git a/plugins/TinyMCE/js/license.txt b/plugins/TinyMCE/js/license.txt
new file mode 100644
index 000000000..60d6d4c8f
--- /dev/null
+++ b/plugins/TinyMCE/js/license.txt
@@ -0,0 +1,504 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 2.1, February 1999
+
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the Lesser GPL. It also counts
+ as the successor of the GNU Library Public License, version 2, hence
+ the version number 2.1.]
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+ This license, the Lesser General Public License, applies to some
+specially designated software packages--typically libraries--of the
+Free Software Foundation and other authors who decide to use it. You
+can use it too, but we suggest you first think carefully about whether
+this license or the ordinary General Public License is the better
+strategy to use in any particular case, based on the explanations below.
+
+ When we speak of free software, we are referring to freedom of use,
+not price. Our General Public Licenses are designed to make sure that
+you have the freedom to distribute copies of free software (and charge
+for this service if you wish); that you receive source code or can get
+it if you want it; that you can change the software and use pieces of
+it in new free programs; and that you are informed that you can do
+these things.
+
+ To protect your rights, we need to make restrictions that forbid
+distributors to deny you these rights or to ask you to surrender these
+rights. These restrictions translate to certain responsibilities for
+you if you distribute copies of the library or if you modify it.
+
+ For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you. You must make sure that they, too, receive or can get the source
+code. If you link other code with the library, you must provide
+complete object files to the recipients, so that they can relink them
+with the library after making changes to the library and recompiling
+it. And you must show them these terms so they know their rights.
+
+ We protect your rights with a two-step method: (1) we copyright the
+library, and (2) we offer you this license, which gives you legal
+permission to copy, distribute and/or modify the library.
+
+ To protect each distributor, we want to make it very clear that
+there is no warranty for the free library. Also, if the library is
+modified by someone else and passed on, the recipients should know
+that what they have is not the original version, so that the original
+author's reputation will not be affected by problems that might be
+introduced by others.
+
+ Finally, software patents pose a constant threat to the existence of
+any free program. We wish to make sure that a company cannot
+effectively restrict the users of a free program by obtaining a
+restrictive license from a patent holder. Therefore, we insist that
+any patent license obtained for a version of the library must be
+consistent with the full freedom of use specified in this license.
+
+ Most GNU software, including some libraries, is covered by the
+ordinary GNU General Public License. This license, the GNU Lesser
+General Public License, applies to certain designated libraries, and
+is quite different from the ordinary General Public License. We use
+this license for certain libraries in order to permit linking those
+libraries into non-free programs.
+
+ When a program is linked with a library, whether statically or using
+a shared library, the combination of the two is legally speaking a
+combined work, a derivative of the original library. The ordinary
+General Public License therefore permits such linking only if the
+entire combination fits its criteria of freedom. The Lesser General
+Public License permits more lax criteria for linking other code with
+the library.
+
+ We call this license the "Lesser" General Public License because it
+does Less to protect the user's freedom than the ordinary General
+Public License. It also provides other free software developers Less
+of an advantage over competing non-free programs. These disadvantages
+are the reason we use the ordinary General Public License for many
+libraries. However, the Lesser license provides advantages in certain
+special circumstances.
+
+ For example, on rare occasions, there may be a special need to
+encourage the widest possible use of a certain library, so that it becomes
+a de-facto standard. To achieve this, non-free programs must be
+allowed to use the library. A more frequent case is that a free
+library does the same job as widely used non-free libraries. In this
+case, there is little to gain by limiting the free library to free
+software only, so we use the Lesser General Public License.
+
+ In other cases, permission to use a particular library in non-free
+programs enables a greater number of people to use a large body of
+free software. For example, permission to use the GNU C Library in
+non-free programs enables many more people to use the whole GNU
+operating system, as well as its variant, the GNU/Linux operating
+system.
+
+ Although the Lesser General Public License is Less protective of the
+users' freedom, it does ensure that the user of a program that is
+linked with the Library has the freedom and the wherewithal to run
+that program using a modified version of the Library.
+
+ The precise terms and conditions for copying, distribution and
+modification follow. Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library". The
+former contains code derived from the library, whereas the latter must
+be combined with the library in order to run.
+
+ GNU LESSER GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License Agreement applies to any software library or other
+program which contains a notice placed by the copyright holder or
+other authorized party saying it may be distributed under the terms of
+this Lesser General Public License (also called "this License").
+Each licensee is addressed as "you".
+
+ A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+ The "Library", below, refers to any such software library or work
+which has been distributed under these terms. A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language. (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+ "Source code" for a work means the preferred form of the work for
+making modifications to it. For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+ Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it). Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+
+ 1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+ You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+ 2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) The modified work must itself be a software library.
+
+ b) You must cause the files modified to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ c) You must cause the whole of the work to be licensed at no
+ charge to all third parties under the terms of this License.
+
+ d) If a facility in the modified Library refers to a function or a
+ table of data to be supplied by an application program that uses
+ the facility, other than as an argument passed when the facility
+ is invoked, then you must make a good faith effort to ensure that,
+ in the event an application does not supply such function or
+ table, the facility still operates, and performs whatever part of
+ its purpose remains meaningful.
+
+ (For example, a function in a library to compute square roots has
+ a purpose that is entirely well-defined independent of the
+ application. Therefore, Subsection 2d requires that any
+ application-supplied function or table used by this function must
+ be optional: if the application does not supply it, the square
+ root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library. To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License. (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.) Do not make any other change in
+these notices.
+
+ Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+ This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+ 4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+ If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a "work that uses the Library". Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+ However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a "work that uses the
+library". The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+ When a "work that uses the Library" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library. The
+threshold for this to be true is not precisely defined by law.
+
+ If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work. (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+ Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+ 6. As an exception to the Sections above, you may also combine or
+link a "work that uses the Library" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+ You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License. You must supply a copy of this License. If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License. Also, you must do one
+of these things:
+
+ a) Accompany the work with the complete corresponding
+ machine-readable source code for the Library including whatever
+ changes were used in the work (which must be distributed under
+ Sections 1 and 2 above); and, if the work is an executable linked
+ with the Library, with the complete machine-readable "work that
+ uses the Library", as object code and/or source code, so that the
+ user can modify the Library and then relink to produce a modified
+ executable containing the modified Library. (It is understood
+ that the user who changes the contents of definitions files in the
+ Library will not necessarily be able to recompile the application
+ to use the modified definitions.)
+
+ b) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (1) uses at run time a
+ copy of the library already present on the user's computer system,
+ rather than copying library functions into the executable, and (2)
+ will operate properly with a modified version of the library, if
+ the user installs one, as long as the modified version is
+ interface-compatible with the version that the work was made with.
+
+ c) Accompany the work with a written offer, valid for at
+ least three years, to give the same user the materials
+ specified in Subsection 6a, above, for a charge no more
+ than the cost of performing this distribution.
+
+ d) If distribution of the work is made by offering access to copy
+ from a designated place, offer equivalent access to copy the above
+ specified materials from the same place.
+
+ e) Verify that the user has already received a copy of these
+ materials or that you have already sent this user a copy.
+
+ For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it. However, as a special exception,
+the materials to be distributed need not include anything that is
+normally distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+ It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system. Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+ 7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+ a) Accompany the combined library with a copy of the same work
+ based on the Library, uncombined with any other library
+ facilities. This must be distributed under the terms of the
+ Sections above.
+
+ b) Give prominent notice with the combined library of the fact
+ that part of it is a work based on the Library, and explaining
+ where to find the accompanying uncombined form of the same work.
+
+ 8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License. Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License. However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+ 9. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Library or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+ 10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties with
+this License.
+
+ 11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all. For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded. In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+ 13. The Free Software Foundation may publish revised and/or new
+versions of the Lesser General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library
+specifies a version number of this License which applies to it and
+"any later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation. If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+ 14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission. For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this. Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+ NO WARRANTY
+
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Libraries
+
+ If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change. You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+ To apply these terms, attach the following notices to the library. It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+
+ , 1 April 1990
+ Ty Coon, President of Vice
+
+That's all there is to it!
+
+
diff --git a/plugins/TinyMCE/js/plugins/advhr/css/advhr.css b/plugins/TinyMCE/js/plugins/advhr/css/advhr.css
new file mode 100644
index 000000000..0e2283498
--- /dev/null
+++ b/plugins/TinyMCE/js/plugins/advhr/css/advhr.css
@@ -0,0 +1,5 @@
+input.radio {border:1px none #000; background:transparent; vertical-align:middle;}
+.panel_wrapper div.current {height:80px;}
+#width {width:50px; vertical-align:middle;}
+#width2 {width:50px; vertical-align:middle;}
+#size {width:100px;}
diff --git a/plugins/TinyMCE/js/plugins/advhr/editor_plugin.js b/plugins/TinyMCE/js/plugins/advhr/editor_plugin.js
new file mode 100644
index 000000000..4d3b062de
--- /dev/null
+++ b/plugins/TinyMCE/js/plugins/advhr/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.AdvancedHRPlugin",{init:function(a,b){a.addCommand("mceAdvancedHr",function(){a.windowManager.open({file:b+"/rule.htm",width:250+parseInt(a.getLang("advhr.delta_width",0)),height:160+parseInt(a.getLang("advhr.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("advhr",{title:"advhr.advhr_desc",cmd:"mceAdvancedHr"});a.onNodeChange.add(function(d,c,e){c.setActive("advhr",e.nodeName=="HR")});a.onClick.add(function(c,d){d=d.target;if(d.nodeName==="HR"){c.selection.select(d)}})},getInfo:function(){return{longname:"Advanced HR",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advhr",tinymce.plugins.AdvancedHRPlugin)})();
\ No newline at end of file
diff --git a/plugins/TinyMCE/js/plugins/advhr/editor_plugin_src.js b/plugins/TinyMCE/js/plugins/advhr/editor_plugin_src.js
new file mode 100644
index 000000000..0c652d330
--- /dev/null
+++ b/plugins/TinyMCE/js/plugins/advhr/editor_plugin_src.js
@@ -0,0 +1,57 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ tinymce.create('tinymce.plugins.AdvancedHRPlugin', {
+ init : function(ed, url) {
+ // Register commands
+ ed.addCommand('mceAdvancedHr', function() {
+ ed.windowManager.open({
+ file : url + '/rule.htm',
+ width : 250 + parseInt(ed.getLang('advhr.delta_width', 0)),
+ height : 160 + parseInt(ed.getLang('advhr.delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url
+ });
+ });
+
+ // Register buttons
+ ed.addButton('advhr', {
+ title : 'advhr.advhr_desc',
+ cmd : 'mceAdvancedHr'
+ });
+
+ ed.onNodeChange.add(function(ed, cm, n) {
+ cm.setActive('advhr', n.nodeName == 'HR');
+ });
+
+ ed.onClick.add(function(ed, e) {
+ e = e.target;
+
+ if (e.nodeName === 'HR')
+ ed.selection.select(e);
+ });
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Advanced HR',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('advhr', tinymce.plugins.AdvancedHRPlugin);
+})();
\ No newline at end of file
diff --git a/plugins/TinyMCE/js/plugins/advhr/js/rule.js b/plugins/TinyMCE/js/plugins/advhr/js/rule.js
new file mode 100644
index 000000000..b6cbd66c7
--- /dev/null
+++ b/plugins/TinyMCE/js/plugins/advhr/js/rule.js
@@ -0,0 +1,43 @@
+var AdvHRDialog = {
+ init : function(ed) {
+ var dom = ed.dom, f = document.forms[0], n = ed.selection.getNode(), w;
+
+ w = dom.getAttrib(n, 'width');
+ f.width.value = w ? parseInt(w) : (dom.getStyle('width') || '');
+ f.size.value = dom.getAttrib(n, 'size') || parseInt(dom.getStyle('height')) || '';
+ f.noshade.checked = !!dom.getAttrib(n, 'noshade') || !!dom.getStyle('border-width');
+ selectByValue(f, 'width2', w.indexOf('%') != -1 ? '%' : 'px');
+ },
+
+ update : function() {
+ var ed = tinyMCEPopup.editor, h, f = document.forms[0], st = '';
+
+ h = '';
+
+ ed.execCommand("mceInsertContent", false, h);
+ tinyMCEPopup.close();
+ }
+};
+
+tinyMCEPopup.requireLangPack();
+tinyMCEPopup.onInit.add(AdvHRDialog.init, AdvHRDialog);
diff --git a/plugins/TinyMCE/js/plugins/advhr/langs/en_dlg.js b/plugins/TinyMCE/js/plugins/advhr/langs/en_dlg.js
new file mode 100644
index 000000000..873bfd8d3
--- /dev/null
+++ b/plugins/TinyMCE/js/plugins/advhr/langs/en_dlg.js
@@ -0,0 +1,5 @@
+tinyMCE.addI18n('en.advhr_dlg',{
+width:"Width",
+size:"Height",
+noshade:"No shadow"
+});
\ No newline at end of file
diff --git a/plugins/TinyMCE/js/plugins/advhr/rule.htm b/plugins/TinyMCE/js/plugins/advhr/rule.htm
new file mode 100644
index 000000000..fc37b2aec
--- /dev/null
+++ b/plugins/TinyMCE/js/plugins/advhr/rule.htm
@@ -0,0 +1,57 @@
+
+
+
+ {#advhr.advhr_desc}
+
+
+
+
+
+
+
+
+
+
diff --git a/plugins/TinyMCE/js/plugins/advimage/css/advimage.css b/plugins/TinyMCE/js/plugins/advimage/css/advimage.css
new file mode 100644
index 000000000..0a6251a69
--- /dev/null
+++ b/plugins/TinyMCE/js/plugins/advimage/css/advimage.css
@@ -0,0 +1,13 @@
+#src_list, #over_list, #out_list {width:280px;}
+.mceActionPanel {margin-top:7px;}
+.alignPreview {border:1px solid #000; width:140px; height:140px; overflow:hidden; padding:5px;}
+.checkbox {border:0;}
+.panel_wrapper div.current {height:305px;}
+#prev {margin:0; border:1px solid #000; width:428px; height:150px; overflow:auto;}
+#align, #classlist {width:150px;}
+#width, #height {vertical-align:middle; width:50px; text-align:center;}
+#vspace, #hspace, #border {vertical-align:middle; width:30px; text-align:center;}
+#class_list {width:180px;}
+input {width: 280px;}
+#constrain, #onmousemovecheck {width:auto;}
+#id, #dir, #lang, #usemap, #longdesc {width:200px;}
diff --git a/plugins/TinyMCE/js/plugins/advimage/editor_plugin.js b/plugins/TinyMCE/js/plugins/advimage/editor_plugin.js
new file mode 100644
index 000000000..4c7a9c3a8
--- /dev/null
+++ b/plugins/TinyMCE/js/plugins/advimage/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.AdvancedImagePlugin",{init:function(a,b){a.addCommand("mceAdvImage",function(){if(a.dom.getAttrib(a.selection.getNode(),"class").indexOf("mceItem")!=-1){return}a.windowManager.open({file:b+"/image.htm",width:480+parseInt(a.getLang("advimage.delta_width",0)),height:385+parseInt(a.getLang("advimage.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("image",{title:"advimage.image_desc",cmd:"mceAdvImage"})},getInfo:function(){return{longname:"Advanced image",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advimage",tinymce.plugins.AdvancedImagePlugin)})();
\ No newline at end of file
diff --git a/plugins/TinyMCE/js/plugins/advimage/editor_plugin_src.js b/plugins/TinyMCE/js/plugins/advimage/editor_plugin_src.js
new file mode 100644
index 000000000..2625dd213
--- /dev/null
+++ b/plugins/TinyMCE/js/plugins/advimage/editor_plugin_src.js
@@ -0,0 +1,50 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ tinymce.create('tinymce.plugins.AdvancedImagePlugin', {
+ init : function(ed, url) {
+ // Register commands
+ ed.addCommand('mceAdvImage', function() {
+ // Internal image object like a flash placeholder
+ if (ed.dom.getAttrib(ed.selection.getNode(), 'class').indexOf('mceItem') != -1)
+ return;
+
+ ed.windowManager.open({
+ file : url + '/image.htm',
+ width : 480 + parseInt(ed.getLang('advimage.delta_width', 0)),
+ height : 385 + parseInt(ed.getLang('advimage.delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url
+ });
+ });
+
+ // Register buttons
+ ed.addButton('image', {
+ title : 'advimage.image_desc',
+ cmd : 'mceAdvImage'
+ });
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Advanced image',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('advimage', tinymce.plugins.AdvancedImagePlugin);
+})();
\ No newline at end of file
diff --git a/plugins/TinyMCE/js/plugins/advimage/image.htm b/plugins/TinyMCE/js/plugins/advimage/image.htm
new file mode 100644
index 000000000..79cff3f19
--- /dev/null
+++ b/plugins/TinyMCE/js/plugins/advimage/image.htm
@@ -0,0 +1,232 @@
+
+
+
+ {#advimage_dlg.dialog_title}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/plugins/TinyMCE/js/plugins/advimage/img/sample.gif b/plugins/TinyMCE/js/plugins/advimage/img/sample.gif
new file mode 100644
index 000000000..53bf6890b
Binary files /dev/null and b/plugins/TinyMCE/js/plugins/advimage/img/sample.gif differ
diff --git a/plugins/TinyMCE/js/plugins/advimage/js/image.js b/plugins/TinyMCE/js/plugins/advimage/js/image.js
new file mode 100644
index 000000000..3bda86a2d
--- /dev/null
+++ b/plugins/TinyMCE/js/plugins/advimage/js/image.js
@@ -0,0 +1,443 @@
+var ImageDialog = {
+ preInit : function() {
+ var url;
+
+ tinyMCEPopup.requireLangPack();
+
+ if (url = tinyMCEPopup.getParam("external_image_list_url"))
+ document.write('');
+ },
+
+ init : function(ed) {
+ var f = document.forms[0], nl = f.elements, ed = tinyMCEPopup.editor, dom = ed.dom, n = ed.selection.getNode();
+
+ tinyMCEPopup.resizeToInnerSize();
+ this.fillClassList('class_list');
+ this.fillFileList('src_list', 'tinyMCEImageList');
+ this.fillFileList('over_list', 'tinyMCEImageList');
+ this.fillFileList('out_list', 'tinyMCEImageList');
+ TinyMCE_EditableSelects.init();
+
+ if (n.nodeName == 'IMG') {
+ nl.src.value = dom.getAttrib(n, 'src');
+ nl.width.value = dom.getAttrib(n, 'width');
+ nl.height.value = dom.getAttrib(n, 'height');
+ nl.alt.value = dom.getAttrib(n, 'alt');
+ nl.title.value = dom.getAttrib(n, 'title');
+ nl.vspace.value = this.getAttrib(n, 'vspace');
+ nl.hspace.value = this.getAttrib(n, 'hspace');
+ nl.border.value = this.getAttrib(n, 'border');
+ selectByValue(f, 'align', this.getAttrib(n, 'align'));
+ selectByValue(f, 'class_list', dom.getAttrib(n, 'class'), true, true);
+ nl.style.value = dom.getAttrib(n, 'style');
+ nl.id.value = dom.getAttrib(n, 'id');
+ nl.dir.value = dom.getAttrib(n, 'dir');
+ nl.lang.value = dom.getAttrib(n, 'lang');
+ nl.usemap.value = dom.getAttrib(n, 'usemap');
+ nl.longdesc.value = dom.getAttrib(n, 'longdesc');
+ nl.insert.value = ed.getLang('update');
+
+ if (/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/.test(dom.getAttrib(n, 'onmouseover')))
+ nl.onmouseoversrc.value = dom.getAttrib(n, 'onmouseover').replace(/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/, '$1');
+
+ if (/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/.test(dom.getAttrib(n, 'onmouseout')))
+ nl.onmouseoutsrc.value = dom.getAttrib(n, 'onmouseout').replace(/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/, '$1');
+
+ if (ed.settings.inline_styles) {
+ // Move attribs to styles
+ if (dom.getAttrib(n, 'align'))
+ this.updateStyle('align');
+
+ if (dom.getAttrib(n, 'hspace'))
+ this.updateStyle('hspace');
+
+ if (dom.getAttrib(n, 'border'))
+ this.updateStyle('border');
+
+ if (dom.getAttrib(n, 'vspace'))
+ this.updateStyle('vspace');
+ }
+ }
+
+ // Setup browse button
+ document.getElementById('srcbrowsercontainer').innerHTML = getBrowserHTML('srcbrowser','src','image','theme_advanced_image');
+ if (isVisible('srcbrowser'))
+ document.getElementById('src').style.width = '260px';
+
+ // Setup browse button
+ document.getElementById('onmouseoversrccontainer').innerHTML = getBrowserHTML('overbrowser','onmouseoversrc','image','theme_advanced_image');
+ if (isVisible('overbrowser'))
+ document.getElementById('onmouseoversrc').style.width = '260px';
+
+ // Setup browse button
+ document.getElementById('onmouseoutsrccontainer').innerHTML = getBrowserHTML('outbrowser','onmouseoutsrc','image','theme_advanced_image');
+ if (isVisible('outbrowser'))
+ document.getElementById('onmouseoutsrc').style.width = '260px';
+
+ // If option enabled default contrain proportions to checked
+ if (ed.getParam("advimage_constrain_proportions", true))
+ f.constrain.checked = true;
+
+ // Check swap image if valid data
+ if (nl.onmouseoversrc.value || nl.onmouseoutsrc.value)
+ this.setSwapImage(true);
+ else
+ this.setSwapImage(false);
+
+ this.changeAppearance();
+ this.showPreviewImage(nl.src.value, 1);
+ },
+
+ insert : function(file, title) {
+ var ed = tinyMCEPopup.editor, t = this, f = document.forms[0];
+
+ if (f.src.value === '') {
+ if (ed.selection.getNode().nodeName == 'IMG') {
+ ed.dom.remove(ed.selection.getNode());
+ ed.execCommand('mceRepaint');
+ }
+
+ tinyMCEPopup.close();
+ return;
+ }
+
+ if (tinyMCEPopup.getParam("accessibility_warnings", 1)) {
+ if (!f.alt.value) {
+ tinyMCEPopup.confirm(tinyMCEPopup.getLang('advimage_dlg.missing_alt'), function(s) {
+ if (s)
+ t.insertAndClose();
+ });
+
+ return;
+ }
+ }
+
+ t.insertAndClose();
+ },
+
+ insertAndClose : function() {
+ var ed = tinyMCEPopup.editor, f = document.forms[0], nl = f.elements, v, args = {}, el;
+
+ tinyMCEPopup.restoreSelection();
+
+ // Fixes crash in Safari
+ if (tinymce.isWebKit)
+ ed.getWin().focus();
+
+ if (!ed.settings.inline_styles) {
+ args = {
+ vspace : nl.vspace.value,
+ hspace : nl.hspace.value,
+ border : nl.border.value,
+ align : getSelectValue(f, 'align')
+ };
+ } else {
+ // Remove deprecated values
+ args = {
+ vspace : '',
+ hspace : '',
+ border : '',
+ align : ''
+ };
+ }
+
+ tinymce.extend(args, {
+ src : nl.src.value,
+ width : nl.width.value,
+ height : nl.height.value,
+ alt : nl.alt.value,
+ title : nl.title.value,
+ 'class' : getSelectValue(f, 'class_list'),
+ style : nl.style.value,
+ id : nl.id.value,
+ dir : nl.dir.value,
+ lang : nl.lang.value,
+ usemap : nl.usemap.value,
+ longdesc : nl.longdesc.value
+ });
+
+ args.onmouseover = args.onmouseout = '';
+
+ if (f.onmousemovecheck.checked) {
+ if (nl.onmouseoversrc.value)
+ args.onmouseover = "this.src='" + nl.onmouseoversrc.value + "';";
+
+ if (nl.onmouseoutsrc.value)
+ args.onmouseout = "this.src='" + nl.onmouseoutsrc.value + "';";
+ }
+
+ el = ed.selection.getNode();
+
+ if (el && el.nodeName == 'IMG') {
+ ed.dom.setAttribs(el, args);
+ } else {
+ ed.execCommand('mceInsertContent', false, '', {skip_undo : 1});
+ ed.dom.setAttribs('__mce_tmp', args);
+ ed.dom.setAttrib('__mce_tmp', 'id', '');
+ ed.undoManager.add();
+ }
+
+ tinyMCEPopup.close();
+ },
+
+ getAttrib : function(e, at) {
+ var ed = tinyMCEPopup.editor, dom = ed.dom, v, v2;
+
+ if (ed.settings.inline_styles) {
+ switch (at) {
+ case 'align':
+ if (v = dom.getStyle(e, 'float'))
+ return v;
+
+ if (v = dom.getStyle(e, 'vertical-align'))
+ return v;
+
+ break;
+
+ case 'hspace':
+ v = dom.getStyle(e, 'margin-left')
+ v2 = dom.getStyle(e, 'margin-right');
+
+ if (v && v == v2)
+ return parseInt(v.replace(/[^0-9]/g, ''));
+
+ break;
+
+ case 'vspace':
+ v = dom.getStyle(e, 'margin-top')
+ v2 = dom.getStyle(e, 'margin-bottom');
+ if (v && v == v2)
+ return parseInt(v.replace(/[^0-9]/g, ''));
+
+ break;
+
+ case 'border':
+ v = 0;
+
+ tinymce.each(['top', 'right', 'bottom', 'left'], function(sv) {
+ sv = dom.getStyle(e, 'border-' + sv + '-width');
+
+ // False or not the same as prev
+ if (!sv || (sv != v && v !== 0)) {
+ v = 0;
+ return false;
+ }
+
+ if (sv)
+ v = sv;
+ });
+
+ if (v)
+ return parseInt(v.replace(/[^0-9]/g, ''));
+
+ break;
+ }
+ }
+
+ if (v = dom.getAttrib(e, at))
+ return v;
+
+ return '';
+ },
+
+ setSwapImage : function(st) {
+ var f = document.forms[0];
+
+ f.onmousemovecheck.checked = st;
+ setBrowserDisabled('overbrowser', !st);
+ setBrowserDisabled('outbrowser', !st);
+
+ if (f.over_list)
+ f.over_list.disabled = !st;
+
+ if (f.out_list)
+ f.out_list.disabled = !st;
+
+ f.onmouseoversrc.disabled = !st;
+ f.onmouseoutsrc.disabled = !st;
+ },
+
+ fillClassList : function(id) {
+ var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl;
+
+ if (v = tinyMCEPopup.getParam('theme_advanced_styles')) {
+ cl = [];
+
+ tinymce.each(v.split(';'), function(v) {
+ var p = v.split('=');
+
+ cl.push({'title' : p[0], 'class' : p[1]});
+ });
+ } else
+ cl = tinyMCEPopup.editor.dom.getClasses();
+
+ if (cl.length > 0) {
+ lst.options.length = 0;
+ lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), '');
+
+ tinymce.each(cl, function(o) {
+ lst.options[lst.options.length] = new Option(o.title || o['class'], o['class']);
+ });
+ } else
+ dom.remove(dom.getParent(id, 'tr'));
+ },
+
+ fillFileList : function(id, l) {
+ var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl;
+
+ l = window[l];
+ lst.options.length = 0;
+
+ if (l && l.length > 0) {
+ lst.options[lst.options.length] = new Option('', '');
+
+ tinymce.each(l, function(o) {
+ lst.options[lst.options.length] = new Option(o[0], o[1]);
+ });
+ } else
+ dom.remove(dom.getParent(id, 'tr'));
+ },
+
+ resetImageData : function() {
+ var f = document.forms[0];
+
+ f.elements.width.value = f.elements.height.value = '';
+ },
+
+ updateImageData : function(img, st) {
+ var f = document.forms[0];
+
+ if (!st) {
+ f.elements.width.value = img.width;
+ f.elements.height.value = img.height;
+ }
+
+ this.preloadImg = img;
+ },
+
+ changeAppearance : function() {
+ var ed = tinyMCEPopup.editor, f = document.forms[0], img = document.getElementById('alignSampleImg');
+
+ if (img) {
+ if (ed.getParam('inline_styles')) {
+ ed.dom.setAttrib(img, 'style', f.style.value);
+ } else {
+ img.align = f.align.value;
+ img.border = f.border.value;
+ img.hspace = f.hspace.value;
+ img.vspace = f.vspace.value;
+ }
+ }
+ },
+
+ changeHeight : function() {
+ var f = document.forms[0], tp, t = this;
+
+ if (!f.constrain.checked || !t.preloadImg) {
+ return;
+ }
+
+ if (f.width.value == "" || f.height.value == "")
+ return;
+
+ tp = (parseInt(f.width.value) / parseInt(t.preloadImg.width)) * t.preloadImg.height;
+ f.height.value = tp.toFixed(0);
+ },
+
+ changeWidth : function() {
+ var f = document.forms[0], tp, t = this;
+
+ if (!f.constrain.checked || !t.preloadImg) {
+ return;
+ }
+
+ if (f.width.value == "" || f.height.value == "")
+ return;
+
+ tp = (parseInt(f.height.value) / parseInt(t.preloadImg.height)) * t.preloadImg.width;
+ f.width.value = tp.toFixed(0);
+ },
+
+ updateStyle : function(ty) {
+ var dom = tinyMCEPopup.dom, st, v, f = document.forms[0], img = dom.create('img', {style : dom.get('style').value});
+
+ if (tinyMCEPopup.editor.settings.inline_styles) {
+ // Handle align
+ if (ty == 'align') {
+ dom.setStyle(img, 'float', '');
+ dom.setStyle(img, 'vertical-align', '');
+
+ v = getSelectValue(f, 'align');
+ if (v) {
+ if (v == 'left' || v == 'right')
+ dom.setStyle(img, 'float', v);
+ else
+ img.style.verticalAlign = v;
+ }
+ }
+
+ // Handle border
+ if (ty == 'border') {
+ dom.setStyle(img, 'border', '');
+
+ v = f.border.value;
+ if (v || v == '0') {
+ if (v == '0')
+ img.style.border = '0';
+ else
+ img.style.border = v + 'px solid black';
+ }
+ }
+
+ // Handle hspace
+ if (ty == 'hspace') {
+ dom.setStyle(img, 'marginLeft', '');
+ dom.setStyle(img, 'marginRight', '');
+
+ v = f.hspace.value;
+ if (v) {
+ img.style.marginLeft = v + 'px';
+ img.style.marginRight = v + 'px';
+ }
+ }
+
+ // Handle vspace
+ if (ty == 'vspace') {
+ dom.setStyle(img, 'marginTop', '');
+ dom.setStyle(img, 'marginBottom', '');
+
+ v = f.vspace.value;
+ if (v) {
+ img.style.marginTop = v + 'px';
+ img.style.marginBottom = v + 'px';
+ }
+ }
+
+ // Merge
+ dom.get('style').value = dom.serializeStyle(dom.parseStyle(img.style.cssText), 'img');
+ }
+ },
+
+ changeMouseMove : function() {
+ },
+
+ showPreviewImage : function(u, st) {
+ if (!u) {
+ tinyMCEPopup.dom.setHTML('prev', '');
+ return;
+ }
+
+ if (!st && tinyMCEPopup.getParam("advimage_update_dimensions_onchange", true))
+ this.resetImageData();
+
+ u = tinyMCEPopup.editor.documentBaseURI.toAbsolute(u);
+
+ if (!st)
+ tinyMCEPopup.dom.setHTML('prev', '');
+ else
+ tinyMCEPopup.dom.setHTML('prev', '');
+ }
+};
+
+ImageDialog.preInit();
+tinyMCEPopup.onInit.add(ImageDialog.init, ImageDialog);
diff --git a/plugins/TinyMCE/js/plugins/advimage/langs/en_dlg.js b/plugins/TinyMCE/js/plugins/advimage/langs/en_dlg.js
new file mode 100644
index 000000000..f493d196f
--- /dev/null
+++ b/plugins/TinyMCE/js/plugins/advimage/langs/en_dlg.js
@@ -0,0 +1,43 @@
+tinyMCE.addI18n('en.advimage_dlg',{
+tab_general:"General",
+tab_appearance:"Appearance",
+tab_advanced:"Advanced",
+general:"General",
+title:"Title",
+preview:"Preview",
+constrain_proportions:"Constrain proportions",
+langdir:"Language direction",
+langcode:"Language code",
+long_desc:"Long description link",
+style:"Style",
+classes:"Classes",
+ltr:"Left to right",
+rtl:"Right to left",
+id:"Id",
+map:"Image map",
+swap_image:"Swap image",
+alt_image:"Alternative image",
+mouseover:"for mouse over",
+mouseout:"for mouse out",
+misc:"Miscellaneous",
+example_img:"Appearance preview image",
+missing_alt:"Are you sure you want to continue without including an Image Description? Without it the image may not be accessible to some users with disabilities, or to those using a text browser, or browsing the Web with images turned off.",
+dialog_title:"Insert/edit image",
+src:"Image URL",
+alt:"Image description",
+list:"Image list",
+border:"Border",
+dimensions:"Dimensions",
+vspace:"Vertical space",
+hspace:"Horizontal space",
+align:"Alignment",
+align_baseline:"Baseline",
+align_top:"Top",
+align_middle:"Middle",
+align_bottom:"Bottom",
+align_texttop:"Text top",
+align_textbottom:"Text bottom",
+align_left:"Left",
+align_right:"Right",
+image_list:"Image list"
+});
\ No newline at end of file
diff --git a/plugins/TinyMCE/js/plugins/advlink/css/advlink.css b/plugins/TinyMCE/js/plugins/advlink/css/advlink.css
new file mode 100644
index 000000000..14364316a
--- /dev/null
+++ b/plugins/TinyMCE/js/plugins/advlink/css/advlink.css
@@ -0,0 +1,8 @@
+.mceLinkList, .mceAnchorList, #targetlist {width:280px;}
+.mceActionPanel {margin-top:7px;}
+.panel_wrapper div.current {height:320px;}
+#classlist, #title, #href {width:280px;}
+#popupurl, #popupname {width:200px;}
+#popupwidth, #popupheight, #popupleft, #popuptop {width:30px;vertical-align:middle;text-align:center;}
+#id, #style, #classes, #target, #dir, #hreflang, #lang, #charset, #type, #rel, #rev, #tabindex, #accesskey {width:200px;}
+#events_panel input {width:200px;}
diff --git a/plugins/TinyMCE/js/plugins/advlink/editor_plugin.js b/plugins/TinyMCE/js/plugins/advlink/editor_plugin.js
new file mode 100644
index 000000000..983fe5a9c
--- /dev/null
+++ b/plugins/TinyMCE/js/plugins/advlink/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.AdvancedLinkPlugin",{init:function(a,b){this.editor=a;a.addCommand("mceAdvLink",function(){var c=a.selection;if(c.isCollapsed()&&!a.dom.getParent(c.getNode(),"A")){return}a.windowManager.open({file:b+"/link.htm",width:480+parseInt(a.getLang("advlink.delta_width",0)),height:400+parseInt(a.getLang("advlink.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("link",{title:"advlink.link_desc",cmd:"mceAdvLink"});a.addShortcut("ctrl+k","advlink.advlink_desc","mceAdvLink");a.onNodeChange.add(function(d,c,f,e){c.setDisabled("link",e&&f.nodeName!="A");c.setActive("link",f.nodeName=="A"&&!f.name)})},getInfo:function(){return{longname:"Advanced link",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlink",tinymce.plugins.AdvancedLinkPlugin)})();
\ No newline at end of file
diff --git a/plugins/TinyMCE/js/plugins/advlink/editor_plugin_src.js b/plugins/TinyMCE/js/plugins/advlink/editor_plugin_src.js
new file mode 100644
index 000000000..14e46a762
--- /dev/null
+++ b/plugins/TinyMCE/js/plugins/advlink/editor_plugin_src.js
@@ -0,0 +1,61 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ tinymce.create('tinymce.plugins.AdvancedLinkPlugin', {
+ init : function(ed, url) {
+ this.editor = ed;
+
+ // Register commands
+ ed.addCommand('mceAdvLink', function() {
+ var se = ed.selection;
+
+ // No selection and not in link
+ if (se.isCollapsed() && !ed.dom.getParent(se.getNode(), 'A'))
+ return;
+
+ ed.windowManager.open({
+ file : url + '/link.htm',
+ width : 480 + parseInt(ed.getLang('advlink.delta_width', 0)),
+ height : 400 + parseInt(ed.getLang('advlink.delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url
+ });
+ });
+
+ // Register buttons
+ ed.addButton('link', {
+ title : 'advlink.link_desc',
+ cmd : 'mceAdvLink'
+ });
+
+ ed.addShortcut('ctrl+k', 'advlink.advlink_desc', 'mceAdvLink');
+
+ ed.onNodeChange.add(function(ed, cm, n, co) {
+ cm.setDisabled('link', co && n.nodeName != 'A');
+ cm.setActive('link', n.nodeName == 'A' && !n.name);
+ });
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Advanced link',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('advlink', tinymce.plugins.AdvancedLinkPlugin);
+})();
\ No newline at end of file
diff --git a/plugins/TinyMCE/js/plugins/advlink/js/advlink.js b/plugins/TinyMCE/js/plugins/advlink/js/advlink.js
new file mode 100644
index 000000000..b78e82f76
--- /dev/null
+++ b/plugins/TinyMCE/js/plugins/advlink/js/advlink.js
@@ -0,0 +1,528 @@
+/* Functions for the advlink plugin popup */
+
+tinyMCEPopup.requireLangPack();
+
+var templates = {
+ "window.open" : "window.open('${url}','${target}','${options}')"
+};
+
+function preinit() {
+ var url;
+
+ if (url = tinyMCEPopup.getParam("external_link_list_url"))
+ document.write('');
+}
+
+function changeClass() {
+ var f = document.forms[0];
+
+ f.classes.value = getSelectValue(f, 'classlist');
+}
+
+function init() {
+ tinyMCEPopup.resizeToInnerSize();
+
+ var formObj = document.forms[0];
+ var inst = tinyMCEPopup.editor;
+ var elm = inst.selection.getNode();
+ var action = "insert";
+ var html;
+
+ document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser','href','file','advlink');
+ document.getElementById('popupurlbrowsercontainer').innerHTML = getBrowserHTML('popupurlbrowser','popupurl','file','advlink');
+ document.getElementById('linklisthrefcontainer').innerHTML = getLinkListHTML('linklisthref','href');
+ document.getElementById('anchorlistcontainer').innerHTML = getAnchorListHTML('anchorlist','href');
+ document.getElementById('targetlistcontainer').innerHTML = getTargetListHTML('targetlist','target');
+
+ // Link list
+ html = getLinkListHTML('linklisthref','href');
+ if (html == "")
+ document.getElementById("linklisthrefrow").style.display = 'none';
+ else
+ document.getElementById("linklisthrefcontainer").innerHTML = html;
+
+ // Resize some elements
+ if (isVisible('hrefbrowser'))
+ document.getElementById('href').style.width = '260px';
+
+ if (isVisible('popupurlbrowser'))
+ document.getElementById('popupurl').style.width = '180px';
+
+ elm = inst.dom.getParent(elm, "A");
+ if (elm != null && elm.nodeName == "A")
+ action = "update";
+
+ formObj.insert.value = tinyMCEPopup.getLang(action, 'Insert', true);
+
+ setPopupControlsDisabled(true);
+
+ if (action == "update") {
+ var href = inst.dom.getAttrib(elm, 'href');
+ var onclick = inst.dom.getAttrib(elm, 'onclick');
+
+ // Setup form data
+ setFormValue('href', href);
+ setFormValue('title', inst.dom.getAttrib(elm, 'title'));
+ setFormValue('id', inst.dom.getAttrib(elm, 'id'));
+ setFormValue('style', inst.dom.getAttrib(elm, "style"));
+ setFormValue('rel', inst.dom.getAttrib(elm, 'rel'));
+ setFormValue('rev', inst.dom.getAttrib(elm, 'rev'));
+ setFormValue('charset', inst.dom.getAttrib(elm, 'charset'));
+ setFormValue('hreflang', inst.dom.getAttrib(elm, 'hreflang'));
+ setFormValue('dir', inst.dom.getAttrib(elm, 'dir'));
+ setFormValue('lang', inst.dom.getAttrib(elm, 'lang'));
+ setFormValue('tabindex', inst.dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : ""));
+ setFormValue('accesskey', inst.dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : ""));
+ setFormValue('type', inst.dom.getAttrib(elm, 'type'));
+ setFormValue('onfocus', inst.dom.getAttrib(elm, 'onfocus'));
+ setFormValue('onblur', inst.dom.getAttrib(elm, 'onblur'));
+ setFormValue('onclick', onclick);
+ setFormValue('ondblclick', inst.dom.getAttrib(elm, 'ondblclick'));
+ setFormValue('onmousedown', inst.dom.getAttrib(elm, 'onmousedown'));
+ setFormValue('onmouseup', inst.dom.getAttrib(elm, 'onmouseup'));
+ setFormValue('onmouseover', inst.dom.getAttrib(elm, 'onmouseover'));
+ setFormValue('onmousemove', inst.dom.getAttrib(elm, 'onmousemove'));
+ setFormValue('onmouseout', inst.dom.getAttrib(elm, 'onmouseout'));
+ setFormValue('onkeypress', inst.dom.getAttrib(elm, 'onkeypress'));
+ setFormValue('onkeydown', inst.dom.getAttrib(elm, 'onkeydown'));
+ setFormValue('onkeyup', inst.dom.getAttrib(elm, 'onkeyup'));
+ setFormValue('target', inst.dom.getAttrib(elm, 'target'));
+ setFormValue('classes', inst.dom.getAttrib(elm, 'class'));
+
+ // Parse onclick data
+ if (onclick != null && onclick.indexOf('window.open') != -1)
+ parseWindowOpen(onclick);
+ else
+ parseFunction(onclick);
+
+ // Select by the values
+ selectByValue(formObj, 'dir', inst.dom.getAttrib(elm, 'dir'));
+ selectByValue(formObj, 'rel', inst.dom.getAttrib(elm, 'rel'));
+ selectByValue(formObj, 'rev', inst.dom.getAttrib(elm, 'rev'));
+ selectByValue(formObj, 'linklisthref', href);
+
+ if (href.charAt(0) == '#')
+ selectByValue(formObj, 'anchorlist', href);
+
+ addClassesToList('classlist', 'advlink_styles');
+
+ selectByValue(formObj, 'classlist', inst.dom.getAttrib(elm, 'class'), true);
+ selectByValue(formObj, 'targetlist', inst.dom.getAttrib(elm, 'target'), true);
+ } else
+ addClassesToList('classlist', 'advlink_styles');
+}
+
+function checkPrefix(n) {
+ if (n.value && Validator.isEmail(n) && !/^\s*mailto:/i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_email')))
+ n.value = 'mailto:' + n.value;
+
+ if (/^\s*www\./i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_external')))
+ n.value = 'http://' + n.value;
+}
+
+function setFormValue(name, value) {
+ document.forms[0].elements[name].value = value;
+}
+
+function parseWindowOpen(onclick) {
+ var formObj = document.forms[0];
+
+ // Preprocess center code
+ if (onclick.indexOf('return false;') != -1) {
+ formObj.popupreturn.checked = true;
+ onclick = onclick.replace('return false;', '');
+ } else
+ formObj.popupreturn.checked = false;
+
+ var onClickData = parseLink(onclick);
+
+ if (onClickData != null) {
+ formObj.ispopup.checked = true;
+ setPopupControlsDisabled(false);
+
+ var onClickWindowOptions = parseOptions(onClickData['options']);
+ var url = onClickData['url'];
+
+ formObj.popupname.value = onClickData['target'];
+ formObj.popupurl.value = url;
+ formObj.popupwidth.value = getOption(onClickWindowOptions, 'width');
+ formObj.popupheight.value = getOption(onClickWindowOptions, 'height');
+
+ formObj.popupleft.value = getOption(onClickWindowOptions, 'left');
+ formObj.popuptop.value = getOption(onClickWindowOptions, 'top');
+
+ if (formObj.popupleft.value.indexOf('screen') != -1)
+ formObj.popupleft.value = "c";
+
+ if (formObj.popuptop.value.indexOf('screen') != -1)
+ formObj.popuptop.value = "c";
+
+ formObj.popuplocation.checked = getOption(onClickWindowOptions, 'location') == "yes";
+ formObj.popupscrollbars.checked = getOption(onClickWindowOptions, 'scrollbars') == "yes";
+ formObj.popupmenubar.checked = getOption(onClickWindowOptions, 'menubar') == "yes";
+ formObj.popupresizable.checked = getOption(onClickWindowOptions, 'resizable') == "yes";
+ formObj.popuptoolbar.checked = getOption(onClickWindowOptions, 'toolbar') == "yes";
+ formObj.popupstatus.checked = getOption(onClickWindowOptions, 'status') == "yes";
+ formObj.popupdependent.checked = getOption(onClickWindowOptions, 'dependent') == "yes";
+
+ buildOnClick();
+ }
+}
+
+function parseFunction(onclick) {
+ var formObj = document.forms[0];
+ var onClickData = parseLink(onclick);
+
+ // TODO: Add stuff here
+}
+
+function getOption(opts, name) {
+ return typeof(opts[name]) == "undefined" ? "" : opts[name];
+}
+
+function setPopupControlsDisabled(state) {
+ var formObj = document.forms[0];
+
+ formObj.popupname.disabled = state;
+ formObj.popupurl.disabled = state;
+ formObj.popupwidth.disabled = state;
+ formObj.popupheight.disabled = state;
+ formObj.popupleft.disabled = state;
+ formObj.popuptop.disabled = state;
+ formObj.popuplocation.disabled = state;
+ formObj.popupscrollbars.disabled = state;
+ formObj.popupmenubar.disabled = state;
+ formObj.popupresizable.disabled = state;
+ formObj.popuptoolbar.disabled = state;
+ formObj.popupstatus.disabled = state;
+ formObj.popupreturn.disabled = state;
+ formObj.popupdependent.disabled = state;
+
+ setBrowserDisabled('popupurlbrowser', state);
+}
+
+function parseLink(link) {
+ link = link.replace(new RegExp(''', 'g'), "'");
+
+ var fnName = link.replace(new RegExp("\\s*([A-Za-z0-9\.]*)\\s*\\(.*", "gi"), "$1");
+
+ // Is function name a template function
+ var template = templates[fnName];
+ if (template) {
+ // Build regexp
+ var variableNames = template.match(new RegExp("'?\\$\\{[A-Za-z0-9\.]*\\}'?", "gi"));
+ var regExp = "\\s*[A-Za-z0-9\.]*\\s*\\(";
+ var replaceStr = "";
+ for (var i=0; i";
+ } else
+ regExp += ".*";
+ }
+
+ regExp += "\\);?";
+
+ // Build variable array
+ var variables = [];
+ variables["_function"] = fnName;
+ var variableValues = link.replace(new RegExp(regExp, "gi"), replaceStr).split('');
+ for (var i=0; i';
+ html += '';
+
+ for (i=0; i' + name + '';
+ }
+
+ html += '';
+
+ return html;
+}
+
+function insertAction() {
+ var inst = tinyMCEPopup.editor;
+ var elm, elementArray, i;
+
+ elm = inst.selection.getNode();
+ checkPrefix(document.forms[0].href);
+
+ elm = inst.dom.getParent(elm, "A");
+
+ // Remove element if there is no href
+ if (!document.forms[0].href.value) {
+ tinyMCEPopup.execCommand("mceBeginUndoLevel");
+ i = inst.selection.getBookmark();
+ inst.dom.remove(elm, 1);
+ inst.selection.moveToBookmark(i);
+ tinyMCEPopup.execCommand("mceEndUndoLevel");
+ tinyMCEPopup.close();
+ return;
+ }
+
+ tinyMCEPopup.execCommand("mceBeginUndoLevel");
+
+ // Create new anchor elements
+ if (elm == null) {
+ inst.getDoc().execCommand("unlink", false, null);
+ tinyMCEPopup.execCommand("CreateLink", false, "#mce_temp_url#", {skip_undo : 1});
+
+ elementArray = tinymce.grep(inst.dom.select("a"), function(n) {return inst.dom.getAttrib(n, 'href') == '#mce_temp_url#';});
+ for (i=0; i';
+
+ for (var i=0; i' + tinyMCELinkList[i][0] + '';
+
+ html += '';
+
+ return html;
+
+ // tinyMCE.debug('-- image list start --', html, '-- image list end --');
+}
+
+function getTargetListHTML(elm_id, target_form_element) {
+ var targets = tinyMCEPopup.getParam('theme_advanced_link_targets', '').split(';');
+ var html = '';
+
+ html += '';
+
+ return html;
+}
+
+// While loading
+preinit();
+tinyMCEPopup.onInit.add(init);
diff --git a/plugins/TinyMCE/js/plugins/advlink/langs/en_dlg.js b/plugins/TinyMCE/js/plugins/advlink/langs/en_dlg.js
new file mode 100644
index 000000000..c71ffbd0f
--- /dev/null
+++ b/plugins/TinyMCE/js/plugins/advlink/langs/en_dlg.js
@@ -0,0 +1,52 @@
+tinyMCE.addI18n('en.advlink_dlg',{
+title:"Insert/edit link",
+url:"Link URL",
+target:"Target",
+titlefield:"Title",
+is_email:"The URL you entered seems to be an email address, do you want to add the required mailto: prefix?",
+is_external:"The URL you entered seems to external link, do you want to add the required http:// prefix?",
+list:"Link list",
+general_tab:"General",
+popup_tab:"Popup",
+events_tab:"Events",
+advanced_tab:"Advanced",
+general_props:"General properties",
+popup_props:"Popup properties",
+event_props:"Events",
+advanced_props:"Advanced properties",
+popup_opts:"Options",
+anchor_names:"Anchors",
+target_same:"Open in this window / frame",
+target_parent:"Open in parent window / frame",
+target_top:"Open in top frame (replaces all frames)",
+target_blank:"Open in new window",
+popup:"Javascript popup",
+popup_url:"Popup URL",
+popup_name:"Window name",
+popup_return:"Insert 'return false'",
+popup_scrollbars:"Show scrollbars",
+popup_statusbar:"Show status bar",
+popup_toolbar:"Show toolbars",
+popup_menubar:"Show menu bar",
+popup_location:"Show location bar",
+popup_resizable:"Make window resizable",
+popup_dependent:"Dependent (Mozilla/Firefox only)",
+popup_size:"Size",
+popup_position:"Position (X/Y)",
+id:"Id",
+style:"Style",
+classes:"Classes",
+target_name:"Target name",
+langdir:"Language direction",
+target_langcode:"Target language",
+langcode:"Language code",
+encoding:"Target character encoding",
+mime:"Target MIME type",
+rel:"Relationship page to target",
+rev:"Relationship target to page",
+tabindex:"Tabindex",
+accesskey:"Accesskey",
+ltr:"Left to right",
+rtl:"Right to left",
+link_list:"Link list"
+});
\ No newline at end of file
diff --git a/plugins/TinyMCE/js/plugins/advlink/link.htm b/plugins/TinyMCE/js/plugins/advlink/link.htm
new file mode 100644
index 000000000..876669c6b
--- /dev/null
+++ b/plugins/TinyMCE/js/plugins/advlink/link.htm
@@ -0,0 +1,333 @@
+
+
+
+ {#advlink_dlg.title}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/plugins/TinyMCE/js/plugins/advlist/editor_plugin.js b/plugins/TinyMCE/js/plugins/advlist/editor_plugin.js
new file mode 100644
index 000000000..02d16971a
--- /dev/null
+++ b/plugins/TinyMCE/js/plugins/advlist/editor_plugin.js
@@ -0,0 +1 @@
+(function(){var a=tinymce.each;tinymce.create("tinymce.plugins.AdvListPlugin",{init:function(b,c){var d=this;d.editor=b;function e(g){var f=[];a(g.split(/,/),function(h){f.push({title:"advlist."+(h=="default"?"def":h.replace(/-/g,"_")),styles:{listStyleType:h=="default"?"":h}})});return f}d.numlist=b.getParam("advlist_number_styles")||e("default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");d.bullist=b.getParam("advlist_bullet_styles")||e("default,circle,disc,square")},createControl:function(d,b){var f=this,e,h;if(d=="numlist"||d=="bullist"){if(f[d][0].title=="advlist.def"){h=f[d][0]}function c(i,k){var j=true;a(k.styles,function(m,l){if(f.editor.dom.getStyle(i,l)!=m){j=false;return false}});return j}function g(){var k,i=f.editor,l=i.dom,j=i.selection;k=l.getParent(j.getNode(),"ol,ul");if(!k||k.nodeName==(d=="bullist"?"OL":"UL")||c(k,h)){i.execCommand(d=="bullist"?"InsertUnorderedList":"InsertOrderedList")}if(h){k=l.getParent(j.getNode(),"ol,ul");if(k){l.setStyles(k,h.styles);k.removeAttribute("_mce_style")}}}e=b.createSplitButton(d,{title:"advanced."+d+"_desc","class":"mce_"+d,onclick:function(){g()}});e.onRenderMenu.add(function(i,j){j.onShowMenu.add(function(){var m=f.editor.dom,l=m.getParent(f.editor.selection.getNode(),"ol,ul"),k;if(l||h){k=f[d];a(j.items,function(n){var o=true;n.setSelected(0);if(l&&!n.isDisabled()){a(k,function(p){if(p.id==n.id){if(!c(l,p)){o=false;return false}}});if(o){n.setSelected(1)}}});if(!l){j.items[h.id].setSelected(1)}}});j.add({id:f.editor.dom.uniqueId(),title:"advlist.types","class":"mceMenuItemTitle"}).setDisabled(1);a(f[d],function(k){k.id=f.editor.dom.uniqueId();j.add({id:k.id,title:k.title,onclick:function(){h=k;g()}})})});return e}},getInfo:function(){return{longname:"Advanced lists",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlist",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlist",tinymce.plugins.AdvListPlugin)})();
\ No newline at end of file
diff --git a/plugins/TinyMCE/js/plugins/advlist/editor_plugin_src.js b/plugins/TinyMCE/js/plugins/advlist/editor_plugin_src.js
new file mode 100644
index 000000000..a61887a92
--- /dev/null
+++ b/plugins/TinyMCE/js/plugins/advlist/editor_plugin_src.js
@@ -0,0 +1,154 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ var each = tinymce.each;
+
+ tinymce.create('tinymce.plugins.AdvListPlugin', {
+ init : function(ed, url) {
+ var t = this;
+
+ t.editor = ed;
+
+ function buildFormats(str) {
+ var formats = [];
+
+ each(str.split(/,/), function(type) {
+ formats.push({
+ title : 'advlist.' + (type == 'default' ? 'def' : type.replace(/-/g, '_')),
+ styles : {
+ listStyleType : type == 'default' ? '' : type
+ }
+ });
+ });
+
+ return formats;
+ };
+
+ // Setup number formats from config or default
+ t.numlist = ed.getParam("advlist_number_styles") || buildFormats("default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");
+ t.bullist = ed.getParam("advlist_bullet_styles") || buildFormats("default,circle,disc,square");
+ },
+
+ createControl: function(name, cm) {
+ var t = this, btn, format;
+
+ if (name == 'numlist' || name == 'bullist') {
+ // Default to first item if it's a default item
+ if (t[name][0].title == 'advlist.def')
+ format = t[name][0];
+
+ function hasFormat(node, format) {
+ var state = true;
+
+ each(format.styles, function(value, name) {
+ // Format doesn't match
+ if (t.editor.dom.getStyle(node, name) != value) {
+ state = false;
+ return false;
+ }
+ });
+
+ return state;
+ };
+
+ function applyListFormat() {
+ var list, ed = t.editor, dom = ed.dom, sel = ed.selection;
+
+ // Check for existing list element
+ list = dom.getParent(sel.getNode(), 'ol,ul');
+
+ // Switch/add list type if needed
+ if (!list || list.nodeName == (name == 'bullist' ? 'OL' : 'UL') || hasFormat(list, format))
+ ed.execCommand(name == 'bullist' ? 'InsertUnorderedList' : 'InsertOrderedList');
+
+ // Append styles to new list element
+ if (format) {
+ list = dom.getParent(sel.getNode(), 'ol,ul');
+
+ if (list) {
+ dom.setStyles(list, format.styles);
+ list.removeAttribute('_mce_style');
+ }
+ }
+ };
+
+ btn = cm.createSplitButton(name, {
+ title : 'advanced.' + name + '_desc',
+ 'class' : 'mce_' + name,
+ onclick : function() {
+ applyListFormat();
+ }
+ });
+
+ btn.onRenderMenu.add(function(btn, menu) {
+ menu.onShowMenu.add(function() {
+ var dom = t.editor.dom, list = dom.getParent(t.editor.selection.getNode(), 'ol,ul'), fmtList;
+
+ if (list || format) {
+ fmtList = t[name];
+
+ // Unselect existing items
+ each(menu.items, function(item) {
+ var state = true;
+
+ item.setSelected(0);
+
+ if (list && !item.isDisabled()) {
+ each(fmtList, function(fmt) {
+ if (fmt.id == item.id) {
+ if (!hasFormat(list, fmt)) {
+ state = false;
+ return false;
+ }
+ }
+ });
+
+ if (state)
+ item.setSelected(1);
+ }
+ });
+
+ // Select the current format
+ if (!list)
+ menu.items[format.id].setSelected(1);
+ }
+ });
+
+ menu.add({id : t.editor.dom.uniqueId(), title : 'advlist.types', 'class' : 'mceMenuItemTitle'}).setDisabled(1);
+
+ each(t[name], function(item) {
+ item.id = t.editor.dom.uniqueId();
+
+ menu.add({id : item.id, title : item.title, onclick : function() {
+ format = item;
+ applyListFormat();
+ }});
+ });
+ });
+
+ return btn;
+ }
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Advanced lists',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlist',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('advlist', tinymce.plugins.AdvListPlugin);
+})();
\ No newline at end of file
diff --git a/plugins/TinyMCE/js/plugins/autoresize/editor_plugin.js b/plugins/TinyMCE/js/plugins/autoresize/editor_plugin.js
new file mode 100644
index 000000000..220b84ac4
--- /dev/null
+++ b/plugins/TinyMCE/js/plugins/autoresize/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.AutoResizePlugin",{init:function(a,c){var d=this;if(a.getParam("fullscreen_is_enabled")){return}function b(){var h=a.getDoc(),e=h.body,j=h.documentElement,g=tinymce.DOM,i=d.autoresize_min_height,f;f=tinymce.isIE?e.scrollHeight:j.offsetHeight;if(f>d.autoresize_min_height){i=f}g.setStyle(g.get(a.id+"_ifr"),"height",i+"px");if(d.throbbing){a.setProgressState(false);a.setProgressState(true)}}d.editor=a;d.autoresize_min_height=a.getElement().offsetHeight;a.onInit.add(function(f,e){f.setProgressState(true);d.throbbing=true;f.getBody().style.overflowY="hidden"});a.onChange.add(b);a.onSetContent.add(b);a.onPaste.add(b);a.onKeyUp.add(b);a.onPostRender.add(b);a.onLoadContent.add(function(f,e){b();setTimeout(function(){b();f.setProgressState(false);d.throbbing=false},1250)});a.addCommand("mceAutoResize",b)},getInfo:function(){return{longname:"Auto Resize",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("autoresize",tinymce.plugins.AutoResizePlugin)})();
\ No newline at end of file
diff --git a/plugins/TinyMCE/js/plugins/autoresize/editor_plugin_src.js b/plugins/TinyMCE/js/plugins/autoresize/editor_plugin_src.js
new file mode 100644
index 000000000..37709f562
--- /dev/null
+++ b/plugins/TinyMCE/js/plugins/autoresize/editor_plugin_src.js
@@ -0,0 +1,117 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ /**
+ * Auto Resize
+ *
+ * This plugin automatically resizes the content area to fit its content height.
+ * It will retain a minimum height, which is the height of the content area when
+ * it's initialized.
+ */
+ tinymce.create('tinymce.plugins.AutoResizePlugin', {
+ /**
+ * Initializes the plugin, this will be executed after the plugin has been created.
+ * This call is done before the editor instance has finished it's initialization so use the onInit event
+ * of the editor instance to intercept that event.
+ *
+ * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
+ * @param {string} url Absolute URL to where the plugin is located.
+ */
+ init : function(ed, url) {
+ var t = this;
+
+ if (ed.getParam('fullscreen_is_enabled'))
+ return;
+
+ /**
+ * This method gets executed each time the editor needs to resize.
+ */
+ function resize() {
+ var d = ed.getDoc(), b = d.body, de = d.documentElement, DOM = tinymce.DOM, resizeHeight = t.autoresize_min_height, myHeight;
+
+ // Get height differently depending on the browser used
+ myHeight = tinymce.isIE ? b.scrollHeight : de.offsetHeight;
+
+ // Don't make it smaller than the minimum height
+ if (myHeight > t.autoresize_min_height)
+ resizeHeight = myHeight;
+
+ // Resize content element
+ DOM.setStyle(DOM.get(ed.id + '_ifr'), 'height', resizeHeight + 'px');
+
+ // if we're throbbing, we'll re-throb to match the new size
+ if (t.throbbing) {
+ ed.setProgressState(false);
+ ed.setProgressState(true);
+ }
+ };
+
+ t.editor = ed;
+
+ // Define minimum height
+ t.autoresize_min_height = ed.getElement().offsetHeight;
+
+ // Things to do when the editor is ready
+ ed.onInit.add(function(ed, l) {
+ // Show throbber until content area is resized properly
+ ed.setProgressState(true);
+ t.throbbing = true;
+
+ // Hide scrollbars
+ ed.getBody().style.overflowY = "hidden";
+ });
+
+ // Add appropriate listeners for resizing content area
+ ed.onChange.add(resize);
+ ed.onSetContent.add(resize);
+ ed.onPaste.add(resize);
+ ed.onKeyUp.add(resize);
+ ed.onPostRender.add(resize);
+
+ ed.onLoadContent.add(function(ed, l) {
+ resize();
+
+ // Because the content area resizes when its content CSS loads,
+ // and we can't easily add a listener to its onload event,
+ // we'll just trigger a resize after a short loading period
+ setTimeout(function() {
+ resize();
+
+ // Disable throbber
+ ed.setProgressState(false);
+ t.throbbing = false;
+ }, 1250);
+ });
+
+ // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
+ ed.addCommand('mceAutoResize', resize);
+ },
+
+ /**
+ * Returns information about the plugin as a name/value array.
+ * The current keys are longname, author, authorurl, infourl and version.
+ *
+ * @return {Object} Name/value array containing information about the plugin.
+ */
+ getInfo : function() {
+ return {
+ longname : 'Auto Resize',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('autoresize', tinymce.plugins.AutoResizePlugin);
+})();
\ No newline at end of file
diff --git a/plugins/TinyMCE/js/plugins/autosave/editor_plugin.js b/plugins/TinyMCE/js/plugins/autosave/editor_plugin.js
new file mode 100644
index 000000000..b33ebfb7c
--- /dev/null
+++ b/plugins/TinyMCE/js/plugins/autosave/editor_plugin.js
@@ -0,0 +1 @@
+(function(e){var c="autosave",g="restoredraft",b=true,f,d,a=e.util.Dispatcher;e.create("tinymce.plugins.AutoSave",{init:function(i,j){var h=this,l=i.settings;h.editor=i;function k(n){var m={s:1000,m:60000};n=/^(\d+)([ms]?)$/.exec(""+n);return(n[2]?m[n[2]]:1)*parseInt(n)}e.each({ask_before_unload:b,interval:"30s",retention:"20m",minlength:50},function(n,m){m=c+"_"+m;if(l[m]===f){l[m]=n}});l.autosave_interval=k(l.autosave_interval);l.autosave_retention=k(l.autosave_retention);i.addButton(g,{title:c+".restore_content",onclick:function(){if(i.getContent().replace(/\s| |<\/?p[^>]*>| ]*>/gi,"").length>0){i.windowManager.confirm(c+".warning_message",function(m){if(m){h.restoreDraft()}})}else{h.restoreDraft()}}});i.onNodeChange.add(function(){var m=i.controlManager;if(m.get(g)){m.setDisabled(g,!h.hasDraft())}});i.onInit.add(function(){if(i.controlManager.get(g)){h.setupStorage(i);setInterval(function(){h.storeDraft();i.nodeChanged()},l.autosave_interval)}});h.onStoreDraft=new a(h);h.onRestoreDraft=new a(h);h.onRemoveDraft=new a(h);if(!d){window.onbeforeunload=e.plugins.AutoSave._beforeUnloadHandler;d=b}},getInfo:function(){return{longname:"Auto save",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave",version:e.majorVersion+"."+e.minorVersion}},getExpDate:function(){return new Date(new Date().getTime()+this.editor.settings.autosave_retention).toUTCString()},setupStorage:function(i){var h=this,k=c+"_test",j="OK";h.key=c+i.id;e.each([function(){if(localStorage){localStorage.setItem(k,j);if(localStorage.getItem(k)===j){localStorage.removeItem(k);return localStorage}}},function(){if(sessionStorage){sessionStorage.setItem(k,j);if(sessionStorage.getItem(k)===j){sessionStorage.removeItem(k);return sessionStorage}}},function(){if(e.isIE){i.getElement().style.behavior="url('#default#userData')";return{autoExpires:b,setItem:function(l,n){var m=i.getElement();m.setAttribute(l,n);m.expires=h.getExpDate();m.save("TinyMCE")},getItem:function(l){var m=i.getElement();m.load("TinyMCE");return m.getAttribute(l)},removeItem:function(l){i.getElement().removeAttribute(l)}}}},],function(l){try{h.storage=l();if(h.storage){return false}}catch(m){}})},storeDraft:function(){var i=this,l=i.storage,j=i.editor,h,k;if(l){if(!l.getItem(i.key)&&!j.isDirty()){return}k=j.getContent();if(k.length>j.settings.autosave_minlength){h=i.getExpDate();if(!i.storage.autoExpires){i.storage.setItem(i.key+"_expires",h)}i.storage.setItem(i.key,k);i.onStoreDraft.dispatch(i,{expires:h,content:k})}}},restoreDraft:function(){var h=this,i=h.storage;if(i){content=i.getItem(h.key);if(content){h.editor.setContent(content);h.onRestoreDraft.dispatch(h,{content:content})}}},hasDraft:function(){var h=this,k=h.storage,i,j;if(k){j=!!k.getItem(h.key);if(j){if(!h.storage.autoExpires){i=new Date(k.getItem(h.key+"_expires"));if(new Date().getTime()]*>| ]*>/gi, "").length > 0) {
+ // Show confirm dialog if the editor isn't empty
+ ed.windowManager.confirm(
+ PLUGIN_NAME + ".warning_message",
+ function(ok) {
+ if (ok)
+ self.restoreDraft();
+ }
+ );
+ } else
+ self.restoreDraft();
+ }
+ });
+
+ // Enable/disable restoredraft button depending on if there is a draft stored or not
+ ed.onNodeChange.add(function() {
+ var controlManager = ed.controlManager;
+
+ if (controlManager.get(RESTORE_DRAFT))
+ controlManager.setDisabled(RESTORE_DRAFT, !self.hasDraft());
+ });
+
+ ed.onInit.add(function() {
+ // Check if the user added the restore button, then setup auto storage logic
+ if (ed.controlManager.get(RESTORE_DRAFT)) {
+ // Setup storage engine
+ self.setupStorage(ed);
+
+ // Auto save contents each interval time
+ setInterval(function() {
+ self.storeDraft();
+ ed.nodeChanged();
+ }, settings.autosave_interval);
+ }
+ });
+
+ /**
+ * This event gets fired when a draft is stored to local storage.
+ *
+ * @event onStoreDraft
+ * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event.
+ * @param {Object} draft Draft object containing the HTML contents of the editor.
+ */
+ self.onStoreDraft = new Dispatcher(self);
+
+ /**
+ * This event gets fired when a draft is restored from local storage.
+ *
+ * @event onStoreDraft
+ * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event.
+ * @param {Object} draft Draft object containing the HTML contents of the editor.
+ */
+ self.onRestoreDraft = new Dispatcher(self);
+
+ /**
+ * This event gets fired when a draft removed/expired.
+ *
+ * @event onRemoveDraft
+ * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event.
+ * @param {Object} draft Draft object containing the HTML contents of the editor.
+ */
+ self.onRemoveDraft = new Dispatcher(self);
+
+ // Add ask before unload dialog only add one unload handler
+ if (!unloadHandlerAdded) {
+ window.onbeforeunload = tinymce.plugins.AutoSave._beforeUnloadHandler;
+ unloadHandlerAdded = TRUE;
+ }
+ },
+
+ /**
+ * Returns information about the plugin as a name/value array.
+ * The current keys are longname, author, authorurl, infourl and version.
+ *
+ * @method getInfo
+ * @return {Object} Name/value array containing information about the plugin.
+ */
+ getInfo : function() {
+ return {
+ longname : 'Auto save',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ },
+
+ /**
+ * Returns an expiration date UTC string.
+ *
+ * @method getExpDate
+ * @return {String} Expiration date UTC string.
+ */
+ getExpDate : function() {
+ return new Date(
+ new Date().getTime() + this.editor.settings.autosave_retention
+ ).toUTCString();
+ },
+
+ /**
+ * This method will setup the storage engine. If the browser has support for it.
+ *
+ * @method setupStorage
+ */
+ setupStorage : function(ed) {
+ var self = this, testKey = PLUGIN_NAME + '_test', testVal = "OK";
+
+ self.key = PLUGIN_NAME + ed.id;
+
+ // Loop though each storage engine type until we find one that works
+ tinymce.each([
+ function() {
+ // Try HTML5 Local Storage
+ if (localStorage) {
+ localStorage.setItem(testKey, testVal);
+
+ if (localStorage.getItem(testKey) === testVal) {
+ localStorage.removeItem(testKey);
+
+ return localStorage;
+ }
+ }
+ },
+
+ function() {
+ // Try HTML5 Session Storage
+ if (sessionStorage) {
+ sessionStorage.setItem(testKey, testVal);
+
+ if (sessionStorage.getItem(testKey) === testVal) {
+ sessionStorage.removeItem(testKey);
+
+ return sessionStorage;
+ }
+ }
+ },
+
+ function() {
+ // Try IE userData
+ if (tinymce.isIE) {
+ ed.getElement().style.behavior = "url('#default#userData')";
+
+ // Fake localStorage on old IE
+ return {
+ autoExpires : TRUE,
+
+ setItem : function(key, value) {
+ var userDataElement = ed.getElement();
+
+ userDataElement.setAttribute(key, value);
+ userDataElement.expires = self.getExpDate();
+ userDataElement.save("TinyMCE");
+ },
+
+ getItem : function(key) {
+ var userDataElement = ed.getElement();
+
+ userDataElement.load("TinyMCE");
+
+ return userDataElement.getAttribute(key);
+ },
+
+ removeItem : function(key) {
+ ed.getElement().removeAttribute(key);
+ }
+ };
+ }
+ },
+ ], function(setup) {
+ // Try executing each function to find a suitable storage engine
+ try {
+ self.storage = setup();
+
+ if (self.storage)
+ return false;
+ } catch (e) {
+ // Ignore
+ }
+ });
+ },
+
+ /**
+ * This method will store the current contents in the the storage engine.
+ *
+ * @method storeDraft
+ */
+ storeDraft : function() {
+ var self = this, storage = self.storage, editor = self.editor, expires, content;
+
+ // Is the contents dirty
+ if (storage) {
+ // If there is no existing key and the contents hasn't been changed since
+ // it's original value then there is no point in saving a draft
+ if (!storage.getItem(self.key) && !editor.isDirty())
+ return;
+
+ // Store contents if the contents if longer than the minlength of characters
+ content = editor.getContent();
+ if (content.length > editor.settings.autosave_minlength) {
+ expires = self.getExpDate();
+
+ // Store expiration date if needed IE userData has auto expire built in
+ if (!self.storage.autoExpires)
+ self.storage.setItem(self.key + "_expires", expires);
+
+ self.storage.setItem(self.key, content);
+ self.onStoreDraft.dispatch(self, {
+ expires : expires,
+ content : content
+ });
+ }
+ }
+ },
+
+ /**
+ * This method will restore the contents from the storage engine back to the editor.
+ *
+ * @method restoreDraft
+ */
+ restoreDraft : function() {
+ var self = this, storage = self.storage;
+
+ if (storage) {
+ content = storage.getItem(self.key);
+
+ if (content) {
+ self.editor.setContent(content);
+ self.onRestoreDraft.dispatch(self, {
+ content : content
+ });
+ }
+ }
+ },
+
+ /**
+ * This method will return true/false if there is a local storage draft available.
+ *
+ * @method hasDraft
+ * @return {boolean} true/false state if there is a local draft.
+ */
+ hasDraft : function() {
+ var self = this, storage = self.storage, expDate, exists;
+
+ if (storage) {
+ // Does the item exist at all
+ exists = !!storage.getItem(self.key);
+ if (exists) {
+ // Storage needs autoexpire
+ if (!self.storage.autoExpires) {
+ expDate = new Date(storage.getItem(self.key + "_expires"));
+
+ // Contents hasn't expired
+ if (new Date().getTime() < expDate.getTime())
+ return TRUE;
+
+ // Remove it if it has
+ self.removeDraft();
+ } else
+ return TRUE;
+ }
+ }
+
+ return false;
+ },
+
+ /**
+ * Removes the currently stored draft.
+ *
+ * @method removeDraft
+ */
+ removeDraft : function() {
+ var self = this, storage = self.storage, key = self.key, content;
+
+ if (storage) {
+ // Get current contents and remove the existing draft
+ content = storage.getItem(key);
+ storage.removeItem(key);
+ storage.removeItem(key + "_expires");
+
+ // Dispatch remove event if we had any contents
+ if (content) {
+ self.onRemoveDraft.dispatch(self, {
+ content : content
+ });
+ }
+ }
+ },
+
+ "static" : {
+ // Internal unload handler will be called before the page is unloaded
+ _beforeUnloadHandler : function(e) {
+ var msg;
+
+ tinymce.each(tinyMCE.editors, function(ed) {
+ // Store a draft for each editor instance
+ if (ed.plugins.autosave)
+ ed.plugins.autosave.storeDraft();
+
+ // Never ask in fullscreen mode
+ if (ed.getParam("fullscreen_is_enabled"))
+ return;
+
+ // Setup a return message if the editor is dirty
+ if (!msg && ed.isDirty() && ed.getParam("autosave_ask_before_unload"))
+ msg = ed.getLang("autosave.unload_msg");
+ });
+
+ return msg;
+ }
+ }
+ });
+
+ tinymce.PluginManager.add('autosave', tinymce.plugins.AutoSave);
+})(tinymce);
diff --git a/plugins/TinyMCE/js/plugins/autosave/langs/en.js b/plugins/TinyMCE/js/plugins/autosave/langs/en.js
new file mode 100644
index 000000000..fce6bd3e1
--- /dev/null
+++ b/plugins/TinyMCE/js/plugins/autosave/langs/en.js
@@ -0,0 +1,4 @@
+tinyMCE.addI18n('en.autosave',{
+restore_content: "Restore auto-saved content",
+warning_message: "If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?"
+});
\ No newline at end of file
diff --git a/plugins/TinyMCE/js/plugins/bbcode/editor_plugin.js b/plugins/TinyMCE/js/plugins/bbcode/editor_plugin.js
new file mode 100644
index 000000000..930fdff0a
--- /dev/null
+++ b/plugins/TinyMCE/js/plugins/bbcode/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.BBCodePlugin",{init:function(a,b){var d=this,c=a.getParam("bbcode_dialect","punbb").toLowerCase();a.onBeforeSetContent.add(function(e,f){f.content=d["_"+c+"_bbcode2html"](f.content)});a.onPostProcess.add(function(e,f){if(f.set){f.content=d["_"+c+"_bbcode2html"](f.content)}if(f.get){f.content=d["_"+c+"_html2bbcode"](f.content)}})},getInfo:function(){return{longname:"BBCode Plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_punbb_html2bbcode:function(a){a=tinymce.trim(a);function b(c,d){a=a.replace(c,d)}b(/(.*?)<\/a>/gi,"[url=$1]$2[/url]");b(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");b(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");b(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");b(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");b(/(.*?)<\/span>/gi,"[color=$1]$2[/color]");b(/(.*?)<\/font>/gi,"[color=$1]$2[/color]");b(/(.*?)<\/span>/gi,"[size=$1]$2[/size]");b(/(.*?)<\/font>/gi,"$1");b(//gi,"[img]$1[/img]");b(/(.*?)<\/span>/gi,"[code]$1[/code]");b(/(.*?)<\/span>/gi,"[quote]$1[/quote]");b(/(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]");b(/(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]");b(/(.*?)<\/em>/gi,"[code][i]$1[/i][/code]");b(/(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]");b(/(.*?)<\/u>/gi,"[code][u]$1[/u][/code]");b(/(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]");b(/<\/(strong|b)>/gi,"[/b]");b(/<(strong|b)>/gi,"[b]");b(/<\/(em|i)>/gi,"[/i]");b(/<(em|i)>/gi,"[i]");b(/<\/u>/gi,"[/u]");b(/(.*?)<\/span>/gi,"[u]$1[/u]");b(//gi,"[u]");b(/