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
File without changes
|
@@ -1,36 +1,36 @@
|
|
1
|
-
tinyMCEPopup.requireLangPack();
|
2
|
-
|
3
|
-
var PasteTextDialog = {
|
4
|
-
init : function() {
|
5
|
-
this.resize();
|
6
|
-
},
|
7
|
-
|
8
|
-
insert : function() {
|
9
|
-
var h = tinyMCEPopup.dom.encode(document.getElementById('content').value), lines;
|
10
|
-
|
11
|
-
// Convert linebreaks into paragraphs
|
12
|
-
if (document.getElementById('linebreaks').checked) {
|
13
|
-
lines = h.split(/\r?\n/);
|
14
|
-
if (lines.length > 1) {
|
15
|
-
h = '';
|
16
|
-
tinymce.each(lines, function(row) {
|
17
|
-
h += '<p>' + row + '</p>';
|
18
|
-
});
|
19
|
-
}
|
20
|
-
}
|
21
|
-
|
22
|
-
tinyMCEPopup.editor.execCommand('mceInsertClipboardContent', false, {content : h});
|
23
|
-
tinyMCEPopup.close();
|
24
|
-
},
|
25
|
-
|
26
|
-
resize : function() {
|
27
|
-
var vp = tinyMCEPopup.dom.getViewPort(window), el;
|
28
|
-
|
29
|
-
el = document.getElementById('content');
|
30
|
-
|
31
|
-
el.style.width = (vp.w - 20) + 'px';
|
32
|
-
el.style.height = (vp.h - 90) + 'px';
|
33
|
-
}
|
34
|
-
};
|
35
|
-
|
36
|
-
tinyMCEPopup.onInit.add(PasteTextDialog.init, PasteTextDialog);
|
1
|
+
tinyMCEPopup.requireLangPack();
|
2
|
+
|
3
|
+
var PasteTextDialog = {
|
4
|
+
init : function() {
|
5
|
+
this.resize();
|
6
|
+
},
|
7
|
+
|
8
|
+
insert : function() {
|
9
|
+
var h = tinyMCEPopup.dom.encode(document.getElementById('content').value), lines;
|
10
|
+
|
11
|
+
// Convert linebreaks into paragraphs
|
12
|
+
if (document.getElementById('linebreaks').checked) {
|
13
|
+
lines = h.split(/\r?\n/);
|
14
|
+
if (lines.length > 1) {
|
15
|
+
h = '';
|
16
|
+
tinymce.each(lines, function(row) {
|
17
|
+
h += '<p>' + row + '</p>';
|
18
|
+
});
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
tinyMCEPopup.editor.execCommand('mceInsertClipboardContent', false, {content : h});
|
23
|
+
tinyMCEPopup.close();
|
24
|
+
},
|
25
|
+
|
26
|
+
resize : function() {
|
27
|
+
var vp = tinyMCEPopup.dom.getViewPort(window), el;
|
28
|
+
|
29
|
+
el = document.getElementById('content');
|
30
|
+
|
31
|
+
el.style.width = (vp.w - 20) + 'px';
|
32
|
+
el.style.height = (vp.h - 90) + 'px';
|
33
|
+
}
|
34
|
+
};
|
35
|
+
|
36
|
+
tinyMCEPopup.onInit.add(PasteTextDialog.init, PasteTextDialog);
|
@@ -1,51 +1,51 @@
|
|
1
|
-
tinyMCEPopup.requireLangPack();
|
2
|
-
|
3
|
-
var PasteWordDialog = {
|
4
|
-
init : function() {
|
5
|
-
var ed = tinyMCEPopup.editor, el = document.getElementById('iframecontainer'), ifr, doc, css, cssHTML = '';
|
6
|
-
|
7
|
-
// Create iframe
|
8
|
-
el.innerHTML = '<iframe id="iframe" src="javascript:\'\';" frameBorder="0" style="border: 1px solid gray"></iframe>';
|
9
|
-
ifr = document.getElementById('iframe');
|
10
|
-
doc = ifr.contentWindow.document;
|
11
|
-
|
12
|
-
// Force absolute CSS urls
|
13
|
-
css = [ed.baseURI.toAbsolute("themes/" + ed.settings.theme + "/skins/" + ed.settings.skin + "/content.css")];
|
14
|
-
css = css.concat(tinymce.explode(ed.settings.content_css) || []);
|
15
|
-
tinymce.each(css, function(u) {
|
16
|
-
cssHTML += '<link href="' + ed.documentBaseURI.toAbsolute('' + u) + '" rel="stylesheet" type="text/css" />';
|
17
|
-
});
|
18
|
-
|
19
|
-
// Write content into iframe
|
20
|
-
doc.open();
|
21
|
-
doc.write('<html><head>' + cssHTML + '</head><body class="mceContentBody" spellcheck="false"></body></html>');
|
22
|
-
doc.close();
|
23
|
-
|
24
|
-
doc.designMode = 'on';
|
25
|
-
this.resize();
|
26
|
-
|
27
|
-
window.setTimeout(function() {
|
28
|
-
ifr.contentWindow.focus();
|
29
|
-
}, 10);
|
30
|
-
},
|
31
|
-
|
32
|
-
insert : function() {
|
33
|
-
var h = document.getElementById('iframe').contentWindow.document.body.innerHTML;
|
34
|
-
|
35
|
-
tinyMCEPopup.editor.execCommand('mceInsertClipboardContent', false, {content : h, wordContent : true});
|
36
|
-
tinyMCEPopup.close();
|
37
|
-
},
|
38
|
-
|
39
|
-
resize : function() {
|
40
|
-
var vp = tinyMCEPopup.dom.getViewPort(window), el;
|
41
|
-
|
42
|
-
el = document.getElementById('iframe');
|
43
|
-
|
44
|
-
if (el) {
|
45
|
-
el.style.width = (vp.w - 20) + 'px';
|
46
|
-
el.style.height = (vp.h - 90) + 'px';
|
47
|
-
}
|
48
|
-
}
|
49
|
-
};
|
50
|
-
|
51
|
-
tinyMCEPopup.onInit.add(PasteWordDialog.init, PasteWordDialog);
|
1
|
+
tinyMCEPopup.requireLangPack();
|
2
|
+
|
3
|
+
var PasteWordDialog = {
|
4
|
+
init : function() {
|
5
|
+
var ed = tinyMCEPopup.editor, el = document.getElementById('iframecontainer'), ifr, doc, css, cssHTML = '';
|
6
|
+
|
7
|
+
// Create iframe
|
8
|
+
el.innerHTML = '<iframe id="iframe" src="javascript:\'\';" frameBorder="0" style="border: 1px solid gray"></iframe>';
|
9
|
+
ifr = document.getElementById('iframe');
|
10
|
+
doc = ifr.contentWindow.document;
|
11
|
+
|
12
|
+
// Force absolute CSS urls
|
13
|
+
css = [ed.baseURI.toAbsolute("themes/" + ed.settings.theme + "/skins/" + ed.settings.skin + "/content.css")];
|
14
|
+
css = css.concat(tinymce.explode(ed.settings.content_css) || []);
|
15
|
+
tinymce.each(css, function(u) {
|
16
|
+
cssHTML += '<link href="' + ed.documentBaseURI.toAbsolute('' + u) + '" rel="stylesheet" type="text/css" />';
|
17
|
+
});
|
18
|
+
|
19
|
+
// Write content into iframe
|
20
|
+
doc.open();
|
21
|
+
doc.write('<html><head>' + cssHTML + '</head><body class="mceContentBody" spellcheck="false"></body></html>');
|
22
|
+
doc.close();
|
23
|
+
|
24
|
+
doc.designMode = 'on';
|
25
|
+
this.resize();
|
26
|
+
|
27
|
+
window.setTimeout(function() {
|
28
|
+
ifr.contentWindow.focus();
|
29
|
+
}, 10);
|
30
|
+
},
|
31
|
+
|
32
|
+
insert : function() {
|
33
|
+
var h = document.getElementById('iframe').contentWindow.document.body.innerHTML;
|
34
|
+
|
35
|
+
tinyMCEPopup.editor.execCommand('mceInsertClipboardContent', false, {content : h, wordContent : true});
|
36
|
+
tinyMCEPopup.close();
|
37
|
+
},
|
38
|
+
|
39
|
+
resize : function() {
|
40
|
+
var vp = tinyMCEPopup.dom.getViewPort(window), el;
|
41
|
+
|
42
|
+
el = document.getElementById('iframe');
|
43
|
+
|
44
|
+
if (el) {
|
45
|
+
el.style.width = (vp.w - 20) + 'px';
|
46
|
+
el.style.height = (vp.h - 90) + 'px';
|
47
|
+
}
|
48
|
+
}
|
49
|
+
};
|
50
|
+
|
51
|
+
tinyMCEPopup.onInit.add(PasteWordDialog.init, PasteWordDialog);
|
File without changes
|
File without changes
|
@@ -1,27 +1,27 @@
|
|
1
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
2
|
-
<head>
|
3
|
-
<title>{#paste.paste_text_desc}</title>
|
4
|
-
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
5
|
-
<script type="text/javascript" src="js/pastetext.js"></script>
|
6
|
-
</head>
|
7
|
-
<body onresize="PasteTextDialog.resize();" style="display:none; overflow:hidden;">
|
8
|
-
<form name="source" onsubmit="return PasteTextDialog.insert();" action="#">
|
9
|
-
<div style="float: left" class="title">{#paste.paste_text_desc}</div>
|
10
|
-
|
11
|
-
<div style="float: right">
|
12
|
-
<input type="checkbox" name="linebreaks" id="linebreaks" class="wordWrapCode" checked="checked" /><label for="linebreaks">{#paste_dlg.text_linebreaks}</label>
|
13
|
-
</div>
|
14
|
-
|
15
|
-
<br style="clear: both" />
|
16
|
-
|
17
|
-
<div>{#paste_dlg.text_title}</div>
|
18
|
-
|
19
|
-
<textarea id="content" name="content" rows="15" cols="100" style="width: 100%; height: 100%; font-family: 'Courier New',Courier,mono; font-size: 12px;" dir="ltr" wrap="soft" class="mceFocus"></textarea>
|
20
|
-
|
21
|
-
<div class="mceActionPanel">
|
22
|
-
<input type="submit" name="insert" value="{#insert}" id="insert" />
|
23
|
-
<input type="button" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" id="cancel" />
|
24
|
-
</div>
|
25
|
-
</form>
|
26
|
-
</body>
|
1
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
2
|
+
<head>
|
3
|
+
<title>{#paste.paste_text_desc}</title>
|
4
|
+
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
5
|
+
<script type="text/javascript" src="js/pastetext.js"></script>
|
6
|
+
</head>
|
7
|
+
<body onresize="PasteTextDialog.resize();" style="display:none; overflow:hidden;">
|
8
|
+
<form name="source" onsubmit="return PasteTextDialog.insert();" action="#">
|
9
|
+
<div style="float: left" class="title">{#paste.paste_text_desc}</div>
|
10
|
+
|
11
|
+
<div style="float: right">
|
12
|
+
<input type="checkbox" name="linebreaks" id="linebreaks" class="wordWrapCode" checked="checked" /><label for="linebreaks">{#paste_dlg.text_linebreaks}</label>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<br style="clear: both" />
|
16
|
+
|
17
|
+
<div>{#paste_dlg.text_title}</div>
|
18
|
+
|
19
|
+
<textarea id="content" name="content" rows="15" cols="100" style="width: 100%; height: 100%; font-family: 'Courier New',Courier,mono; font-size: 12px;" dir="ltr" wrap="soft" class="mceFocus"></textarea>
|
20
|
+
|
21
|
+
<div class="mceActionPanel">
|
22
|
+
<input type="submit" name="insert" value="{#insert}" id="insert" />
|
23
|
+
<input type="button" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" id="cancel" />
|
24
|
+
</div>
|
25
|
+
</form>
|
26
|
+
</body>
|
27
27
|
</html>
|
@@ -1,21 +1,21 @@
|
|
1
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
2
|
-
<head>
|
3
|
-
<title>{#paste.paste_word_desc}</title>
|
4
|
-
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
5
|
-
<script type="text/javascript" src="js/pasteword.js"></script>
|
6
|
-
</head>
|
7
|
-
<body onresize="PasteWordDialog.resize();" style="display:none; overflow:hidden;">
|
8
|
-
<form name="source" onsubmit="return PasteWordDialog.insert();" action="#">
|
9
|
-
<div class="title">{#paste.paste_word_desc}</div>
|
10
|
-
|
11
|
-
<div>{#paste_dlg.word_title}</div>
|
12
|
-
|
13
|
-
<div id="iframecontainer"></div>
|
14
|
-
|
15
|
-
<div class="mceActionPanel">
|
16
|
-
<input type="submit" id="insert" name="insert" value="{#insert}" />
|
17
|
-
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
18
|
-
</div>
|
19
|
-
</form>
|
20
|
-
</body>
|
21
|
-
</html>
|
1
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
2
|
+
<head>
|
3
|
+
<title>{#paste.paste_word_desc}</title>
|
4
|
+
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
5
|
+
<script type="text/javascript" src="js/pasteword.js"></script>
|
6
|
+
</head>
|
7
|
+
<body onresize="PasteWordDialog.resize();" style="display:none; overflow:hidden;">
|
8
|
+
<form name="source" onsubmit="return PasteWordDialog.insert();" action="#">
|
9
|
+
<div class="title">{#paste.paste_word_desc}</div>
|
10
|
+
|
11
|
+
<div>{#paste_dlg.word_title}</div>
|
12
|
+
|
13
|
+
<div id="iframecontainer"></div>
|
14
|
+
|
15
|
+
<div class="mceActionPanel">
|
16
|
+
<input type="submit" id="insert" name="insert" value="{#insert}" />
|
17
|
+
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
18
|
+
</div>
|
19
|
+
</form>
|
20
|
+
</body>
|
21
|
+
</html>
|
@@ -1,180 +1,180 @@
|
|
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.cell_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/cell.js"></script>
|
11
|
-
<link href="css/cell.css" rel="stylesheet" type="text/css" />
|
12
|
-
</head>
|
13
|
-
<body id="tablecell" 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="align">{#table_dlg.align}</label></td>
|
30
|
-
<td>
|
31
|
-
<select id="align" name="align" class="mceFocus">
|
32
|
-
<option value="">{#not_set}</option>
|
33
|
-
<option value="center">{#table_dlg.align_middle}</option>
|
34
|
-
<option value="left">{#table_dlg.align_left}</option>
|
35
|
-
<option value="right">{#table_dlg.align_right}</option>
|
36
|
-
</select>
|
37
|
-
</td>
|
38
|
-
|
39
|
-
<td><label for="celltype">{#table_dlg.cell_type}</label></td>
|
40
|
-
<td>
|
41
|
-
<select id="celltype" name="celltype">
|
42
|
-
<option value="td">{#table_dlg.td}</option>
|
43
|
-
<option value="th">{#table_dlg.th}</option>
|
44
|
-
</select>
|
45
|
-
</td>
|
46
|
-
</tr>
|
47
|
-
|
48
|
-
<tr>
|
49
|
-
<td><label for="valign">{#table_dlg.valign}</label></td>
|
50
|
-
<td>
|
51
|
-
<select id="valign" name="valign">
|
52
|
-
<option value="">{#not_set}</option>
|
53
|
-
<option value="top">{#table_dlg.align_top}</option>
|
54
|
-
<option value="middle">{#table_dlg.align_middle}</option>
|
55
|
-
<option value="bottom">{#table_dlg.align_bottom}</option>
|
56
|
-
</select>
|
57
|
-
</td>
|
58
|
-
|
59
|
-
<td><label for="scope">{#table_dlg.scope}</label></td>
|
60
|
-
<td>
|
61
|
-
<select id="scope" name="scope">
|
62
|
-
<option value="">{#not_set}</option>
|
63
|
-
<option value="col">{#table.col}</option>
|
64
|
-
<option value="row">{#table.row}</option>
|
65
|
-
<option value="rowgroup">{#table_dlg.rowgroup}</option>
|
66
|
-
<option value="colgroup">{#table_dlg.colgroup}</option>
|
67
|
-
</select>
|
68
|
-
</td>
|
69
|
-
|
70
|
-
</tr>
|
71
|
-
|
72
|
-
<tr>
|
73
|
-
<td><label for="width">{#table_dlg.width}</label></td>
|
74
|
-
<td><input id="width" name="width" type="text" value="" size="7" maxlength="7" onchange="changedSize();" class="size" /></td>
|
75
|
-
|
76
|
-
<td><label for="height">{#table_dlg.height}</label></td>
|
77
|
-
<td><input id="height" name="height" type="text" value="" size="7" maxlength="7" onchange="changedSize();" class="size" /></td>
|
78
|
-
</tr>
|
79
|
-
|
80
|
-
<tr id="styleSelectRow">
|
81
|
-
<td><label for="class">{#class_name}</label></td>
|
82
|
-
<td colspan="3">
|
83
|
-
<select id="class" name="class" class="mceEditableSelect">
|
84
|
-
<option value="" selected="selected">{#not_set}</option>
|
85
|
-
</select>
|
86
|
-
</td>
|
87
|
-
</tr>
|
88
|
-
</table>
|
89
|
-
</fieldset>
|
90
|
-
</div>
|
91
|
-
|
92
|
-
<div id="advanced_panel" class="panel">
|
93
|
-
<fieldset>
|
94
|
-
<legend>{#table_dlg.advanced_props}</legend>
|
95
|
-
|
96
|
-
<table role="presentation" border="0" cellpadding="0" cellspacing="4">
|
97
|
-
<tr>
|
98
|
-
<td class="column1"><label for="id">{#table_dlg.id}</label></td>
|
99
|
-
<td><input id="id" name="id" type="text" value="" style="width: 200px" /></td>
|
100
|
-
</tr>
|
101
|
-
|
102
|
-
<tr>
|
103
|
-
<td><label for="style">{#table_dlg.style}</label></td>
|
104
|
-
<td><input type="text" id="style" name="style" value="" style="width: 200px;" onchange="changedStyle();" /></td>
|
105
|
-
</tr>
|
106
|
-
|
107
|
-
<tr>
|
108
|
-
<td class="column1"><label for="dir">{#table_dlg.langdir}</label></td>
|
109
|
-
<td>
|
110
|
-
<select id="dir" name="dir" style="width: 200px">
|
111
|
-
<option value="">{#not_set}</option>
|
112
|
-
<option value="ltr">{#table_dlg.ltr}</option>
|
113
|
-
<option value="rtl">{#table_dlg.rtl}</option>
|
114
|
-
</select>
|
115
|
-
</td>
|
116
|
-
</tr>
|
117
|
-
|
118
|
-
<tr>
|
119
|
-
<td class="column1"><label for="lang">{#table_dlg.langcode}</label></td>
|
120
|
-
<td>
|
121
|
-
<input id="lang" name="lang" type="text" value="" style="width: 200px" />
|
122
|
-
</td>
|
123
|
-
</tr>
|
124
|
-
|
125
|
-
<tr>
|
126
|
-
<td class="column1"><label for="backgroundimage">{#table_dlg.bgimage}</label></td>
|
127
|
-
<td>
|
128
|
-
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
129
|
-
<tr>
|
130
|
-
<td><input id="backgroundimage" name="backgroundimage" type="text" value="" style="width: 200px" onchange="changedBackgroundImage();" /></td>
|
131
|
-
<td id="backgroundimagebrowsercontainer"> </td>
|
132
|
-
</tr>
|
133
|
-
</table>
|
134
|
-
</td>
|
135
|
-
</tr>
|
136
|
-
|
137
|
-
<tr role="group" aria-labelledby="bordercolor_label">
|
138
|
-
<td class="column1"><label id="bordercolor_label" for="bordercolor">{#table_dlg.bordercolor}</label></td>
|
139
|
-
<td>
|
140
|
-
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
141
|
-
<tr>
|
142
|
-
<td><input id="bordercolor" name="bordercolor" type="text" value="" size="9" onchange="updateColor('bordercolor_pick','bordercolor');changedColor();" /></td>
|
143
|
-
<td id="bordercolor_pickcontainer"> </td>
|
144
|
-
</tr>
|
145
|
-
</table>
|
146
|
-
</td>
|
147
|
-
</tr>
|
148
|
-
|
149
|
-
<tr role="group" aria-labelledby="bgcolor_label">
|
150
|
-
<td class="column1"><label id="bgcolor_label" for="bgcolor">{#table_dlg.bgcolor}</label></td>
|
151
|
-
<td>
|
152
|
-
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
153
|
-
<tr>
|
154
|
-
<td><input id="bgcolor" name="bgcolor" type="text" value="" size="9" onchange="updateColor('bgcolor_pick','bgcolor');changedColor();" /></td>
|
155
|
-
<td id="bgcolor_pickcontainer"> </td>
|
156
|
-
</tr>
|
157
|
-
</table>
|
158
|
-
</td>
|
159
|
-
</tr>
|
160
|
-
</table>
|
161
|
-
</fieldset>
|
162
|
-
</div>
|
163
|
-
</div>
|
164
|
-
|
165
|
-
<div class="mceActionPanel">
|
166
|
-
<div>
|
167
|
-
<select id="action" name="action">
|
168
|
-
<option value="cell">{#table_dlg.cell_cell}</option>
|
169
|
-
<option value="row">{#table_dlg.cell_row}</option>
|
170
|
-
<option value="col">{#table_dlg.cell_col}</option>
|
171
|
-
<option value="all">{#table_dlg.cell_all}</option>
|
172
|
-
</select>
|
173
|
-
</div>
|
174
|
-
|
175
|
-
<input type="submit" id="insert" name="insert" value="{#update}" />
|
176
|
-
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
177
|
-
</div>
|
178
|
-
</form>
|
179
|
-
</body>
|
180
|
-
</html>
|
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.cell_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/cell.js"></script>
|
11
|
+
<link href="css/cell.css" rel="stylesheet" type="text/css" />
|
12
|
+
</head>
|
13
|
+
<body id="tablecell" 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="align">{#table_dlg.align}</label></td>
|
30
|
+
<td>
|
31
|
+
<select id="align" name="align" class="mceFocus">
|
32
|
+
<option value="">{#not_set}</option>
|
33
|
+
<option value="center">{#table_dlg.align_middle}</option>
|
34
|
+
<option value="left">{#table_dlg.align_left}</option>
|
35
|
+
<option value="right">{#table_dlg.align_right}</option>
|
36
|
+
</select>
|
37
|
+
</td>
|
38
|
+
|
39
|
+
<td><label for="celltype">{#table_dlg.cell_type}</label></td>
|
40
|
+
<td>
|
41
|
+
<select id="celltype" name="celltype">
|
42
|
+
<option value="td">{#table_dlg.td}</option>
|
43
|
+
<option value="th">{#table_dlg.th}</option>
|
44
|
+
</select>
|
45
|
+
</td>
|
46
|
+
</tr>
|
47
|
+
|
48
|
+
<tr>
|
49
|
+
<td><label for="valign">{#table_dlg.valign}</label></td>
|
50
|
+
<td>
|
51
|
+
<select id="valign" name="valign">
|
52
|
+
<option value="">{#not_set}</option>
|
53
|
+
<option value="top">{#table_dlg.align_top}</option>
|
54
|
+
<option value="middle">{#table_dlg.align_middle}</option>
|
55
|
+
<option value="bottom">{#table_dlg.align_bottom}</option>
|
56
|
+
</select>
|
57
|
+
</td>
|
58
|
+
|
59
|
+
<td><label for="scope">{#table_dlg.scope}</label></td>
|
60
|
+
<td>
|
61
|
+
<select id="scope" name="scope">
|
62
|
+
<option value="">{#not_set}</option>
|
63
|
+
<option value="col">{#table.col}</option>
|
64
|
+
<option value="row">{#table.row}</option>
|
65
|
+
<option value="rowgroup">{#table_dlg.rowgroup}</option>
|
66
|
+
<option value="colgroup">{#table_dlg.colgroup}</option>
|
67
|
+
</select>
|
68
|
+
</td>
|
69
|
+
|
70
|
+
</tr>
|
71
|
+
|
72
|
+
<tr>
|
73
|
+
<td><label for="width">{#table_dlg.width}</label></td>
|
74
|
+
<td><input id="width" name="width" type="text" value="" size="7" maxlength="7" onchange="changedSize();" class="size" /></td>
|
75
|
+
|
76
|
+
<td><label for="height">{#table_dlg.height}</label></td>
|
77
|
+
<td><input id="height" name="height" type="text" value="" size="7" maxlength="7" onchange="changedSize();" class="size" /></td>
|
78
|
+
</tr>
|
79
|
+
|
80
|
+
<tr id="styleSelectRow">
|
81
|
+
<td><label for="class">{#class_name}</label></td>
|
82
|
+
<td colspan="3">
|
83
|
+
<select id="class" name="class" class="mceEditableSelect">
|
84
|
+
<option value="" selected="selected">{#not_set}</option>
|
85
|
+
</select>
|
86
|
+
</td>
|
87
|
+
</tr>
|
88
|
+
</table>
|
89
|
+
</fieldset>
|
90
|
+
</div>
|
91
|
+
|
92
|
+
<div id="advanced_panel" class="panel">
|
93
|
+
<fieldset>
|
94
|
+
<legend>{#table_dlg.advanced_props}</legend>
|
95
|
+
|
96
|
+
<table role="presentation" border="0" cellpadding="0" cellspacing="4">
|
97
|
+
<tr>
|
98
|
+
<td class="column1"><label for="id">{#table_dlg.id}</label></td>
|
99
|
+
<td><input id="id" name="id" type="text" value="" style="width: 200px" /></td>
|
100
|
+
</tr>
|
101
|
+
|
102
|
+
<tr>
|
103
|
+
<td><label for="style">{#table_dlg.style}</label></td>
|
104
|
+
<td><input type="text" id="style" name="style" value="" style="width: 200px;" onchange="changedStyle();" /></td>
|
105
|
+
</tr>
|
106
|
+
|
107
|
+
<tr>
|
108
|
+
<td class="column1"><label for="dir">{#table_dlg.langdir}</label></td>
|
109
|
+
<td>
|
110
|
+
<select id="dir" name="dir" style="width: 200px">
|
111
|
+
<option value="">{#not_set}</option>
|
112
|
+
<option value="ltr">{#table_dlg.ltr}</option>
|
113
|
+
<option value="rtl">{#table_dlg.rtl}</option>
|
114
|
+
</select>
|
115
|
+
</td>
|
116
|
+
</tr>
|
117
|
+
|
118
|
+
<tr>
|
119
|
+
<td class="column1"><label for="lang">{#table_dlg.langcode}</label></td>
|
120
|
+
<td>
|
121
|
+
<input id="lang" name="lang" type="text" value="" style="width: 200px" />
|
122
|
+
</td>
|
123
|
+
</tr>
|
124
|
+
|
125
|
+
<tr>
|
126
|
+
<td class="column1"><label for="backgroundimage">{#table_dlg.bgimage}</label></td>
|
127
|
+
<td>
|
128
|
+
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
129
|
+
<tr>
|
130
|
+
<td><input id="backgroundimage" name="backgroundimage" type="text" value="" style="width: 200px" onchange="changedBackgroundImage();" /></td>
|
131
|
+
<td id="backgroundimagebrowsercontainer"> </td>
|
132
|
+
</tr>
|
133
|
+
</table>
|
134
|
+
</td>
|
135
|
+
</tr>
|
136
|
+
|
137
|
+
<tr role="group" aria-labelledby="bordercolor_label">
|
138
|
+
<td class="column1"><label id="bordercolor_label" for="bordercolor">{#table_dlg.bordercolor}</label></td>
|
139
|
+
<td>
|
140
|
+
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
141
|
+
<tr>
|
142
|
+
<td><input id="bordercolor" name="bordercolor" type="text" value="" size="9" onchange="updateColor('bordercolor_pick','bordercolor');changedColor();" /></td>
|
143
|
+
<td id="bordercolor_pickcontainer"> </td>
|
144
|
+
</tr>
|
145
|
+
</table>
|
146
|
+
</td>
|
147
|
+
</tr>
|
148
|
+
|
149
|
+
<tr role="group" aria-labelledby="bgcolor_label">
|
150
|
+
<td class="column1"><label id="bgcolor_label" for="bgcolor">{#table_dlg.bgcolor}</label></td>
|
151
|
+
<td>
|
152
|
+
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
153
|
+
<tr>
|
154
|
+
<td><input id="bgcolor" name="bgcolor" type="text" value="" size="9" onchange="updateColor('bgcolor_pick','bgcolor');changedColor();" /></td>
|
155
|
+
<td id="bgcolor_pickcontainer"> </td>
|
156
|
+
</tr>
|
157
|
+
</table>
|
158
|
+
</td>
|
159
|
+
</tr>
|
160
|
+
</table>
|
161
|
+
</fieldset>
|
162
|
+
</div>
|
163
|
+
</div>
|
164
|
+
|
165
|
+
<div class="mceActionPanel">
|
166
|
+
<div>
|
167
|
+
<select id="action" name="action">
|
168
|
+
<option value="cell">{#table_dlg.cell_cell}</option>
|
169
|
+
<option value="row">{#table_dlg.cell_row}</option>
|
170
|
+
<option value="col">{#table_dlg.cell_col}</option>
|
171
|
+
<option value="all">{#table_dlg.cell_all}</option>
|
172
|
+
</select>
|
173
|
+
</div>
|
174
|
+
|
175
|
+
<input type="submit" id="insert" name="insert" value="{#update}" />
|
176
|
+
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
177
|
+
</div>
|
178
|
+
</form>
|
179
|
+
</body>
|
180
|
+
</html>
|