alchemy_cms 2.0.7 → 2.1.beta1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -4
- data/.travis.yml +1 -1
- data/Gemfile +7 -2
- data/README.md +6 -6
- data/Rakefile +26 -18
- data/alchemy_cms.gemspec +14 -14
- data/{assets/stylesheets → app/assets/images/alchemy}/Jcrop.gif +0 -0
- data/{assets/images → app/assets/images/alchemy}/ajax_loader.gif +0 -0
- data/{assets/images → app/assets/images/alchemy}/alchemy-logo.png +0 -0
- data/{assets/images → app/assets/images/alchemy}/flags.png +0 -0
- data/{assets/images → app/assets/images/alchemy}/gui/navi-tab.png +0 -0
- data/{assets/images → app/assets/images/alchemy}/gui/shading_90.png +0 -0
- data/{assets/images → app/assets/images/alchemy}/gui/toggle.png +0 -0
- data/{assets/images → app/assets/images/alchemy}/icons.png +0 -0
- data/{assets/images → app/assets/images/alchemy}/image_loader.gif +0 -0
- data/{assets/images → app/assets/images/alchemy}/jquery-sb/select_arrow.gif +0 -0
- data/{assets/images → app/assets/images/alchemy}/jquery-sb/select_arrow_bg.gif +0 -0
- data/{assets/images → app/assets/images/alchemy}/jquery-sb/select_arrow_bg_hover.gif +0 -0
- data/{assets/images → app/assets/images/alchemy}/placeholder.png +0 -0
- data/{assets/images/gui → app/assets/images/alchemy}/shading.png +0 -0
- data/{assets/images → app/assets/images/alchemy}/swfupload/browse_button.png +0 -0
- data/{assets/stylesheets/default/img → app/assets/images/alchemy}/tabs.gif +0 -0
- data/{assets/images/jquery-ui → app/assets/images/alchemy}/ui-icons_666666_256x240.png +0 -0
- data/app/assets/javascripts/alchemy/alchemy.base.js +212 -0
- data/app/assets/javascripts/alchemy/alchemy.buttons.js +36 -0
- data/app/assets/javascripts/alchemy/alchemy.dirty.js +91 -0
- data/app/assets/javascripts/alchemy/alchemy.dragndrop.js +114 -0
- data/{assets/javascripts → app/assets/javascripts/alchemy}/alchemy.element_editor_selector.js +0 -0
- data/{assets/javascripts → app/assets/javascripts/alchemy}/alchemy.growler.js +0 -0
- data/{assets/javascripts → app/assets/javascripts/alchemy}/alchemy.image_cropper.js +0 -0
- data/app/assets/javascripts/alchemy/alchemy.js +26 -0
- data/app/assets/javascripts/alchemy/alchemy.js_extensions.js +17 -0
- data/{assets/javascripts → app/assets/javascripts/alchemy}/alchemy.link_overlay.js +1 -1
- data/{assets/javascripts → app/assets/javascripts/alchemy}/alchemy.page_sorter.js +0 -0
- data/{assets/javascripts → app/assets/javascripts/alchemy}/alchemy.preview.js +0 -0
- data/app/assets/javascripts/alchemy/alchemy.windows.js +438 -0
- data/app/assets/stylesheets/alchemy/_defaults.scss +160 -0
- data/app/assets/stylesheets/alchemy/alchemy.css +9 -0
- data/{assets/stylesheets/alchemy.css → app/assets/stylesheets/alchemy/base.css.scss} +216 -353
- data/{assets/stylesheets/elements.css → app/assets/stylesheets/alchemy/elements.css.scss} +41 -70
- data/{assets/stylesheets/flags.css → app/assets/stylesheets/alchemy/flags.css.scss} +1 -1
- data/{assets/stylesheets/jquery-ui-1.8.7.alchemy.css → app/assets/stylesheets/alchemy/jquery-ui.alchemy.css} +15 -15
- data/{assets/stylesheets/jquery.Jcrop.css → app/assets/stylesheets/alchemy/jquery.Jcrop.css.scss} +3 -3
- data/{assets/stylesheets/jquery.sb.css → app/assets/stylesheets/alchemy/jquery.sb.css.scss} +19 -29
- data/{assets/stylesheets → app/assets/stylesheets/alchemy}/print.css +6 -1
- data/{assets/stylesheets → app/assets/stylesheets/alchemy}/standard_set.css +0 -0
- data/{assets/stylesheets/alchemy_tinymce_content.css → app/assets/stylesheets/alchemy/tinymce_content.css} +0 -0
- data/{assets/stylesheets/alchemy_tinymce_dialog.css → app/assets/stylesheets/alchemy/tinymce_dialog.css} +2 -2
- data/app/controllers/admin/attachments_controller.rb +2 -8
- data/app/controllers/admin/clipboard_controller.rb +2 -2
- data/app/controllers/admin/contents_controller.rb +4 -16
- data/app/controllers/admin/elements_controller.rb +2 -2
- data/app/controllers/admin/essence_audios_controller.rb +0 -3
- data/app/controllers/admin/essence_files_controller.rb +0 -11
- data/app/controllers/admin/essence_flashes_controller.rb +0 -3
- data/app/controllers/admin/essence_pictures_controller.rb +2 -7
- data/app/controllers/admin/essence_videos_controller.rb +0 -3
- data/app/controllers/admin/languages_controller.rb +4 -10
- data/app/controllers/admin/pages_controller.rb +6 -4
- data/app/controllers/admin/pictures_controller.rb +13 -18
- data/app/controllers/admin/trash_controller.rb +0 -5
- data/app/controllers/admin/users_controller.rb +2 -3
- data/app/controllers/alchemy_controller.rb +18 -30
- data/app/controllers/pages_controller.rb +21 -24
- data/app/helpers/admin/elements_helper.rb +5 -0
- data/app/helpers/admin/pages_helper.rb +36 -1
- data/app/helpers/alchemy_helper.rb +39 -17
- data/app/models/attachment.rb +2 -2
- data/app/models/essence_file.rb +1 -1
- data/app/models/page.rb +1 -1
- data/app/sweepers/pages_sweeper.rb +10 -0
- data/app/views/admin/attachments/destroy.js.erb +4 -0
- data/app/views/admin/clipboard/insert.js.erb +12 -19
- data/app/views/admin/contents/create.js.erb +1 -1
- data/app/views/admin/contents/destroy.js.erb +7 -0
- data/app/views/admin/contents/order.js.erb +6 -0
- data/app/views/admin/elements/_element.html.erb +4 -2
- data/app/views/admin/elements/create.js.erb +19 -26
- data/app/views/admin/elements/fold.js.erb +1 -1
- data/app/views/admin/elements/index.html.erb +1 -1
- data/app/views/admin/essence_files/assign.js.erb +8 -0
- data/app/views/admin/essence_pictures/save_link.js.erb +3 -0
- data/app/views/admin/index.html.erb +37 -27
- data/app/views/admin/languages/destroy.js.erb +1 -0
- data/app/views/admin/pages/_page.html.erb +1 -1
- data/app/views/admin/pages/_sitemap.html.erb +1 -1
- data/app/views/admin/pages/edit.html.erb +2 -2
- data/app/views/admin/pages/update.js.erb +1 -1
- data/app/views/admin/partials/_upload_form.html.erb +11 -11
- data/app/views/admin/pictures/archive_overlay.js.erb +1 -0
- data/app/views/admin/pictures/flush.js.erb +2 -0
- data/app/views/admin/pictures/update.js.erb +1 -0
- data/app/views/admin/trash/clear.js.erb +3 -0
- data/app/views/alchemy/error_notice.js.erb +1 -0
- data/app/views/alchemy/permission_denied.js.erb +2 -0
- data/app/views/alchemy/redirect.js.erb +1 -0
- data/app/views/alchemy/remote_errors.js.erb +3 -0
- data/app/views/alchemy/update.js.erb +5 -0
- data/app/views/essences/_essence_file_editor.html.erb +0 -1
- data/app/views/essences/_essence_file_view.html.erb +1 -5
- data/app/views/essences/_essence_picture_tools.html.erb +1 -1
- data/app/views/layouts/alchemy.html.erb +22 -9
- data/app/views/pages/show.rss.builder +1 -1
- data/config/alchemy/elements.yml +0 -5
- data/config/alchemy/page_layouts.yml +1 -1
- data/config/asset_packages.yml +17 -19
- data/config/authorization_rules.rb +1 -0
- data/config/locales/de.yml +0 -1
- data/config/routes.rb +1 -1
- data/lib/alchemy/tinymce.rb +51 -0
- data/lib/alchemy/version.rb +3 -3
- data/lib/alchemy_cms.rb +4 -2
- data/script/rails +6 -0
- data/spec/controllers/admin/clipboard_controller_spec.rb +15 -13
- data/spec/controllers/admin/contents_controller_spec.rb +4 -4
- data/spec/controllers/admin/trash_controller_spec.rb +6 -9
- data/spec/controllers/pages_controller_spec.rb +9 -8
- data/spec/dummy/Rakefile +1 -1
- data/spec/dummy/app/assets/javascripts/application.js +9 -0
- data/spec/dummy/app/assets/stylesheets/application.css +7 -0
- data/spec/dummy/app/mailers/.gitkeep +0 -0
- data/spec/dummy/app/models/.gitkeep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +3 -3
- data/spec/dummy/config/application.rb +12 -6
- data/spec/dummy/config/database.yml +3 -0
- data/spec/dummy/config/environments/development.rb +7 -3
- data/spec/dummy/config/environments/production.rb +23 -12
- data/spec/dummy/config/environments/test.rb +5 -1
- data/spec/dummy/config/initializers/secret_token.rb +1 -1
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +1 -1
- data/spec/dummy/config/routes.rb +1 -1
- data/spec/dummy/lib/assets/.gitkeep +0 -0
- data/spec/factories.rb +8 -8
- data/spec/helpers/admin/elements_helper_spec.rb +2 -2
- data/spec/helpers/contents_helper_spec.rb +1 -1
- data/spec/helpers/elements_helper_spec.rb +6 -6
- data/spec/helpers/essences_helper_spec.rb +1 -1
- data/spec/helpers/pages_helper_spec.rb +37 -37
- data/spec/integration/pages_controller_spec.rb +29 -26
- data/spec/integration/security_spec.rb +2 -1
- data/spec/models/content_spec.rb +1 -1
- data/spec/models/element_spec.rb +11 -11
- data/spec/models/language_spec.rb +5 -5
- data/spec/models/page_spec.rb +54 -54
- data/spec/models/user_spec.rb +2 -1
- data/spec/routing_spec.rb +1 -1
- data/{assets/javascripts/jquery.js → vendor/assets/javascripts/jquery-1.6.2.min.js} +0 -0
- data/{assets/javascripts/jquery-ui.js → vendor/assets/javascripts/jquery-ui-custom-1.8.16.min.js} +0 -0
- data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.Jcrop.min.js +0 -0
- data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.dialogextend.min.js +7 -7
- data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.in-place-edit.js +0 -0
- data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.sb.min.js +0 -0
- data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.scrollTo-1.4.2-min.js +10 -10
- data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.ui.nestedSortable.js +0 -0
- data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.ui.tabspaging.js +0 -0
- data/{assets → vendor/assets}/javascripts/swfupload/fileprogress.js +202 -202
- data/{assets → vendor/assets}/javascripts/swfupload/handlers.js +171 -171
- data/{assets → vendor/assets}/javascripts/swfupload/queue.js +97 -97
- data/{assets → vendor/assets}/javascripts/swfupload/swfupload.js +980 -980
- data/{assets → vendor/assets}/javascripts/swfupload/swfupload.swf +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/jquery.tinymce.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/langs/de.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/langs/en.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/license.txt +504 -504
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/alchemy_link/editor_plugin.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/alchemy_link/langs/de.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/alchemy_link/langs/en.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/fullscreen/editor_plugin.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/fullscreen/fullscreen.htm +110 -110
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin.js +0 -0
- data/{assets/javascripts/tiny_mce/plugins/inlinepopups/skins/alchemy/window.css → vendor/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/alchemy/window.css.erb} +8 -8
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/inlinepopups/template.htm +387 -387
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/editor_plugin.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/js/pastetext.js +36 -36
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/js/pasteword.js +51 -51
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/langs/de_dlg.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/langs/en_dlg.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/pastetext.htm +26 -26
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/pasteword.htm +21 -21
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/cell.htm +180 -180
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/css/cell.css +16 -16
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/css/row.css +25 -25
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/css/table.css +13 -13
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/editor_plugin.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/js/cell.js +319 -319
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/js/merge_cells.js +27 -27
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/js/row.js +237 -237
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/js/table.js +450 -450
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/langs/de_dlg.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/langs/en_dlg.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/merge_cells.htm +32 -32
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/row.htm +158 -158
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/table.htm +188 -188
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/about.htm +52 -52
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/anchor.htm +26 -26
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/charmap.htm +51 -51
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/color_picker.htm +74 -74
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/editor_template.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/image.htm +80 -80
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/flash.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/icons.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/iframe.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/pagebreak.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/quicktime.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/realmedia.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/shockwave.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/trans.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/video.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/windowsmedia.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/about.js +73 -73
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/anchor.js +43 -43
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/charmap.js +355 -355
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/color_picker.js +329 -329
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/image.js +251 -251
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/link.js +153 -153
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/source_editor.js +56 -56
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/langs/de.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/langs/de_dlg.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/langs/en.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/langs/en_dlg.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/link.htm +57 -57
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/shortcuts.htm +47 -47
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/content.css +50 -50
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/dialog.css +117 -117
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/items.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/progress.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/ui.css +214 -214
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/content.css +48 -48
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css +117 -117
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui.css +217 -217
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +7 -7
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +5 -5
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/source_editor.htm +25 -25
- data/{assets → vendor/assets}/javascripts/tiny_mce/tiny_mce.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/tiny_mce_popup.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/utils/editable_selects.js +70 -70
- data/{assets → vendor/assets}/javascripts/tiny_mce/utils/form_utils.js +210 -210
- data/{assets → vendor/assets}/javascripts/tiny_mce/utils/mctabs.js +161 -161
- data/{assets → vendor/assets}/javascripts/tiny_mce/utils/validate.js +252 -252
- metadata +338 -369
- data/app/views/elements/_download_editor.html.erb +0 -1
- data/app/views/elements/_download_view.html.erb +0 -3
- data/assets/javascripts/alchemy.js +0 -903
- data/assets/javascripts/jquery.rails.js +0 -315
- data/assets/stylesheets/ie6.css +0 -18
- data/config/initializers/tinymce_hammer.rb +0 -31
@@ -1,27 +1,27 @@
|
|
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
|
+
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,237 +1,237 @@
|
|
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
|
-
|
29
|
-
// Any cells selected
|
30
|
-
if (dom.select('td.mceSelected,th.mceSelected', trElm).length == 0) {
|
31
|
-
// Setup form
|
32
|
-
addClassesToList('class', 'table_row_styles');
|
33
|
-
TinyMCE_EditableSelects.init();
|
34
|
-
|
35
|
-
formObj.bgcolor.value = bgcolor;
|
36
|
-
formObj.backgroundimage.value = backgroundimage;
|
37
|
-
formObj.height.value = height;
|
38
|
-
formObj.id.value = id;
|
39
|
-
formObj.lang.value = lang;
|
40
|
-
formObj.style.value = dom.serializeStyle(st);
|
41
|
-
selectByValue(formObj, 'align', align);
|
42
|
-
selectByValue(formObj, 'valign', valign);
|
43
|
-
selectByValue(formObj, 'class', className, true, true);
|
44
|
-
selectByValue(formObj, 'dir', dir);
|
45
|
-
|
46
|
-
// Resize some elements
|
47
|
-
if (isVisible('backgroundimagebrowser'))
|
48
|
-
document.getElementById('backgroundimage').style.width = '180px';
|
49
|
-
|
50
|
-
updateColor('bgcolor_pick', 'bgcolor');
|
51
|
-
} else
|
52
|
-
tinyMCEPopup.dom.hide('action');
|
53
|
-
}
|
54
|
-
|
55
|
-
function updateAction() {
|
56
|
-
var inst = tinyMCEPopup.editor, dom = inst.dom, trElm, tableElm, formObj = document.forms[0];
|
57
|
-
var action = getSelectValue(formObj, 'action');
|
58
|
-
|
59
|
-
if (!AutoValidator.validate(formObj)) {
|
60
|
-
tinyMCEPopup.alert(AutoValidator.getErrorMessages(formObj).join('. ') + '.');
|
61
|
-
return false;
|
62
|
-
}
|
63
|
-
|
64
|
-
tinyMCEPopup.restoreSelection();
|
65
|
-
trElm = dom.getParent(inst.selection.getStart(), "tr");
|
66
|
-
tableElm = dom.getParent(inst.selection.getStart(), "table");
|
67
|
-
|
68
|
-
// Update all selected rows
|
69
|
-
if (dom.select('td.mceSelected,th.mceSelected', trElm).length > 0) {
|
70
|
-
tinymce.each(tableElm.rows, function(tr) {
|
71
|
-
var i;
|
72
|
-
|
73
|
-
for (i = 0; i < tr.cells.length; i++) {
|
74
|
-
if (dom.hasClass(tr.cells[i], 'mceSelected')) {
|
75
|
-
updateRow(tr, true);
|
76
|
-
return;
|
77
|
-
}
|
78
|
-
}
|
79
|
-
});
|
80
|
-
|
81
|
-
inst.addVisual();
|
82
|
-
inst.nodeChanged();
|
83
|
-
inst.execCommand('mceEndUndoLevel');
|
84
|
-
tinyMCEPopup.close();
|
85
|
-
return;
|
86
|
-
}
|
87
|
-
|
88
|
-
switch (action) {
|
89
|
-
case "row":
|
90
|
-
updateRow(trElm);
|
91
|
-
break;
|
92
|
-
|
93
|
-
case "all":
|
94
|
-
var rows = tableElm.getElementsByTagName("tr");
|
95
|
-
|
96
|
-
for (var i=0; i<rows.length; i++)
|
97
|
-
updateRow(rows[i], true);
|
98
|
-
|
99
|
-
break;
|
100
|
-
|
101
|
-
case "odd":
|
102
|
-
case "even":
|
103
|
-
var rows = tableElm.getElementsByTagName("tr");
|
104
|
-
|
105
|
-
for (var i=0; i<rows.length; i++) {
|
106
|
-
if ((i % 2 == 0 && action == "odd") || (i % 2 != 0 && action == "even"))
|
107
|
-
updateRow(rows[i], true, true);
|
108
|
-
}
|
109
|
-
|
110
|
-
break;
|
111
|
-
}
|
112
|
-
|
113
|
-
inst.addVisual();
|
114
|
-
inst.nodeChanged();
|
115
|
-
inst.execCommand('mceEndUndoLevel');
|
116
|
-
tinyMCEPopup.close();
|
117
|
-
}
|
118
|
-
|
119
|
-
function updateRow(tr_elm, skip_id, skip_parent) {
|
120
|
-
var inst = tinyMCEPopup.editor;
|
121
|
-
var formObj = document.forms[0];
|
122
|
-
var dom = inst.dom;
|
123
|
-
var curRowType = tr_elm.parentNode.nodeName.toLowerCase();
|
124
|
-
var rowtype = getSelectValue(formObj, 'rowtype');
|
125
|
-
var doc = inst.getDoc();
|
126
|
-
|
127
|
-
// Update row element
|
128
|
-
if (!skip_id)
|
129
|
-
dom.setAttrib(tr_elm, 'id', formObj.id.value);
|
130
|
-
|
131
|
-
dom.setAttrib(tr_elm, 'align', getSelectValue(formObj, 'align'));
|
132
|
-
dom.setAttrib(tr_elm, 'vAlign', getSelectValue(formObj, 'valign'));
|
133
|
-
dom.setAttrib(tr_elm, 'lang', formObj.lang.value);
|
134
|
-
dom.setAttrib(tr_elm, 'dir', getSelectValue(formObj, 'dir'));
|
135
|
-
dom.setAttrib(tr_elm, 'style', dom.serializeStyle(dom.parseStyle(formObj.style.value)));
|
136
|
-
dom.setAttrib(tr_elm, 'class', getSelectValue(formObj, 'class'));
|
137
|
-
|
138
|
-
// Clear deprecated attributes
|
139
|
-
dom.setAttrib(tr_elm, 'background', '');
|
140
|
-
dom.setAttrib(tr_elm, 'bgColor', '');
|
141
|
-
dom.setAttrib(tr_elm, 'height', '');
|
142
|
-
|
143
|
-
// Set styles
|
144
|
-
tr_elm.style.height = getCSSSize(formObj.height.value);
|
145
|
-
tr_elm.style.backgroundColor = formObj.bgcolor.value;
|
146
|
-
|
147
|
-
if (formObj.backgroundimage.value != "")
|
148
|
-
tr_elm.style.backgroundImage = "url('" + formObj.backgroundimage.value + "')";
|
149
|
-
else
|
150
|
-
tr_elm.style.backgroundImage = '';
|
151
|
-
|
152
|
-
// Setup new rowtype
|
153
|
-
if (curRowType != rowtype && !skip_parent) {
|
154
|
-
// first, clone the node we are working on
|
155
|
-
var newRow = tr_elm.cloneNode(1);
|
156
|
-
|
157
|
-
// next, find the parent of its new destination (creating it if necessary)
|
158
|
-
var theTable = dom.getParent(tr_elm, "table");
|
159
|
-
var dest = rowtype;
|
160
|
-
var newParent = null;
|
161
|
-
for (var i = 0; i < theTable.childNodes.length; i++) {
|
162
|
-
if (theTable.childNodes[i].nodeName.toLowerCase() == dest)
|
163
|
-
newParent = theTable.childNodes[i];
|
164
|
-
}
|
165
|
-
|
166
|
-
if (newParent == null) {
|
167
|
-
newParent = doc.createElement(dest);
|
168
|
-
|
169
|
-
if (theTable.firstChild.nodeName == 'CAPTION')
|
170
|
-
inst.dom.insertAfter(newParent, theTable.firstChild);
|
171
|
-
else
|
172
|
-
theTable.insertBefore(newParent, theTable.firstChild);
|
173
|
-
}
|
174
|
-
|
175
|
-
// append the row to the new parent
|
176
|
-
newParent.appendChild(newRow);
|
177
|
-
|
178
|
-
// remove the original
|
179
|
-
tr_elm.parentNode.removeChild(tr_elm);
|
180
|
-
|
181
|
-
// set tr_elm to the new node
|
182
|
-
tr_elm = newRow;
|
183
|
-
}
|
184
|
-
|
185
|
-
dom.setAttrib(tr_elm, 'style', dom.serializeStyle(dom.parseStyle(tr_elm.style.cssText)));
|
186
|
-
}
|
187
|
-
|
188
|
-
function changedBackgroundImage() {
|
189
|
-
var formObj = document.forms[0], dom = tinyMCEPopup.editor.dom;
|
190
|
-
var st = dom.parseStyle(formObj.style.value);
|
191
|
-
|
192
|
-
st['background-image'] = "url('" + formObj.backgroundimage.value + "')";
|
193
|
-
|
194
|
-
formObj.style.value = dom.serializeStyle(st);
|
195
|
-
}
|
196
|
-
|
197
|
-
function changedStyle() {
|
198
|
-
var formObj = document.forms[0], dom = tinyMCEPopup.editor.dom;
|
199
|
-
var st = dom.parseStyle(formObj.style.value);
|
200
|
-
|
201
|
-
if (st['background-image'])
|
202
|
-
formObj.backgroundimage.value = st['background-image'].replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1");
|
203
|
-
else
|
204
|
-
formObj.backgroundimage.value = '';
|
205
|
-
|
206
|
-
if (st['height'])
|
207
|
-
formObj.height.value = trimSize(st['height']);
|
208
|
-
|
209
|
-
if (st['background-color']) {
|
210
|
-
formObj.bgcolor.value = st['background-color'];
|
211
|
-
updateColor('bgcolor_pick','bgcolor');
|
212
|
-
}
|
213
|
-
}
|
214
|
-
|
215
|
-
function changedSize() {
|
216
|
-
var formObj = document.forms[0], dom = tinyMCEPopup.editor.dom;
|
217
|
-
var st = dom.parseStyle(formObj.style.value);
|
218
|
-
|
219
|
-
var height = formObj.height.value;
|
220
|
-
if (height != "")
|
221
|
-
st['height'] = getCSSSize(height);
|
222
|
-
else
|
223
|
-
st['height'] = "";
|
224
|
-
|
225
|
-
formObj.style.value = dom.serializeStyle(st);
|
226
|
-
}
|
227
|
-
|
228
|
-
function changedColor() {
|
229
|
-
var formObj = document.forms[0], dom = tinyMCEPopup.editor.dom;
|
230
|
-
var st = dom.parseStyle(formObj.style.value);
|
231
|
-
|
232
|
-
st['background-color'] = formObj.bgcolor.value;
|
233
|
-
|
234
|
-
formObj.style.value = dom.serializeStyle(st);
|
235
|
-
}
|
236
|
-
|
237
|
-
tinyMCEPopup.onInit.add(init);
|
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
|
+
|
29
|
+
// Any cells selected
|
30
|
+
if (dom.select('td.mceSelected,th.mceSelected', trElm).length == 0) {
|
31
|
+
// Setup form
|
32
|
+
addClassesToList('class', 'table_row_styles');
|
33
|
+
TinyMCE_EditableSelects.init();
|
34
|
+
|
35
|
+
formObj.bgcolor.value = bgcolor;
|
36
|
+
formObj.backgroundimage.value = backgroundimage;
|
37
|
+
formObj.height.value = height;
|
38
|
+
formObj.id.value = id;
|
39
|
+
formObj.lang.value = lang;
|
40
|
+
formObj.style.value = dom.serializeStyle(st);
|
41
|
+
selectByValue(formObj, 'align', align);
|
42
|
+
selectByValue(formObj, 'valign', valign);
|
43
|
+
selectByValue(formObj, 'class', className, true, true);
|
44
|
+
selectByValue(formObj, 'dir', dir);
|
45
|
+
|
46
|
+
// Resize some elements
|
47
|
+
if (isVisible('backgroundimagebrowser'))
|
48
|
+
document.getElementById('backgroundimage').style.width = '180px';
|
49
|
+
|
50
|
+
updateColor('bgcolor_pick', 'bgcolor');
|
51
|
+
} else
|
52
|
+
tinyMCEPopup.dom.hide('action');
|
53
|
+
}
|
54
|
+
|
55
|
+
function updateAction() {
|
56
|
+
var inst = tinyMCEPopup.editor, dom = inst.dom, trElm, tableElm, formObj = document.forms[0];
|
57
|
+
var action = getSelectValue(formObj, 'action');
|
58
|
+
|
59
|
+
if (!AutoValidator.validate(formObj)) {
|
60
|
+
tinyMCEPopup.alert(AutoValidator.getErrorMessages(formObj).join('. ') + '.');
|
61
|
+
return false;
|
62
|
+
}
|
63
|
+
|
64
|
+
tinyMCEPopup.restoreSelection();
|
65
|
+
trElm = dom.getParent(inst.selection.getStart(), "tr");
|
66
|
+
tableElm = dom.getParent(inst.selection.getStart(), "table");
|
67
|
+
|
68
|
+
// Update all selected rows
|
69
|
+
if (dom.select('td.mceSelected,th.mceSelected', trElm).length > 0) {
|
70
|
+
tinymce.each(tableElm.rows, function(tr) {
|
71
|
+
var i;
|
72
|
+
|
73
|
+
for (i = 0; i < tr.cells.length; i++) {
|
74
|
+
if (dom.hasClass(tr.cells[i], 'mceSelected')) {
|
75
|
+
updateRow(tr, true);
|
76
|
+
return;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
});
|
80
|
+
|
81
|
+
inst.addVisual();
|
82
|
+
inst.nodeChanged();
|
83
|
+
inst.execCommand('mceEndUndoLevel');
|
84
|
+
tinyMCEPopup.close();
|
85
|
+
return;
|
86
|
+
}
|
87
|
+
|
88
|
+
switch (action) {
|
89
|
+
case "row":
|
90
|
+
updateRow(trElm);
|
91
|
+
break;
|
92
|
+
|
93
|
+
case "all":
|
94
|
+
var rows = tableElm.getElementsByTagName("tr");
|
95
|
+
|
96
|
+
for (var i=0; i<rows.length; i++)
|
97
|
+
updateRow(rows[i], true);
|
98
|
+
|
99
|
+
break;
|
100
|
+
|
101
|
+
case "odd":
|
102
|
+
case "even":
|
103
|
+
var rows = tableElm.getElementsByTagName("tr");
|
104
|
+
|
105
|
+
for (var i=0; i<rows.length; i++) {
|
106
|
+
if ((i % 2 == 0 && action == "odd") || (i % 2 != 0 && action == "even"))
|
107
|
+
updateRow(rows[i], true, true);
|
108
|
+
}
|
109
|
+
|
110
|
+
break;
|
111
|
+
}
|
112
|
+
|
113
|
+
inst.addVisual();
|
114
|
+
inst.nodeChanged();
|
115
|
+
inst.execCommand('mceEndUndoLevel');
|
116
|
+
tinyMCEPopup.close();
|
117
|
+
}
|
118
|
+
|
119
|
+
function updateRow(tr_elm, skip_id, skip_parent) {
|
120
|
+
var inst = tinyMCEPopup.editor;
|
121
|
+
var formObj = document.forms[0];
|
122
|
+
var dom = inst.dom;
|
123
|
+
var curRowType = tr_elm.parentNode.nodeName.toLowerCase();
|
124
|
+
var rowtype = getSelectValue(formObj, 'rowtype');
|
125
|
+
var doc = inst.getDoc();
|
126
|
+
|
127
|
+
// Update row element
|
128
|
+
if (!skip_id)
|
129
|
+
dom.setAttrib(tr_elm, 'id', formObj.id.value);
|
130
|
+
|
131
|
+
dom.setAttrib(tr_elm, 'align', getSelectValue(formObj, 'align'));
|
132
|
+
dom.setAttrib(tr_elm, 'vAlign', getSelectValue(formObj, 'valign'));
|
133
|
+
dom.setAttrib(tr_elm, 'lang', formObj.lang.value);
|
134
|
+
dom.setAttrib(tr_elm, 'dir', getSelectValue(formObj, 'dir'));
|
135
|
+
dom.setAttrib(tr_elm, 'style', dom.serializeStyle(dom.parseStyle(formObj.style.value)));
|
136
|
+
dom.setAttrib(tr_elm, 'class', getSelectValue(formObj, 'class'));
|
137
|
+
|
138
|
+
// Clear deprecated attributes
|
139
|
+
dom.setAttrib(tr_elm, 'background', '');
|
140
|
+
dom.setAttrib(tr_elm, 'bgColor', '');
|
141
|
+
dom.setAttrib(tr_elm, 'height', '');
|
142
|
+
|
143
|
+
// Set styles
|
144
|
+
tr_elm.style.height = getCSSSize(formObj.height.value);
|
145
|
+
tr_elm.style.backgroundColor = formObj.bgcolor.value;
|
146
|
+
|
147
|
+
if (formObj.backgroundimage.value != "")
|
148
|
+
tr_elm.style.backgroundImage = "url('" + formObj.backgroundimage.value + "')";
|
149
|
+
else
|
150
|
+
tr_elm.style.backgroundImage = '';
|
151
|
+
|
152
|
+
// Setup new rowtype
|
153
|
+
if (curRowType != rowtype && !skip_parent) {
|
154
|
+
// first, clone the node we are working on
|
155
|
+
var newRow = tr_elm.cloneNode(1);
|
156
|
+
|
157
|
+
// next, find the parent of its new destination (creating it if necessary)
|
158
|
+
var theTable = dom.getParent(tr_elm, "table");
|
159
|
+
var dest = rowtype;
|
160
|
+
var newParent = null;
|
161
|
+
for (var i = 0; i < theTable.childNodes.length; i++) {
|
162
|
+
if (theTable.childNodes[i].nodeName.toLowerCase() == dest)
|
163
|
+
newParent = theTable.childNodes[i];
|
164
|
+
}
|
165
|
+
|
166
|
+
if (newParent == null) {
|
167
|
+
newParent = doc.createElement(dest);
|
168
|
+
|
169
|
+
if (theTable.firstChild.nodeName == 'CAPTION')
|
170
|
+
inst.dom.insertAfter(newParent, theTable.firstChild);
|
171
|
+
else
|
172
|
+
theTable.insertBefore(newParent, theTable.firstChild);
|
173
|
+
}
|
174
|
+
|
175
|
+
// append the row to the new parent
|
176
|
+
newParent.appendChild(newRow);
|
177
|
+
|
178
|
+
// remove the original
|
179
|
+
tr_elm.parentNode.removeChild(tr_elm);
|
180
|
+
|
181
|
+
// set tr_elm to the new node
|
182
|
+
tr_elm = newRow;
|
183
|
+
}
|
184
|
+
|
185
|
+
dom.setAttrib(tr_elm, 'style', dom.serializeStyle(dom.parseStyle(tr_elm.style.cssText)));
|
186
|
+
}
|
187
|
+
|
188
|
+
function changedBackgroundImage() {
|
189
|
+
var formObj = document.forms[0], dom = tinyMCEPopup.editor.dom;
|
190
|
+
var st = dom.parseStyle(formObj.style.value);
|
191
|
+
|
192
|
+
st['background-image'] = "url('" + formObj.backgroundimage.value + "')";
|
193
|
+
|
194
|
+
formObj.style.value = dom.serializeStyle(st);
|
195
|
+
}
|
196
|
+
|
197
|
+
function changedStyle() {
|
198
|
+
var formObj = document.forms[0], dom = tinyMCEPopup.editor.dom;
|
199
|
+
var st = dom.parseStyle(formObj.style.value);
|
200
|
+
|
201
|
+
if (st['background-image'])
|
202
|
+
formObj.backgroundimage.value = st['background-image'].replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1");
|
203
|
+
else
|
204
|
+
formObj.backgroundimage.value = '';
|
205
|
+
|
206
|
+
if (st['height'])
|
207
|
+
formObj.height.value = trimSize(st['height']);
|
208
|
+
|
209
|
+
if (st['background-color']) {
|
210
|
+
formObj.bgcolor.value = st['background-color'];
|
211
|
+
updateColor('bgcolor_pick','bgcolor');
|
212
|
+
}
|
213
|
+
}
|
214
|
+
|
215
|
+
function changedSize() {
|
216
|
+
var formObj = document.forms[0], dom = tinyMCEPopup.editor.dom;
|
217
|
+
var st = dom.parseStyle(formObj.style.value);
|
218
|
+
|
219
|
+
var height = formObj.height.value;
|
220
|
+
if (height != "")
|
221
|
+
st['height'] = getCSSSize(height);
|
222
|
+
else
|
223
|
+
st['height'] = "";
|
224
|
+
|
225
|
+
formObj.style.value = dom.serializeStyle(st);
|
226
|
+
}
|
227
|
+
|
228
|
+
function changedColor() {
|
229
|
+
var formObj = document.forms[0], dom = tinyMCEPopup.editor.dom;
|
230
|
+
var st = dom.parseStyle(formObj.style.value);
|
231
|
+
|
232
|
+
st['background-color'] = formObj.bgcolor.value;
|
233
|
+
|
234
|
+
formObj.style.value = dom.serializeStyle(st);
|
235
|
+
}
|
236
|
+
|
237
|
+
tinyMCEPopup.onInit.add(init);
|