tinymce-rails 3.5.11.1 → 4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +1 -1
- data/README.md +40 -103
- data/Rakefile +10 -15
- data/app/assets/javascripts/tinymce-jquery.js +1 -1
- data/app/assets/javascripts/tinymce.js +1 -1
- data/app/assets/javascripts/tinymce/preinit.js.erb +1 -2
- data/lib/tasks/tinymce-assets.rake +3 -6
- data/lib/tinymce/rails.rb +1 -1
- data/lib/tinymce/rails/asset_installer.rb +36 -34
- data/lib/tinymce/rails/asset_manifest.rb +89 -108
- data/lib/tinymce/rails/configuration.rb +36 -29
- data/lib/tinymce/rails/engine.rb +1 -40
- data/lib/tinymce/rails/helper.rb +5 -9
- data/lib/tinymce/rails/version.rb +2 -2
- data/vendor/assets/javascripts/tinymce/jquery.tinymce.js +1 -1
- data/vendor/assets/javascripts/tinymce/langs/readme.md +3 -0
- data/vendor/assets/javascripts/tinymce/license.txt +504 -504
- data/vendor/assets/javascripts/tinymce/plugins/advlist/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/anchor/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/autolink/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/autoresize/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/autosave/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/bbcode/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/charmap/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/code/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/{utils → plugins/compat3x}/editable_selects.js +70 -70
- data/vendor/assets/javascripts/tinymce/{utils → plugins/compat3x}/form_utils.js +210 -210
- data/vendor/assets/javascripts/tinymce/{utils → plugins/compat3x}/mctabs.js +161 -161
- data/vendor/assets/javascripts/tinymce/plugins/compat3x/tiny_mce_popup.js +435 -0
- data/vendor/assets/javascripts/tinymce/{utils → plugins/compat3x}/validate.js +252 -252
- data/vendor/assets/javascripts/tinymce/plugins/contextmenu/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/directionality/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/{emotions → emoticons}/img/smiley-cool.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/{emotions → emoticons}/img/smiley-cry.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/{emotions → emoticons}/img/smiley-embarassed.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/{emotions → emoticons}/img/smiley-foot-in-mouth.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/{emotions → emoticons}/img/smiley-frown.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/{emotions → emoticons}/img/smiley-innocent.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/{emotions → emoticons}/img/smiley-kiss.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/{emotions → emoticons}/img/smiley-laughing.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/{emotions → emoticons}/img/smiley-money-mouth.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/{emotions → emoticons}/img/smiley-sealed.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/{emotions → emoticons}/img/smiley-smile.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/{emotions → emoticons}/img/smiley-surprised.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/{emotions → emoticons}/img/smiley-tongue-out.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/{emotions → emoticons}/img/smiley-undecided.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/{emotions → emoticons}/img/smiley-wink.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/{emotions → emoticons}/img/smiley-yell.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/emoticons/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/example/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/example_dependency/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/fullpage/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/hr/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/image/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/insertdatetime/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/layer/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/legacyoutput/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/link/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/lists/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/media/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/nonbreaking/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/noneditable/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/pagebreak/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/paste/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/preview/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/print/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/save/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/spellchecker/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/tabfocus/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/template/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/textcolor/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/visualblocks/css/visualblocks.css +114 -21
- data/vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/visualchars/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/wordcount/plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/skins/lightgray/content.inline.min.css +1 -0
- data/vendor/assets/javascripts/tinymce/skins/lightgray/content.min.css +1 -0
- data/vendor/assets/javascripts/tinymce/skins/lightgray/fonts/icomoon-small.eot +0 -0
- data/vendor/assets/javascripts/tinymce/skins/lightgray/fonts/icomoon-small.svg +166 -0
- data/vendor/assets/javascripts/tinymce/skins/lightgray/fonts/icomoon-small.ttf +0 -0
- data/vendor/assets/javascripts/tinymce/skins/lightgray/fonts/icomoon-small.woff +0 -0
- data/vendor/assets/javascripts/tinymce/skins/lightgray/fonts/icomoon.eot +0 -0
- data/vendor/assets/javascripts/tinymce/skins/lightgray/fonts/icomoon.svg +150 -0
- data/vendor/assets/javascripts/tinymce/skins/lightgray/fonts/icomoon.ttf +0 -0
- data/vendor/assets/javascripts/tinymce/skins/lightgray/fonts/icomoon.woff +0 -0
- data/vendor/assets/javascripts/tinymce/skins/lightgray/fonts/readme.md +1 -0
- data/vendor/assets/javascripts/tinymce/skins/lightgray/img/anchor.gif +0 -0
- data/vendor/assets/javascripts/tinymce/skins/lightgray/img/loader.gif +0 -0
- data/vendor/assets/javascripts/tinymce/skins/lightgray/img/object.gif +0 -0
- data/vendor/assets/javascripts/tinymce/{themes/advanced → skins/lightgray}/img/trans.gif +0 -0
- data/vendor/assets/javascripts/tinymce/{plugins/spellchecker → skins/lightgray}/img/wline.gif +0 -0
- data/vendor/assets/javascripts/tinymce/skins/lightgray/skin.ie7.min.css +1 -0
- data/vendor/assets/javascripts/tinymce/skins/lightgray/skin.min.css +1 -0
- data/vendor/assets/javascripts/tinymce/themes/modern/theme.js +1 -0
- data/vendor/assets/javascripts/tinymce/tinymce.js +10 -0
- data/vendor/assets/javascripts/tinymce/tinymce_jquery.js +9 -0
- metadata +100 -272
- checksums.yaml +0 -7
- data/lib/tinymce/rails/asset_installer/compile.rb +0 -44
- data/lib/tinymce/rails/asset_installer/copy.rb +0 -52
- data/vendor/assets/javascripts/tinymce/langs/en.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/advhr/css/advhr.css +0 -5
- data/vendor/assets/javascripts/tinymce/plugins/advhr/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/advhr/editor_plugin_src.js +0 -57
- data/vendor/assets/javascripts/tinymce/plugins/advhr/js/rule.js +0 -43
- data/vendor/assets/javascripts/tinymce/plugins/advhr/langs/en_dlg.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/advhr/rule.htm +0 -58
- data/vendor/assets/javascripts/tinymce/plugins/advimage/css/advimage.css +0 -13
- data/vendor/assets/javascripts/tinymce/plugins/advimage/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/advimage/editor_plugin_src.js +0 -50
- data/vendor/assets/javascripts/tinymce/plugins/advimage/image.htm +0 -235
- data/vendor/assets/javascripts/tinymce/plugins/advimage/img/sample.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advimage/js/image.js +0 -464
- data/vendor/assets/javascripts/tinymce/plugins/advimage/langs/en_dlg.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/advlink/css/advlink.css +0 -8
- data/vendor/assets/javascripts/tinymce/plugins/advlink/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/advlink/editor_plugin_src.js +0 -61
- data/vendor/assets/javascripts/tinymce/plugins/advlink/js/advlink.js +0 -543
- data/vendor/assets/javascripts/tinymce/plugins/advlink/langs/en_dlg.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/advlink/link.htm +0 -338
- data/vendor/assets/javascripts/tinymce/plugins/advlist/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/advlist/editor_plugin_src.js +0 -176
- data/vendor/assets/javascripts/tinymce/plugins/autolink/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/autolink/editor_plugin_src.js +0 -184
- data/vendor/assets/javascripts/tinymce/plugins/autoresize/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/autoresize/editor_plugin_src.js +0 -119
- data/vendor/assets/javascripts/tinymce/plugins/autosave/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/autosave/editor_plugin_src.js +0 -433
- data/vendor/assets/javascripts/tinymce/plugins/bbcode/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/bbcode/editor_plugin_src.js +0 -120
- data/vendor/assets/javascripts/tinymce/plugins/contextmenu/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/contextmenu/editor_plugin_src.js +0 -163
- data/vendor/assets/javascripts/tinymce/plugins/directionality/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/directionality/editor_plugin_src.js +0 -85
- data/vendor/assets/javascripts/tinymce/plugins/emotions/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/emotions/editor_plugin_src.js +0 -43
- data/vendor/assets/javascripts/tinymce/plugins/emotions/emotions.htm +0 -42
- data/vendor/assets/javascripts/tinymce/plugins/emotions/js/emotions.js +0 -43
- data/vendor/assets/javascripts/tinymce/plugins/emotions/langs/en_dlg.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/example/dialog.htm +0 -22
- data/vendor/assets/javascripts/tinymce/plugins/example/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/example/editor_plugin_src.js +0 -84
- data/vendor/assets/javascripts/tinymce/plugins/example/img/example.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/example/js/dialog.js +0 -19
- data/vendor/assets/javascripts/tinymce/plugins/example/langs/en.js +0 -3
- data/vendor/assets/javascripts/tinymce/plugins/example/langs/en_dlg.js +0 -3
- data/vendor/assets/javascripts/tinymce/plugins/example_dependency/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/example_dependency/editor_plugin_src.js +0 -50
- data/vendor/assets/javascripts/tinymce/plugins/fullpage/css/fullpage.css +0 -143
- data/vendor/assets/javascripts/tinymce/plugins/fullpage/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/fullpage/editor_plugin_src.js +0 -405
- data/vendor/assets/javascripts/tinymce/plugins/fullpage/fullpage.htm +0 -259
- data/vendor/assets/javascripts/tinymce/plugins/fullpage/js/fullpage.js +0 -232
- data/vendor/assets/javascripts/tinymce/plugins/fullpage/langs/en_dlg.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/fullscreen/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/fullscreen/editor_plugin_src.js +0 -234
- data/vendor/assets/javascripts/tinymce/plugins/fullscreen/fullscreen.htm +0 -117
- data/vendor/assets/javascripts/tinymce/plugins/iespell/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/iespell/editor_plugin_src.js +0 -54
- data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/editor_plugin_src.js +0 -699
- data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/window.css +0 -90
- data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/template.htm +0 -387
- data/vendor/assets/javascripts/tinymce/plugins/insertdatetime/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/insertdatetime/editor_plugin_src.js +0 -83
- data/vendor/assets/javascripts/tinymce/plugins/layer/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/layer/editor_plugin_src.js +0 -262
- data/vendor/assets/javascripts/tinymce/plugins/legacyoutput/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/legacyoutput/editor_plugin_src.js +0 -139
- data/vendor/assets/javascripts/tinymce/plugins/lists/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/lists/editor_plugin_src.js +0 -955
- data/vendor/assets/javascripts/tinymce/plugins/media/css/media.css +0 -17
- data/vendor/assets/javascripts/tinymce/plugins/media/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/media/editor_plugin_src.js +0 -898
- data/vendor/assets/javascripts/tinymce/plugins/media/js/embed.js +0 -73
- data/vendor/assets/javascripts/tinymce/plugins/media/js/media.js +0 -513
- data/vendor/assets/javascripts/tinymce/plugins/media/langs/en_dlg.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/media/media.htm +0 -922
- data/vendor/assets/javascripts/tinymce/plugins/nonbreaking/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js +0 -54
- data/vendor/assets/javascripts/tinymce/plugins/noneditable/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/noneditable/editor_plugin_src.js +0 -537
- data/vendor/assets/javascripts/tinymce/plugins/pagebreak/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/pagebreak/editor_plugin_src.js +0 -74
- data/vendor/assets/javascripts/tinymce/plugins/paste/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/paste/editor_plugin_src.js +0 -887
- data/vendor/assets/javascripts/tinymce/plugins/paste/js/pastetext.js +0 -36
- data/vendor/assets/javascripts/tinymce/plugins/paste/js/pasteword.js +0 -51
- data/vendor/assets/javascripts/tinymce/plugins/paste/langs/en_dlg.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/paste/pastetext.htm +0 -27
- data/vendor/assets/javascripts/tinymce/plugins/paste/pasteword.htm +0 -21
- data/vendor/assets/javascripts/tinymce/plugins/preview/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/preview/editor_plugin_src.js +0 -53
- data/vendor/assets/javascripts/tinymce/plugins/preview/example.html +0 -28
- data/vendor/assets/javascripts/tinymce/plugins/preview/jscripts/embed.js +0 -73
- data/vendor/assets/javascripts/tinymce/plugins/preview/preview.html +0 -17
- data/vendor/assets/javascripts/tinymce/plugins/print/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/print/editor_plugin_src.js +0 -34
- data/vendor/assets/javascripts/tinymce/plugins/save/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/save/editor_plugin_src.js +0 -101
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/css/searchreplace.css +0 -6
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/editor_plugin_src.js +0 -61
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/js/searchreplace.js +0 -152
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/langs/en_dlg.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/searchreplace.htm +0 -100
- data/vendor/assets/javascripts/tinymce/plugins/spellchecker/css/content.css +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/spellchecker/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/spellchecker/editor_plugin_src.js +0 -471
- data/vendor/assets/javascripts/tinymce/plugins/style/css/props.css +0 -14
- data/vendor/assets/javascripts/tinymce/plugins/style/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/style/editor_plugin_src.js +0 -71
- data/vendor/assets/javascripts/tinymce/plugins/style/js/props.js +0 -709
- data/vendor/assets/javascripts/tinymce/plugins/style/langs/en_dlg.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/style/props.htm +0 -845
- data/vendor/assets/javascripts/tinymce/plugins/style/readme.txt +0 -19
- data/vendor/assets/javascripts/tinymce/plugins/tabfocus/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/tabfocus/editor_plugin_src.js +0 -122
- data/vendor/assets/javascripts/tinymce/plugins/table/cell.htm +0 -180
- data/vendor/assets/javascripts/tinymce/plugins/table/css/cell.css +0 -17
- data/vendor/assets/javascripts/tinymce/plugins/table/css/row.css +0 -25
- data/vendor/assets/javascripts/tinymce/plugins/table/css/table.css +0 -13
- data/vendor/assets/javascripts/tinymce/plugins/table/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/table/editor_plugin_src.js +0 -1456
- data/vendor/assets/javascripts/tinymce/plugins/table/js/cell.js +0 -319
- data/vendor/assets/javascripts/tinymce/plugins/table/js/merge_cells.js +0 -27
- data/vendor/assets/javascripts/tinymce/plugins/table/js/row.js +0 -254
- data/vendor/assets/javascripts/tinymce/plugins/table/js/table.js +0 -501
- data/vendor/assets/javascripts/tinymce/plugins/table/langs/en_dlg.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/table/merge_cells.htm +0 -32
- data/vendor/assets/javascripts/tinymce/plugins/table/row.htm +0 -158
- data/vendor/assets/javascripts/tinymce/plugins/table/table.htm +0 -188
- data/vendor/assets/javascripts/tinymce/plugins/template/blank.htm +0 -12
- data/vendor/assets/javascripts/tinymce/plugins/template/css/template.css +0 -23
- data/vendor/assets/javascripts/tinymce/plugins/template/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/template/editor_plugin_src.js +0 -159
- data/vendor/assets/javascripts/tinymce/plugins/template/js/template.js +0 -106
- data/vendor/assets/javascripts/tinymce/plugins/template/langs/en_dlg.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/template/template.htm +0 -31
- data/vendor/assets/javascripts/tinymce/plugins/visualblocks/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/visualblocks/editor_plugin_src.js +0 -63
- data/vendor/assets/javascripts/tinymce/plugins/visualchars/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/visualchars/editor_plugin_src.js +0 -83
- data/vendor/assets/javascripts/tinymce/plugins/wordcount/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/wordcount/editor_plugin_src.js +0 -122
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/abbr.htm +0 -142
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/acronym.htm +0 -142
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/attributes.htm +0 -149
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/cite.htm +0 -142
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/css/attributes.css +0 -11
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/css/popup.css +0 -9
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/del.htm +0 -162
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/editor_plugin.js +0 -1
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/editor_plugin_src.js +0 -132
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/ins.htm +0 -162
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/js/abbr.js +0 -28
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/js/acronym.js +0 -28
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/js/attributes.js +0 -111
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/js/cite.js +0 -28
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/js/del.js +0 -53
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/js/element_common.js +0 -229
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/js/ins.js +0 -53
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/langs/en_dlg.js +0 -1
- data/vendor/assets/javascripts/tinymce/themes/advanced/about.htm +0 -52
- data/vendor/assets/javascripts/tinymce/themes/advanced/anchor.htm +0 -26
- data/vendor/assets/javascripts/tinymce/themes/advanced/charmap.htm +0 -55
- data/vendor/assets/javascripts/tinymce/themes/advanced/color_picker.htm +0 -70
- data/vendor/assets/javascripts/tinymce/themes/advanced/editor_template.js +0 -1
- data/vendor/assets/javascripts/tinymce/themes/advanced/editor_template_src.js +0 -1490
- data/vendor/assets/javascripts/tinymce/themes/advanced/image.htm +0 -80
- data/vendor/assets/javascripts/tinymce/themes/advanced/img/colorpicker.jpg +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/img/flash.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/img/icons.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/img/iframe.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/img/pagebreak.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/img/quicktime.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/img/realmedia.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/img/shockwave.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/img/video.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/img/windowsmedia.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/js/about.js +0 -73
- data/vendor/assets/javascripts/tinymce/themes/advanced/js/anchor.js +0 -56
- data/vendor/assets/javascripts/tinymce/themes/advanced/js/charmap.js +0 -363
- data/vendor/assets/javascripts/tinymce/themes/advanced/js/color_picker.js +0 -345
- data/vendor/assets/javascripts/tinymce/themes/advanced/js/image.js +0 -253
- data/vendor/assets/javascripts/tinymce/themes/advanced/js/link.js +0 -159
- data/vendor/assets/javascripts/tinymce/themes/advanced/js/source_editor.js +0 -78
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/en.js +0 -1
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/en_dlg.js +0 -1
- data/vendor/assets/javascripts/tinymce/themes/advanced/link.htm +0 -57
- data/vendor/assets/javascripts/tinymce/themes/advanced/shortcuts.htm +0 -47
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/content.css +0 -50
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/dialog.css +0 -118
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/img/buttons.png +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/img/items.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/img/menu_check.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/img/progress.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/img/tabs.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/ui.css +0 -219
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/highcontrast/content.css +0 -24
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/highcontrast/dialog.css +0 -106
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/highcontrast/ui.css +0 -106
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/content.css +0 -48
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/dialog.css +0 -118
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/ui.css +0 -222
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/ui_black.css +0 -8
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/ui_silver.css +0 -5
- data/vendor/assets/javascripts/tinymce/themes/advanced/source_editor.htm +0 -25
- data/vendor/assets/javascripts/tinymce/themes/simple/editor_template.js +0 -1
- data/vendor/assets/javascripts/tinymce/themes/simple/editor_template_src.js +0 -84
- data/vendor/assets/javascripts/tinymce/themes/simple/img/icons.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/simple/langs/en.js +0 -1
- data/vendor/assets/javascripts/tinymce/themes/simple/skins/default/content.css +0 -25
- data/vendor/assets/javascripts/tinymce/themes/simple/skins/default/ui.css +0 -32
- data/vendor/assets/javascripts/tinymce/themes/simple/skins/o2k7/content.css +0 -17
- data/vendor/assets/javascripts/tinymce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
- data/vendor/assets/javascripts/tinymce/themes/simple/skins/o2k7/ui.css +0 -35
- data/vendor/assets/javascripts/tinymce/tiny_mce.js +0 -1
- data/vendor/assets/javascripts/tinymce/tiny_mce_jquery.js +0 -1
- data/vendor/assets/javascripts/tinymce/tiny_mce_jquery_src.js +0 -17942
- data/vendor/assets/javascripts/tinymce/tiny_mce_popup.js +0 -5
- data/vendor/assets/javascripts/tinymce/tiny_mce_src.js +0 -19156
@@ -1,319 +0,0 @@
|
|
1
|
-
tinyMCEPopup.requireLangPack();
|
2
|
-
|
3
|
-
var ed;
|
4
|
-
|
5
|
-
function init() {
|
6
|
-
ed = tinyMCEPopup.editor;
|
7
|
-
tinyMCEPopup.resizeToInnerSize();
|
8
|
-
|
9
|
-
document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
|
10
|
-
document.getElementById('bordercolor_pickcontainer').innerHTML = getColorPickerHTML('bordercolor_pick','bordercolor');
|
11
|
-
document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor')
|
12
|
-
|
13
|
-
var inst = ed;
|
14
|
-
var tdElm = ed.dom.getParent(ed.selection.getStart(), "td,th");
|
15
|
-
var formObj = document.forms[0];
|
16
|
-
var st = ed.dom.parseStyle(ed.dom.getAttrib(tdElm, "style"));
|
17
|
-
|
18
|
-
// Get table cell data
|
19
|
-
var celltype = tdElm.nodeName.toLowerCase();
|
20
|
-
var align = ed.dom.getAttrib(tdElm, 'align');
|
21
|
-
var valign = ed.dom.getAttrib(tdElm, 'valign');
|
22
|
-
var width = trimSize(getStyle(tdElm, 'width', 'width'));
|
23
|
-
var height = trimSize(getStyle(tdElm, 'height', 'height'));
|
24
|
-
var bordercolor = convertRGBToHex(getStyle(tdElm, 'bordercolor', 'borderLeftColor'));
|
25
|
-
var bgcolor = convertRGBToHex(getStyle(tdElm, 'bgcolor', 'backgroundColor'));
|
26
|
-
var className = ed.dom.getAttrib(tdElm, 'class');
|
27
|
-
var backgroundimage = getStyle(tdElm, 'background', 'backgroundImage').replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)", 'gi'), "$1");
|
28
|
-
var id = ed.dom.getAttrib(tdElm, 'id');
|
29
|
-
var lang = ed.dom.getAttrib(tdElm, 'lang');
|
30
|
-
var dir = ed.dom.getAttrib(tdElm, 'dir');
|
31
|
-
var scope = ed.dom.getAttrib(tdElm, 'scope');
|
32
|
-
|
33
|
-
// Setup form
|
34
|
-
addClassesToList('class', 'table_cell_styles');
|
35
|
-
TinyMCE_EditableSelects.init();
|
36
|
-
|
37
|
-
if (!ed.dom.hasClass(tdElm, 'mceSelected')) {
|
38
|
-
formObj.bordercolor.value = bordercolor;
|
39
|
-
formObj.bgcolor.value = bgcolor;
|
40
|
-
formObj.backgroundimage.value = backgroundimage;
|
41
|
-
formObj.width.value = width;
|
42
|
-
formObj.height.value = height;
|
43
|
-
formObj.id.value = id;
|
44
|
-
formObj.lang.value = lang;
|
45
|
-
formObj.style.value = ed.dom.serializeStyle(st);
|
46
|
-
selectByValue(formObj, 'align', align);
|
47
|
-
selectByValue(formObj, 'valign', valign);
|
48
|
-
selectByValue(formObj, 'class', className, true, true);
|
49
|
-
selectByValue(formObj, 'celltype', celltype);
|
50
|
-
selectByValue(formObj, 'dir', dir);
|
51
|
-
selectByValue(formObj, 'scope', scope);
|
52
|
-
|
53
|
-
// Resize some elements
|
54
|
-
if (isVisible('backgroundimagebrowser'))
|
55
|
-
document.getElementById('backgroundimage').style.width = '180px';
|
56
|
-
|
57
|
-
updateColor('bordercolor_pick', 'bordercolor');
|
58
|
-
updateColor('bgcolor_pick', 'bgcolor');
|
59
|
-
} else
|
60
|
-
tinyMCEPopup.dom.hide('action');
|
61
|
-
}
|
62
|
-
|
63
|
-
function updateAction() {
|
64
|
-
var el, inst = ed, tdElm, trElm, tableElm, formObj = document.forms[0];
|
65
|
-
|
66
|
-
if (!AutoValidator.validate(formObj)) {
|
67
|
-
tinyMCEPopup.alert(AutoValidator.getErrorMessages(formObj).join('. ') + '.');
|
68
|
-
return false;
|
69
|
-
}
|
70
|
-
|
71
|
-
tinyMCEPopup.restoreSelection();
|
72
|
-
el = ed.selection.getStart();
|
73
|
-
tdElm = ed.dom.getParent(el, "td,th");
|
74
|
-
trElm = ed.dom.getParent(el, "tr");
|
75
|
-
tableElm = ed.dom.getParent(el, "table");
|
76
|
-
|
77
|
-
// Cell is selected
|
78
|
-
if (ed.dom.hasClass(tdElm, 'mceSelected')) {
|
79
|
-
// Update all selected sells
|
80
|
-
tinymce.each(ed.dom.select('td.mceSelected,th.mceSelected'), function(td) {
|
81
|
-
updateCell(td);
|
82
|
-
});
|
83
|
-
|
84
|
-
ed.addVisual();
|
85
|
-
ed.nodeChanged();
|
86
|
-
inst.execCommand('mceEndUndoLevel');
|
87
|
-
tinyMCEPopup.close();
|
88
|
-
return;
|
89
|
-
}
|
90
|
-
|
91
|
-
switch (getSelectValue(formObj, 'action')) {
|
92
|
-
case "cell":
|
93
|
-
var celltype = getSelectValue(formObj, 'celltype');
|
94
|
-
var scope = getSelectValue(formObj, 'scope');
|
95
|
-
|
96
|
-
function doUpdate(s) {
|
97
|
-
if (s) {
|
98
|
-
updateCell(tdElm);
|
99
|
-
|
100
|
-
ed.addVisual();
|
101
|
-
ed.nodeChanged();
|
102
|
-
inst.execCommand('mceEndUndoLevel');
|
103
|
-
tinyMCEPopup.close();
|
104
|
-
}
|
105
|
-
};
|
106
|
-
|
107
|
-
if (ed.getParam("accessibility_warnings", 1)) {
|
108
|
-
if (celltype == "th" && scope == "")
|
109
|
-
tinyMCEPopup.confirm(ed.getLang('table_dlg.missing_scope', '', true), doUpdate);
|
110
|
-
else
|
111
|
-
doUpdate(1);
|
112
|
-
|
113
|
-
return;
|
114
|
-
}
|
115
|
-
|
116
|
-
updateCell(tdElm);
|
117
|
-
break;
|
118
|
-
|
119
|
-
case "row":
|
120
|
-
var cell = trElm.firstChild;
|
121
|
-
|
122
|
-
if (cell.nodeName != "TD" && cell.nodeName != "TH")
|
123
|
-
cell = nextCell(cell);
|
124
|
-
|
125
|
-
do {
|
126
|
-
cell = updateCell(cell, true);
|
127
|
-
} while ((cell = nextCell(cell)) != null);
|
128
|
-
|
129
|
-
break;
|
130
|
-
|
131
|
-
case "col":
|
132
|
-
var curr, col = 0, cell = trElm.firstChild, rows = tableElm.getElementsByTagName("tr");
|
133
|
-
|
134
|
-
if (cell.nodeName != "TD" && cell.nodeName != "TH")
|
135
|
-
cell = nextCell(cell);
|
136
|
-
|
137
|
-
do {
|
138
|
-
if (cell == tdElm)
|
139
|
-
break;
|
140
|
-
col += cell.getAttribute("colspan")?cell.getAttribute("colspan"):1;
|
141
|
-
} while ((cell = nextCell(cell)) != null);
|
142
|
-
|
143
|
-
for (var i=0; i<rows.length; i++) {
|
144
|
-
cell = rows[i].firstChild;
|
145
|
-
|
146
|
-
if (cell.nodeName != "TD" && cell.nodeName != "TH")
|
147
|
-
cell = nextCell(cell);
|
148
|
-
|
149
|
-
curr = 0;
|
150
|
-
do {
|
151
|
-
if (curr == col) {
|
152
|
-
cell = updateCell(cell, true);
|
153
|
-
break;
|
154
|
-
}
|
155
|
-
curr += cell.getAttribute("colspan")?cell.getAttribute("colspan"):1;
|
156
|
-
} while ((cell = nextCell(cell)) != null);
|
157
|
-
}
|
158
|
-
|
159
|
-
break;
|
160
|
-
|
161
|
-
case "all":
|
162
|
-
var rows = tableElm.getElementsByTagName("tr");
|
163
|
-
|
164
|
-
for (var i=0; i<rows.length; i++) {
|
165
|
-
var cell = rows[i].firstChild;
|
166
|
-
|
167
|
-
if (cell.nodeName != "TD" && cell.nodeName != "TH")
|
168
|
-
cell = nextCell(cell);
|
169
|
-
|
170
|
-
do {
|
171
|
-
cell = updateCell(cell, true);
|
172
|
-
} while ((cell = nextCell(cell)) != null);
|
173
|
-
}
|
174
|
-
|
175
|
-
break;
|
176
|
-
}
|
177
|
-
|
178
|
-
ed.addVisual();
|
179
|
-
ed.nodeChanged();
|
180
|
-
inst.execCommand('mceEndUndoLevel');
|
181
|
-
tinyMCEPopup.close();
|
182
|
-
}
|
183
|
-
|
184
|
-
function nextCell(elm) {
|
185
|
-
while ((elm = elm.nextSibling) != null) {
|
186
|
-
if (elm.nodeName == "TD" || elm.nodeName == "TH")
|
187
|
-
return elm;
|
188
|
-
}
|
189
|
-
|
190
|
-
return null;
|
191
|
-
}
|
192
|
-
|
193
|
-
function updateCell(td, skip_id) {
|
194
|
-
var inst = ed;
|
195
|
-
var formObj = document.forms[0];
|
196
|
-
var curCellType = td.nodeName.toLowerCase();
|
197
|
-
var celltype = getSelectValue(formObj, 'celltype');
|
198
|
-
var doc = inst.getDoc();
|
199
|
-
var dom = ed.dom;
|
200
|
-
|
201
|
-
if (!skip_id)
|
202
|
-
dom.setAttrib(td, 'id', formObj.id.value);
|
203
|
-
|
204
|
-
dom.setAttrib(td, 'align', formObj.align.value);
|
205
|
-
dom.setAttrib(td, 'vAlign', formObj.valign.value);
|
206
|
-
dom.setAttrib(td, 'lang', formObj.lang.value);
|
207
|
-
dom.setAttrib(td, 'dir', getSelectValue(formObj, 'dir'));
|
208
|
-
dom.setAttrib(td, 'style', ed.dom.serializeStyle(ed.dom.parseStyle(formObj.style.value)));
|
209
|
-
dom.setAttrib(td, 'scope', formObj.scope.value);
|
210
|
-
dom.setAttrib(td, 'class', getSelectValue(formObj, 'class'));
|
211
|
-
|
212
|
-
// Clear deprecated attributes
|
213
|
-
ed.dom.setAttrib(td, 'width', '');
|
214
|
-
ed.dom.setAttrib(td, 'height', '');
|
215
|
-
ed.dom.setAttrib(td, 'bgColor', '');
|
216
|
-
ed.dom.setAttrib(td, 'borderColor', '');
|
217
|
-
ed.dom.setAttrib(td, 'background', '');
|
218
|
-
|
219
|
-
// Set styles
|
220
|
-
td.style.width = getCSSSize(formObj.width.value);
|
221
|
-
td.style.height = getCSSSize(formObj.height.value);
|
222
|
-
if (formObj.bordercolor.value != "") {
|
223
|
-
td.style.borderColor = formObj.bordercolor.value;
|
224
|
-
td.style.borderStyle = td.style.borderStyle == "" ? "solid" : td.style.borderStyle;
|
225
|
-
td.style.borderWidth = td.style.borderWidth == "" ? "1px" : td.style.borderWidth;
|
226
|
-
} else
|
227
|
-
td.style.borderColor = '';
|
228
|
-
|
229
|
-
td.style.backgroundColor = formObj.bgcolor.value;
|
230
|
-
|
231
|
-
if (formObj.backgroundimage.value != "")
|
232
|
-
td.style.backgroundImage = "url('" + formObj.backgroundimage.value + "')";
|
233
|
-
else
|
234
|
-
td.style.backgroundImage = '';
|
235
|
-
|
236
|
-
if (curCellType != celltype) {
|
237
|
-
// changing to a different node type
|
238
|
-
var newCell = doc.createElement(celltype);
|
239
|
-
|
240
|
-
for (var c=0; c<td.childNodes.length; c++)
|
241
|
-
newCell.appendChild(td.childNodes[c].cloneNode(1));
|
242
|
-
|
243
|
-
for (var a=0; a<td.attributes.length; a++)
|
244
|
-
ed.dom.setAttrib(newCell, td.attributes[a].name, ed.dom.getAttrib(td, td.attributes[a].name));
|
245
|
-
|
246
|
-
td.parentNode.replaceChild(newCell, td);
|
247
|
-
td = newCell;
|
248
|
-
}
|
249
|
-
|
250
|
-
dom.setAttrib(td, 'style', dom.serializeStyle(dom.parseStyle(td.style.cssText)));
|
251
|
-
|
252
|
-
return td;
|
253
|
-
}
|
254
|
-
|
255
|
-
function changedBackgroundImage() {
|
256
|
-
var formObj = document.forms[0];
|
257
|
-
var st = ed.dom.parseStyle(formObj.style.value);
|
258
|
-
|
259
|
-
st['background-image'] = "url('" + formObj.backgroundimage.value + "')";
|
260
|
-
|
261
|
-
formObj.style.value = ed.dom.serializeStyle(st);
|
262
|
-
}
|
263
|
-
|
264
|
-
function changedSize() {
|
265
|
-
var formObj = document.forms[0];
|
266
|
-
var st = ed.dom.parseStyle(formObj.style.value);
|
267
|
-
|
268
|
-
var width = formObj.width.value;
|
269
|
-
if (width != "")
|
270
|
-
st['width'] = getCSSSize(width);
|
271
|
-
else
|
272
|
-
st['width'] = "";
|
273
|
-
|
274
|
-
var height = formObj.height.value;
|
275
|
-
if (height != "")
|
276
|
-
st['height'] = getCSSSize(height);
|
277
|
-
else
|
278
|
-
st['height'] = "";
|
279
|
-
|
280
|
-
formObj.style.value = ed.dom.serializeStyle(st);
|
281
|
-
}
|
282
|
-
|
283
|
-
function changedColor() {
|
284
|
-
var formObj = document.forms[0];
|
285
|
-
var st = ed.dom.parseStyle(formObj.style.value);
|
286
|
-
|
287
|
-
st['background-color'] = formObj.bgcolor.value;
|
288
|
-
st['border-color'] = formObj.bordercolor.value;
|
289
|
-
|
290
|
-
formObj.style.value = ed.dom.serializeStyle(st);
|
291
|
-
}
|
292
|
-
|
293
|
-
function changedStyle() {
|
294
|
-
var formObj = document.forms[0];
|
295
|
-
var st = ed.dom.parseStyle(formObj.style.value);
|
296
|
-
|
297
|
-
if (st['background-image'])
|
298
|
-
formObj.backgroundimage.value = st['background-image'].replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1");
|
299
|
-
else
|
300
|
-
formObj.backgroundimage.value = '';
|
301
|
-
|
302
|
-
if (st['width'])
|
303
|
-
formObj.width.value = trimSize(st['width']);
|
304
|
-
|
305
|
-
if (st['height'])
|
306
|
-
formObj.height.value = trimSize(st['height']);
|
307
|
-
|
308
|
-
if (st['background-color']) {
|
309
|
-
formObj.bgcolor.value = st['background-color'];
|
310
|
-
updateColor('bgcolor_pick','bgcolor');
|
311
|
-
}
|
312
|
-
|
313
|
-
if (st['border-color']) {
|
314
|
-
formObj.bordercolor.value = st['border-color'];
|
315
|
-
updateColor('bordercolor_pick','bordercolor');
|
316
|
-
}
|
317
|
-
}
|
318
|
-
|
319
|
-
tinyMCEPopup.onInit.add(init);
|
@@ -1,27 +0,0 @@
|
|
1
|
-
tinyMCEPopup.requireLangPack();
|
2
|
-
|
3
|
-
var MergeCellsDialog = {
|
4
|
-
init : function() {
|
5
|
-
var f = document.forms[0];
|
6
|
-
|
7
|
-
f.numcols.value = tinyMCEPopup.getWindowArg('cols', 1);
|
8
|
-
f.numrows.value = tinyMCEPopup.getWindowArg('rows', 1);
|
9
|
-
},
|
10
|
-
|
11
|
-
merge : function() {
|
12
|
-
var func, f = document.forms[0];
|
13
|
-
|
14
|
-
tinyMCEPopup.restoreSelection();
|
15
|
-
|
16
|
-
func = tinyMCEPopup.getWindowArg('onaction');
|
17
|
-
|
18
|
-
func({
|
19
|
-
cols : f.numcols.value,
|
20
|
-
rows : f.numrows.value
|
21
|
-
});
|
22
|
-
|
23
|
-
tinyMCEPopup.close();
|
24
|
-
}
|
25
|
-
};
|
26
|
-
|
27
|
-
tinyMCEPopup.onInit.add(MergeCellsDialog.init, MergeCellsDialog);
|
@@ -1,254 +0,0 @@
|
|
1
|
-
tinyMCEPopup.requireLangPack();
|
2
|
-
|
3
|
-
function init() {
|
4
|
-
tinyMCEPopup.resizeToInnerSize();
|
5
|
-
|
6
|
-
document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
|
7
|
-
document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor');
|
8
|
-
|
9
|
-
var inst = tinyMCEPopup.editor;
|
10
|
-
var dom = inst.dom;
|
11
|
-
var trElm = dom.getParent(inst.selection.getStart(), "tr");
|
12
|
-
var formObj = document.forms[0];
|
13
|
-
var st = dom.parseStyle(dom.getAttrib(trElm, "style"));
|
14
|
-
|
15
|
-
// Get table row data
|
16
|
-
var rowtype = trElm.parentNode.nodeName.toLowerCase();
|
17
|
-
var align = dom.getAttrib(trElm, 'align');
|
18
|
-
var valign = dom.getAttrib(trElm, 'valign');
|
19
|
-
var height = trimSize(getStyle(trElm, 'height', 'height'));
|
20
|
-
var className = dom.getAttrib(trElm, 'class');
|
21
|
-
var bgcolor = convertRGBToHex(getStyle(trElm, 'bgcolor', 'backgroundColor'));
|
22
|
-
var backgroundimage = getStyle(trElm, 'background', 'backgroundImage').replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)", 'gi'), "$1");
|
23
|
-
var id = dom.getAttrib(trElm, 'id');
|
24
|
-
var lang = dom.getAttrib(trElm, 'lang');
|
25
|
-
var dir = dom.getAttrib(trElm, 'dir');
|
26
|
-
|
27
|
-
selectByValue(formObj, 'rowtype', rowtype);
|
28
|
-
setActionforRowType(formObj, rowtype);
|
29
|
-
|
30
|
-
// Any cells selected
|
31
|
-
if (dom.select('td.mceSelected,th.mceSelected', trElm).length == 0) {
|
32
|
-
// Setup form
|
33
|
-
addClassesToList('class', 'table_row_styles');
|
34
|
-
TinyMCE_EditableSelects.init();
|
35
|
-
|
36
|
-
formObj.bgcolor.value = bgcolor;
|
37
|
-
formObj.backgroundimage.value = backgroundimage;
|
38
|
-
formObj.height.value = height;
|
39
|
-
formObj.id.value = id;
|
40
|
-
formObj.lang.value = lang;
|
41
|
-
formObj.style.value = dom.serializeStyle(st);
|
42
|
-
selectByValue(formObj, 'align', align);
|
43
|
-
selectByValue(formObj, 'valign', valign);
|
44
|
-
selectByValue(formObj, 'class', className, true, true);
|
45
|
-
selectByValue(formObj, 'dir', dir);
|
46
|
-
|
47
|
-
// Resize some elements
|
48
|
-
if (isVisible('backgroundimagebrowser'))
|
49
|
-
document.getElementById('backgroundimage').style.width = '180px';
|
50
|
-
|
51
|
-
updateColor('bgcolor_pick', 'bgcolor');
|
52
|
-
} else
|
53
|
-
tinyMCEPopup.dom.hide('action');
|
54
|
-
}
|
55
|
-
|
56
|
-
function updateAction() {
|
57
|
-
var inst = tinyMCEPopup.editor, dom = inst.dom, trElm, tableElm, formObj = document.forms[0];
|
58
|
-
var action = getSelectValue(formObj, 'action');
|
59
|
-
|
60
|
-
if (!AutoValidator.validate(formObj)) {
|
61
|
-
tinyMCEPopup.alert(AutoValidator.getErrorMessages(formObj).join('. ') + '.');
|
62
|
-
return false;
|
63
|
-
}
|
64
|
-
|
65
|
-
tinyMCEPopup.restoreSelection();
|
66
|
-
trElm = dom.getParent(inst.selection.getStart(), "tr");
|
67
|
-
tableElm = dom.getParent(inst.selection.getStart(), "table");
|
68
|
-
|
69
|
-
// Update all selected rows
|
70
|
-
if (dom.select('td.mceSelected,th.mceSelected', trElm).length > 0) {
|
71
|
-
tinymce.each(tableElm.rows, function(tr) {
|
72
|
-
var i;
|
73
|
-
|
74
|
-
for (i = 0; i < tr.cells.length; i++) {
|
75
|
-
if (dom.hasClass(tr.cells[i], 'mceSelected')) {
|
76
|
-
updateRow(tr, true);
|
77
|
-
return;
|
78
|
-
}
|
79
|
-
}
|
80
|
-
});
|
81
|
-
|
82
|
-
inst.addVisual();
|
83
|
-
inst.nodeChanged();
|
84
|
-
inst.execCommand('mceEndUndoLevel');
|
85
|
-
tinyMCEPopup.close();
|
86
|
-
return;
|
87
|
-
}
|
88
|
-
|
89
|
-
switch (action) {
|
90
|
-
case "row":
|
91
|
-
updateRow(trElm);
|
92
|
-
break;
|
93
|
-
|
94
|
-
case "all":
|
95
|
-
var rows = tableElm.getElementsByTagName("tr");
|
96
|
-
|
97
|
-
for (var i=0; i<rows.length; i++)
|
98
|
-
updateRow(rows[i], true);
|
99
|
-
|
100
|
-
break;
|
101
|
-
|
102
|
-
case "odd":
|
103
|
-
case "even":
|
104
|
-
var rows = tableElm.getElementsByTagName("tr");
|
105
|
-
|
106
|
-
for (var i=0; i<rows.length; i++) {
|
107
|
-
if ((i % 2 == 0 && action == "odd") || (i % 2 != 0 && action == "even"))
|
108
|
-
updateRow(rows[i], true, true);
|
109
|
-
}
|
110
|
-
|
111
|
-
break;
|
112
|
-
}
|
113
|
-
|
114
|
-
inst.addVisual();
|
115
|
-
inst.nodeChanged();
|
116
|
-
inst.execCommand('mceEndUndoLevel');
|
117
|
-
tinyMCEPopup.close();
|
118
|
-
}
|
119
|
-
|
120
|
-
function updateRow(tr_elm, skip_id, skip_parent) {
|
121
|
-
var inst = tinyMCEPopup.editor;
|
122
|
-
var formObj = document.forms[0];
|
123
|
-
var dom = inst.dom;
|
124
|
-
var curRowType = tr_elm.parentNode.nodeName.toLowerCase();
|
125
|
-
var rowtype = getSelectValue(formObj, 'rowtype');
|
126
|
-
var doc = inst.getDoc();
|
127
|
-
|
128
|
-
// Update row element
|
129
|
-
if (!skip_id)
|
130
|
-
dom.setAttrib(tr_elm, 'id', formObj.id.value);
|
131
|
-
|
132
|
-
dom.setAttrib(tr_elm, 'align', getSelectValue(formObj, 'align'));
|
133
|
-
dom.setAttrib(tr_elm, 'vAlign', getSelectValue(formObj, 'valign'));
|
134
|
-
dom.setAttrib(tr_elm, 'lang', formObj.lang.value);
|
135
|
-
dom.setAttrib(tr_elm, 'dir', getSelectValue(formObj, 'dir'));
|
136
|
-
dom.setAttrib(tr_elm, 'style', dom.serializeStyle(dom.parseStyle(formObj.style.value)));
|
137
|
-
dom.setAttrib(tr_elm, 'class', getSelectValue(formObj, 'class'));
|
138
|
-
|
139
|
-
// Clear deprecated attributes
|
140
|
-
dom.setAttrib(tr_elm, 'background', '');
|
141
|
-
dom.setAttrib(tr_elm, 'bgColor', '');
|
142
|
-
dom.setAttrib(tr_elm, 'height', '');
|
143
|
-
|
144
|
-
// Set styles
|
145
|
-
tr_elm.style.height = getCSSSize(formObj.height.value);
|
146
|
-
tr_elm.style.backgroundColor = formObj.bgcolor.value;
|
147
|
-
|
148
|
-
if (formObj.backgroundimage.value != "")
|
149
|
-
tr_elm.style.backgroundImage = "url('" + formObj.backgroundimage.value + "')";
|
150
|
-
else
|
151
|
-
tr_elm.style.backgroundImage = '';
|
152
|
-
|
153
|
-
// Setup new rowtype
|
154
|
-
if (curRowType != rowtype && !skip_parent) {
|
155
|
-
// first, clone the node we are working on
|
156
|
-
var newRow = tr_elm.cloneNode(1);
|
157
|
-
|
158
|
-
// next, find the parent of its new destination (creating it if necessary)
|
159
|
-
var theTable = dom.getParent(tr_elm, "table");
|
160
|
-
var dest = rowtype;
|
161
|
-
var newParent = null;
|
162
|
-
for (var i = 0; i < theTable.childNodes.length; i++) {
|
163
|
-
if (theTable.childNodes[i].nodeName.toLowerCase() == dest)
|
164
|
-
newParent = theTable.childNodes[i];
|
165
|
-
}
|
166
|
-
|
167
|
-
if (newParent == null) {
|
168
|
-
newParent = doc.createElement(dest);
|
169
|
-
|
170
|
-
if (theTable.firstChild.nodeName == 'CAPTION')
|
171
|
-
inst.dom.insertAfter(newParent, theTable.firstChild);
|
172
|
-
else
|
173
|
-
theTable.insertBefore(newParent, theTable.firstChild);
|
174
|
-
}
|
175
|
-
|
176
|
-
// append the row to the new parent
|
177
|
-
newParent.appendChild(newRow);
|
178
|
-
|
179
|
-
// remove the original
|
180
|
-
tr_elm.parentNode.removeChild(tr_elm);
|
181
|
-
|
182
|
-
// set tr_elm to the new node
|
183
|
-
tr_elm = newRow;
|
184
|
-
}
|
185
|
-
|
186
|
-
dom.setAttrib(tr_elm, 'style', dom.serializeStyle(dom.parseStyle(tr_elm.style.cssText)));
|
187
|
-
}
|
188
|
-
|
189
|
-
function changedBackgroundImage() {
|
190
|
-
var formObj = document.forms[0], dom = tinyMCEPopup.editor.dom;
|
191
|
-
var st = dom.parseStyle(formObj.style.value);
|
192
|
-
|
193
|
-
st['background-image'] = "url('" + formObj.backgroundimage.value + "')";
|
194
|
-
|
195
|
-
formObj.style.value = dom.serializeStyle(st);
|
196
|
-
}
|
197
|
-
|
198
|
-
function changedStyle() {
|
199
|
-
var formObj = document.forms[0], dom = tinyMCEPopup.editor.dom;
|
200
|
-
var st = dom.parseStyle(formObj.style.value);
|
201
|
-
|
202
|
-
if (st['background-image'])
|
203
|
-
formObj.backgroundimage.value = st['background-image'].replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1");
|
204
|
-
else
|
205
|
-
formObj.backgroundimage.value = '';
|
206
|
-
|
207
|
-
if (st['height'])
|
208
|
-
formObj.height.value = trimSize(st['height']);
|
209
|
-
|
210
|
-
if (st['background-color']) {
|
211
|
-
formObj.bgcolor.value = st['background-color'];
|
212
|
-
updateColor('bgcolor_pick','bgcolor');
|
213
|
-
}
|
214
|
-
}
|
215
|
-
|
216
|
-
function changedSize() {
|
217
|
-
var formObj = document.forms[0], dom = tinyMCEPopup.editor.dom;
|
218
|
-
var st = dom.parseStyle(formObj.style.value);
|
219
|
-
|
220
|
-
var height = formObj.height.value;
|
221
|
-
if (height != "")
|
222
|
-
st['height'] = getCSSSize(height);
|
223
|
-
else
|
224
|
-
st['height'] = "";
|
225
|
-
|
226
|
-
formObj.style.value = dom.serializeStyle(st);
|
227
|
-
}
|
228
|
-
|
229
|
-
function changedColor() {
|
230
|
-
var formObj = document.forms[0], dom = tinyMCEPopup.editor.dom;
|
231
|
-
var st = dom.parseStyle(formObj.style.value);
|
232
|
-
|
233
|
-
st['background-color'] = formObj.bgcolor.value;
|
234
|
-
|
235
|
-
formObj.style.value = dom.serializeStyle(st);
|
236
|
-
}
|
237
|
-
|
238
|
-
function changedRowType() {
|
239
|
-
var formObj = document.forms[0];
|
240
|
-
var rowtype = getSelectValue(formObj, 'rowtype');
|
241
|
-
|
242
|
-
setActionforRowType(formObj, rowtype);
|
243
|
-
|
244
|
-
}
|
245
|
-
|
246
|
-
function setActionforRowType(formObj, rowtype) {
|
247
|
-
if (rowtype === "tbody") {
|
248
|
-
formObj.action.disabled = false;
|
249
|
-
} else {
|
250
|
-
selectByValue(formObj, 'action', "row");
|
251
|
-
formObj.action.disabled = true;
|
252
|
-
}
|
253
|
-
}
|
254
|
-
tinyMCEPopup.onInit.add(init);
|