From c59a2a69fb38b92b6c45bcf7431d2b1a3c5dce3c Mon Sep 17 00:00:00 2001
From: luxagraf
Date: Sat, 23 Oct 2010 19:46:20 -0400
Subject: added grappelli, filebrowser, chunks and tagging to lcal repo
---
.../jscripts/tiny_mce/plugins/advhr/css/advhr.css | 5 +
.../tiny_mce/plugins/advhr/editor_plugin.js | 1 +
.../tiny_mce/plugins/advhr/editor_plugin_src.js | 57 +
.../jscripts/tiny_mce/plugins/advhr/js/rule.js | 43 +
.../tiny_mce/plugins/advhr/langs/de_dlg.js | 5 +
.../tiny_mce/plugins/advhr/langs/en_dlg.js | 5 +
.../jscripts/tiny_mce/plugins/advhr/rule.htm | 57 +
.../tiny_mce/plugins/advimage/css/advimage.css | 13 +
.../tiny_mce/plugins/advimage/editor_plugin.js | 1 +
.../tiny_mce/plugins/advimage/editor_plugin_src.js | 47 +
.../jscripts/tiny_mce/plugins/advimage/image.htm | 210 ++++
.../tiny_mce/plugins/advimage/img/sample.gif | Bin 0 -> 1624 bytes
.../jscripts/tiny_mce/plugins/advimage/js/image.js | 443 ++++++++
.../tiny_mce/plugins/advimage/langs/de_dlg.js | 43 +
.../tiny_mce/plugins/advimage/langs/en_dlg.js | 43 +
.../plugins/advimage_orig/css/advimage.css | 13 +
.../plugins/advimage_orig/editor_plugin.js | 1 +
.../plugins/advimage_orig/editor_plugin_src.js | 50 +
.../tiny_mce/plugins/advimage_orig/image.htm | 232 ++++
.../tiny_mce/plugins/advimage_orig/img/sample.gif | Bin 0 -> 1624 bytes
.../tiny_mce/plugins/advimage_orig/js/image.js | 443 ++++++++
.../tiny_mce/plugins/advimage_orig/langs/en_dlg.js | 43 +
.../tiny_mce/plugins/advlink/css/advlink.css | 8 +
.../tiny_mce/plugins/advlink/editor_plugin.js | 1 +
.../tiny_mce/plugins/advlink/editor_plugin_src.js | 58 +
.../tiny_mce/plugins/advlink/js/advlink.js | 527 +++++++++
.../tiny_mce/plugins/advlink/langs/de_dlg.js | 52 +
.../tiny_mce/plugins/advlink/langs/en_dlg.js | 52 +
.../jscripts/tiny_mce/plugins/advlink/link.htm | 311 ++++++
.../tiny_mce/plugins/advlink_orig/css/advlink.css | 8 +
.../tiny_mce/plugins/advlink_orig/editor_plugin.js | 1 +
.../plugins/advlink_orig/editor_plugin_src.js | 61 ++
.../tiny_mce/plugins/advlink_orig/js/advlink.js | 528 +++++++++
.../tiny_mce/plugins/advlink_orig/langs/en_dlg.js | 52 +
.../tiny_mce/plugins/advlink_orig/link.htm | 333 ++++++
.../tiny_mce/plugins/advlist/editor_plugin.js | 1 +
.../tiny_mce/plugins/advlist/editor_plugin_src.js | 154 +++
.../tiny_mce/plugins/autoresize/editor_plugin.js | 1 +
.../plugins/autoresize/editor_plugin_src.js | 119 ++
.../tiny_mce/plugins/autosave/editor_plugin.js | 1 +
.../tiny_mce/plugins/autosave/editor_plugin_src.js | 422 ++++++++
.../jscripts/tiny_mce/plugins/autosave/langs/en.js | 4 +
.../tiny_mce/plugins/bbcode/editor_plugin.js | 1 +
.../tiny_mce/plugins/bbcode/editor_plugin_src.js | 120 +++
.../tiny_mce/plugins/contextmenu/editor_plugin.js | 1 +
.../plugins/contextmenu/editor_plugin_src.js | 147 +++
.../plugins/directionality/editor_plugin.js | 1 +
.../plugins/directionality/editor_plugin_src.js | 82 ++
.../tiny_mce/plugins/emotions/editor_plugin.js | 1 +
.../tiny_mce/plugins/emotions/editor_plugin_src.js | 43 +
.../tiny_mce/plugins/emotions/emotions.htm | 40 +
.../tiny_mce/plugins/emotions/img/smiley-cool.gif | Bin 0 -> 354 bytes
.../tiny_mce/plugins/emotions/img/smiley-cry.gif | Bin 0 -> 329 bytes
.../plugins/emotions/img/smiley-embarassed.gif | Bin 0 -> 331 bytes
.../plugins/emotions/img/smiley-foot-in-mouth.gif | Bin 0 -> 344 bytes
.../tiny_mce/plugins/emotions/img/smiley-frown.gif | Bin 0 -> 340 bytes
.../plugins/emotions/img/smiley-innocent.gif | Bin 0 -> 336 bytes
.../tiny_mce/plugins/emotions/img/smiley-kiss.gif | Bin 0 -> 338 bytes
.../plugins/emotions/img/smiley-laughing.gif | Bin 0 -> 344 bytes
.../plugins/emotions/img/smiley-money-mouth.gif | Bin 0 -> 321 bytes
.../plugins/emotions/img/smiley-sealed.gif | Bin 0 -> 325 bytes
.../tiny_mce/plugins/emotions/img/smiley-smile.gif | Bin 0 -> 345 bytes
.../plugins/emotions/img/smiley-surprised.gif | Bin 0 -> 342 bytes
.../plugins/emotions/img/smiley-tongue-out.gif | Bin 0 -> 328 bytes
.../plugins/emotions/img/smiley-undecided.gif | Bin 0 -> 337 bytes
.../tiny_mce/plugins/emotions/img/smiley-wink.gif | Bin 0 -> 351 bytes
.../tiny_mce/plugins/emotions/img/smiley-yell.gif | Bin 0 -> 336 bytes
.../tiny_mce/plugins/emotions/js/emotions.js | 22 +
.../tiny_mce/plugins/emotions/langs/de_dlg.js | 20 +
.../tiny_mce/plugins/emotions/langs/en_dlg.js | 20 +
.../jscripts/tiny_mce/plugins/example/dialog.htm | 22 +
.../tiny_mce/plugins/example/editor_plugin.js | 1 +
.../tiny_mce/plugins/example/editor_plugin_src.js | 84 ++
.../tiny_mce/plugins/example/img/example.gif | Bin 0 -> 87 bytes
.../jscripts/tiny_mce/plugins/example/js/dialog.js | 19 +
.../jscripts/tiny_mce/plugins/example/langs/en.js | 3 +
.../tiny_mce/plugins/example/langs/en_dlg.js | 3 +
.../tiny_mce/plugins/fullpage/css/fullpage.css | 182 ++++
.../tiny_mce/plugins/fullpage/editor_plugin.js | 1 +
.../tiny_mce/plugins/fullpage/editor_plugin_src.js | 153 +++
.../tiny_mce/plugins/fullpage/fullpage.htm | 571 ++++++++++
.../tiny_mce/plugins/fullpage/js/fullpage.js | 471 ++++++++
.../tiny_mce/plugins/fullpage/langs/de_dlg.js | 85 ++
.../tiny_mce/plugins/fullpage/langs/en_dlg.js | 85 ++
.../tiny_mce/plugins/fullscreen/editor_plugin.js | 1 +
.../plugins/fullscreen/editor_plugin_src.js | 151 +++
.../tiny_mce/plugins/fullscreen/fullscreen.htm | 109 ++
.../tiny_mce/plugins/grappelli/editor_plugin.js | 202 ++++
.../plugins/grappelli/editor_plugin_src.js | 62 ++
.../plugins/grappelli/img/show_advanced.png | Bin 0 -> 320 bytes
.../tiny_mce/plugins/grappelli/img/visualchars.png | Bin 0 -> 285 bytes
.../tiny_mce/plugins/grappelli/langs/de.js | 4 +
.../tiny_mce/plugins/grappelli/langs/en.js | 4 +
.../tiny_mce/plugins/grappelli/langs/fr.js | 4 +
.../plugins/grappelli_contextmenu/editor_plugin.js | 250 +++++
.../grappelli_contextmenu/editor_plugin_src.js | 95 ++
.../plugins/grappelli_contextmenu/langs/de.js | 20 +
.../plugins/grappelli_contextmenu/langs/en.js | 20 +
.../plugins/grappelli_contextmenu/langs/fr.js | 10 +
.../tiny_mce/plugins/iespell/editor_plugin.js | 1 +
.../tiny_mce/plugins/iespell/editor_plugin_src.js | 54 +
.../tiny_mce/plugins/inlinepopups/editor_plugin.js | 1 +
.../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 ++
.../tiny_mce/plugins/inlinepopups/template.htm | 387 +++++++
.../plugins/insertdatetime/editor_plugin.js | 1 +
.../plugins/insertdatetime/editor_plugin_src.js | 83 ++
.../tiny_mce/plugins/layer/editor_plugin.js | 1 +
.../tiny_mce/plugins/layer/editor_plugin_src.js | 212 ++++
.../tiny_mce/plugins/legacyoutput/editor_plugin.js | 1 +
.../plugins/legacyoutput/editor_plugin_src.js | 136 +++
.../tiny_mce/plugins/media/css/content.css | 6 +
.../jscripts/tiny_mce/plugins/media/css/media.css | 16 +
.../tiny_mce/plugins/media/editor_plugin Kopie.js | 1 +
.../tiny_mce/plugins/media/editor_plugin.js | 1 +
.../tiny_mce/plugins/media/editor_plugin_src.js | 374 +++++++
.../jscripts/tiny_mce/plugins/media/img/flash.gif | Bin 0 -> 241 bytes
.../tiny_mce/plugins/media/img/flv_player.swf | Bin 0 -> 11668 bytes
.../tiny_mce/plugins/media/img/quicktime.gif | Bin 0 -> 303 bytes
.../tiny_mce/plugins/media/img/realmedia.gif | Bin 0 -> 439 bytes
.../tiny_mce/plugins/media/img/shockwave.gif | Bin 0 -> 387 bytes
.../jscripts/tiny_mce/plugins/media/img/trans.gif | Bin 0 -> 43 bytes
.../tiny_mce/plugins/media/img/windowsmedia.gif | Bin 0 -> 415 bytes
.../jscripts/tiny_mce/plugins/media/js/embed.js | 73 ++
.../jscripts/tiny_mce/plugins/media/js/media.js | 630 +++++++++++
.../tiny_mce/plugins/media/langs/de_dlg.js | 103 ++
.../tiny_mce/plugins/media/langs/en_dlg.js | 103 ++
.../jscripts/tiny_mce/plugins/media/media.htm | 636 +++++++++++
.../tiny_mce/plugins/media_orig/css/content.css | 6 +
.../tiny_mce/plugins/media_orig/css/media.css | 16 +
.../tiny_mce/plugins/media_orig/editor_plugin.js | 1 +
.../plugins/media_orig/editor_plugin_src.js | 414 +++++++
.../tiny_mce/plugins/media_orig/img/flash.gif | Bin 0 -> 241 bytes
.../tiny_mce/plugins/media_orig/img/flv_player.swf | Bin 0 -> 11668 bytes
.../tiny_mce/plugins/media_orig/img/quicktime.gif | Bin 0 -> 303 bytes
.../tiny_mce/plugins/media_orig/img/realmedia.gif | Bin 0 -> 439 bytes
.../tiny_mce/plugins/media_orig/img/shockwave.gif | Bin 0 -> 387 bytes
.../tiny_mce/plugins/media_orig/img/trans.gif | Bin 0 -> 43 bytes
.../plugins/media_orig/img/windowsmedia.gif | Bin 0 -> 415 bytes
.../tiny_mce/plugins/media_orig/js/embed.js | 73 ++
.../tiny_mce/plugins/media_orig/js/media.js | 630 +++++++++++
.../tiny_mce/plugins/media_orig/langs/en_dlg.js | 103 ++
.../jscripts/tiny_mce/plugins/media_orig/media.htm | 817 ++++++++++++++
.../tiny_mce/plugins/nonbreaking/editor_plugin.js | 1 +
.../plugins/nonbreaking/editor_plugin_src.js | 53 +
.../tiny_mce/plugins/noneditable/editor_plugin.js | 1 +
.../plugins/noneditable/editor_plugin_src.js | 90 ++
.../tiny_mce/plugins/pagebreak/css/content.css | 1 +
.../tiny_mce/plugins/pagebreak/editor_plugin.js | 1 +
.../plugins/pagebreak/editor_plugin_src.js | 77 ++
.../tiny_mce/plugins/pagebreak/img/pagebreak.gif | Bin 0 -> 325 bytes
.../tiny_mce/plugins/pagebreak/img/trans.gif | Bin 0 -> 43 bytes
.../jscripts/tiny_mce/plugins/paste/blank.htm | 22 +
.../jscripts/tiny_mce/plugins/paste/css/blank.css | 14 +
.../tiny_mce/plugins/paste/css/pasteword.css | 3 +
.../tiny_mce/plugins/paste/editor_plugin.js | 1 +
.../tiny_mce/plugins/paste/editor_plugin_src.js | 394 +++++++
.../tiny_mce/plugins/paste/js/pastetext.js | 42 +
.../tiny_mce/plugins/paste/js/pasteword.js | 56 +
.../tiny_mce/plugins/paste/langs/de_dlg.js | 5 +
.../tiny_mce/plugins/paste/langs/en_dlg.js | 5 +
.../jscripts/tiny_mce/plugins/paste/pastetext.htm | 34 +
.../jscripts/tiny_mce/plugins/paste/pasteword.htm | 23 +
.../tiny_mce/plugins/paste_orig/editor_plugin.js | 1 +
.../plugins/paste_orig/editor_plugin_src.js | 952 ++++++++++++++++
.../tiny_mce/plugins/paste_orig/js/pastetext.js | 36 +
.../tiny_mce/plugins/paste_orig/js/pasteword.js | 51 +
.../tiny_mce/plugins/paste_orig/langs/en_dlg.js | 5 +
.../tiny_mce/plugins/paste_orig/pastetext.htm | 27 +
.../tiny_mce/plugins/paste_orig/pasteword.htm | 21 +
.../tiny_mce/plugins/preview/editor_plugin.js | 1 +
.../tiny_mce/plugins/preview/editor_plugin_src.js | 53 +
.../jscripts/tiny_mce/plugins/preview/example.html | 28 +
.../tiny_mce/plugins/preview/jscripts/embed.js | 73 ++
.../jscripts/tiny_mce/plugins/preview/preview.html | 17 +
.../tiny_mce/plugins/print/editor_plugin.js | 1 +
.../tiny_mce/plugins/print/editor_plugin_src.js | 34 +
.../tiny_mce/plugins/save/editor_plugin.js | 1 +
.../tiny_mce/plugins/save/editor_plugin_src.js | 101 ++
.../plugins/searchreplace/css/searchreplace.css | 6 +
.../plugins/searchreplace/editor_plugin.js | 1 +
.../plugins/searchreplace/editor_plugin_src.js | 54 +
.../plugins/searchreplace/js/searchreplace.js | 126 +++
.../tiny_mce/plugins/searchreplace/langs/de_dlg.js | 16 +
.../tiny_mce/plugins/searchreplace/langs/en_dlg.js | 16 +
.../plugins/searchreplace/searchreplace.htm | 87 ++
.../searchreplace_orig/css/searchreplace.css | 6 +
.../plugins/searchreplace_orig/editor_plugin.js | 1 +
.../searchreplace_orig/editor_plugin_src.js | 57 +
.../plugins/searchreplace_orig/js/searchreplace.js | 130 +++
.../plugins/searchreplace_orig/langs/en_dlg.js | 16 +
.../plugins/searchreplace_orig/searchreplace.htm | 99 ++
.../tiny_mce/plugins/spellchecker/css/content.css | 1 +
.../tiny_mce/plugins/spellchecker/editor_plugin.js | 1 +
.../plugins/spellchecker/editor_plugin_src.js | 417 +++++++
.../tiny_mce/plugins/spellchecker/img/wline.gif | Bin 0 -> 46 bytes
.../jscripts/tiny_mce/plugins/style/css/props.css | 13 +
.../tiny_mce/plugins/style/editor_plugin.js | 1 +
.../tiny_mce/plugins/style/editor_plugin_src.js | 55 +
.../jscripts/tiny_mce/plugins/style/js/props.js | 641 +++++++++++
.../tiny_mce/plugins/style/langs/de_dlg.js | 63 ++
.../tiny_mce/plugins/style/langs/en_dlg.js | 63 ++
.../jscripts/tiny_mce/plugins/style/props.htm | 723 +++++++++++++
.../tiny_mce/plugins/tabfocus/editor_plugin.js | 1 +
.../tiny_mce/plugins/tabfocus/editor_plugin_src.js | 112 ++
.../jscripts/tiny_mce/plugins/table/cell.htm | 178 +++
.../jscripts/tiny_mce/plugins/table/css/cell.css | 17 +
.../jscripts/tiny_mce/plugins/table/css/row.css | 25 +
.../jscripts/tiny_mce/plugins/table/css/table.css | 13 +
.../tiny_mce/plugins/table/editor_plugin.js | 1 +
.../tiny_mce/plugins/table/editor_plugin_src.js | 1139 ++++++++++++++++++++
.../jscripts/tiny_mce/plugins/table/js/cell.js | 286 +++++
.../tiny_mce/plugins/table/js/merge_cells.js | 27 +
.../jscripts/tiny_mce/plugins/table/js/row.js | 237 ++++
.../jscripts/tiny_mce/plugins/table/js/table.js | 449 ++++++++
.../tiny_mce/plugins/table/langs/de_dlg.js | 74 ++
.../tiny_mce/plugins/table/langs/en_dlg.js | 74 ++
.../tiny_mce/plugins/table/merge_cells.htm | 32 +
.../jscripts/tiny_mce/plugins/table/row.htm | 155 +++
.../jscripts/tiny_mce/plugins/table/table.htm | 187 ++++
.../jscripts/tiny_mce/plugins/template/blank.htm | 12 +
.../tiny_mce/plugins/template/css/template.css | 23 +
.../tiny_mce/plugins/template/editor_plugin.js | 137 +++
.../tiny_mce/plugins/template/editor_plugin_src.js | 156 +++
.../tiny_mce/plugins/template/js/template.js | 106 ++
.../tiny_mce/plugins/template/langs/de_dlg.js | 15 +
.../tiny_mce/plugins/template/langs/en_dlg.js | 15 +
.../tiny_mce/plugins/template/template.htm | 41 +
.../tiny_mce/plugins/template_orig/blank.htm | 12 +
.../plugins/template_orig/css/template.css | 23 +
.../plugins/template_orig/editor_plugin.js | 1 +
.../plugins/template_orig/editor_plugin_src.js | 159 +++
.../tiny_mce/plugins/template_orig/js/template.js | 106 ++
.../tiny_mce/plugins/template_orig/langs/en_dlg.js | 15 +
.../tiny_mce/plugins/template_orig/template.htm | 31 +
.../tiny_mce/plugins/visualchars/editor_plugin.js | 1 +
.../plugins/visualchars/editor_plugin_src.js | 73 ++
.../plugins/visualchars_orig/editor_plugin.js | 1 +
.../plugins/visualchars_orig/editor_plugin_src.js | 83 ++
.../tiny_mce/plugins/wordcount/editor_plugin.js | 1 +
.../plugins/wordcount/editor_plugin_src.js | 98 ++
.../jscripts/tiny_mce/plugins/xhtmlxtras/abbr.htm | 141 +++
.../tiny_mce/plugins/xhtmlxtras/acronym.htm | 141 +++
.../tiny_mce/plugins/xhtmlxtras/attributes.htm | 148 +++
.../jscripts/tiny_mce/plugins/xhtmlxtras/cite.htm | 141 +++
.../tiny_mce/plugins/xhtmlxtras/css/attributes.css | 11 +
.../tiny_mce/plugins/xhtmlxtras/css/popup.css | 9 +
.../jscripts/tiny_mce/plugins/xhtmlxtras/del.htm | 161 +++
.../tiny_mce/plugins/xhtmlxtras/editor_plugin.js | 1 +
.../plugins/xhtmlxtras/editor_plugin_src.js | 132 +++
.../jscripts/tiny_mce/plugins/xhtmlxtras/ins.htm | 161 +++
.../tiny_mce/plugins/xhtmlxtras/js/abbr.js | 28 +
.../tiny_mce/plugins/xhtmlxtras/js/acronym.js | 28 +
.../tiny_mce/plugins/xhtmlxtras/js/attributes.js | 126 +++
.../tiny_mce/plugins/xhtmlxtras/js/cite.js | 28 +
.../jscripts/tiny_mce/plugins/xhtmlxtras/js/del.js | 63 ++
.../plugins/xhtmlxtras/js/element_common.js | 231 ++++
.../jscripts/tiny_mce/plugins/xhtmlxtras/js/ins.js | 62 ++
.../tiny_mce/plugins/xhtmlxtras/langs/de_dlg.js | 32 +
.../tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js | 32 +
267 files changed, 23774 insertions(+)
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advhr/css/advhr.css
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advhr/js/rule.js
create mode 100755 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advhr/langs/de_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advhr/langs/en_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advhr/rule.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/css/advimage.css
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/image.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/img/sample.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/js/image.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/langs/de_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/langs/en_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/css/advimage.css
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/image.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/img/sample.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/js/image.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/langs/en_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/css/advlink.css
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/js/advlink.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/langs/de_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/langs/en_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/link.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink_orig/css/advlink.css
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink_orig/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink_orig/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink_orig/js/advlink.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink_orig/langs/en_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink_orig/link.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlist/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlist/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/autoresize/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/autoresize/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/autosave/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/autosave/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/autosave/langs/en.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/directionality/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/directionality/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/emotions.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cool.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cry.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-frown.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-smile.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-wink.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-yell.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/js/emotions.js
create mode 100755 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/langs/de_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/langs/en_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/dialog.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/img/example.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/langs/en.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/langs/en_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/fullpage/css/fullpage.css
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/fullpage/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/fullpage/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/fullpage/fullpage.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/fullpage/js/fullpage.js
create mode 100755 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/fullpage/langs/de_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/fullpage/langs/en_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/fullscreen/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/fullscreen/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/fullscreen/fullscreen.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/grappelli/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/grappelli/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/grappelli/img/show_advanced.png
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/grappelli/img/visualchars.png
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/grappelli/langs/de.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/grappelli/langs/en.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/grappelli/langs/fr.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/grappelli_contextmenu/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/grappelli_contextmenu/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/grappelli_contextmenu/langs/de.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/grappelli_contextmenu/langs/en.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/grappelli_contextmenu/langs/fr.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/inlinepopups/template.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/insertdatetime/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/insertdatetime/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/layer/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/layer/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/legacyoutput/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/legacyoutput/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media/css/content.css
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media/css/media.css
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media/editor_plugin Kopie.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media/img/flash.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media/img/flv_player.swf
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media/img/quicktime.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media/img/realmedia.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media/img/shockwave.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media/img/trans.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media/img/windowsmedia.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media/js/embed.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media/js/media.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media/langs/de_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media/langs/en_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media/media.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media_orig/css/content.css
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media_orig/css/media.css
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media_orig/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media_orig/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media_orig/img/flash.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media_orig/img/flv_player.swf
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media_orig/img/quicktime.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media_orig/img/realmedia.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media_orig/img/shockwave.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media_orig/img/trans.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media_orig/img/windowsmedia.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media_orig/js/embed.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media_orig/js/media.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media_orig/langs/en_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/media_orig/media.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/noneditable/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/noneditable/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/pagebreak/css/content.css
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/pagebreak/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/pagebreak/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/pagebreak/img/pagebreak.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/pagebreak/img/trans.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/paste/blank.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/paste/css/blank.css
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/paste/css/pasteword.css
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/paste/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/paste/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/paste/js/pastetext.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/paste/js/pasteword.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/paste/langs/de_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/paste/langs/en_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/paste/pastetext.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/paste/pasteword.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/paste_orig/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/paste_orig/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/paste_orig/js/pastetext.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/paste_orig/js/pasteword.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/paste_orig/langs/en_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/paste_orig/pastetext.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/paste_orig/pasteword.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/preview/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/preview/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/preview/example.html
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/preview/jscripts/embed.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/preview/preview.html
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/print/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/print/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/save/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/save/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/searchreplace/css/searchreplace.css
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/searchreplace/js/searchreplace.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/searchreplace/langs/de_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/searchreplace/langs/en_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/searchreplace/searchreplace.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/searchreplace_orig/css/searchreplace.css
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/searchreplace_orig/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/searchreplace_orig/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/searchreplace_orig/js/searchreplace.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/searchreplace_orig/langs/en_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/searchreplace_orig/searchreplace.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/spellchecker/css/content.css
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/spellchecker/img/wline.gif
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/style/css/props.css
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/style/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/style/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/style/js/props.js
create mode 100755 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/style/langs/de_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/style/langs/en_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/style/props.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/tabfocus/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/tabfocus/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/table/cell.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/table/css/cell.css
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/table/css/row.css
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/table/css/table.css
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/table/js/cell.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/table/js/merge_cells.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/table/js/row.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/table/js/table.js
create mode 100755 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/table/langs/de_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/table/langs/en_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/table/merge_cells.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/table/row.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/table/table.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/template/blank.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/template/css/template.css
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/template/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/template/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/template/js/template.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/template/langs/de_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/template/langs/en_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/template/template.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/template_orig/blank.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/template_orig/css/template.css
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/template_orig/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/template_orig/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/template_orig/js/template.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/template_orig/langs/en_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/template_orig/template.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/visualchars/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/visualchars/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/visualchars_orig/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/visualchars_orig/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/wordcount/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/wordcount/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/abbr.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/acronym.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/attributes.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/cite.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/popup.css
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/del.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/ins.htm
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/cite.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/del.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/ins.js
create mode 100755 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/langs/de_dlg.js
create mode 100644 lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js
(limited to 'lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins')
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advhr/css/advhr.css b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advhr/css/advhr.css
new file mode 100644
index 0000000..0e22834
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin.js
new file mode 100644
index 0000000..4d3b062
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin_src.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin_src.js
new file mode 100644
index 0000000..0c652d3
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advhr/js/rule.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advhr/js/rule.js
new file mode 100644
index 0000000..b6cbd66
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advhr/langs/de_dlg.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advhr/langs/de_dlg.js
new file mode 100755
index 0000000..22344d4
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advhr/langs/de_dlg.js
@@ -0,0 +1,5 @@
+tinyMCE.addI18n('de.advhr_dlg',{
+width:"Breite",
+size:"H\u00F6he",
+noshade:"Kein Schatten"
+});
\ No newline at end of file
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advhr/langs/en_dlg.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advhr/langs/en_dlg.js
new file mode 100644
index 0000000..873bfd8
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advhr/rule.htm b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advhr/rule.htm
new file mode 100644
index 0000000..fc37b2a
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advhr/rule.htm
@@ -0,0 +1,57 @@
+
+
+
+ {#advhr.advhr_desc}
+
+
+
+
+
+
+
+
+
+
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/css/advimage.css b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/css/advimage.css
new file mode 100644
index 0000000..0ee8956
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin.js
new file mode 100644
index 0000000..6ece9e4
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create('tinymce.plugins.AdvancedImagePlugin',{init:function(ed,url){ed.addCommand('mceAdvImage',function(){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:235+parseInt(ed.getLang('advimage.delta_height',0)),inline:1},{plugin_url:url});});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};}});tinymce.PluginManager.add('advimage',tinymce.plugins.AdvancedImagePlugin);})();
\ No newline at end of file
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js
new file mode 100644
index 0000000..259a076
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js
@@ -0,0 +1,47 @@
+/**
+ * $Id: editor_plugin_src.js 677 2008-03-07 13:52:41Z spocke $
+ *
+ * @author Moxiecode
+ * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
+ */
+
+(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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/image.htm b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/image.htm
new file mode 100644
index 0000000..8724e93
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/image.htm
@@ -0,0 +1,210 @@
+
+
+
+ {#advimage_dlg.dialog_title}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/img/sample.gif b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/img/sample.gif
new file mode 100644
index 0000000..53bf689
Binary files /dev/null and b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/img/sample.gif differ
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/js/image.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/js/image.js
new file mode 100644
index 0000000..d08e469
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/langs/de_dlg.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/langs/de_dlg.js
new file mode 100644
index 0000000..e704596
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/langs/de_dlg.js
@@ -0,0 +1,43 @@
+tinyMCE.addI18n('de.advimage_dlg',{
+tab_general:"Allgemein",
+tab_appearance:"Aussehen",
+tab_advanced:"Erweitert",
+general:"Allgemein",
+title:"Titel",
+preview:"Vorschau",
+constrain_proportions:"Seitenverh\u00E4ltnis beibehalten",
+langdir:"Schriftrichtung",
+langcode:"Sprachcode",
+long_desc:"Ausf\u00FChrliche Beschreibung",
+style:"Format",
+classes:"Klassen",
+ltr:"Links nach rechts",
+rtl:"Rechts nach links",
+id:"ID",
+map:"Image-Map",
+swap_image:"Bild austauschen",
+alt_image:"Alternatives Bild",
+mouseover:"bei Mauskontakt",
+mouseout:"bei keinem Mauskontakt",
+misc:"Verschiedenes",
+example_img:"Aussehen der Vorschau",
+missing_alt:"Wollen Sie wirklich keine Beschreibung eingeben? Bestimmte Benutzer mit k\u00F6rperlichen Einschr\u00E4nkungen k\u00F6nnen so nicht darauf zugreifen, ebenso solche, die einen Textbrowser benutzen oder die Anzeige von Bildern deaktiviert haben.",
+dialog_title:"Bild einf\u00FCgen/bearbeiten",
+src:"Adresse",
+alt:"Beschreibung",
+list:"Bilderliste",
+border:"Rahmen",
+dimensions:"Ausma\u00DFe",
+vspace:"Vertikaler Abstand",
+hspace:"Horizontaler Abstand",
+align:"Ausrichtung",
+align_baseline:"Zeile",
+align_top:"Oben",
+align_middle:"Mittig",
+align_bottom:"Unten",
+align_texttop:"Oben im Text",
+align_textbottom:"Unten im Text",
+align_left:"Links",
+align_right:"Rechts",
+image_list:"Bilderliste"
+});
\ No newline at end of file
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/langs/en_dlg.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage/langs/en_dlg.js
new file mode 100644
index 0000000..ef81f78
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/css/advimage.css b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/css/advimage.css
new file mode 100644
index 0000000..0a6251a
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/editor_plugin.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/editor_plugin.js
new file mode 100644
index 0000000..4c7a9c3
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/editor_plugin_src.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/editor_plugin_src.js
new file mode 100644
index 0000000..2625dd2
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/image.htm b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/image.htm
new file mode 100644
index 0000000..79cff3f
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/image.htm
@@ -0,0 +1,232 @@
+
+
+
+ {#advimage_dlg.dialog_title}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/img/sample.gif b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/img/sample.gif
new file mode 100644
index 0000000..53bf689
Binary files /dev/null and b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/img/sample.gif differ
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/js/image.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/js/image.js
new file mode 100644
index 0000000..3bda86a
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/langs/en_dlg.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/langs/en_dlg.js
new file mode 100644
index 0000000..f493d19
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advimage_orig/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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/css/advlink.css b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/css/advlink.css
new file mode 100644
index 0000000..66c6549
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin.js
new file mode 100644
index 0000000..34a38f8
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create('tinymce.plugins.AdvancedLinkPlugin',{init:function(ed,url){this.editor=ed;ed.addCommand('mceAdvLink',function(){var se=ed.selection;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:320+parseInt(ed.getLang('advlink.delta_height',0)),inline:1},{plugin_url:url});});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};}});tinymce.PluginManager.add('advlink',tinymce.plugins.AdvancedLinkPlugin);})();
\ No newline at end of file
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin_src.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin_src.js
new file mode 100644
index 0000000..7081e72
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin_src.js
@@ -0,0 +1,58 @@
+/**
+ * $Id: editor_plugin_src.js 539 2008-01-14 19:08:58Z spocke $
+ *
+ * @author Moxiecode
+ * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
+ */
+
+(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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/js/advlink.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/js/advlink.js
new file mode 100644
index 0000000..c8d1983
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/js/advlink.js
@@ -0,0 +1,527 @@
+/* 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) {
+ 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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/langs/de_dlg.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/langs/de_dlg.js
new file mode 100644
index 0000000..5a68302
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/langs/de_dlg.js
@@ -0,0 +1,52 @@
+tinyMCE.addI18n('de.advlink_dlg',{
+title:"Link einf\u00FCgen/bearbeiten",
+url:"Adresse",
+target:"Fenster",
+titlefield:"Titel",
+is_email:"Diese Adresse scheint eine E-Mail-Adresse zu sein. M\u00F6chten Sie das dazu ben\u00F6tigte \"mailto:\" voranstellen?",
+is_external:"Diese Adresse scheint ein externer Link zu sein. M\u00F6chten Sie das dazu ben\u00F6tigte \"http://\" voranstellen?",
+list:"Linkliste",
+general_tab:"Allgemein",
+popup_tab:"Popup",
+events_tab:"Ereignisse",
+advanced_tab:"Erweitert",
+general_props:"Allemeine Eigenschaften",
+popup_props:"Popup-Eigenschaften",
+event_props:"Ereignisse",
+advanced_props:"Erweiterte Eigenschaften",
+popup_opts:"Optionen",
+anchor_names:"Anker",
+target_same:"Im selben Fenster/Frame \u00F6ffnen",
+target_parent:"Im \u00FCbergeordneten Fenster/Frame \u00F6ffnen",
+target_top:"Im obersten Frame \u00F6ffnen (sprengt das Frameset)",
+target_blank:"In neuem Fenster \u00F6ffnen",
+popup:"JavaScript-Popup",
+popup_url:"Popup-Adresse",
+popup_name:"Name des Fensters",
+popup_return:"Link trotz Popup folgen",
+popup_scrollbars:"Scrollbalken anzeigen",
+popup_statusbar:"Statusleiste anzeigen",
+popup_toolbar:"Werkzeugleisten anzeigen",
+popup_menubar:"Browsermen\u00FC anzeigen",
+popup_location:"Adressleiste anzeigen",
+popup_resizable:"Vergr\u00F6\u00DFern des Fenster zulassen",
+popup_dependent:"Vom Elternfenster abh\u00E4ngig
(nur Mozilla/Firefox) ",
+popup_size:"Gr\u00F6\u00DFe",
+popup_position:"Position (X/Y)",
+id:"ID",
+style:"Format",
+classes:"Klassen",
+target_name:"Name der Zielseite",
+langdir:"Schriftrichtung",
+target_langcode:"Sprache der Zielseite",
+langcode:"Sprachcode",
+encoding:"Zeichenkodierung der Zielseite",
+mime:"MIME-Type der Zielseite",
+rel:"Beziehung der Seite zum Linkziel",
+rev:"Beziehung des Linkziels zur Seite",
+tabindex:"Tabindex",
+accesskey:"Tastenk\u00FCrzel",
+ltr:"Links nach rechts",
+rtl:"Rechts nach links",
+link_list:"Linkliste"
+});
\ No newline at end of file
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/langs/en_dlg.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/langs/en_dlg.js
new file mode 100644
index 0000000..8ef9c79
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/link.htm b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/link.htm
new file mode 100644
index 0000000..7b82b44
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink/link.htm
@@ -0,0 +1,311 @@
+
+
+
+ {#advlink_dlg.title}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink_orig/css/advlink.css b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink_orig/css/advlink.css
new file mode 100644
index 0000000..1436431
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink_orig/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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink_orig/editor_plugin.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink_orig/editor_plugin.js
new file mode 100644
index 0000000..983fe5a
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink_orig/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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink_orig/editor_plugin_src.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink_orig/editor_plugin_src.js
new file mode 100644
index 0000000..14e46a7
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink_orig/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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink_orig/js/advlink.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink_orig/js/advlink.js
new file mode 100644
index 0000000..b78e82f
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink_orig/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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink_orig/langs/en_dlg.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink_orig/langs/en_dlg.js
new file mode 100644
index 0000000..c71ffbd
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink_orig/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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink_orig/link.htm b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink_orig/link.htm
new file mode 100644
index 0000000..876669c
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlink_orig/link.htm
@@ -0,0 +1,333 @@
+
+
+
+ {#advlink_dlg.title}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlist/editor_plugin.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlist/editor_plugin.js
new file mode 100644
index 0000000..02d1697
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlist/editor_plugin_src.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/advlist/editor_plugin_src.js
new file mode 100644
index 0000000..a61887a
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/autoresize/editor_plugin.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/autoresize/editor_plugin.js
new file mode 100644
index 0000000..1676b15
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/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.onChange.add(b);a.onSetContent.add(b);a.onPaste.add(b);a.onKeyUp.add(b);a.onPostRender.add(b);if(a.getParam("autoresize_on_init",true)){a.onInit.add(function(f,e){f.setProgressState(true);d.throbbing=true;f.getBody().style.overflowY="hidden"});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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/autoresize/editor_plugin_src.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/autoresize/editor_plugin_src.js
new file mode 100644
index 0000000..c260b7a
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/autoresize/editor_plugin_src.js
@@ -0,0 +1,119 @@
+/**
+ * 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;
+
+ // 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);
+
+ if (ed.getParam('autoresize_on_init', true)) {
+ // 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";
+ });
+
+ 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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/autosave/editor_plugin.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/autosave/editor_plugin.js
new file mode 100644
index 0000000..6e48540
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/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({draft:true}).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({draft:true});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({draft: true});
+ 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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/autosave/langs/en.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/autosave/langs/en.js
new file mode 100644
index 0000000..fce6bd3
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/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/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin.js
new file mode 100644
index 0000000..930fdff
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/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(/]*>/gi,"[quote]");b(/<\/blockquote>/gi,"[/quote]");b(/
/gi,"\n");b(/
/gi,"\n");b(/
/gi,"\n");b(//gi,"");b(/<\/p>/gi,"\n");b(/ /gi," ");b(/"/gi,'"');b(/</gi,"<");b(/>/gi,">");b(/&/gi,"&");return a},_punbb_bbcode2html:function(a){a=tinymce.trim(a);function b(c,d){a=a.replace(c,d)}b(/\n/gi,"
");b(/\[b\]/gi,"");b(/\[\/b\]/gi,"");b(/\[i\]/gi,"");b(/\[\/i\]/gi,"");b(/\[u\]/gi,"");b(/\[\/u\]/gi,"");b(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,'$2');b(/\[url\](.*?)\[\/url\]/gi,'$1');b(/\[img\](.*?)\[\/img\]/gi,'
');b(/\[color=(.*?)\](.*?)\[\/color\]/gi,'$2');b(/\[code\](.*?)\[\/code\]/gi,'$1 ');b(/\[quote.*?\](.*?)\[\/quote\]/gi,'$1 ');return a}});tinymce.PluginManager.add("bbcode",tinymce.plugins.BBCodePlugin)})();
\ No newline at end of file
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js
new file mode 100644
index 0000000..5586637
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js
@@ -0,0 +1,120 @@
+/**
+ * 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.BBCodePlugin', {
+ init : function(ed, url) {
+ var t = this, dialect = ed.getParam('bbcode_dialect', 'punbb').toLowerCase();
+
+ ed.onBeforeSetContent.add(function(ed, o) {
+ o.content = t['_' + dialect + '_bbcode2html'](o.content);
+ });
+
+ ed.onPostProcess.add(function(ed, o) {
+ if (o.set)
+ o.content = t['_' + dialect + '_bbcode2html'](o.content);
+
+ if (o.get)
+ o.content = t['_' + dialect + '_html2bbcode'](o.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
+ };
+ },
+
+ // Private methods
+
+ // HTML -> BBCode in PunBB dialect
+ _punbb_html2bbcode : function(s) {
+ s = tinymce.trim(s);
+
+ function rep(re, str) {
+ s = s.replace(re, str);
+ };
+
+ // example: to [b]
+ rep(/(.*?)<\/a>/gi,"[url=$1]$2[/url]");
+ rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");
+ rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");
+ rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");
+ rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");
+ rep(/(.*?)<\/span>/gi,"[color=$1]$2[/color]");
+ rep(/(.*?)<\/font>/gi,"[color=$1]$2[/color]");
+ rep(/(.*?)<\/span>/gi,"[size=$1]$2[/size]");
+ rep(/(.*?)<\/font>/gi,"$1");
+ rep(//gi,"[img]$1[/img]");
+ rep(/(.*?)<\/span>/gi,"[code]$1[/code]");
+ rep(/(.*?)<\/span>/gi,"[quote]$1[/quote]");
+ rep(/(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]");
+ rep(/(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]");
+ rep(/(.*?)<\/em>/gi,"[code][i]$1[/i][/code]");
+ rep(/(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]");
+ rep(/(.*?)<\/u>/gi,"[code][u]$1[/u][/code]");
+ rep(/(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]");
+ rep(/<\/(strong|b)>/gi,"[/b]");
+ rep(/<(strong|b)>/gi,"[b]");
+ rep(/<\/(em|i)>/gi,"[/i]");
+ rep(/<(em|i)>/gi,"[i]");
+ rep(/<\/u>/gi,"[/u]");
+ rep(/(.*?)<\/span>/gi,"[u]$1[/u]");
+ rep(//gi,"[u]");
+ rep(/]*>/gi,"[quote]");
+ rep(/<\/blockquote>/gi,"[/quote]");
+ rep(/
/gi,"\n");
+ rep(/
/gi,"\n");
+ rep(/
/gi,"\n");
+ rep(//gi,"");
+ rep(/<\/p>/gi,"\n");
+ rep(/ /gi," ");
+ rep(/"/gi,"\"");
+ rep(/</gi,"<");
+ rep(/>/gi,">");
+ rep(/&/gi,"&");
+
+ return s;
+ },
+
+ // BBCode -> HTML from PunBB dialect
+ _punbb_bbcode2html : function(s) {
+ s = tinymce.trim(s);
+
+ function rep(re, str) {
+ s = s.replace(re, str);
+ };
+
+ // example: [b] to
+ rep(/\n/gi,"
");
+ rep(/\[b\]/gi,"");
+ rep(/\[\/b\]/gi,"");
+ rep(/\[i\]/gi,"");
+ rep(/\[\/i\]/gi,"");
+ rep(/\[u\]/gi,"");
+ rep(/\[\/u\]/gi,"");
+ rep(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,"$2");
+ rep(/\[url\](.*?)\[\/url\]/gi,"$1");
+ rep(/\[img\](.*?)\[\/img\]/gi,"
");
+ rep(/\[color=(.*?)\](.*?)\[\/color\]/gi,"$2");
+ rep(/\[code\](.*?)\[\/code\]/gi,"$1 ");
+ rep(/\[quote.*?\](.*?)\[\/quote\]/gi,"$1 ");
+
+ return s;
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('bbcode', tinymce.plugins.BBCodePlugin);
+})();
\ No newline at end of file
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin.js
new file mode 100644
index 0000000..9749e51
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin.js
@@ -0,0 +1 @@
+(function(){var a=tinymce.dom.Event,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.ContextMenu",{init:function(d){var f=this,g;f.editor=d;f.onContextMenu=new tinymce.util.Dispatcher(this);d.onContextMenu.add(function(h,i){if(!i.ctrlKey){if(g){h.selection.setRng(g)}f._getMenu(h).showMenu(i.clientX,i.clientY);a.add(h.getDoc(),"click",function(j){e(h,j)});a.cancel(i)}});d.onRemove.add(function(){if(f._menu){f._menu.removeAll()}});function e(h,i){g=null;if(i&&i.button==2){g=h.selection.getRng();return}if(f._menu){f._menu.removeAll();f._menu.destroy();a.remove(h.getDoc(),"click",e)}}d.onMouseDown.add(e);d.onKeyDown.add(e)},getInfo:function(){return{longname:"Contextmenu",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_getMenu:function(h){var l=this,f=l._menu,i=h.selection,e=i.isCollapsed(),d=i.getNode()||h.getBody(),g,k,j;if(f){f.removeAll();f.destroy()}k=b.getPos(h.getContentAreaContainer());j=b.getPos(h.getContainer());f=h.controlManager.createDropMenu("contextmenu",{offset_x:k.x+h.getParam("contextmenu_offset_x",0),offset_y:k.y+h.getParam("contextmenu_offset_y",0),constrain:1});l._menu=f;f.add({title:"advanced.cut_desc",icon:"cut",cmd:"Cut"}).setDisabled(e);f.add({title:"advanced.copy_desc",icon:"copy",cmd:"Copy"}).setDisabled(e);f.add({title:"advanced.paste_desc",icon:"paste",cmd:"Paste"});if((d.nodeName=="A"&&!h.dom.getAttrib(d,"name"))||!e){f.addSeparator();f.add({title:"advanced.link_desc",icon:"link",cmd:h.plugins.advlink?"mceAdvLink":"mceLink",ui:true});f.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"})}f.addSeparator();f.add({title:"advanced.image_desc",icon:"image",cmd:h.plugins.advimage?"mceAdvImage":"mceImage",ui:true});f.addSeparator();g=f.addMenu({title:"contextmenu.align"});g.add({title:"contextmenu.left",icon:"justifyleft",cmd:"JustifyLeft"});g.add({title:"contextmenu.center",icon:"justifycenter",cmd:"JustifyCenter"});g.add({title:"contextmenu.right",icon:"justifyright",cmd:"JustifyRight"});g.add({title:"contextmenu.full",icon:"justifyfull",cmd:"JustifyFull"});l.onContextMenu.dispatch(l,f,d,e);return f}});tinymce.PluginManager.add("contextmenu",tinymce.plugins.ContextMenu)})();
\ No newline at end of file
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js
new file mode 100644
index 0000000..13813a6
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js
@@ -0,0 +1,147 @@
+/**
+ * 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 Event = tinymce.dom.Event, each = tinymce.each, DOM = tinymce.DOM;
+
+ /**
+ * This plugin a context menu to TinyMCE editor instances.
+ *
+ * @class tinymce.plugins.ContextMenu
+ */
+ tinymce.create('tinymce.plugins.ContextMenu', {
+ /**
+ * 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.
+ *
+ * @method init
+ * @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) {
+ var t = this, lastRng;
+
+ t.editor = ed;
+
+ /**
+ * This event gets fired when the context menu is shown.
+ *
+ * @event onContextMenu
+ * @param {tinymce.plugins.ContextMenu} sender Plugin instance sending the event.
+ * @param {tinymce.ui.DropMenu} menu Drop down menu to fill with more items if needed.
+ */
+ t.onContextMenu = new tinymce.util.Dispatcher(this);
+
+ ed.onContextMenu.add(function(ed, e) {
+ if (!e.ctrlKey) {
+ // Restore the last selection since it was removed
+ if (lastRng)
+ ed.selection.setRng(lastRng);
+
+ t._getMenu(ed).showMenu(e.clientX, e.clientY);
+ Event.add(ed.getDoc(), 'click', function(e) {
+ hide(ed, e);
+ });
+ Event.cancel(e);
+ }
+ });
+
+ ed.onRemove.add(function() {
+ if (t._menu)
+ t._menu.removeAll();
+ });
+
+ function hide(ed, e) {
+ lastRng = null;
+
+ // Since the contextmenu event moves
+ // the selection we need to store it away
+ if (e && e.button == 2) {
+ lastRng = ed.selection.getRng();
+ return;
+ }
+
+ if (t._menu) {
+ t._menu.removeAll();
+ t._menu.destroy();
+ Event.remove(ed.getDoc(), 'click', hide);
+ }
+ };
+
+ ed.onMouseDown.add(hide);
+ ed.onKeyDown.add(hide);
+ },
+
+ /**
+ * 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 : 'Contextmenu',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ },
+
+ _getMenu : function(ed) {
+ var t = this, m = t._menu, se = ed.selection, col = se.isCollapsed(), el = se.getNode() || ed.getBody(), am, p1, p2;
+
+ if (m) {
+ m.removeAll();
+ m.destroy();
+ }
+
+ p1 = DOM.getPos(ed.getContentAreaContainer());
+ p2 = DOM.getPos(ed.getContainer());
+
+ m = ed.controlManager.createDropMenu('contextmenu', {
+ offset_x : p1.x + ed.getParam('contextmenu_offset_x', 0),
+ offset_y : p1.y + ed.getParam('contextmenu_offset_y', 0),
+ constrain : 1
+ });
+
+ t._menu = m;
+
+ m.add({title : 'advanced.cut_desc', icon : 'cut', cmd : 'Cut'}).setDisabled(col);
+ m.add({title : 'advanced.copy_desc', icon : 'copy', cmd : 'Copy'}).setDisabled(col);
+ m.add({title : 'advanced.paste_desc', icon : 'paste', cmd : 'Paste'});
+
+ if ((el.nodeName == 'A' && !ed.dom.getAttrib(el, 'name')) || !col) {
+ m.addSeparator();
+ m.add({title : 'advanced.link_desc', icon : 'link', cmd : ed.plugins.advlink ? 'mceAdvLink' : 'mceLink', ui : true});
+ m.add({title : 'advanced.unlink_desc', icon : 'unlink', cmd : 'UnLink'});
+ }
+
+ m.addSeparator();
+ m.add({title : 'advanced.image_desc', icon : 'image', cmd : ed.plugins.advimage ? 'mceAdvImage' : 'mceImage', ui : true});
+
+ m.addSeparator();
+ am = m.addMenu({title : 'contextmenu.align'});
+ am.add({title : 'contextmenu.left', icon : 'justifyleft', cmd : 'JustifyLeft'});
+ am.add({title : 'contextmenu.center', icon : 'justifycenter', cmd : 'JustifyCenter'});
+ am.add({title : 'contextmenu.right', icon : 'justifyright', cmd : 'JustifyRight'});
+ am.add({title : 'contextmenu.full', icon : 'justifyfull', cmd : 'JustifyFull'});
+
+ t.onContextMenu.dispatch(t, m, el, col);
+
+ return m;
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('contextmenu', tinymce.plugins.ContextMenu);
+})();
\ No newline at end of file
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/directionality/editor_plugin.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/directionality/editor_plugin.js
new file mode 100644
index 0000000..bce8e73
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/directionality/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.Directionality",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceDirectionLTR",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="ltr"){a.dom.setAttrib(d,"dir","ltr")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addCommand("mceDirectionRTL",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="rtl"){a.dom.setAttrib(d,"dir","rtl")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addButton("ltr",{title:"directionality.ltr_desc",cmd:"mceDirectionLTR"});a.addButton("rtl",{title:"directionality.rtl_desc",cmd:"mceDirectionRTL"});a.onNodeChange.add(c._nodeChange,c)},getInfo:function(){return{longname:"Directionality",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,e){var d=b.dom,c;e=d.getParent(e,d.isBlock);if(!e){a.setDisabled("ltr",1);a.setDisabled("rtl",1);return}c=d.getAttrib(e,"dir");a.setActive("ltr",c=="ltr");a.setDisabled("ltr",0);a.setActive("rtl",c=="rtl");a.setDisabled("rtl",0)}});tinymce.PluginManager.add("directionality",tinymce.plugins.Directionality)})();
\ No newline at end of file
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/directionality/editor_plugin_src.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/directionality/editor_plugin_src.js
new file mode 100644
index 0000000..4444959
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/directionality/editor_plugin_src.js
@@ -0,0 +1,82 @@
+/**
+ * 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.Directionality', {
+ init : function(ed, url) {
+ var t = this;
+
+ t.editor = ed;
+
+ ed.addCommand('mceDirectionLTR', function() {
+ var e = ed.dom.getParent(ed.selection.getNode(), ed.dom.isBlock);
+
+ if (e) {
+ if (ed.dom.getAttrib(e, "dir") != "ltr")
+ ed.dom.setAttrib(e, "dir", "ltr");
+ else
+ ed.dom.setAttrib(e, "dir", "");
+ }
+
+ ed.nodeChanged();
+ });
+
+ ed.addCommand('mceDirectionRTL', function() {
+ var e = ed.dom.getParent(ed.selection.getNode(), ed.dom.isBlock);
+
+ if (e) {
+ if (ed.dom.getAttrib(e, "dir") != "rtl")
+ ed.dom.setAttrib(e, "dir", "rtl");
+ else
+ ed.dom.setAttrib(e, "dir", "");
+ }
+
+ ed.nodeChanged();
+ });
+
+ ed.addButton('ltr', {title : 'directionality.ltr_desc', cmd : 'mceDirectionLTR'});
+ ed.addButton('rtl', {title : 'directionality.rtl_desc', cmd : 'mceDirectionRTL'});
+
+ ed.onNodeChange.add(t._nodeChange, t);
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Directionality',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ },
+
+ // Private methods
+
+ _nodeChange : function(ed, cm, n) {
+ var dom = ed.dom, dir;
+
+ n = dom.getParent(n, dom.isBlock);
+ if (!n) {
+ cm.setDisabled('ltr', 1);
+ cm.setDisabled('rtl', 1);
+ return;
+ }
+
+ dir = dom.getAttrib(n, 'dir');
+ cm.setActive('ltr', dir == "ltr");
+ cm.setDisabled('ltr', 0);
+ cm.setActive('rtl', dir == "rtl");
+ cm.setDisabled('rtl', 0);
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('directionality', tinymce.plugins.Directionality);
+})();
\ No newline at end of file
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin.js
new file mode 100644
index 0000000..dbdd8ff
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin.js
@@ -0,0 +1 @@
+(function(a){a.create("tinymce.plugins.EmotionsPlugin",{init:function(b,c){b.addCommand("mceEmotion",function(){b.windowManager.open({file:c+"/emotions.htm",width:250+parseInt(b.getLang("emotions.delta_width",0)),height:160+parseInt(b.getLang("emotions.delta_height",0)),inline:1},{plugin_url:c})});b.addButton("emotions",{title:"emotions.emotions_desc",cmd:"mceEmotion"})},getInfo:function(){return{longname:"Emotions",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions",version:a.majorVersion+"."+a.minorVersion}}});a.PluginManager.add("emotions",a.plugins.EmotionsPlugin)})(tinymce);
\ No newline at end of file
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin_src.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin_src.js
new file mode 100644
index 0000000..71d5416
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin_src.js
@@ -0,0 +1,43 @@
+/**
+ * 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) {
+ tinymce.create('tinymce.plugins.EmotionsPlugin', {
+ init : function(ed, url) {
+ // Register commands
+ ed.addCommand('mceEmotion', function() {
+ ed.windowManager.open({
+ file : url + '/emotions.htm',
+ width : 250 + parseInt(ed.getLang('emotions.delta_width', 0)),
+ height : 160 + parseInt(ed.getLang('emotions.delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url
+ });
+ });
+
+ // Register buttons
+ ed.addButton('emotions', {title : 'emotions.emotions_desc', cmd : 'mceEmotion'});
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Emotions',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('emotions', tinymce.plugins.EmotionsPlugin);
+})(tinymce);
\ No newline at end of file
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/emotions.htm b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/emotions.htm
new file mode 100644
index 0000000..55a1d72
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/emotions.htm
@@ -0,0 +1,40 @@
+
+
+
+ {#emotions_dlg.title}
+
+
+
+
+
+
+
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cool.gif b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cool.gif
new file mode 100644
index 0000000..ba90cc3
Binary files /dev/null and b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cool.gif differ
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cry.gif b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cry.gif
new file mode 100644
index 0000000..74d897a
Binary files /dev/null and b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cry.gif differ
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif
new file mode 100644
index 0000000..963a96b
Binary files /dev/null and b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif differ
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif
new file mode 100644
index 0000000..16f68cc
Binary files /dev/null and b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif differ
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-frown.gif b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-frown.gif
new file mode 100644
index 0000000..716f55e
Binary files /dev/null and b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-frown.gif differ
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif
new file mode 100644
index 0000000..334d49e
Binary files /dev/null and b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif differ
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif
new file mode 100644
index 0000000..4efd549
Binary files /dev/null and b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif differ
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif
new file mode 100644
index 0000000..1606c11
Binary files /dev/null and b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif differ
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif
new file mode 100644
index 0000000..ca2451e
Binary files /dev/null and b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif differ
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif
new file mode 100644
index 0000000..b33d3cc
Binary files /dev/null and b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif differ
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-smile.gif b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-smile.gif
new file mode 100644
index 0000000..e6a9e60
Binary files /dev/null and b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-smile.gif differ
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif
new file mode 100644
index 0000000..cb99cdd
Binary files /dev/null and b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif differ
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif
new file mode 100644
index 0000000..2075dc1
Binary files /dev/null and b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif differ
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif
new file mode 100644
index 0000000..bef7e25
Binary files /dev/null and b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif differ
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-wink.gif b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-wink.gif
new file mode 100644
index 0000000..9faf1af
Binary files /dev/null and b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-wink.gif differ
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-yell.gif b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-yell.gif
new file mode 100644
index 0000000..648e6e8
Binary files /dev/null and b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-yell.gif differ
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/js/emotions.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/js/emotions.js
new file mode 100644
index 0000000..c549367
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/js/emotions.js
@@ -0,0 +1,22 @@
+tinyMCEPopup.requireLangPack();
+
+var EmotionsDialog = {
+ init : function(ed) {
+ tinyMCEPopup.resizeToInnerSize();
+ },
+
+ insert : function(file, title) {
+ var ed = tinyMCEPopup.editor, dom = ed.dom;
+
+ tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', {
+ src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file,
+ alt : ed.getLang(title),
+ title : ed.getLang(title),
+ border : 0
+ }));
+
+ tinyMCEPopup.close();
+ }
+};
+
+tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog);
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/langs/de_dlg.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/langs/de_dlg.js
new file mode 100755
index 0000000..3940a2a
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/langs/de_dlg.js
@@ -0,0 +1,20 @@
+tinyMCE.addI18n('de.emotions_dlg',{
+title:"Smiley einf\u00FCgen",
+desc:"Smilies",
+cool:"Cool",
+cry:"Weinend",
+embarassed:"Verlegen",
+foot_in_mouth:"Reingefallen",
+frown:"Stirnrunzelnd",
+innocent:"Unschuldig",
+kiss:"K\u00FCssend",
+laughing:"Lachend",
+money_mouth:"Geld",
+sealed:"Verschlossen",
+smile:"L\u00E4chelnd",
+surprised:"\u00DCberrascht",
+tongue_out:"Zunge raus",
+undecided:"Unentschlossen",
+wink:"Zwinkernd",
+yell:"Br\u00FCllend"
+});
\ No newline at end of file
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/langs/en_dlg.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/langs/en_dlg.js
new file mode 100644
index 0000000..3b57ad9
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/emotions/langs/en_dlg.js
@@ -0,0 +1,20 @@
+tinyMCE.addI18n('en.emotions_dlg',{
+title:"Insert emotion",
+desc:"Emotions",
+cool:"Cool",
+cry:"Cry",
+embarassed:"Embarassed",
+foot_in_mouth:"Foot in mouth",
+frown:"Frown",
+innocent:"Innocent",
+kiss:"Kiss",
+laughing:"Laughing",
+money_mouth:"Money mouth",
+sealed:"Sealed",
+smile:"Smile",
+surprised:"Surprised",
+tongue_out:"Tongue out",
+undecided:"Undecided",
+wink:"Wink",
+yell:"Yell"
+});
\ No newline at end of file
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/dialog.htm b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/dialog.htm
new file mode 100644
index 0000000..50b2b34
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/dialog.htm
@@ -0,0 +1,22 @@
+
+
+
+ {#example_dlg.title}
+
+
+
+
+
+
+
+
+
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/editor_plugin.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/editor_plugin.js
new file mode 100644
index 0000000..ec1f81e
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.PluginManager.requireLangPack("example");tinymce.create("tinymce.plugins.ExamplePlugin",{init:function(a,b){a.addCommand("mceExample",function(){a.windowManager.open({file:b+"/dialog.htm",width:320+parseInt(a.getLang("example.delta_width",0)),height:120+parseInt(a.getLang("example.delta_height",0)),inline:1},{plugin_url:b,some_custom_arg:"custom arg"})});a.addButton("example",{title:"example.desc",cmd:"mceExample",image:b+"/img/example.gif"});a.onNodeChange.add(function(d,c,e){c.setActive("example",e.nodeName=="IMG")})},createControl:function(b,a){return null},getInfo:function(){return{longname:"Example plugin",author:"Some author",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example",version:"1.0"}}});tinymce.PluginManager.add("example",tinymce.plugins.ExamplePlugin)})();
\ No newline at end of file
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/editor_plugin_src.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/editor_plugin_src.js
new file mode 100644
index 0000000..9a0e7da
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/editor_plugin_src.js
@@ -0,0 +1,84 @@
+/**
+ * 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() {
+ // Load plugin specific language pack
+ tinymce.PluginManager.requireLangPack('example');
+
+ tinymce.create('tinymce.plugins.ExamplePlugin', {
+ /**
+ * 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) {
+ // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
+ ed.addCommand('mceExample', function() {
+ ed.windowManager.open({
+ file : url + '/dialog.htm',
+ width : 320 + parseInt(ed.getLang('example.delta_width', 0)),
+ height : 120 + parseInt(ed.getLang('example.delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url, // Plugin absolute URL
+ some_custom_arg : 'custom arg' // Custom argument
+ });
+ });
+
+ // Register example button
+ ed.addButton('example', {
+ title : 'example.desc',
+ cmd : 'mceExample',
+ image : url + '/img/example.gif'
+ });
+
+ // Add a node change handler, selects the button in the UI when a image is selected
+ ed.onNodeChange.add(function(ed, cm, n) {
+ cm.setActive('example', n.nodeName == 'IMG');
+ });
+ },
+
+ /**
+ * Creates control instances based in the incomming name. This method is normally not
+ * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons
+ * but you sometimes need to create more complex controls like listboxes, split buttons etc then this
+ * method can be used to create those.
+ *
+ * @param {String} n Name of the control to create.
+ * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control.
+ * @return {tinymce.ui.Control} New control instance or null if no control was created.
+ */
+ createControl : function(n, cm) {
+ return null;
+ },
+
+ /**
+ * 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 : 'Example plugin',
+ author : 'Some author',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example',
+ version : "1.0"
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('example', tinymce.plugins.ExamplePlugin);
+})();
\ No newline at end of file
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/img/example.gif b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/img/example.gif
new file mode 100644
index 0000000..1ab5da4
Binary files /dev/null and b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/img/example.gif differ
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js
new file mode 100644
index 0000000..fa83411
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js
@@ -0,0 +1,19 @@
+tinyMCEPopup.requireLangPack();
+
+var ExampleDialog = {
+ init : function() {
+ var f = document.forms[0];
+
+ // Get the selected contents as text and place it in the input
+ f.someval.value = tinyMCEPopup.editor.selection.getContent({format : 'text'});
+ f.somearg.value = tinyMCEPopup.getWindowArg('some_custom_arg');
+ },
+
+ insert : function() {
+ // Insert the contents from the input into the document
+ tinyMCEPopup.editor.execCommand('mceInsertContent', false, document.forms[0].someval.value);
+ tinyMCEPopup.close();
+ }
+};
+
+tinyMCEPopup.onInit.add(ExampleDialog.init, ExampleDialog);
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/langs/en.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/langs/en.js
new file mode 100644
index 0000000..e0784f8
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/langs/en.js
@@ -0,0 +1,3 @@
+tinyMCE.addI18n('en.example',{
+ desc : 'This is just a template button'
+});
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/langs/en_dlg.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/langs/en_dlg.js
new file mode 100644
index 0000000..ebcf948
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/example/langs/en_dlg.js
@@ -0,0 +1,3 @@
+tinyMCE.addI18n('en.example_dlg',{
+ title : 'This is just a example title'
+});
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/fullpage/css/fullpage.css b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/fullpage/css/fullpage.css
new file mode 100644
index 0000000..7a3334f
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/fullpage/css/fullpage.css
@@ -0,0 +1,182 @@
+/* Hide the advanced tab */
+#advanced_tab {
+ display: none;
+}
+
+#metatitle, #metakeywords, #metadescription, #metaauthor, #metacopyright {
+ width: 280px;
+}
+
+#doctype, #docencoding {
+ width: 200px;
+}
+
+#langcode {
+ width: 30px;
+}
+
+#bgimage {
+ width: 220px;
+}
+
+#fontface {
+ width: 240px;
+}
+
+#leftmargin, #rightmargin, #topmargin, #bottommargin {
+ width: 50px;
+}
+
+.panel_wrapper div.current {
+ height: 400px;
+}
+
+#stylesheet, #style {
+ width: 240px;
+}
+
+/* Head list classes */
+
+.headlistwrapper {
+ width: 100%;
+}
+
+.addbutton, .removebutton, .moveupbutton, .movedownbutton {
+ border-top: 1px solid;
+ border-left: 1px solid;
+ border-bottom: 1px solid;
+ border-right: 1px solid;
+ border-color: #F0F0EE;
+ cursor: default;
+ display: block;
+ width: 20px;
+ height: 20px;
+}
+
+#doctypes {
+ width: 200px;
+}
+
+.addbutton:hover, .removebutton:hover, .moveupbutton:hover, .movedownbutton:hover {
+ border: 1px solid #0A246A;
+ background-color: #B6BDD2;
+}
+
+.addbutton {
+ background-image: url('../images/add.gif');
+ float: left;
+ margin-right: 3px;
+}
+
+.removebutton {
+ background-image: url('../images/remove.gif');
+ float: left;
+}
+
+.moveupbutton {
+ background-image: url('../images/move_up.gif');
+ float: left;
+ margin-right: 3px;
+}
+
+.movedownbutton {
+ background-image: url('../images/move_down.gif');
+ float: left;
+}
+
+.selected {
+ border: 1px solid #0A246A;
+ background-color: #B6BDD2;
+}
+
+.toolbar {
+ width: 100%;
+}
+
+#headlist {
+ width: 100%;
+ margin-top: 3px;
+ font-size: 11px;
+}
+
+#info, #title_element, #meta_element, #script_element, #style_element, #base_element, #link_element, #comment_element, #unknown_element {
+ display: none;
+}
+
+#addmenu {
+ position: absolute;
+ border: 1px solid gray;
+ display: none;
+ z-index: 100;
+ background-color: white;
+}
+
+#addmenu a {
+ display: block;
+ width: 100%;
+ line-height: 20px;
+ text-decoration: none;
+ background-color: white;
+}
+
+#addmenu a:hover {
+ background-color: #B6BDD2;
+ color: black;
+}
+
+#addmenu span {
+ padding-left: 10px;
+ padding-right: 10px;
+}
+
+#updateElementPanel {
+ display: none;
+}
+
+#script_element .panel_wrapper div.current {
+ height: 108px;
+}
+
+#style_element .panel_wrapper div.current {
+ height: 108px;
+}
+
+#link_element .panel_wrapper div.current {
+ height: 140px;
+}
+
+#element_script_value {
+ width: 100%;
+ height: 100px;
+}
+
+#element_comment_value {
+ width: 100%;
+ height: 120px;
+}
+
+#element_style_value {
+ width: 100%;
+ height: 100px;
+}
+
+#element_title, #element_script_src, #element_meta_name, #element_meta_content, #element_base_href, #element_link_href, #element_link_title {
+ width: 250px;
+}
+
+.updateElementButton {
+ margin-top: 3px;
+}
+
+/* MSIE specific styles */
+
+* html .addbutton, * html .removebutton, * html .moveupbutton, * html .movedownbutton {
+ width: 22px;
+ height: 22px;
+}
+
+textarea {
+ height: 55px;
+}
+
+.panel_wrapper div.current {height:420px;}
\ No newline at end of file
diff --git a/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/fullpage/editor_plugin.js b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/fullpage/editor_plugin.js
new file mode 100644
index 0000000..aeaa669
--- /dev/null
+++ b/lib/grappelli/media/tinymce/jscripts/tiny_mce/plugins/fullpage/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.FullPagePlugin",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceFullPageProperties",function(){a.windowManager.open({file:b+"/fullpage.htm",width:430+parseInt(a.getLang("fullpage.delta_width",0)),height:495+parseInt(a.getLang("fullpage.delta_height",0)),inline:1},{plugin_url:b,head_html:c.head})});a.addButton("fullpage",{title:"fullpage.desc",cmd:"mceFullPageProperties"});a.onBeforeSetContent.add(c._setContent,c);a.onSetContent.add(c._setBodyAttribs,c);a.onGetContent.add(c._getContent,c)},getInfo:function(){return{longname:"Fullpage",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_setBodyAttribs:function(d,a){var l,c,e,g,b,h,j,f=this.head.match(/body(.*?)>/i);if(f&&f[1]){l=f[1].match(/\s*(\w+\s*=\s*".*?"|\w+\s*=\s*'.*?'|\w+\s*=\s*\w+|\w+)\s*/g);if(l){for(c=0,e=l.length;c",a);h.head=f.substring(0,a+1);j=f.indexOf("
\n";h.foot="\n