tb_core 1.1.10 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/README.md +50 -2
- data/app/assets/javascripts/admin/core/application.js +2 -2
- data/app/assets/javascripts/admin/core/editor.js +1 -0
- data/app/assets/javascripts/admin/core/preinit.js +1 -1
- data/app/assets/javascripts/admin/core/split_pane.js +4 -0
- data/app/assets/javascripts/admin/core/users.js +59 -12
- data/app/assets/libs/bootstrap/css/{bootstrap.css → bootstrap.css.scss} +11 -11
- data/app/assets/libs/{tiny_mce → tinymce}/plugins/tableDropdown/editor_plugin.js +0 -0
- data/app/controllers/admin/application_controller.rb +0 -1
- data/app/controllers/admin/roles_controller.rb +10 -4
- data/app/controllers/admin/settings_controller.rb +10 -2
- data/app/controllers/admin/setup_controller.rb +7 -1
- data/app/controllers/admin/users_controller.rb +8 -2
- data/app/controllers/sitemaps_controller.rb +0 -1
- data/app/controllers/spud/application_controller.rb +9 -2
- data/app/helpers/spud/application_helper.rb +21 -0
- data/app/models/spud/spud_user_model.rb +79 -0
- data/app/models/spud_role.rb +0 -1
- data/app/models/spud_role_permission.rb +0 -1
- data/app/models/spud_user.rb +2 -80
- data/app/views/admin/roles/index.html.erb +4 -2
- data/app/views/admin/users/_form.html.erb +3 -0
- data/app/views/admin/users/_form_additions.html.erb +1 -0
- data/app/views/admin/users/_show_additions.html.erb +1 -0
- data/app/views/admin/users/show.html.erb +1 -0
- data/config/routes.rb +3 -3
- data/lib/generators/spud/module_generator.rb +5 -1
- data/lib/generators/spud/templates/admin_controller.rb.erb +6 -2
- data/lib/generators/spud/templates/views/admin/index.html.erb +5 -7
- data/lib/spud_core/engine.rb +2 -24
- data/lib/spud_core/version.rb +1 -1
- data/spec/controllers/admin/settings_controller_spec.rb +2 -2
- data/spec/controllers/sitemap_controllers_spec.rb +4 -3
- data/spec/dummy/config/application.rb +1 -0
- data/spec/dummy/config/environments/test.rb +9 -2
- data/spec/dummy/config/initializers/secret_token.rb +1 -0
- data/spec/dummy/log/test.log +12429 -0
- data/spec/dummy/tmp/cache/assets/test/sass/05388b0d18737541b44c9082e3fa19afa6bf3826/application.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/05388b0d18737541b44c9082e3fa19afa6bf3826/login.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/05388b0d18737541b44c9082e3fa19afa6bf3826/split_pane.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/05388b0d18737541b44c9082e3fa19afa6bf3826/users.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/e99c58815a3ff18987eada90ba5c7e95383074f2/bootstrap.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0075c6e170e8012f220c7ed9fb5dc88b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/01666d6af504317dcf63364a37ce60f4 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/03dcdc877f0257624872c73967d201c6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/06d52af2fa483161bb27dd39c3b34ee3 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/098869073bd11dbc41fcaa47716a0ce7 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0cabf8a5146f359edd424e4f820e07f1 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0f971f36ba87298fbaf46154fa8a5d30 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/13809885160329b0a1a4e7885fb75ca4 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/16243b3ad44c2997ad70996b58c56a2a +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/169b221054fadd95f44252a232a5f053 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/1816341e15110810c4647824cc81d1aa +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/18d440ef7bcf78056d346ac1ff2a6793 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/1c06ad369cba88ec3ff5afc06e982d7c +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/1fa18bd231ff77b2af93913518487967 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/21e6a044a925c5f44f5a9d9b9e2d164a +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2393e42173c512eb5171116ee479ab7e +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2b94b5653a1151795fb999b3e98fd1d8 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2fe2bffc50d1c3cd5c0a896a5528e23b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/3024a96b82ffd6a5f68295a953231c92 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/3123e8917685babc03cb0c8aeccac695 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/353180d0c9fd2a3ccef3718d7e6ace6c +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/37539a535fefc75cd61aa9438d821846 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/38eabf5ce9c4dda42d09332aee816d3e +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/39efa102c753ebe9defd90062785a8aa +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/3cc30d9fb936455c063d7a950c46bb32 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/4546971591261f8a01d0837f5a31af35 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/45b53d5ab2cac60703cd9d2cf52c14eb +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/49d27d2d81616b48039efe15075da4f2 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/4a689e727abc31a4f93798253a176295 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/55d4fc42707dc9a3400faf92bed0360a +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5759e8cff07b97209ca7ea6a93b3ed1a +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5c4e1741d24424c6947eaff78829d41f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5cdaff8b68930bd29868b3d0fcb33766 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5de67e95811f3524bac96ba237505ae6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5fe538b2e33228dd92d36cfce50cf4b7 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6671fad14ea054e577e2dfbcd98e571c +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6d7103090b0047c9b8d5746d75e8fac9 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/705426de92785d4afa88b06757d25f7d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/71e715ef316e725981280e9bfe9d0527 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/7391889bc52e8664fd5d590d58a7ec8f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/7828cb89eaa43959329e301a04ef10a6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/80dda53c03df39ae9ed8c2400f05990a +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/8121614a686088a7f27165baf5d63da3 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/85af4404353b8373764b166027ce78a4 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/85cdc3810a743722e618b949199320ec +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/88099ac9106f32ee56c2cdde301f4aeb +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/89fbb1e40182037e0eec01e0d3bab067 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/8bb56cbae5a8a5b5f1cf04183a746966 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/8fb7066c091dc8956fadaa0c316fb808 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/9214ad2c4fc7c0298ec351e00379a706 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/9313c3ae5de2dc96635bfa4e6957a149 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/940374cda01486d892775b6f65986599 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/966f020d24b19c1d685c51c240d1923a +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/a444109f6d82fec9d3e8224e0508abc9 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/a4adceeb24e0e96b3cd701b06c7b53d2 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/a4c8d8c64ed3eca5b07e3c1478b00a81 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/a7305f76eab9ded7ce734cea8967a8ee +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/aa893fde36bb6d9e2184bba8385ce160 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/b26e8bc7c7c32058397f892cd9d046d8 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/b8d4b4de990b07fda478ecb232a3b76f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/ba173160d353bfb6e1f0f284bac8b9de +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/bc750b216ba26d779bcf79fac037b36b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/bef9d4af2f246671b5c9d21c40b49545 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c0eaf65fe0db1674c49ba2ae6cccb410 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c4fa3869fe96ebf26a17b08d5b45d5fb +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c666b756412f64241236e1112b2e403d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c7301f1b1c7ee199b8b8487f43ce78c8 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/cb96d7509d3c2b2f16d6d3a1eaac2b79 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d02977fa67cf6643e31bb4c063a6d205 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d5b4ee9436615cb36bb22b9ba87791cf +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/daec02064da70ae5def8a75a5c36e58d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/dd32919d4bcd591d7aa6937ba4b39ddb +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e12ec2fd151046a8235cb53a379b3151 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e232a62130dade197fcabdd428cf737c +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e7d7a71fa09119e96e640cba43763911 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f165c137fabbacd60c1bc9fbb6878ae9 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f365efd4df73b42e492cd479032636ca +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f81f473be9c249d9ff823b35ba6c7130 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/fda81067bc547bd67ac35e1bc4a7c167 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/fde0dc66d618f90500842b827a11d83b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/fe35aa99166bfe64fdab2f5f5373a80d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/ff91e57c48a0748be0394a67cd555438 +0 -0
- metadata +240 -182
- data/app/assets/libs/tiny_mce/jquery.tinymce.js +0 -1
- data/app/assets/libs/tiny_mce/langs/en.js +0 -1
- data/app/assets/libs/tiny_mce/license.txt +0 -504
- data/app/assets/libs/tiny_mce/plugins/advhr/css/advhr.css +0 -5
- data/app/assets/libs/tiny_mce/plugins/advhr/editor_plugin.js +0 -1
- data/app/assets/libs/tiny_mce/plugins/advhr/editor_plugin_src.js +0 -57
- data/app/assets/libs/tiny_mce/plugins/advhr/js/rule.js +0 -43
- data/app/assets/libs/tiny_mce/plugins/advhr/langs/en_dlg.js +0 -1
- data/app/assets/libs/tiny_mce/plugins/advhr/rule.htm +0 -58
- data/app/assets/libs/tiny_mce/plugins/advimage/css/advimage.css +0 -13
- data/app/assets/libs/tiny_mce/plugins/advimage/editor_plugin.js +0 -1
- data/app/assets/libs/tiny_mce/plugins/advimage/editor_plugin_src.js +0 -50
- data/app/assets/libs/tiny_mce/plugins/advimage/image.htm +0 -235
- data/app/assets/libs/tiny_mce/plugins/advimage/img/sample.gif +0 -0
- data/app/assets/libs/tiny_mce/plugins/advimage/js/image.js +0 -462
- data/app/assets/libs/tiny_mce/plugins/advimage/langs/en_dlg.js +0 -1
- data/app/assets/libs/tiny_mce/plugins/advlink/css/advlink.css +0 -8
- data/app/assets/libs/tiny_mce/plugins/advlink/editor_plugin.js +0 -1
- data/app/assets/libs/tiny_mce/plugins/advlink/editor_plugin_src.js +0 -61
- data/app/assets/libs/tiny_mce/plugins/advlink/js/advlink.js +0 -539
- data/app/assets/libs/tiny_mce/plugins/advlink/langs/en_dlg.js +0 -1
- data/app/assets/libs/tiny_mce/plugins/advlink/link.htm +0 -338
- data/app/assets/libs/tiny_mce/plugins/autolink/editor_plugin.js +0 -1
- data/app/assets/libs/tiny_mce/plugins/autolink/editor_plugin_src.js +0 -174
- data/app/assets/libs/tiny_mce/plugins/inlinepopups/editor_plugin.js +0 -1
- data/app/assets/libs/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +0 -699
- data/app/assets/libs/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
- data/app/assets/libs/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
- data/app/assets/libs/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
- data/app/assets/libs/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
- data/app/assets/libs/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
- data/app/assets/libs/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
- data/app/assets/libs/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
- data/app/assets/libs/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +0 -90
- data/app/assets/libs/tiny_mce/plugins/inlinepopups/template.htm +0 -387
- data/app/assets/libs/tiny_mce/plugins/lists/editor_plugin.js +0 -1
- data/app/assets/libs/tiny_mce/plugins/lists/editor_plugin_src.js +0 -951
- data/app/assets/libs/tiny_mce/plugins/media/css/media.css +0 -17
- data/app/assets/libs/tiny_mce/plugins/media/editor_plugin.js +0 -1
- data/app/assets/libs/tiny_mce/plugins/media/editor_plugin_src.js +0 -890
- data/app/assets/libs/tiny_mce/plugins/media/js/embed.js +0 -73
- data/app/assets/libs/tiny_mce/plugins/media/js/media.js +0 -470
- data/app/assets/libs/tiny_mce/plugins/media/langs/en_dlg.js +0 -1
- data/app/assets/libs/tiny_mce/plugins/media/media.htm +0 -922
- data/app/assets/libs/tiny_mce/plugins/media/moxieplayer.swf +0 -0
- data/app/assets/libs/tiny_mce/plugins/paste/editor_plugin.js +0 -1
- data/app/assets/libs/tiny_mce/plugins/paste/editor_plugin_src.js +0 -871
- data/app/assets/libs/tiny_mce/plugins/paste/js/pastetext.js +0 -36
- data/app/assets/libs/tiny_mce/plugins/paste/js/pasteword.js +0 -51
- data/app/assets/libs/tiny_mce/plugins/paste/langs/en_dlg.js +0 -1
- data/app/assets/libs/tiny_mce/plugins/paste/pastetext.htm +0 -27
- data/app/assets/libs/tiny_mce/plugins/paste/pasteword.htm +0 -21
- data/app/assets/libs/tiny_mce/plugins/table/cell.htm +0 -180
- data/app/assets/libs/tiny_mce/plugins/table/css/cell.css +0 -17
- data/app/assets/libs/tiny_mce/plugins/table/css/row.css +0 -25
- data/app/assets/libs/tiny_mce/plugins/table/css/table.css +0 -13
- data/app/assets/libs/tiny_mce/plugins/table/editor_plugin.js +0 -1
- data/app/assets/libs/tiny_mce/plugins/table/editor_plugin_src.js +0 -1428
- data/app/assets/libs/tiny_mce/plugins/table/js/cell.js +0 -319
- data/app/assets/libs/tiny_mce/plugins/table/js/merge_cells.js +0 -27
- data/app/assets/libs/tiny_mce/plugins/table/js/row.js +0 -237
- data/app/assets/libs/tiny_mce/plugins/table/js/table.js +0 -489
- data/app/assets/libs/tiny_mce/plugins/table/langs/en_dlg.js +0 -1
- data/app/assets/libs/tiny_mce/plugins/table/merge_cells.htm +0 -32
- data/app/assets/libs/tiny_mce/plugins/table/row.htm +0 -158
- data/app/assets/libs/tiny_mce/plugins/table/table.htm +0 -188
- data/app/assets/libs/tiny_mce/themes/advanced/about.htm +0 -52
- data/app/assets/libs/tiny_mce/themes/advanced/anchor.htm +0 -26
- data/app/assets/libs/tiny_mce/themes/advanced/charmap.htm +0 -55
- data/app/assets/libs/tiny_mce/themes/advanced/color_picker.htm +0 -70
- data/app/assets/libs/tiny_mce/themes/advanced/editor_template.js +0 -1
- data/app/assets/libs/tiny_mce/themes/advanced/editor_template_src.js +0 -1467
- data/app/assets/libs/tiny_mce/themes/advanced/image.htm +0 -80
- data/app/assets/libs/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
- data/app/assets/libs/tiny_mce/themes/advanced/img/flash.gif +0 -0
- data/app/assets/libs/tiny_mce/themes/advanced/img/icons.gif +0 -0
- data/app/assets/libs/tiny_mce/themes/advanced/img/iframe.gif +0 -0
- data/app/assets/libs/tiny_mce/themes/advanced/img/pagebreak.gif +0 -0
- data/app/assets/libs/tiny_mce/themes/advanced/img/quicktime.gif +0 -0
- data/app/assets/libs/tiny_mce/themes/advanced/img/realmedia.gif +0 -0
- data/app/assets/libs/tiny_mce/themes/advanced/img/shockwave.gif +0 -0
- data/app/assets/libs/tiny_mce/themes/advanced/img/trans.gif +0 -0
- data/app/assets/libs/tiny_mce/themes/advanced/img/video.gif +0 -0
- data/app/assets/libs/tiny_mce/themes/advanced/img/windowsmedia.gif +0 -0
- data/app/assets/libs/tiny_mce/themes/advanced/js/about.js +0 -73
- data/app/assets/libs/tiny_mce/themes/advanced/js/anchor.js +0 -44
- data/app/assets/libs/tiny_mce/themes/advanced/js/charmap.js +0 -363
- data/app/assets/libs/tiny_mce/themes/advanced/js/color_picker.js +0 -345
- data/app/assets/libs/tiny_mce/themes/advanced/js/image.js +0 -251
- data/app/assets/libs/tiny_mce/themes/advanced/js/link.js +0 -153
- data/app/assets/libs/tiny_mce/themes/advanced/js/source_editor.js +0 -78
- data/app/assets/libs/tiny_mce/themes/advanced/langs/en.js +0 -1
- data/app/assets/libs/tiny_mce/themes/advanced/langs/en_dlg.js +0 -1
- data/app/assets/libs/tiny_mce/themes/advanced/link.htm +0 -57
- data/app/assets/libs/tiny_mce/themes/advanced/shortcuts.htm +0 -47
- data/app/assets/libs/tiny_mce/themes/advanced/skins/default/content.css +0 -51
- data/app/assets/libs/tiny_mce/themes/advanced/skins/default/dialog.css +0 -118
- data/app/assets/libs/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
- data/app/assets/libs/tiny_mce/themes/advanced/skins/default/img/items.gif +0 -0
- data/app/assets/libs/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
- data/app/assets/libs/tiny_mce/themes/advanced/skins/default/img/menu_check.gif +0 -0
- data/app/assets/libs/tiny_mce/themes/advanced/skins/default/img/progress.gif +0 -0
- data/app/assets/libs/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
- data/app/assets/libs/tiny_mce/themes/advanced/skins/default/ui.css +0 -215
- data/app/assets/libs/tiny_mce/themes/advanced/skins/highcontrast/content.css +0 -25
- data/app/assets/libs/tiny_mce/themes/advanced/skins/highcontrast/dialog.css +0 -106
- data/app/assets/libs/tiny_mce/themes/advanced/skins/highcontrast/ui.css +0 -102
- data/app/assets/libs/tiny_mce/themes/advanced/skins/o2k7/content.css +0 -49
- data/app/assets/libs/tiny_mce/themes/advanced/skins/o2k7/dialog.css +0 -118
- data/app/assets/libs/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
- data/app/assets/libs/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
- data/app/assets/libs/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
- data/app/assets/libs/tiny_mce/themes/advanced/skins/o2k7/ui.css +0 -218
- data/app/assets/libs/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +0 -8
- data/app/assets/libs/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +0 -5
- data/app/assets/libs/tiny_mce/themes/advanced/source_editor.htm +0 -25
- data/app/assets/libs/tiny_mce/themes/simple/editor_template.js +0 -1
- data/app/assets/libs/tiny_mce/themes/simple/editor_template_src.js +0 -84
- data/app/assets/libs/tiny_mce/themes/simple/img/icons.gif +0 -0
- data/app/assets/libs/tiny_mce/themes/simple/langs/en.js +0 -1
- data/app/assets/libs/tiny_mce/themes/simple/skins/default/content.css +0 -25
- data/app/assets/libs/tiny_mce/themes/simple/skins/default/ui.css +0 -32
- data/app/assets/libs/tiny_mce/themes/simple/skins/o2k7/content.css +0 -17
- data/app/assets/libs/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
- data/app/assets/libs/tiny_mce/themes/simple/skins/o2k7/ui.css +0 -35
- data/app/assets/libs/tiny_mce/tiny_mce.js +0 -1
- data/app/assets/libs/tiny_mce/tiny_mce_popup.js +0 -5
- data/app/assets/libs/tiny_mce/tiny_mce_src.js +0 -16753
- data/app/assets/libs/tiny_mce/utils/editable_selects.js +0 -70
- data/app/assets/libs/tiny_mce/utils/form_utils.js +0 -210
- data/app/assets/libs/tiny_mce/utils/mctabs.js +0 -162
- data/app/assets/libs/tiny_mce/utils/validate.js +0 -252
- data/app/models/concerns/spud_authentication.rb +0 -10
@@ -1,489 +0,0 @@
|
|
1
|
-
tinyMCEPopup.requireLangPack();
|
2
|
-
|
3
|
-
var action, orgTableWidth, orgTableHeight, dom = tinyMCEPopup.editor.dom;
|
4
|
-
|
5
|
-
function insertTable() {
|
6
|
-
var formObj = document.forms[0];
|
7
|
-
var inst = tinyMCEPopup.editor, dom = inst.dom;
|
8
|
-
var cols = 2, rows = 2, border = 0, cellpadding = -1, cellspacing = -1, align, width, height, className, caption, frame, rules;
|
9
|
-
var html = '', capEl, elm;
|
10
|
-
var cellLimit, rowLimit, colLimit;
|
11
|
-
|
12
|
-
tinyMCEPopup.restoreSelection();
|
13
|
-
|
14
|
-
if (!AutoValidator.validate(formObj)) {
|
15
|
-
tinyMCEPopup.alert(AutoValidator.getErrorMessages(formObj).join('. ') + '.');
|
16
|
-
return false;
|
17
|
-
}
|
18
|
-
|
19
|
-
elm = dom.getParent(inst.selection.getNode(), 'table');
|
20
|
-
|
21
|
-
// Get form data
|
22
|
-
cols = formObj.elements['cols'].value;
|
23
|
-
rows = formObj.elements['rows'].value;
|
24
|
-
border = formObj.elements['border'].value != "" ? formObj.elements['border'].value : 0;
|
25
|
-
cellpadding = formObj.elements['cellpadding'].value != "" ? formObj.elements['cellpadding'].value : "";
|
26
|
-
cellspacing = formObj.elements['cellspacing'].value != "" ? formObj.elements['cellspacing'].value : "";
|
27
|
-
align = getSelectValue(formObj, "align");
|
28
|
-
frame = getSelectValue(formObj, "tframe");
|
29
|
-
rules = getSelectValue(formObj, "rules");
|
30
|
-
width = formObj.elements['width'].value;
|
31
|
-
height = formObj.elements['height'].value;
|
32
|
-
bordercolor = formObj.elements['bordercolor'].value;
|
33
|
-
bgcolor = formObj.elements['bgcolor'].value;
|
34
|
-
className = getSelectValue(formObj, "class");
|
35
|
-
id = formObj.elements['id'].value;
|
36
|
-
summary = formObj.elements['summary'].value;
|
37
|
-
style = formObj.elements['style'].value;
|
38
|
-
dir = formObj.elements['dir'].value;
|
39
|
-
lang = formObj.elements['lang'].value;
|
40
|
-
background = formObj.elements['backgroundimage'].value;
|
41
|
-
caption = formObj.elements['caption'].checked;
|
42
|
-
|
43
|
-
cellLimit = tinyMCEPopup.getParam('table_cell_limit', false);
|
44
|
-
rowLimit = tinyMCEPopup.getParam('table_row_limit', false);
|
45
|
-
colLimit = tinyMCEPopup.getParam('table_col_limit', false);
|
46
|
-
|
47
|
-
// Validate table size
|
48
|
-
if (colLimit && cols > colLimit) {
|
49
|
-
tinyMCEPopup.alert(inst.getLang('table_dlg.col_limit').replace(/\{\$cols\}/g, colLimit));
|
50
|
-
return false;
|
51
|
-
} else if (rowLimit && rows > rowLimit) {
|
52
|
-
tinyMCEPopup.alert(inst.getLang('table_dlg.row_limit').replace(/\{\$rows\}/g, rowLimit));
|
53
|
-
return false;
|
54
|
-
} else if (cellLimit && cols * rows > cellLimit) {
|
55
|
-
tinyMCEPopup.alert(inst.getLang('table_dlg.cell_limit').replace(/\{\$cells\}/g, cellLimit));
|
56
|
-
return false;
|
57
|
-
}
|
58
|
-
|
59
|
-
// Update table
|
60
|
-
if (action == "update") {
|
61
|
-
dom.setAttrib(elm, 'cellPadding', cellpadding, true);
|
62
|
-
dom.setAttrib(elm, 'cellSpacing', cellspacing, true);
|
63
|
-
|
64
|
-
if (!isCssSize(border)) {
|
65
|
-
dom.setAttrib(elm, 'border', border);
|
66
|
-
} else {
|
67
|
-
dom.setAttrib(elm, 'border', '');
|
68
|
-
}
|
69
|
-
|
70
|
-
if (border == '') {
|
71
|
-
dom.setStyle(elm, 'border-width', '');
|
72
|
-
dom.setStyle(elm, 'border', '');
|
73
|
-
dom.setAttrib(elm, 'border', '');
|
74
|
-
}
|
75
|
-
|
76
|
-
dom.setAttrib(elm, 'align', align);
|
77
|
-
dom.setAttrib(elm, 'frame', frame);
|
78
|
-
dom.setAttrib(elm, 'rules', rules);
|
79
|
-
dom.setAttrib(elm, 'class', className);
|
80
|
-
dom.setAttrib(elm, 'style', style);
|
81
|
-
dom.setAttrib(elm, 'id', id);
|
82
|
-
dom.setAttrib(elm, 'summary', summary);
|
83
|
-
dom.setAttrib(elm, 'dir', dir);
|
84
|
-
dom.setAttrib(elm, 'lang', lang);
|
85
|
-
|
86
|
-
capEl = inst.dom.select('caption', elm)[0];
|
87
|
-
|
88
|
-
if (capEl && !caption)
|
89
|
-
capEl.parentNode.removeChild(capEl);
|
90
|
-
|
91
|
-
if (!capEl && caption) {
|
92
|
-
capEl = elm.ownerDocument.createElement('caption');
|
93
|
-
|
94
|
-
if (!tinymce.isIE)
|
95
|
-
capEl.innerHTML = '<br data-mce-bogus="1"/>';
|
96
|
-
|
97
|
-
elm.insertBefore(capEl, elm.firstChild);
|
98
|
-
}
|
99
|
-
|
100
|
-
if (width && inst.settings.inline_styles) {
|
101
|
-
dom.setStyle(elm, 'width', width);
|
102
|
-
dom.setAttrib(elm, 'width', '');
|
103
|
-
} else {
|
104
|
-
dom.setAttrib(elm, 'width', width, true);
|
105
|
-
dom.setStyle(elm, 'width', '');
|
106
|
-
}
|
107
|
-
|
108
|
-
// Remove these since they are not valid XHTML
|
109
|
-
dom.setAttrib(elm, 'borderColor', '');
|
110
|
-
dom.setAttrib(elm, 'bgColor', '');
|
111
|
-
dom.setAttrib(elm, 'background', '');
|
112
|
-
|
113
|
-
if (height && inst.settings.inline_styles) {
|
114
|
-
dom.setStyle(elm, 'height', height);
|
115
|
-
dom.setAttrib(elm, 'height', '');
|
116
|
-
} else {
|
117
|
-
dom.setAttrib(elm, 'height', height, true);
|
118
|
-
dom.setStyle(elm, 'height', '');
|
119
|
-
}
|
120
|
-
|
121
|
-
if (background != '')
|
122
|
-
elm.style.backgroundImage = "url('" + background + "')";
|
123
|
-
else
|
124
|
-
elm.style.backgroundImage = '';
|
125
|
-
|
126
|
-
/* if (tinyMCEPopup.getParam("inline_styles")) {
|
127
|
-
if (width != '')
|
128
|
-
elm.style.width = getCSSSize(width);
|
129
|
-
}*/
|
130
|
-
|
131
|
-
if (bordercolor != "") {
|
132
|
-
elm.style.borderColor = bordercolor;
|
133
|
-
elm.style.borderStyle = elm.style.borderStyle == "" ? "solid" : elm.style.borderStyle;
|
134
|
-
elm.style.borderWidth = cssSize(border);
|
135
|
-
} else
|
136
|
-
elm.style.borderColor = '';
|
137
|
-
|
138
|
-
elm.style.backgroundColor = bgcolor;
|
139
|
-
elm.style.height = getCSSSize(height);
|
140
|
-
|
141
|
-
inst.addVisual();
|
142
|
-
|
143
|
-
// Fix for stange MSIE align bug
|
144
|
-
//elm.outerHTML = elm.outerHTML;
|
145
|
-
|
146
|
-
inst.nodeChanged();
|
147
|
-
inst.execCommand('mceEndUndoLevel', false, {}, {skip_undo: true});
|
148
|
-
|
149
|
-
// Repaint if dimensions changed
|
150
|
-
if (formObj.width.value != orgTableWidth || formObj.height.value != orgTableHeight)
|
151
|
-
inst.execCommand('mceRepaint');
|
152
|
-
|
153
|
-
tinyMCEPopup.close();
|
154
|
-
return true;
|
155
|
-
}
|
156
|
-
|
157
|
-
// Create new table
|
158
|
-
html += '<table';
|
159
|
-
|
160
|
-
html += makeAttrib('id', id);
|
161
|
-
if (!isCssSize(border)) {
|
162
|
-
html += makeAttrib('border', border);
|
163
|
-
}
|
164
|
-
|
165
|
-
html += makeAttrib('cellpadding', cellpadding);
|
166
|
-
html += makeAttrib('cellspacing', cellspacing);
|
167
|
-
html += makeAttrib('data-mce-new', '1');
|
168
|
-
|
169
|
-
if (width && inst.settings.inline_styles) {
|
170
|
-
if (style)
|
171
|
-
style += '; ';
|
172
|
-
|
173
|
-
// Force px
|
174
|
-
if (/^[0-9\.]+$/.test(width))
|
175
|
-
width += 'px';
|
176
|
-
|
177
|
-
style += 'width: ' + width;
|
178
|
-
} else
|
179
|
-
html += makeAttrib('width', width);
|
180
|
-
|
181
|
-
/* if (height) {
|
182
|
-
if (style)
|
183
|
-
style += '; ';
|
184
|
-
|
185
|
-
style += 'height: ' + height;
|
186
|
-
}*/
|
187
|
-
|
188
|
-
//html += makeAttrib('height', height);
|
189
|
-
//html += makeAttrib('bordercolor', bordercolor);
|
190
|
-
//html += makeAttrib('bgcolor', bgcolor);
|
191
|
-
html += makeAttrib('align', align);
|
192
|
-
html += makeAttrib('frame', frame);
|
193
|
-
html += makeAttrib('rules', rules);
|
194
|
-
html += makeAttrib('class', className);
|
195
|
-
html += makeAttrib('style', style);
|
196
|
-
html += makeAttrib('summary', summary);
|
197
|
-
html += makeAttrib('dir', dir);
|
198
|
-
html += makeAttrib('lang', lang);
|
199
|
-
html += '>';
|
200
|
-
|
201
|
-
if (caption) {
|
202
|
-
if (!tinymce.isIE)
|
203
|
-
html += '<caption><br data-mce-bogus="1"/></caption>';
|
204
|
-
else
|
205
|
-
html += '<caption></caption>';
|
206
|
-
}
|
207
|
-
|
208
|
-
for (var y=0; y<rows; y++) {
|
209
|
-
html += "<tr>";
|
210
|
-
|
211
|
-
for (var x=0; x<cols; x++) {
|
212
|
-
if (!tinymce.isIE)
|
213
|
-
html += '<td><br data-mce-bogus="1"/></td>';
|
214
|
-
else
|
215
|
-
html += '<td></td>';
|
216
|
-
}
|
217
|
-
|
218
|
-
html += "</tr>";
|
219
|
-
}
|
220
|
-
|
221
|
-
html += "</table>";
|
222
|
-
|
223
|
-
// Move table
|
224
|
-
if (inst.settings.fix_table_elements) {
|
225
|
-
var patt = '';
|
226
|
-
|
227
|
-
inst.focus();
|
228
|
-
inst.selection.setContent('<br class="_mce_marker" />');
|
229
|
-
|
230
|
-
tinymce.each('h1,h2,h3,h4,h5,h6,p'.split(','), function(n) {
|
231
|
-
if (patt)
|
232
|
-
patt += ',';
|
233
|
-
|
234
|
-
patt += n + ' ._mce_marker';
|
235
|
-
});
|
236
|
-
|
237
|
-
tinymce.each(inst.dom.select(patt), function(n) {
|
238
|
-
inst.dom.split(inst.dom.getParent(n, 'h1,h2,h3,h4,h5,h6,p'), n);
|
239
|
-
});
|
240
|
-
|
241
|
-
dom.setOuterHTML(dom.select('br._mce_marker')[0], html);
|
242
|
-
} else
|
243
|
-
inst.execCommand('mceInsertContent', false, html);
|
244
|
-
|
245
|
-
tinymce.each(dom.select('table[data-mce-new]'), function(node) {
|
246
|
-
var tdorth = dom.select('td,th', node);
|
247
|
-
|
248
|
-
// Fixes a bug in IE where the caret cannot be placed after the table if the table is at the end of the document
|
249
|
-
if (tinymce.isIE && node.nextSibling == null) {
|
250
|
-
dom.insertAfter(dom.create('p'), node);
|
251
|
-
}
|
252
|
-
|
253
|
-
try {
|
254
|
-
// IE9 might fail to do this selection
|
255
|
-
inst.selection.setCursorLocation(tdorth[0], 0);
|
256
|
-
} catch (ex) {
|
257
|
-
// Ignore
|
258
|
-
}
|
259
|
-
|
260
|
-
dom.setAttrib(node, 'data-mce-new', '');
|
261
|
-
});
|
262
|
-
|
263
|
-
inst.addVisual();
|
264
|
-
inst.execCommand('mceEndUndoLevel', false, {}, {skip_undo: true});
|
265
|
-
|
266
|
-
tinyMCEPopup.close();
|
267
|
-
}
|
268
|
-
|
269
|
-
function makeAttrib(attrib, value) {
|
270
|
-
var formObj = document.forms[0];
|
271
|
-
var valueElm = formObj.elements[attrib];
|
272
|
-
|
273
|
-
if (typeof(value) == "undefined" || value == null) {
|
274
|
-
value = "";
|
275
|
-
|
276
|
-
if (valueElm)
|
277
|
-
value = valueElm.value;
|
278
|
-
}
|
279
|
-
|
280
|
-
if (value == "")
|
281
|
-
return "";
|
282
|
-
|
283
|
-
// XML encode it
|
284
|
-
value = value.replace(/&/g, '&');
|
285
|
-
value = value.replace(/\"/g, '"');
|
286
|
-
value = value.replace(/</g, '<');
|
287
|
-
value = value.replace(/>/g, '>');
|
288
|
-
|
289
|
-
return ' ' + attrib + '="' + value + '"';
|
290
|
-
}
|
291
|
-
|
292
|
-
function init() {
|
293
|
-
tinyMCEPopup.resizeToInnerSize();
|
294
|
-
|
295
|
-
document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
|
296
|
-
document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
|
297
|
-
document.getElementById('bordercolor_pickcontainer').innerHTML = getColorPickerHTML('bordercolor_pick','bordercolor');
|
298
|
-
document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor');
|
299
|
-
|
300
|
-
var cols = 2, rows = 2, border = tinyMCEPopup.getParam('table_default_border', '0'), cellpadding = tinyMCEPopup.getParam('table_default_cellpadding', ''), cellspacing = tinyMCEPopup.getParam('table_default_cellspacing', '');
|
301
|
-
var align = "", width = "", height = "", bordercolor = "", bgcolor = "", className = "";
|
302
|
-
var id = "", summary = "", style = "", dir = "", lang = "", background = "", bgcolor = "", bordercolor = "", rules = "", frame = "";
|
303
|
-
var inst = tinyMCEPopup.editor, dom = inst.dom;
|
304
|
-
var formObj = document.forms[0];
|
305
|
-
var elm = dom.getParent(inst.selection.getNode(), "table");
|
306
|
-
|
307
|
-
action = tinyMCEPopup.getWindowArg('action');
|
308
|
-
|
309
|
-
if (!action)
|
310
|
-
action = elm ? "update" : "insert";
|
311
|
-
|
312
|
-
if (elm && action != "insert") {
|
313
|
-
var rowsAr = elm.rows;
|
314
|
-
var cols = 0;
|
315
|
-
for (var i=0; i<rowsAr.length; i++)
|
316
|
-
if (rowsAr[i].cells.length > cols)
|
317
|
-
cols = rowsAr[i].cells.length;
|
318
|
-
|
319
|
-
cols = cols;
|
320
|
-
rows = rowsAr.length;
|
321
|
-
|
322
|
-
st = dom.parseStyle(dom.getAttrib(elm, "style"));
|
323
|
-
border = trimSize(getStyle(elm, 'border', 'borderWidth'));
|
324
|
-
cellpadding = dom.getAttrib(elm, 'cellpadding', "");
|
325
|
-
cellspacing = dom.getAttrib(elm, 'cellspacing', "");
|
326
|
-
width = trimSize(getStyle(elm, 'width', 'width'));
|
327
|
-
height = trimSize(getStyle(elm, 'height', 'height'));
|
328
|
-
bordercolor = convertRGBToHex(getStyle(elm, 'bordercolor', 'borderLeftColor'));
|
329
|
-
bgcolor = convertRGBToHex(getStyle(elm, 'bgcolor', 'backgroundColor'));
|
330
|
-
align = dom.getAttrib(elm, 'align', align);
|
331
|
-
frame = dom.getAttrib(elm, 'frame');
|
332
|
-
rules = dom.getAttrib(elm, 'rules');
|
333
|
-
className = tinymce.trim(dom.getAttrib(elm, 'class').replace(/mceItem.+/g, ''));
|
334
|
-
id = dom.getAttrib(elm, 'id');
|
335
|
-
summary = dom.getAttrib(elm, 'summary');
|
336
|
-
style = dom.serializeStyle(st);
|
337
|
-
dir = dom.getAttrib(elm, 'dir');
|
338
|
-
lang = dom.getAttrib(elm, 'lang');
|
339
|
-
background = getStyle(elm, 'background', 'backgroundImage').replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)", 'gi'), "$1");
|
340
|
-
formObj.caption.checked = elm.getElementsByTagName('caption').length > 0;
|
341
|
-
|
342
|
-
orgTableWidth = width;
|
343
|
-
orgTableHeight = height;
|
344
|
-
|
345
|
-
action = "update";
|
346
|
-
formObj.insert.value = inst.getLang('update');
|
347
|
-
}
|
348
|
-
|
349
|
-
addClassesToList('class', "table_styles");
|
350
|
-
TinyMCE_EditableSelects.init();
|
351
|
-
|
352
|
-
// Update form
|
353
|
-
selectByValue(formObj, 'align', align);
|
354
|
-
selectByValue(formObj, 'tframe', frame);
|
355
|
-
selectByValue(formObj, 'rules', rules);
|
356
|
-
selectByValue(formObj, 'class', className, true, true);
|
357
|
-
formObj.cols.value = cols;
|
358
|
-
formObj.rows.value = rows;
|
359
|
-
formObj.border.value = border;
|
360
|
-
formObj.cellpadding.value = cellpadding;
|
361
|
-
formObj.cellspacing.value = cellspacing;
|
362
|
-
formObj.width.value = width;
|
363
|
-
formObj.height.value = height;
|
364
|
-
formObj.bordercolor.value = bordercolor;
|
365
|
-
formObj.bgcolor.value = bgcolor;
|
366
|
-
formObj.id.value = id;
|
367
|
-
formObj.summary.value = summary;
|
368
|
-
formObj.style.value = style;
|
369
|
-
formObj.dir.value = dir;
|
370
|
-
formObj.lang.value = lang;
|
371
|
-
formObj.backgroundimage.value = background;
|
372
|
-
|
373
|
-
updateColor('bordercolor_pick', 'bordercolor');
|
374
|
-
updateColor('bgcolor_pick', 'bgcolor');
|
375
|
-
|
376
|
-
// Resize some elements
|
377
|
-
if (isVisible('backgroundimagebrowser'))
|
378
|
-
document.getElementById('backgroundimage').style.width = '180px';
|
379
|
-
|
380
|
-
// Disable some fields in update mode
|
381
|
-
if (action == "update") {
|
382
|
-
formObj.cols.disabled = true;
|
383
|
-
formObj.rows.disabled = true;
|
384
|
-
}
|
385
|
-
}
|
386
|
-
|
387
|
-
function changedSize() {
|
388
|
-
var formObj = document.forms[0];
|
389
|
-
var st = dom.parseStyle(formObj.style.value);
|
390
|
-
|
391
|
-
/* var width = formObj.width.value;
|
392
|
-
if (width != "")
|
393
|
-
st['width'] = tinyMCEPopup.getParam("inline_styles") ? getCSSSize(width) : "";
|
394
|
-
else
|
395
|
-
st['width'] = "";*/
|
396
|
-
|
397
|
-
var height = formObj.height.value;
|
398
|
-
if (height != "")
|
399
|
-
st['height'] = getCSSSize(height);
|
400
|
-
else
|
401
|
-
st['height'] = "";
|
402
|
-
|
403
|
-
formObj.style.value = dom.serializeStyle(st);
|
404
|
-
}
|
405
|
-
|
406
|
-
function isCssSize(value) {
|
407
|
-
return /^[0-9.]+(%|in|cm|mm|em|ex|pt|pc|px)$/.test(value);
|
408
|
-
}
|
409
|
-
|
410
|
-
function cssSize(value, def) {
|
411
|
-
value = tinymce.trim(value || def);
|
412
|
-
|
413
|
-
if (!isCssSize(value)) {
|
414
|
-
return parseInt(value, 10) + 'px';
|
415
|
-
}
|
416
|
-
|
417
|
-
return value;
|
418
|
-
}
|
419
|
-
|
420
|
-
function changedBackgroundImage() {
|
421
|
-
var formObj = document.forms[0];
|
422
|
-
var st = dom.parseStyle(formObj.style.value);
|
423
|
-
|
424
|
-
st['background-image'] = "url('" + formObj.backgroundimage.value + "')";
|
425
|
-
|
426
|
-
formObj.style.value = dom.serializeStyle(st);
|
427
|
-
}
|
428
|
-
|
429
|
-
function changedBorder() {
|
430
|
-
var formObj = document.forms[0];
|
431
|
-
var st = dom.parseStyle(formObj.style.value);
|
432
|
-
|
433
|
-
// Update border width if the element has a color
|
434
|
-
if (formObj.border.value != "" && (isCssSize(formObj.border.value) || formObj.bordercolor.value != ""))
|
435
|
-
st['border-width'] = cssSize(formObj.border.value);
|
436
|
-
else {
|
437
|
-
if (!formObj.border.value) {
|
438
|
-
st['border'] = '';
|
439
|
-
st['border-width'] = '';
|
440
|
-
}
|
441
|
-
}
|
442
|
-
|
443
|
-
formObj.style.value = dom.serializeStyle(st);
|
444
|
-
}
|
445
|
-
|
446
|
-
function changedColor() {
|
447
|
-
var formObj = document.forms[0];
|
448
|
-
var st = dom.parseStyle(formObj.style.value);
|
449
|
-
|
450
|
-
st['background-color'] = formObj.bgcolor.value;
|
451
|
-
|
452
|
-
if (formObj.bordercolor.value != "") {
|
453
|
-
st['border-color'] = formObj.bordercolor.value;
|
454
|
-
|
455
|
-
// Add border-width if it's missing
|
456
|
-
if (!st['border-width'])
|
457
|
-
st['border-width'] = cssSize(formObj.border.value, 1);
|
458
|
-
}
|
459
|
-
|
460
|
-
formObj.style.value = dom.serializeStyle(st);
|
461
|
-
}
|
462
|
-
|
463
|
-
function changedStyle() {
|
464
|
-
var formObj = document.forms[0];
|
465
|
-
var st = dom.parseStyle(formObj.style.value);
|
466
|
-
|
467
|
-
if (st['background-image'])
|
468
|
-
formObj.backgroundimage.value = st['background-image'].replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)", 'gi'), "$1");
|
469
|
-
else
|
470
|
-
formObj.backgroundimage.value = '';
|
471
|
-
|
472
|
-
if (st['width'])
|
473
|
-
formObj.width.value = trimSize(st['width']);
|
474
|
-
|
475
|
-
if (st['height'])
|
476
|
-
formObj.height.value = trimSize(st['height']);
|
477
|
-
|
478
|
-
if (st['background-color']) {
|
479
|
-
formObj.bgcolor.value = st['background-color'];
|
480
|
-
updateColor('bgcolor_pick','bgcolor');
|
481
|
-
}
|
482
|
-
|
483
|
-
if (st['border-color']) {
|
484
|
-
formObj.bordercolor.value = st['border-color'];
|
485
|
-
updateColor('bordercolor_pick','bordercolor');
|
486
|
-
}
|
487
|
-
}
|
488
|
-
|
489
|
-
tinyMCEPopup.onInit.add(init);
|
@@ -1 +0,0 @@
|
|
1
|
-
tinyMCE.addI18n('en.table_dlg',{"rules_border":"border","rules_box":"box","rules_vsides":"vsides","rules_rhs":"rhs","rules_lhs":"lhs","rules_hsides":"hsides","rules_below":"below","rules_above":"above","rules_void":"void",rules:"Rules","frame_all":"all","frame_cols":"cols","frame_rows":"rows","frame_groups":"groups","frame_none":"none",frame:"Frame",caption:"Table Caption","missing_scope":"Are you sure you want to continue without specifying a scope for this table header cell. Without it, it may be difficult for some users with disabilities to understand the content or data displayed of the table.","cell_limit":"You\'ve exceeded the maximum number of cells of {$cells}.","row_limit":"You\'ve exceeded the maximum number of rows of {$rows}.","col_limit":"You\'ve exceeded the maximum number of columns of {$cols}.",colgroup:"Col Group",rowgroup:"Row Group",scope:"Scope",tfoot:"Footer",tbody:"Body",thead:"Header","row_all":"Update All Rows in Table","row_even":"Update Even Rows in Table","row_odd":"Update Odd Rows in Table","row_row":"Update Current Row","cell_all":"Update All Cells in Table","cell_row":"Update All Cells in Row","cell_cell":"Update Current Cell",th:"Header",td:"Data",summary:"Summary",bgimage:"Background Image",rtl:"Right to Left",ltr:"Left to Right",mime:"Target MIME Type",langcode:"Language Code",langdir:"Language Direction",style:"Style",id:"ID","merge_cells_title":"Merge Table Cells",bgcolor:"Background Color",bordercolor:"Border Color","align_bottom":"Bottom","align_top":"Top",valign:"Vertical Alignment","cell_type":"Cell Type","cell_title":"Table Cell Properties","row_title":"Table Row Properties","align_middle":"Center","align_right":"Right","align_left":"Left","align_default":"Default",align:"Alignment",border:"Border",cellpadding:"Cell Padding",cellspacing:"Cell Spacing",rows:"Rows",cols:"Columns",height:"Height",width:"Width",title:"Insert/Edit Table",rowtype:"Row Type","advanced_props":"Advanced Properties","general_props":"General Properties","advanced_tab":"Advanced","general_tab":"General","cell_col":"Update all cells in column"});
|
@@ -1,32 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
2
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
-
<head>
|
4
|
-
<title>{#table_dlg.merge_cells_title}</title>
|
5
|
-
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
6
|
-
<script type="text/javascript" src="../../utils/mctabs.js"></script>
|
7
|
-
<script type="text/javascript" src="../../utils/validate.js"></script>
|
8
|
-
<script type="text/javascript" src="js/merge_cells.js"></script>
|
9
|
-
</head>
|
10
|
-
<body style="margin: 8px" role="application">
|
11
|
-
<form onsubmit="MergeCellsDialog.merge();return false;" action="#">
|
12
|
-
<fieldset>
|
13
|
-
<legend>{#table_dlg.merge_cells_title}</legend>
|
14
|
-
<table role="presentation" border="0" cellpadding="0" cellspacing="3" width="100%">
|
15
|
-
<tr>
|
16
|
-
<td><label for="numcols">{#table_dlg.cols}</label>:</td>
|
17
|
-
<td align="right"><input type="text" id="numcols" name="numcols" value="" class="number min1 mceFocus" style="width: 30px" aria-required="true" /></td>
|
18
|
-
</tr>
|
19
|
-
<tr>
|
20
|
-
<td><label for="numrows">{#table_dlg.rows}</label>:</td>
|
21
|
-
<td align="right"><input type="text" id="numrows" name="numrows" value="" class="number min1" style="width: 30px" aria-required="true" /></td>
|
22
|
-
</tr>
|
23
|
-
</table>
|
24
|
-
</fieldset>
|
25
|
-
|
26
|
-
<div class="mceActionPanel">
|
27
|
-
<input type="submit" id="insert" name="insert" value="{#update}" />
|
28
|
-
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
29
|
-
</div>
|
30
|
-
</form>
|
31
|
-
</body>
|
32
|
-
</html>
|
@@ -1,158 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
2
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
-
<head>
|
4
|
-
<title>{#table_dlg.row_title}</title>
|
5
|
-
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
6
|
-
<script type="text/javascript" src="../../utils/mctabs.js"></script>
|
7
|
-
<script type="text/javascript" src="../../utils/form_utils.js"></script>
|
8
|
-
<script type="text/javascript" src="../../utils/validate.js"></script>
|
9
|
-
<script type="text/javascript" src="../../utils/editable_selects.js"></script>
|
10
|
-
<script type="text/javascript" src="js/row.js"></script>
|
11
|
-
<link href="css/row.css" rel="stylesheet" type="text/css" />
|
12
|
-
</head>
|
13
|
-
<body id="tablerow" style="display: none" role="application">
|
14
|
-
<form onsubmit="updateAction();return false;" action="#">
|
15
|
-
<div class="tabs">
|
16
|
-
<ul>
|
17
|
-
<li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#table_dlg.general_tab}</a></span></li>
|
18
|
-
<li id="advanced_tab" aria-controls="advanced_panel"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#table_dlg.advanced_tab}</a></span></li>
|
19
|
-
</ul>
|
20
|
-
</div>
|
21
|
-
|
22
|
-
<div class="panel_wrapper">
|
23
|
-
<div id="general_panel" class="panel current">
|
24
|
-
<fieldset>
|
25
|
-
<legend>{#table_dlg.general_props}</legend>
|
26
|
-
|
27
|
-
<table role="presentation" border="0" cellpadding="4" cellspacing="0">
|
28
|
-
<tr>
|
29
|
-
<td><label for="rowtype">{#table_dlg.rowtype}</label></td>
|
30
|
-
<td class="col2">
|
31
|
-
<select id="rowtype" name="rowtype" class="mceFocus">
|
32
|
-
<option value="thead">{#table_dlg.thead}</option>
|
33
|
-
<option value="tbody">{#table_dlg.tbody}</option>
|
34
|
-
<option value="tfoot">{#table_dlg.tfoot}</option>
|
35
|
-
</select>
|
36
|
-
</td>
|
37
|
-
</tr>
|
38
|
-
|
39
|
-
<tr>
|
40
|
-
<td><label for="align">{#table_dlg.align}</label></td>
|
41
|
-
<td class="col2">
|
42
|
-
<select id="align" name="align">
|
43
|
-
<option value="">{#not_set}</option>
|
44
|
-
<option value="center">{#table_dlg.align_middle}</option>
|
45
|
-
<option value="left">{#table_dlg.align_left}</option>
|
46
|
-
<option value="right">{#table_dlg.align_right}</option>
|
47
|
-
</select>
|
48
|
-
</td>
|
49
|
-
</tr>
|
50
|
-
|
51
|
-
<tr>
|
52
|
-
<td><label for="valign">{#table_dlg.valign}</label></td>
|
53
|
-
<td class="col2">
|
54
|
-
<select id="valign" name="valign">
|
55
|
-
<option value="">{#not_set}</option>
|
56
|
-
<option value="top">{#table_dlg.align_top}</option>
|
57
|
-
<option value="middle">{#table_dlg.align_middle}</option>
|
58
|
-
<option value="bottom">{#table_dlg.align_bottom}</option>
|
59
|
-
</select>
|
60
|
-
</td>
|
61
|
-
</tr>
|
62
|
-
|
63
|
-
<tr id="styleSelectRow">
|
64
|
-
<td><label for="class">{#class_name}</label></td>
|
65
|
-
<td class="col2">
|
66
|
-
<select id="class" name="class" class="mceEditableSelect">
|
67
|
-
<option value="" selected="selected">{#not_set}</option>
|
68
|
-
</select>
|
69
|
-
</td>
|
70
|
-
</tr>
|
71
|
-
|
72
|
-
<tr>
|
73
|
-
<td><label for="height">{#table_dlg.height}</label></td>
|
74
|
-
<td class="col2"><input name="height" type="text" id="height" value="" size="7" maxlength="7" onchange="changedSize();" class="size" /></td>
|
75
|
-
</tr>
|
76
|
-
</table>
|
77
|
-
</fieldset>
|
78
|
-
</div>
|
79
|
-
|
80
|
-
<div id="advanced_panel" class="panel">
|
81
|
-
<fieldset>
|
82
|
-
<legend>{#table_dlg.advanced_props}</legend>
|
83
|
-
|
84
|
-
<table role="presentation" border="0" cellpadding="0" cellspacing="4">
|
85
|
-
<tr>
|
86
|
-
<td class="column1"><label for="id">{#table_dlg.id}</label></td>
|
87
|
-
<td><input id="id" name="id" type="text" value="" style="width: 200px" /></td>
|
88
|
-
</tr>
|
89
|
-
|
90
|
-
<tr>
|
91
|
-
<td><label for="style">{#table_dlg.style}</label></td>
|
92
|
-
<td><input type="text" id="style" name="style" value="" style="width: 200px;" onchange="changedStyle();" /></td>
|
93
|
-
</tr>
|
94
|
-
|
95
|
-
<tr>
|
96
|
-
<td class="column1"><label for="dir">{#table_dlg.langdir}</label></td>
|
97
|
-
<td>
|
98
|
-
<select id="dir" name="dir" style="width: 200px">
|
99
|
-
<option value="">{#not_set}</option>
|
100
|
-
<option value="ltr">{#table_dlg.ltr}</option>
|
101
|
-
<option value="rtl">{#table_dlg.rtl}</option>
|
102
|
-
</select>
|
103
|
-
</td>
|
104
|
-
</tr>
|
105
|
-
|
106
|
-
<tr>
|
107
|
-
<td class="column1"><label for="lang">{#table_dlg.langcode}</label></td>
|
108
|
-
<td>
|
109
|
-
<input id="lang" name="lang" type="text" value="" style="width: 200px" />
|
110
|
-
</td>
|
111
|
-
</tr>
|
112
|
-
|
113
|
-
<tr>
|
114
|
-
<td class="column1"><label for="backgroundimage">{#table_dlg.bgimage}</label></td>
|
115
|
-
<td>
|
116
|
-
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
117
|
-
<tr>
|
118
|
-
<td><input id="backgroundimage" name="backgroundimage" type="text" value="" style="width: 200px" onchange="changedBackgroundImage();" /></td>
|
119
|
-
<td id="backgroundimagebrowsercontainer"> </td>
|
120
|
-
</tr>
|
121
|
-
</table>
|
122
|
-
</td>
|
123
|
-
</tr>
|
124
|
-
|
125
|
-
<tr>
|
126
|
-
<td class="column1"><label for="bgcolor" id="bgcolor_label">{#table_dlg.bgcolor}</label></td>
|
127
|
-
<td>
|
128
|
-
<span role="group" aria-labelledby="bgcolor_label">
|
129
|
-
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
130
|
-
<tr>
|
131
|
-
<td><input id="bgcolor" name="bgcolor" type="text" value="" size="9" onchange="updateColor('bgcolor_pick','bgcolor');changedColor();" /></td>
|
132
|
-
<td id="bgcolor_pickcontainer"> </td>
|
133
|
-
</tr>
|
134
|
-
</table>
|
135
|
-
</span>
|
136
|
-
</td>
|
137
|
-
</tr>
|
138
|
-
</table>
|
139
|
-
</fieldset>
|
140
|
-
</div>
|
141
|
-
</div>
|
142
|
-
|
143
|
-
<div class="mceActionPanel">
|
144
|
-
<div>
|
145
|
-
<select id="action" name="action">
|
146
|
-
<option value="row">{#table_dlg.row_row}</option>
|
147
|
-
<option value="odd">{#table_dlg.row_odd}</option>
|
148
|
-
<option value="even">{#table_dlg.row_even}</option>
|
149
|
-
<option value="all">{#table_dlg.row_all}</option>
|
150
|
-
</select>
|
151
|
-
</div>
|
152
|
-
|
153
|
-
<input type="submit" id="insert" name="insert" value="{#update}" />
|
154
|
-
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
155
|
-
</div>
|
156
|
-
</form>
|
157
|
-
</body>
|
158
|
-
</html>
|