Version Description
Download this release
Release Info
Developer | azaozz |
Plugin | TinyMCE Advanced |
Version | 2.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 2.0
- add_to_tinymce_directory/plugins/advhr/editor_plugin.js +0 -1
- add_to_tinymce_directory/plugins/advimage/editor_plugin.js +0 -1
- add_to_tinymce_directory/plugins/advlink/editor_plugin.js +0 -1
- add_to_tinymce_directory/plugins/advlink/editor_plugin_src.js +0 -83
- add_to_tinymce_directory/plugins/contextmenu/editor_plugin.js +0 -1
- add_to_tinymce_directory/plugins/fullscreen/editor_plugin.js +0 -1
- add_to_tinymce_directory/plugins/inlinepopups/css/inlinepopup.css +0 -69
- add_to_tinymce_directory/plugins/inlinepopups/editor_plugin.js +0 -1
- add_to_tinymce_directory/plugins/inlinepopups/editor_plugin_src.js +0 -819
- add_to_tinymce_directory/plugins/inlinepopups/images/spacer.gif +0 -0
- add_to_tinymce_directory/plugins/inlinepopups/images/window_close.gif +0 -0
- add_to_tinymce_directory/plugins/inlinepopups/images/window_maximize.gif +0 -0
- add_to_tinymce_directory/plugins/inlinepopups/images/window_minimize.gif +0 -0
- add_to_tinymce_directory/plugins/inlinepopups/images/window_resize.gif +0 -0
- add_to_tinymce_directory/plugins/inlinepopups/jscripts/mcwindows.js +0 -453
- add_to_tinymce_directory/plugins/layer/editor_plugin.js +0 -1
- add_to_tinymce_directory/plugins/media/editor_plugin.js +0 -1
- add_to_tinymce_directory/plugins/print/editor_plugin.js +0 -1
- add_to_tinymce_directory/plugins/searchreplace/css/searchreplace.css +0 -20
- add_to_tinymce_directory/plugins/searchreplace/editor_plugin.js +0 -1
- add_to_tinymce_directory/plugins/table/editor_plugin.js +0 -1
- add_to_tinymce_directory/plugins/table/images/buttons.gif +0 -0
- add_to_tinymce_directory/plugins/table/images/table_delete_col.gif +0 -0
- add_to_tinymce_directory/plugins/table/images/table_delete_row.gif +0 -0
- add_to_tinymce_directory/plugins/visualchars/editor_plugin.js +0 -1
- add_to_tinymce_directory/plugins/xhtmlxtras/editor_plugin.js +0 -1
- readme.txt +73 -22
- tinymce-advanced/css/tadv-styles.css +176 -0
- tinymce-advanced/css/tadv-tinymce.css +25 -0
- tinymce-advanced/images/NextGEN.gif +0 -0
- {add_to_tinymce_directory/plugins/xhtmlxtras → tinymce-advanced}/images/abbr.gif +0 -0
- {add_to_tinymce_directory/plugins/xhtmlxtras → tinymce-advanced}/images/acronym.gif +0 -0
- {add_to_tinymce_directory/plugins/advhr → tinymce-advanced}/images/advhr.gif +0 -0
- tinymce-advanced/images/anchor.gif +0 -0
- {add_to_tinymce_directory/plugins/xhtmlxtras → tinymce-advanced}/images/attribs.gif +0 -0
- tinymce-advanced/images/backcolor.gif +0 -0
- tinymce-advanced/images/bold.gif +0 -0
- tinymce-advanced/images/bullist.gif +0 -0
- tinymce-advanced/images/charmap.gif +0 -0
- {add_to_tinymce_directory/plugins/xhtmlxtras → tinymce-advanced}/images/cite.gif +0 -0
- tinymce-advanced/images/cleanup.gif +0 -0
- tinymce-advanced/images/code.gif +0 -0
- tinymce-advanced/images/copy.gif +0 -0
- tinymce-advanced/images/cut.gif +0 -0
- {add_to_tinymce_directory/plugins/xhtmlxtras → tinymce-advanced}/images/del.gif +0 -0
- tinymce-advanced/images/embeddedvideo.gif +0 -0
- tinymce-advanced/images/emotions.gif +0 -0
- tinymce-advanced/images/fontselect.gif +0 -0
- tinymce-advanced/images/forecolor.gif +0 -0
- tinymce-advanced/images/formatselect.gif +0 -0
- {add_to_tinymce_directory/plugins/fullscreen → tinymce-advanced}/images/fullscreen.gif +0 -0
- tinymce-advanced/images/g2image.gif +0 -0
- tinymce-advanced/images/googlevideo.gif +0 -0
- tinymce-advanced/images/iespell.gif +0 -0
- tinymce-advanced/images/image.gif +0 -0
- tinymce-advanced/images/indent.gif +0 -0
- {add_to_tinymce_directory/plugins/xhtmlxtras → tinymce-advanced}/images/ins.gif +0 -0
- tinymce-advanced/images/italic.gif +0 -0
- tinymce-advanced/images/justifycenter.gif +0 -0
- tinymce-advanced/images/justifyfull.gif +0 -0
- tinymce-advanced/images/justifyleft.gif +0 -0
- tinymce-advanced/images/justifyright.gif +0 -0
- tinymce-advanced/images/layer.gif +0 -0
- tinymce-advanced/images/link.gif +0 -0
- {add_to_tinymce_directory/plugins/media → tinymce-advanced}/images/media.gif +0 -0
- tinymce-advanced/images/nonbreaking.gif +0 -0
- tinymce-advanced/images/numlist.gif +0 -0
- tinymce-advanced/images/outdent.gif +0 -0
- tinymce-advanced/images/paste.gif +0 -0
- tinymce-advanced/images/pastetext.gif +0 -0
- tinymce-advanced/images/pasteword.gif +0 -0
- {add_to_tinymce_directory/plugins/print → tinymce-advanced}/images/print.gif +0 -0
- tinymce-advanced/images/ps_imagemanager_tinymceplugin.gif +0 -0
- tinymce-advanced/images/redo.gif +0 -0
- tinymce-advanced/images/removeformat.gif +0 -0
- {add_to_tinymce_directory/plugins/searchreplace → tinymce-advanced}/images/replace.gif +0 -0
- {add_to_tinymce_directory/plugins/searchreplace → tinymce-advanced}/images/search.gif +0 -0
- tinymce-advanced/images/separator.gif +0 -0
- {add_to_tinymce_directory/plugins/contextmenu → tinymce-advanced}/images/spacer.gif +0 -0
- tinymce-advanced/images/spellchecker.gif +0 -0
- tinymce-advanced/images/strikethrough.gif +0 -0
- tinymce-advanced/images/styleprops.gif +0 -0
- tinymce-advanced/images/styleselect.gif +0 -0
- tinymce-advanced/images/sub.gif +0 -0
- tinymce-advanced/images/sup.gif +0 -0
- tinymce-advanced/images/tablecontrols.gif +0 -0
- tinymce-advanced/images/toolbars.gif +0 -0
- tinymce-advanced/images/underline.gif +0 -0
- tinymce-advanced/images/underline_es.gif +0 -0
- tinymce-advanced/images/undo.gif +0 -0
- tinymce-advanced/images/unlink.gif +0 -0
- tinymce-advanced/images/vipersvideoquicktags.gif +0 -0
- tinymce-advanced/images/visualaid.gif +0 -0
- {add_to_tinymce_directory/plugins/visualchars → tinymce-advanced}/images/visualchars.gif +0 -0
- tinymce-advanced/images/wp_help.gif +0 -0
- tinymce-advanced/images/wp_more.gif +0 -0
- tinymce-advanced/images/wp_page.gif +0 -0
- tinymce-advanced/js/tadv-all.js +4 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advhr/css/advhr.css +0 -0
- add_to_tinymce_directory/plugins/advhr/editor_plugin_src.js → tinymce-advanced/mce/advhr/editor_plugin.js +10 -1
- tinymce-advanced/mce/advhr/images/advhr.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advhr/jscripts/rule.js +0 -0
- tinymce-advanced/mce/advhr/langs/de_de.js +8 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advhr/langs/en.js +0 -0
- tinymce-advanced/mce/advhr/langs/es_es.js +10 -0
- tinymce-advanced/mce/advhr/langs/fr_fr.js +9 -0
- tinymce-advanced/mce/advhr/langs/it_it.js +14 -0
- tinymce-advanced/mce/advhr/langs/pt_br.js +16 -0
- tinymce-advanced/mce/advhr/langs/ru_ru.js +8 -0
- tinymce-advanced/mce/advhr/langs/zh_cn.js +9 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advhr/readme.txt +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advhr/rule.htm +2 -2
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advimage/css/advimage.css +0 -0
- add_to_tinymce_directory/plugins/advimage/editor_plugin_src.js → tinymce-advanced/mce/advimage/editor_plugin.js +29 -1
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advimage/image.htm +5 -4
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advimage/images/sample.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advimage/jscripts/functions.js +5 -9
- tinymce-advanced/mce/advimage/langs/de_de.js +27 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advimage/langs/en.js +0 -0
- tinymce-advanced/mce/advimage/langs/es_es.js +36 -0
- tinymce-advanced/mce/advimage/langs/fr_fr.js +28 -0
- tinymce-advanced/mce/advimage/langs/it_it.js +33 -0
- tinymce-advanced/mce/advimage/langs/pt_br.js +36 -0
- tinymce-advanced/mce/advimage/langs/ru_ru.js +27 -0
- tinymce-advanced/mce/advimage/langs/zh_cn.js +28 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advimage/readme.txt +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advlink/css/advlink.css +0 -0
- tinymce-advanced/mce/advlink/editor_plugin.js +135 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advlink/jscripts/functions.js +3 -22
- tinymce-advanced/mce/advlink/langs/de_de.js +46 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advlink/langs/en.js +1 -1
- tinymce-advanced/mce/advlink/langs/es_es.js +55 -0
- tinymce-advanced/mce/advlink/langs/fr_fr.js +48 -0
- tinymce-advanced/mce/advlink/langs/it_it.js +52 -0
- tinymce-advanced/mce/advlink/langs/pt_br.js +54 -0
- tinymce-advanced/mce/advlink/langs/ru_ru.js +46 -0
- tinymce-advanced/mce/advlink/langs/zh_cn.js +47 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advlink/link.htm +3 -4
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advlink/readme.txt +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/contextmenu/css/contextmenu.css +0 -0
- add_to_tinymce_directory/plugins/contextmenu/editor_plugin_src.js → tinymce-advanced/mce/contextmenu/editor_plugin.js +21 -24
- tinymce-advanced/mce/contextmenu/images/spacer.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/contextmenu/readme.txt +0 -0
- tinymce-advanced/mce/emotions/editor_plugin.js +71 -0
- tinymce-advanced/mce/emotions/emotions.htm +80 -0
- tinymce-advanced/mce/emotions/images/emotions.gif +0 -0
- tinymce-advanced/mce/emotions/jscripts/functions.js +11 -0
- tinymce-advanced/mce/emotions/langs/de_de.js +22 -0
- tinymce-advanced/mce/emotions/langs/en.js +24 -0
- tinymce-advanced/mce/emotions/langs/es_es.js +31 -0
- tinymce-advanced/mce/emotions/langs/fr_fr.js +23 -0
- tinymce-advanced/mce/emotions/langs/it_it.js +28 -0
- tinymce-advanced/mce/emotions/langs/pt_br.js +30 -0
- tinymce-advanced/mce/emotions/langs/ru_ru.js +22 -0
- tinymce-advanced/mce/emotions/langs/zh_cn.js +23 -0
- tinymce-advanced/mce/emotions/readme.txt +2 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/fullscreen/css/page.css +0 -0
- add_to_tinymce_directory/plugins/fullscreen/editor_plugin_src.js → tinymce-advanced/mce/fullscreen/editor_plugin.js +8 -2
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/fullscreen/fullscreen.htm +1 -1
- tinymce-advanced/mce/fullscreen/images/fullscreen.gif +0 -0
- tinymce-advanced/mce/fullscreen/langs/de_de.js +6 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/fullscreen/langs/en.js +0 -0
- tinymce-advanced/mce/fullscreen/langs/es_es.js +8 -0
- tinymce-advanced/mce/fullscreen/langs/fr_fr.js +7 -0
- tinymce-advanced/mce/fullscreen/langs/it_it.js +11 -0
- tinymce-advanced/mce/fullscreen/langs/pt_br.js +14 -0
- tinymce-advanced/mce/fullscreen/langs/ru.js +6 -0
- tinymce-advanced/mce/fullscreen/langs/zh_cn.js +7 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/fullscreen/readme.txt +0 -0
- tinymce-advanced/mce/iespell/editor_plugin.js +65 -0
- tinymce-advanced/mce/iespell/images/iespell.gif +0 -0
- tinymce-advanced/mce/iespell/langs/de_de.js +7 -0
- tinymce-advanced/mce/iespell/langs/en.js +7 -0
- tinymce-advanced/mce/iespell/langs/es_es.js +16 -0
- tinymce-advanced/mce/iespell/langs/fr_fr.js +7 -0
- tinymce-advanced/mce/iespell/langs/it_it.js +13 -0
- tinymce-advanced/mce/iespell/langs/pt_br.js +14 -0
- tinymce-advanced/mce/iespell/langs/ru_ru.js +7 -0
- tinymce-advanced/mce/iespell/langs/zh_cn.js +7 -0
- {add_to_tinymce_directory/plugins/layer → tinymce-advanced/mce/iespell}/readme.txt +0 -0
- add_to_tinymce_directory/plugins/layer/editor_plugin_src.js → tinymce-advanced/mce/layer/editor_plugin.js +10 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/layer/images/absolute.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/layer/images/backward.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/layer/images/forward.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/layer/images/insert_layer.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/layer/images/insertlayer.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/layer/images/movebackward.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/layer/images/moveforward.gif +0 -0
- tinymce-advanced/mce/layer/langs/de_de.js +9 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/layer/langs/en.js +0 -0
- tinymce-advanced/mce/layer/langs/es_es.js +15 -0
- tinymce-advanced/mce/layer/langs/fr_fr.js +10 -0
- tinymce-advanced/mce/layer/langs/it_it.js +15 -0
- tinymce-advanced/mce/layer/langs/pt_br.js +16 -0
- tinymce-advanced/mce/layer/langs/ru_ru.js +9 -0
- tinymce-advanced/mce/layer/langs/zh_cn.js +9 -0
- {add_to_tinymce_directory/plugins/print → tinymce-advanced/mce/layer}/readme.txt +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/media/css/content.css +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/media/css/media.css +0 -0
- add_to_tinymce_directory/plugins/media/editor_plugin_src.js → tinymce-advanced/mce/media/editor_plugin.js +532 -435
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/media/images/flash.gif +0 -0
- tinymce-advanced/mce/media/images/media.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/media/images/quicktime.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/media/images/realmedia.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/media/images/shockwave.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/media/images/windowsmedia.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/media/jscripts/embed.js +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/media/jscripts/media.js +1 -1
- tinymce-advanced/mce/media/langs/de_de.js +85 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/media/langs/en.js +0 -0
- tinymce-advanced/mce/media/langs/es_es.js +85 -0
- tinymce-advanced/mce/media/langs/fr_fr.js +95 -0
- tinymce-advanced/mce/media/langs/it_it.js +100 -0
- tinymce-advanced/mce/media/langs/pt_br.js +101 -0
- tinymce-advanced/mce/media/langs/ru_ru.js +94 -0
- tinymce-advanced/mce/media/langs/zh_cn.js +85 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/media/media.htm +6 -6
- tinymce-advanced/mce/nonbreaking/editor_plugin.js +68 -0
- tinymce-advanced/mce/nonbreaking/images/nonbreaking.gif +0 -0
- tinymce-advanced/mce/nonbreaking/langs/en.js +5 -0
- add_to_tinymce_directory/plugins/print/editor_plugin_src.js → tinymce-advanced/mce/print/editor_plugin.js +6 -0
- tinymce-advanced/mce/print/images/print.gif +0 -0
- tinymce-advanced/mce/print/langs/de_de.js +5 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/print/langs/en.js +0 -0
- tinymce-advanced/mce/print/langs/es_es.js +7 -0
- tinymce-advanced/mce/print/langs/fr_fr.js +6 -0
- tinymce-advanced/mce/print/langs/it_it.js +11 -0
- tinymce-advanced/mce/print/langs/pt_br.js +13 -0
- tinymce-advanced/mce/print/langs/ru_ru.js +5 -0
- tinymce-advanced/mce/print/langs/zh_cn.js +6 -0
- {add_to_tinymce_directory/plugins/searchreplace → tinymce-advanced/mce/print}/readme.txt +0 -0
- tinymce-advanced/mce/searchreplace/css/searchreplace.css +24 -0
- add_to_tinymce_directory/plugins/searchreplace/editor_plugin_src.js → tinymce-advanced/mce/searchreplace/editor_plugin.js +63 -32
- tinymce-advanced/mce/searchreplace/images/fade-butt.png +0 -0
- tinymce-advanced/mce/searchreplace/images/replace.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/searchreplace/images/replace_all_button_bg.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/searchreplace/images/replace_button_bg.gif +0 -0
- tinymce-advanced/mce/searchreplace/images/search.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/searchreplace/jscripts/searchreplace.js +5 -4
- tinymce-advanced/mce/searchreplace/langs/de_de.js +22 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/searchreplace/langs/en.js +0 -0
- tinymce-advanced/mce/searchreplace/langs/es_es.js +31 -0
- tinymce-advanced/mce/searchreplace/langs/fr_fr.js +22 -0
- tinymce-advanced/mce/searchreplace/langs/it_it.js +27 -0
- tinymce-advanced/mce/searchreplace/langs/pt_br.js +29 -0
- tinymce-advanced/mce/searchreplace/langs/ru_ru.js +21 -0
- tinymce-advanced/mce/searchreplace/langs/zh_cn.js +22 -0
- {add_to_tinymce_directory/plugins/table → tinymce-advanced/mce/searchreplace}/readme.txt +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/searchreplace/searchreplace.htm +7 -4
- tinymce-advanced/mce/style/css/props.css +69 -0
- tinymce-advanced/mce/style/editor_plugin.js +150 -0
- tinymce-advanced/mce/style/images/apply_button_bg.gif +0 -0
- tinymce-advanced/mce/style/images/fade-butt.png +0 -0
- tinymce-advanced/mce/style/images/style_info.gif +0 -0
- tinymce-advanced/mce/style/images/styleprops.gif +0 -0
- tinymce-advanced/mce/style/jscripts/props.js +633 -0
- tinymce-advanced/mce/style/langs/de_de.js +66 -0
- tinymce-advanced/mce/style/langs/en.js +66 -0
- tinymce-advanced/mce/style/langs/es_es.js +66 -0
- tinymce-advanced/mce/style/langs/fr_fr.js +67 -0
- tinymce-advanced/mce/style/langs/it_it.js +72 -0
- tinymce-advanced/mce/style/langs/pt_br.js +73 -0
- tinymce-advanced/mce/style/langs/ru_ru.js +66 -0
- tinymce-advanced/mce/style/langs/zh_cn.js +66 -0
- tinymce-advanced/mce/style/props.htm +729 -0
- tinymce-advanced/mce/style/readme.txt +1 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/cell.htm +3 -3
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/css/cell.css +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/css/row.css +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/css/table.css +0 -0
- add_to_tinymce_directory/plugins/table/editor_plugin_src.js → tinymce-advanced/mce/table/editor_plugin.js +84 -4
- tinymce-advanced/mce/table/images/buttons.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/images/table.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/images/table_cell_props.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/images/table_delete.gif +0 -0
- tinymce-advanced/mce/table/images/table_delete_col.gif +0 -0
- tinymce-advanced/mce/table/images/table_delete_row.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/images/table_insert_col_after.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/images/table_insert_col_before.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/images/table_insert_row_after.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/images/table_insert_row_before.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/images/table_merge_cells.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/images/table_row_props.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/images/table_split_cells.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/jscripts/cell.js +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/jscripts/merge_cells.js +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/jscripts/row.js +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/jscripts/table.js +0 -0
- tinymce-advanced/mce/table/langs/de_de.js +79 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/langs/en.js +1 -1
- tinymce-advanced/mce/table/langs/es_es.js +85 -0
- tinymce-advanced/mce/table/langs/fr_fr.js +81 -0
- tinymce-advanced/mce/table/langs/it_it.js +86 -0
- tinymce-advanced/mce/table/langs/pt_br.js +88 -0
- tinymce-advanced/mce/table/langs/ru_ru.js +79 -0
- tinymce-advanced/mce/table/langs/zh_cn.js +76 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/merge_cells.htm +3 -3
- tinymce-advanced/mce/table/readme.txt +1 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/row.htm +3 -3
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/table.htm +4 -4
- add_to_tinymce_directory/plugins/visualchars/editor_plugin_src.js → tinymce-advanced/mce/visualchars/editor_plugin.js +7 -1
- tinymce-advanced/mce/visualchars/images/visualchars.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/visualchars/langs/en.js +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/abbr.htm +5 -4
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/acronym.htm +4 -4
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/attributes.htm +4 -4
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/cite.htm +4 -4
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/css/attributes.css +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/css/popup.css +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/css/xhtmlxtras.css +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/del.htm +4 -4
- add_to_tinymce_directory/plugins/xhtmlxtras/editor_plugin_src.js → tinymce-advanced/mce/xhtmlxtras/editor_plugin.js +50 -7
- tinymce-advanced/mce/xhtmlxtras/images/abbr.gif +0 -0
- tinymce-advanced/mce/xhtmlxtras/images/acronym.gif +0 -0
- tinymce-advanced/mce/xhtmlxtras/images/attribs.gif +0 -0
- tinymce-advanced/mce/xhtmlxtras/images/cite.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/images/date_time.gif +0 -0
- tinymce-advanced/mce/xhtmlxtras/images/del.gif +0 -0
- tinymce-advanced/mce/xhtmlxtras/images/ins.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/images/remove_button_bg.gif +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/ins.htm +4 -4
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/jscripts/abbr.js +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/jscripts/acronym.js +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/jscripts/attributes.js +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/jscripts/cite.js +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/jscripts/del.js +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/jscripts/element_common.js +0 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/jscripts/ins.js +0 -0
- tinymce-advanced/mce/xhtmlxtras/langs/de_de.js +33 -0
- {add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/langs/en.js +0 -0
- tinymce-advanced/mce/xhtmlxtras/langs/es_es.js +42 -0
- tinymce-advanced/mce/xhtmlxtras/langs/fr_fr.js +43 -0
- tinymce-advanced/mce/xhtmlxtras/langs/it_it.js +43 -0
- tinymce-advanced/mce/xhtmlxtras/langs/pt_br.js +49 -0
- tinymce-advanced/mce/xhtmlxtras/langs/ru_ru.js +42 -0
- tinymce-advanced/mce/xhtmlxtras/langs/zh_cn.js +33 -0
- tinymce-advanced/tinymce-advanced.php +630 -74
- tinymce-advanced/tinymce.css +0 -23
add_to_tinymce_directory/plugins/advhr/editor_plugin.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
tinyMCE.importPluginLanguagePack('advhr');var TinyMCE_AdvancedHRPlugin={getInfo:function(){return{longname:'Advanced HR',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},getControlHTML:function(cn){switch(cn){case"advhr":return tinyMCE.getButtonHTML(cn,'lang_insert_advhr_desc','{$pluginurl}/images/advhr.gif','mceAdvancedHr')}return""},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mceAdvancedHr":var template=new Array();template['file']='../../plugins/advhr/rule.htm';template['width']=250;template['height']=160;template['width']+=tinyMCE.getLang('lang_advhr_delta_width',0);template['height']+=tinyMCE.getLang('lang_advhr_delta_height',0);var size="",width="",noshade="";if(tinyMCE.selectedElement!=null&&tinyMCE.selectedElement.nodeName.toLowerCase()=="hr"){tinyMCE.hrElement=tinyMCE.selectedElement;if(tinyMCE.hrElement){size=tinyMCE.hrElement.getAttribute('size')?tinyMCE.hrElement.getAttribute('size'):"";width=tinyMCE.hrElement.getAttribute('width')?tinyMCE.hrElement.getAttribute('width'):"";noshade=tinyMCE.hrElement.getAttribute('noshade')?tinyMCE.hrElement.getAttribute('noshade'):""}tinyMCE.openWindow(template,{editor_id:editor_id,size:size,width:width,noshade:noshade,mceDo:'update'})}else{if(tinyMCE.isMSIE){tinyMCE.execInstanceCommand(editor_id,'mceInsertContent',false,'<hr />')}else{tinyMCE.openWindow(template,{editor_id:editor_id,inline:"yes",size:size,width:width,noshade:noshade,mceDo:'insert'})}}return true}return false},handleNodeChange:function(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){if(node==null)return;do{if(node.nodeName=="HR"){tinyMCE.switchClass(editor_id+'_advhr','mceButtonSelected');return true}}while((node=node.parentNode));tinyMCE.switchClass(editor_id+'_advhr','mceButtonNormal');return true}};tinyMCE.addPlugin("advhr",TinyMCE_AdvancedHRPlugin);
|
|
add_to_tinymce_directory/plugins/advimage/editor_plugin.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
tinyMCE.importPluginLanguagePack('advimage');var TinyMCE_AdvancedImagePlugin={getInfo:function(){return{longname:'Advanced image',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},getControlHTML:function(cn){switch(cn){case"image":return tinyMCE.getButtonHTML(cn,'lang_image_desc','{$themeurl}/images/image.gif','mceAdvImage')}return""},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mceAdvImage":var template=new Array();template['file']='../../plugins/advimage/image.htm';template['width']=480;template['height']=380;template['width']+=tinyMCE.getLang('lang_advimage_delta_width',0);template['height']+=tinyMCE.getLang('lang_advimage_delta_height',0);var inst=tinyMCE.getInstanceById(editor_id);var elm=inst.getFocusElement();if(elm!=null&&tinyMCE.getAttrib(elm,'class').indexOf('mceItem')!=-1)return true;tinyMCE.openWindow(template,{editor_id:editor_id,inline:"yes"});return true}return false},cleanup:function(type,content){switch(type){case"insert_to_editor_dom":var imgs=content.getElementsByTagName("img"),src,i;for(i=0;i<imgs.length;i++){var onmouseover=tinyMCE.cleanupEventStr(tinyMCE.getAttrib(imgs[i],'onmouseover'));var onmouseout=tinyMCE.cleanupEventStr(tinyMCE.getAttrib(imgs[i],'onmouseout'));if((src=this._getImageSrc(onmouseover))!=""){if(tinyMCE.getParam('convert_urls'))src=tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'],src);imgs[i].setAttribute('onmouseover',"this.src='"+src+"';")}if((src=this._getImageSrc(onmouseout))!=""){if(tinyMCE.getParam('convert_urls'))src=tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'],src);imgs[i].setAttribute('onmouseout',"this.src='"+src+"';")}}break;case"get_from_editor_dom":var imgs=content.getElementsByTagName("img");for(var i=0;i<imgs.length;i++){var onmouseover=tinyMCE.cleanupEventStr(tinyMCE.getAttrib(imgs[i],'onmouseover'));var onmouseout=tinyMCE.cleanupEventStr(tinyMCE.getAttrib(imgs[i],'onmouseout'));if((src=this._getImageSrc(onmouseover))!=""){if(tinyMCE.getParam('convert_urls'))src=eval(tinyMCE.settings['urlconverter_callback']+"(src, null, true);");imgs[i].setAttribute('onmouseover',"this.src='"+src+"';")}if((src=this._getImageSrc(onmouseout))!=""){if(tinyMCE.getParam('convert_urls'))src=eval(tinyMCE.settings['urlconverter_callback']+"(src, null, true);");imgs[i].setAttribute('onmouseout',"this.src='"+src+"';")}}break}return content},handleNodeChange:function(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){if(node==null)return;do{if(node.nodeName=="IMG"&&tinyMCE.getAttrib(node,'class').indexOf('mceItem')==-1){tinyMCE.switchClass(editor_id+'_advimage','mceButtonSelected');return true}}while((node=node.parentNode));tinyMCE.switchClass(editor_id+'_advimage','mceButtonNormal');return true},_getImageSrc:function(s){var sr,p=-1;if(!s)return"";if((p=s.indexOf('this.src='))!=-1){sr=s.substring(p+10);sr=sr.substring(0,sr.indexOf('\''));return sr}return""}};tinyMCE.addPlugin("advimage",TinyMCE_AdvancedImagePlugin);
|
|
add_to_tinymce_directory/plugins/advlink/editor_plugin.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
tinyMCE.importPluginLanguagePack('advlink');var TinyMCE_AdvancedLinkPlugin={getInfo:function(){return{longname:'Advanced link',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},initInstance:function(inst){inst.addShortcut('ctrl','k','lang_advlink_desc','mceAdvLink')},getControlHTML:function(cn){switch(cn){case"link":return tinyMCE.getButtonHTML(cn,'lang_link_desc','{$themeurl}/images/link.gif','mceAdvLink')}return""},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mceAdvLink":var inst=tinyMCE.getInstanceById(editor_id),anySelection=false;var focusElm=inst.getFocusElement(),selectedText=inst.selection.getSelectedText();if(tinyMCE.selectedElement)anySelection=(tinyMCE.selectedElement.nodeName.toLowerCase()=="img")||(selectedText&&selectedText.length>0);if(anySelection||(focusElm!=null&&focusElm.nodeName=="A")){tinyMCE.openWindow({file:'../../plugins/advlink/link.htm',width:480+tinyMCE.getLang('lang_advlink_delta_width',0),height:400+tinyMCE.getLang('lang_advlink_delta_height',0)},{editor_id:editor_id,inline:"yes"})}return true}return false},handleNodeChange:function(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){if(node==null)return;do{if(node.nodeName=="A"&&tinyMCE.getAttrib(node,'href')!=""){tinyMCE.switchClass(editor_id+'_advlink','mceButtonSelected');return true}}while((node=node.parentNode));if(any_selection){tinyMCE.switchClass(editor_id+'_advlink','mceButtonNormal');return true}tinyMCE.switchClass(editor_id+'_advlink','mceButtonDisabled');return true}};tinyMCE.addPlugin("advlink",TinyMCE_AdvancedLinkPlugin);
|
|
add_to_tinymce_directory/plugins/advlink/editor_plugin_src.js
DELETED
@@ -1,83 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* $Id: editor_plugin_src.js 268 2007-04-28 15:52:59Z spocke $
|
3 |
-
*
|
4 |
-
* @author Moxiecode
|
5 |
-
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
6 |
-
*/
|
7 |
-
|
8 |
-
/* Import plugin specific language pack */
|
9 |
-
tinyMCE.importPluginLanguagePack('advlink');
|
10 |
-
|
11 |
-
var TinyMCE_AdvancedLinkPlugin = {
|
12 |
-
getInfo : function() {
|
13 |
-
return {
|
14 |
-
longname : 'Advanced link',
|
15 |
-
author : 'Moxiecode Systems AB',
|
16 |
-
authorurl : 'http://tinymce.moxiecode.com',
|
17 |
-
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink',
|
18 |
-
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
|
19 |
-
};
|
20 |
-
},
|
21 |
-
|
22 |
-
initInstance : function(inst) {
|
23 |
-
inst.addShortcut('ctrl', 'k', 'lang_advlink_desc', 'mceAdvLink');
|
24 |
-
},
|
25 |
-
|
26 |
-
getControlHTML : function(cn) {
|
27 |
-
switch (cn) {
|
28 |
-
case "link":
|
29 |
-
return tinyMCE.getButtonHTML(cn, 'lang_link_desc', '{$themeurl}/images/link.gif', 'mceAdvLink');
|
30 |
-
}
|
31 |
-
|
32 |
-
return "";
|
33 |
-
},
|
34 |
-
|
35 |
-
execCommand : function(editor_id, element, command, user_interface, value) {
|
36 |
-
switch (command) {
|
37 |
-
case "mceAdvLink":
|
38 |
-
var inst = tinyMCE.getInstanceById(editor_id), anySelection = false;
|
39 |
-
var focusElm = inst.getFocusElement(), selectedText = inst.selection.getSelectedText();
|
40 |
-
|
41 |
-
if (tinyMCE.selectedElement)
|
42 |
-
anySelection = (tinyMCE.selectedElement.nodeName.toLowerCase() == "img") || (selectedText && selectedText.length > 0);
|
43 |
-
|
44 |
-
if (anySelection || (focusElm != null && focusElm.nodeName == "A")) {
|
45 |
-
tinyMCE.openWindow({
|
46 |
-
file : '../../plugins/advlink/link.htm',
|
47 |
-
width : 480 + tinyMCE.getLang('lang_advlink_delta_width', 0),
|
48 |
-
height : 400 + tinyMCE.getLang('lang_advlink_delta_height', 0)
|
49 |
-
}, {
|
50 |
-
editor_id : editor_id,
|
51 |
-
inline : "yes"
|
52 |
-
});
|
53 |
-
}
|
54 |
-
|
55 |
-
return true;
|
56 |
-
}
|
57 |
-
|
58 |
-
return false;
|
59 |
-
},
|
60 |
-
|
61 |
-
handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) {
|
62 |
-
if (node == null)
|
63 |
-
return;
|
64 |
-
|
65 |
-
do {
|
66 |
-
if (node.nodeName == "A" && tinyMCE.getAttrib(node, 'href') != "") {
|
67 |
-
tinyMCE.switchClass(editor_id + '_advlink', 'mceButtonSelected');
|
68 |
-
return true;
|
69 |
-
}
|
70 |
-
} while ((node = node.parentNode));
|
71 |
-
|
72 |
-
if (any_selection) {
|
73 |
-
tinyMCE.switchClass(editor_id + '_advlink', 'mceButtonNormal');
|
74 |
-
return true;
|
75 |
-
}
|
76 |
-
|
77 |
-
tinyMCE.switchClass(editor_id + '_advlink', 'mceButtonDisabled');
|
78 |
-
|
79 |
-
return true;
|
80 |
-
}
|
81 |
-
};
|
82 |
-
|
83 |
-
tinyMCE.addPlugin("advlink", TinyMCE_AdvancedLinkPlugin);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add_to_tinymce_directory/plugins/contextmenu/editor_plugin.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
if(!tinyMCE.settings['contextmenu_skip_plugin_css']){tinyMCE.loadCSS(tinyMCE.baseURL+"/plugins/contextmenu/css/contextmenu.css")}var TinyMCE_ContextMenuPlugin={_contextMenu:null,getInfo:function(){return{longname:'Context menus',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},initInstance:function(inst){if(tinyMCE.isMSIE5_0&&tinyMCE.isOpera)return;TinyMCE_ContextMenuPlugin._contextMenu=new TinyMCE_ContextMenu({commandhandler:"TinyMCE_ContextMenuPlugin._commandHandler",spacer_image:tinyMCE.baseURL+"/plugins/contextmenu/images/spacer.gif"});tinyMCE.addEvent(inst.getDoc(),"click",TinyMCE_ContextMenuPlugin._hideContextMenu);tinyMCE.addEvent(inst.getDoc(),"keypress",TinyMCE_ContextMenuPlugin._hideContextMenu);tinyMCE.addEvent(inst.getDoc(),"keydown",TinyMCE_ContextMenuPlugin._hideContextMenu);tinyMCE.addEvent(document,"click",TinyMCE_ContextMenuPlugin._hideContextMenu);tinyMCE.addEvent(document,"keypress",TinyMCE_ContextMenuPlugin._hideContextMenu);tinyMCE.addEvent(document,"keydown",TinyMCE_ContextMenuPlugin._hideContextMenu);if(tinyMCE.isGecko){tinyMCE.addEvent(inst.getDoc(),"contextmenu",function(e){TinyMCE_ContextMenuPlugin._showContextMenu(tinyMCE.isMSIE?inst.contentWindow.event:e,inst)})}else tinyMCE.addEvent(inst.getDoc(),"contextmenu",TinyMCE_ContextMenuPlugin._onContextMenu)},_onContextMenu:function(e){var elm=tinyMCE.isMSIE?e.srcElement:e.target;var targetInst,body;if((body=tinyMCE.getParentElement(elm,"body"))!=null){for(var n in tinyMCE.instances){var inst=tinyMCE.instances[n];if(!tinyMCE.isInstance(inst))continue;if(body==inst.getBody()){targetInst=inst;break}}return TinyMCE_ContextMenuPlugin._showContextMenu(tinyMCE.isMSIE?targetInst.contentWindow.event:e,targetInst)}},_showContextMenu:function(e,inst){if(e.ctrlKey)return true;function getAttrib(elm,name){return elm.getAttribute(name)?elm.getAttribute(name):""}var x,y,elm,contextMenu;var pos=tinyMCE.getAbsPosition(inst.iframeElement);x=tinyMCE.isMSIE?e.screenX:pos.absLeft+(e.pageX-inst.getBody().scrollLeft);y=tinyMCE.isMSIE?e.screenY:pos.absTop+(e.pageY-inst.getBody().scrollTop);elm=tinyMCE.isMSIE?e.srcElement:e.target;contextMenu=this._contextMenu;contextMenu.inst=inst;window.setTimeout(function(){var theme=tinyMCE.getParam("theme");contextMenu.clearAll();var sel=inst.selection.getSelectedText().length!=0||elm.nodeName=="IMG";contextMenu.addItem(tinyMCE.baseURL+"/themes/"+theme+"/images/cut.gif","$lang_cut_desc","Cut","",!sel);contextMenu.addItem(tinyMCE.baseURL+"/themes/"+theme+"/images/copy.gif","$lang_copy_desc","Copy","",!sel);contextMenu.addItem(tinyMCE.baseURL+"/themes/"+theme+"/images/paste.gif","$lang_paste_desc","Paste","",false);if(sel||(elm?(elm.nodeName=='A'&&tinyMCE.getAttrib(elm,'name')=='')||(elm.nodeName=='IMG'):false)){contextMenu.addSeparator();contextMenu.addItem(tinyMCE.baseURL+"/themes/advanced/images/link.gif","$lang_link_desc",inst.hasPlugin("advlink")?"mceAdvLink":"mceLink");contextMenu.addItem(tinyMCE.baseURL+"/themes/advanced/images/unlink.gif","$lang_unlink_desc","unlink","",(elm?(elm.nodeName!='A')&&(elm.nodeName!='IMG'):true))}elm=tinyMCE.getParentElement(elm,"img,table,td"+(inst.hasPlugin("advhr")?',hr':''));if(elm){switch(elm.nodeName){case"IMG":contextMenu.addSeparator();if(tinyMCE.hasPlugin('flash')&&tinyMCE.getAttrib(elm,'class').indexOf('mceItemFlash')!=-1)contextMenu.addItem(tinyMCE.baseURL+"/plugins/flash/images/flash.gif","$lang_flash_props","mceFlash");else if(tinyMCE.hasPlugin('media')&&/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(tinyMCE.getAttrib(elm,'class')))contextMenu.addItem(tinyMCE.baseURL+"/plugins/flash/images/flash.gif","$lang_media_title","mceMedia");else contextMenu.addItem(tinyMCE.baseURL+"/themes/"+theme+"/images/image.gif","$lang_image_props_desc",inst.hasPlugin("advimage")?"mceAdvImage":"mceImage");break;case"HR":contextMenu.addSeparator();contextMenu.addItem(tinyMCE.baseURL+"/plugins/advhr/images/advhr.gif","$lang_insert_advhr_desc","mceAdvancedHr");break;case"TABLE":case"TD":if(inst.hasPlugin("table")){var colspan=(elm.nodeName=="TABLE")?"":getAttrib(elm,"colspan");var rowspan=(elm.nodeName=="TABLE")?"":getAttrib(elm,"rowspan");colspan=colspan==""?"1":colspan;rowspan=rowspan==""?"1":rowspan;contextMenu.addSeparator();contextMenu.addItem(tinyMCE.baseURL+"/themes/"+theme+"/images/cut.gif","$lang_table_cut_row_desc","mceTableCutRow");contextMenu.addItem(tinyMCE.baseURL+"/themes/"+theme+"/images/copy.gif","$lang_table_copy_row_desc","mceTableCopyRow");contextMenu.addItem(tinyMCE.baseURL+"/themes/"+theme+"/images/paste.gif","$lang_table_paste_row_before_desc","mceTablePasteRowBefore","",inst.tableRowClipboard==null);contextMenu.addItem(tinyMCE.baseURL+"/themes/"+theme+"/images/paste.gif","$lang_table_paste_row_after_desc","mceTablePasteRowAfter","",inst.tableRowClipboard==null);contextMenu.addSeparator();contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table.gif","$lang_table_desc","mceInsertTable","insert");contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table.gif","$lang_table_props_desc","mceInsertTable");contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_cell_props.gif","$lang_table_cell_desc","mceTableCellProps");contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_delete.gif","$lang_table_del","mceTableDelete");contextMenu.addSeparator();contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_row_props.gif","$lang_table_row_desc","mceTableRowProps");contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_insert_row_before.gif","$lang_table_row_before_desc","mceTableInsertRowBefore");contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_insert_row_after.gif","$lang_table_row_after_desc","mceTableInsertRowAfter");contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_delete_row.gif","$lang_table_delete_row_desc","mceTableDeleteRow");contextMenu.addSeparator();contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_insert_col_before.gif","$lang_table_col_before_desc","mceTableInsertColBefore");contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_insert_col_after.gif","$lang_table_col_after_desc","mceTableInsertColAfter");contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_delete_col.gif","$lang_table_delete_col_desc","mceTableDeleteCol");contextMenu.addSeparator();contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_split_cells.gif","$lang_table_split_cells_desc","mceTableSplitCells","",(colspan=="1"&&rowspan=="1"));contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_merge_cells.gif","$lang_table_merge_cells_desc","mceTableMergeCells","",false)}break}}else{if(inst.hasPlugin("table")){contextMenu.addSeparator();contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table.gif","$lang_table_desc","mceInsertTable","insert")}}contextMenu.show(x,y)},10);tinyMCE.cancelEvent(e);return false},_hideContextMenu:function(){if(TinyMCE_ContextMenuPlugin._contextMenu)TinyMCE_ContextMenuPlugin._contextMenu.hide()},_commandHandler:function(command,value){var cm=TinyMCE_ContextMenuPlugin._contextMenu;cm.hide();var ui=false;if(command=="mceInsertTable"||command=="mceTableCellProps"||command=="mceTableRowProps"||command=="mceTableMergeCells")ui=true;if(command=="Paste")value=null;if(tinyMCE.getParam("dialog_type")=="modal"&&tinyMCE.isMSIE){window.setTimeout(function(){cm.inst.execCommand(command,ui,value)},100)}else cm.inst.execCommand(command,ui,value)}};tinyMCE.addPlugin("contextmenu",TinyMCE_ContextMenuPlugin);function TinyMCE_ContextMenu(settings){var doc,self=this;function defParam(key,def_val){settings[key]=typeof(settings[key])!="undefined"?settings[key]:def_val}this.isMSIE=(navigator.appName=="Microsoft Internet Explorer");this.contextMenuDiv=document.createElement("div");this.contextMenuDiv.className="contextMenu";this.contextMenuDiv.setAttribute("class","contextMenu");this.contextMenuDiv.style.display="none";this.contextMenuDiv.style.position='absolute';this.contextMenuDiv.style.zindex=1000;this.contextMenuDiv.style.left='0';this.contextMenuDiv.style.top='0';this.contextMenuDiv.unselectable="on";document.body.appendChild(this.contextMenuDiv);defParam("commandhandler","");defParam("spacer_image","images/spacer.gif");this.items=new Array();this.settings=settings;this.html="";if(tinyMCE.isMSIE&&!tinyMCE.isMSIE5_0&&!tinyMCE.isOpera){this.pop=window.createPopup();doc=this.pop.document;doc.open();doc.write('<html><head><link href="'+tinyMCE.baseURL+'/plugins/contextmenu/css/contextmenu.css" rel="stylesheet" type="text/css" /></head><body unselectable="yes" class="contextMenuIEPopup"></body></html>');doc.close()}};TinyMCE_ContextMenu.prototype={clearAll:function(){this.html="";this.contextMenuDiv.innerHTML=""},addSeparator:function(){this.html+='<tr class="contextMenuItem"><td class="contextMenuIcon"><img src="'+this.settings['spacer_image']+'" width="20" height="1" class="contextMenuImage" /></td><td><img class="contextMenuSeparator" width="1" height="1" src="'+this.settings['spacer_image']+'" /></td></tr>'},addItem:function(icon,title,command,value,disabled){if(title.charAt(0)=='$')title=tinyMCE.getLang(title.substring(1));var onMouseDown='';var html='';if(tinyMCE.isMSIE&&!tinyMCE.isMSIE5_0)onMouseDown='contextMenu.execCommand(\''+command+'\', \''+value+'\');return false;';else onMouseDown=this.settings['commandhandler']+'(\''+command+'\', \''+value+'\');return false;';if(icon=="")icon=this.settings['spacer_image'];if(!disabled)html+='<tr class="contextMenuItem">';else html+='<tr class="contextMenuItemDisabled">';html+='<td class="contextMenuIcon"><img src="'+icon+'" width="20" height="20" class="contextMenuImage" /></td>';html+='<td><div class="contextMenuText">';html+='<a href="javascript:void(0);" onclick="'+onMouseDown+'" onmousedown="return false;"> ';html+=title;html+=' </a>';html+='</div></td>';html+='</tr>';this.html+=html},show:function(x,y){var vp,width,height,yo;if(this.html=="")return;var html='';html+='<a href="#"></a><table border="0" cellpadding="0" cellspacing="0">';html+=this.html;html+='</table>';this.contextMenuDiv.innerHTML=html;this.contextMenuDiv.style.display="block";width=this.contextMenuDiv.offsetWidth;height=this.contextMenuDiv.offsetHeight;this.contextMenuDiv.style.display="none";if(tinyMCE.isMSIE&&!tinyMCE.isMSIE5_0&&!tinyMCE.isOpera){this.pop.document.body.innerHTML='<div class="contextMenu">'+html+"</div>";this.pop.document.tinyMCE=tinyMCE;this.pop.document.contextMenu=this;this.pop.show(x,y,width,height)}else{vp=this.getViewPort();yo=tinyMCE.isMSIE5_0?document.body.scrollTop:self.pageYOffset;this.contextMenuDiv.style.left=(x>vp.left+vp.width-width?vp.left+vp.width-width:x)+'px';this.contextMenuDiv.style.top=(y>vp.top+vp.height-height?vp.top+vp.height-height:y)+'px';this.contextMenuDiv.style.display="block"}},getViewPort:function(){return{left:self.pageXOffset||self.document.documentElement.scrollLeft||self.document.body.scrollLeft,top:self.pageYOffset||self.document.documentElement.scrollTop||self.document.body.scrollTop,width:document.documentElement.offsetWidth||document.body.offsetWidth,height:self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}},hide:function(){if(tinyMCE.isMSIE&&!tinyMCE.isMSIE5_0&&!tinyMCE.isOpera)this.pop.hide();else this.contextMenuDiv.style.display="none"},execCommand:function(command,value){eval(this.settings['commandhandler']+"(command, value);")}};
|
|
add_to_tinymce_directory/plugins/fullscreen/editor_plugin.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
tinyMCE.importPluginLanguagePack('fullscreen');var TinyMCE_FullScreenPlugin={getInfo:function(){return{longname:'Fullscreen',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullscreen',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},initInstance:function(inst){if(!tinyMCE.settings['fullscreen_skip_plugin_css'])tinyMCE.importCSS(inst.getContainerWin().document,tinyMCE.baseURL+"/plugins/fullscreen/css/page.css")},getControlHTML:function(cn){switch(cn){case"fullscreen":return tinyMCE.getButtonHTML(cn,'lang_fullscreen_desc','{$pluginurl}/images/fullscreen.gif','mceFullScreen')}return""},execCommand:function(editor_id,element,command,user_interface,value){var inst;switch(command){case"mceFullScreen":inst=tinyMCE.getInstanceById(editor_id);if(tinyMCE.getParam('fullscreen_new_window'))this._toggleFullscreenWin(inst);else this._toggleFullscreen(inst);return true}return false},_toggleFullscreenWin:function(inst){if(tinyMCE.getParam('fullscreen_is_enabled')){window.opener.tinyMCE.execInstanceCommand(tinyMCE.getParam('fullscreen_editor_id'),'mceSetContent',false,tinyMCE.getContent(inst.editorId));top.close()}else{tinyMCE.setWindowArg('editor_id',inst.editorId);var win=window.open(tinyMCE.baseURL+"/plugins/fullscreen/fullscreen.htm","mceFullScreenPopup","fullscreen=yes,menubar=no,toolbar=no,scrollbars=no,resizable=yes,left=0,top=0,width="+screen.availWidth+",height="+screen.availHeight);try{win.resizeTo(screen.availWidth,screen.availHeight)}catch(e){}}},_toggleFullscreen:function(inst){var ds=inst.getData('fullscreen'),editorContainer,tableElm,iframe,vp,cw,cd,re,w,h,si,blo,delta=0,cell,row,fcml,bcml;cw=inst.getContainerWin();cd=cw.document;editorContainer=cd.getElementById(inst.editorId+'_parent');tableElm=editorContainer.firstChild;iframe=inst.iframeElement;re=cd.getElementById(inst.editorId+'_resize');blo=document.getElementById('mce_fullscreen_blocker');fcm=new TinyMCE_Layer(inst.editorId+'_fcMenu');fcml=new TinyMCE_Layer(inst.editorId+'_fcMenu');bcml=new TinyMCE_Layer(inst.editorId+'_bcMenu');if(fcml.exists()&&fcml.isVisible()){tinyMCE.switchClass(inst.editorId+'_forecolor','mceMenuButton');fcml.hide()}if(bcml.exists()&&bcml.isVisible()){tinyMCE.switchClass(inst.editorId+'_backcolor','mceMenuButton');bcml.hide()}if(!ds.enabled){if(inst.toolbarElement){delta+=inst.toolbarElement.offsetHeight;cell=tableElm.tBodies[0].insertRow(0).insertCell(-1);cell.className='mceToolbarTop';cell.nowrap=true;ds.oldToolbarParent=inst.toolbarElement.parentNode;ds.toolbarHolder=document.createTextNode('...');cell.appendChild(ds.oldToolbarParent.replaceChild(ds.toolbarHolder,inst.toolbarElement))}ds.parents=[];vp=tinyMCE.getViewPort(cw);ds.scrollX=vp.left;ds.scrollY=vp.top;if(!tinyMCE.isOpera)tinyMCE.addCSSClass(cd.body,'mceFullscreen');tinyMCE.getParentNode(tableElm.parentNode,function(n){if(n.nodeName=='BODY')return true;if(n.nodeType==1)tinyMCE.addCSSClass(n,'mceFullscreenPos');return false});if(re)re.style.display='none';vp=tinyMCE.getViewPort(cw);ds.oldWidth=iframe.style.width?iframe.style.width:iframe.offsetWidth;ds.oldHeight=iframe.style.height?iframe.style.height:iframe.offsetHeight;ds.oldTWidth=tableElm.style.width?tableElm.style.width:tableElm.offsetWidth;ds.oldTHeight=tableElm.style.height?tableElm.style.height:tableElm.offsetHeight;if(ds.oldWidth&&ds.oldWidth.indexOf)ds.oldTWidth=ds.oldWidth.indexOf('%')!=-1?ds.oldWidth:ds.oldTWidth;if(!blo&&tinyMCE.isRealIE){blo=tinyMCE.createTag(document,'iframe',{id:'mce_fullscreen_blocker',src:'about:blank',frameBorder:0,width:vp.width,height:vp.height,style:'display: block; position: absolute; left: 0; top: 0; z-index: 999; margin: 0; padding: 0;'});document.body.appendChild(blo)}tableElm.style.position='absolute';tableElm.style.zIndex=1000;tableElm.style.left=tableElm.style.top='0';tableElm.style.width=vp.width+'px';tableElm.style.height=vp.height+'px';if(tinyMCE.isRealIE){iframe.style.width=vp.width+'px';iframe.style.height=vp.height+'px';w=iframe.parentNode.clientWidth-(tableElm.offsetWidth-vp.width);h=iframe.parentNode.clientHeight-(tableElm.offsetHeight-vp.height)}else{w=iframe.parentNode.clientWidth;h=iframe.parentNode.clientHeight}iframe.style.width=w+"px";iframe.style.height=(h+delta)+"px";tinyMCE.switchClass(inst.editorId+'_fullscreen','mceButtonSelected');ds.enabled=true;inst.useCSS=false}else{if(inst.toolbarElement){row=inst.toolbarElement.parentNode.parentNode;row.parentNode.removeChild(row);ds.oldToolbarParent.replaceChild(inst.toolbarElement,ds.toolbarHolder);ds.oldToolbarParent=null;ds.toolbarHolder=null}if(blo)blo.parentNode.removeChild(blo);si=0;tinyMCE.getParentNode(tableElm.parentNode,function(n){if(n.nodeName=='BODY')return true;if(n.nodeType==1)tinyMCE.removeCSSClass(n,'mceFullscreenPos')});if(re&&tinyMCE.getParam("theme_advanced_resizing",false))re.style.display='block';tableElm.style.position='static';tableElm.style.zIndex='';tableElm.style.width='';tableElm.style.height='';tableElm.style.width=ds.oldTWidth?ds.oldTWidth:'';tableElm.style.height=ds.oldTHeight?ds.oldTHeight:'';iframe.style.width=ds.oldWidth?ds.oldWidth:'';iframe.style.height=ds.oldHeight?ds.oldHeight:'';tinyMCE.switchClass(inst.editorId+'_fullscreen','mceButtonNormal');ds.enabled=false;tinyMCE.removeCSSClass(cd.body,'mceFullscreen');cw.scrollTo(ds.scrollX,ds.scrollY);inst.useCSS=false}},handleNodeChange:function(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){if(tinyMCE.getParam('fullscreen_is_enabled'))tinyMCE.switchClass(editor_id+'_fullscreen','mceButtonSelected');return true}};tinyMCE.addPlugin("fullscreen",TinyMCE_FullScreenPlugin);
|
|
add_to_tinymce_directory/plugins/inlinepopups/css/inlinepopup.css
DELETED
@@ -1,69 +0,0 @@
|
|
1 |
-
/* Window classes */
|
2 |
-
|
3 |
-
.mceWindow {
|
4 |
-
position: absolute;
|
5 |
-
left: 0;
|
6 |
-
top: 0;
|
7 |
-
border: 1px solid black;
|
8 |
-
background-color: #D4D0C8;
|
9 |
-
}
|
10 |
-
|
11 |
-
.mceWindowHead {
|
12 |
-
background-color: #334F8D;
|
13 |
-
width: 100%;
|
14 |
-
height: 18px;
|
15 |
-
cursor: move;
|
16 |
-
overflow: hidden;
|
17 |
-
}
|
18 |
-
|
19 |
-
.mceWindowBody {
|
20 |
-
clear: both;
|
21 |
-
background-color: white;
|
22 |
-
}
|
23 |
-
|
24 |
-
.mceWindowStatusbar {
|
25 |
-
background-color: #D4D0C8;
|
26 |
-
height: 12px;
|
27 |
-
border-top: 1px solid black;
|
28 |
-
}
|
29 |
-
|
30 |
-
.mceWindowTitle {
|
31 |
-
float: left;
|
32 |
-
font-family: "MS Sans Serif";
|
33 |
-
font-size: 9pt;
|
34 |
-
font-weight: bold;
|
35 |
-
line-height: 18px;
|
36 |
-
color: white;
|
37 |
-
margin-left: 2px;
|
38 |
-
overflow: hidden;
|
39 |
-
}
|
40 |
-
|
41 |
-
.mceWindowHeadTools {
|
42 |
-
margin-right: 2px;
|
43 |
-
}
|
44 |
-
|
45 |
-
.mceWindowClose, .mceWindowMinimize, .mceWindowMaximize {
|
46 |
-
display: block;
|
47 |
-
float: right;
|
48 |
-
overflow: hidden;
|
49 |
-
margin-top: 2px;
|
50 |
-
}
|
51 |
-
|
52 |
-
.mceWindowClose {
|
53 |
-
margin-left: 2px;
|
54 |
-
}
|
55 |
-
|
56 |
-
.mceWindowMinimize {
|
57 |
-
}
|
58 |
-
|
59 |
-
.mceWindowMaximize {
|
60 |
-
}
|
61 |
-
|
62 |
-
.mceWindowResize {
|
63 |
-
display: block;
|
64 |
-
float: right;
|
65 |
-
overflow: hidden;
|
66 |
-
cursor: se-resize;
|
67 |
-
width: 12px;
|
68 |
-
height: 12px;
|
69 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add_to_tinymce_directory/plugins/inlinepopups/editor_plugin.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
var TinyMCE_InlinePopupsPlugin={getInfo:function(){return{longname:'Inline Popups',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/inlinepopups',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}}};tinyMCE.addPlugin("inlinepopups",TinyMCE_InlinePopupsPlugin);TinyMCE_Engine.prototype.orgOpenWindow=TinyMCE_Engine.prototype.openWindow;TinyMCE_Engine.prototype.orgCloseWindow=TinyMCE_Engine.prototype.closeWindow;TinyMCE_Engine.prototype.openWindow=function(template,args){if(args['inline']!="yes"||tinyMCE.isOpera||tinyMCE.getParam("plugins").indexOf('inlinepopups')==-1){mcWindows.selectedWindow=null;args['mce_inside_iframe']=false;this.orgOpenWindow(template,args);return}var url,resizable,scrollbars;args['mce_inside_iframe']=true;tinyMCE.windowArgs=args;if(template['file'].charAt(0)!='/'&&template['file'].indexOf('://')==-1)url=tinyMCE.baseURL+"/themes/"+tinyMCE.getParam("theme")+"/"+template['file'];else url=template['file'];if(!(width=parseInt(template['width'])))width=320;if(!(height=parseInt(template['height'])))height=200;if(!(minWidth=parseInt(template['minWidth'])))minWidth=100;if(!(minHeight=parseInt(template['minHeight'])))minHeight=100;resizable=(args&&args['resizable'])?args['resizable']:"no";scrollbars=(args&&args['scrollbars'])?args['scrollbars']:"no";height+=18;for(var name in args){if(typeof(args[name])=='function')continue;url=tinyMCE.replaceVar(url,name,escape(args[name]))}var elm=document.getElementById(this.selectedInstance.editorId+'_parent');if(tinyMCE.hasPlugin('fullscreen')&&this.selectedInstance.getData('fullscreen').enabled)pos={absLeft:0,absTop:0};else pos=tinyMCE.getAbsPosition(elm);pos.absLeft+=Math.round((elm.firstChild.clientWidth/ 2) - (width /2));pos.absTop+=Math.round((elm.firstChild.clientHeight/ 2) - (height /2));mcWindows.open(url,mcWindows.idCounter++,"modal=yes,width="+width+",height="+height+",resizable="+resizable+",scrollbars="+scrollbars+",statusbar="+resizable+",left="+pos.absLeft+",top="+pos.absTop+",minWidth="+minWidth+",minHeight="+minHeight)};TinyMCE_Engine.prototype.closeWindow=function(win){var gotit=false,n,w;for(n in mcWindows.windows){w=mcWindows.windows[n];if(typeof(w)=='function')continue;if(win.name==w.id+'_iframe'){w.close();gotit=true}}if(!gotit)this.orgCloseWindow(win);tinyMCE.selectedInstance.getWin().focus()};TinyMCE_Engine.prototype.setWindowTitle=function(win_ref,title){for(var n in mcWindows.windows){var win=mcWindows.windows[n];if(typeof(win)=='function')continue;if(win_ref.name==win.id+"_iframe")window.frames[win.id+"_iframe"].document.getElementById(win.id+'_title').innerHTML=title}};function TinyMCE_Windows(){this.settings=new Array();this.windows=new Array();this.isMSIE=(navigator.appName=="Microsoft Internet Explorer");this.isGecko=navigator.userAgent.indexOf('Gecko')!=-1;this.isSafari=navigator.userAgent.indexOf('Safari')!=-1;this.isMac=navigator.userAgent.indexOf('Mac')!=-1;this.isMSIE5_0=this.isMSIE&&(navigator.userAgent.indexOf('MSIE 5.0')!=-1);this.action="none";this.selectedWindow=null;this.lastSelectedWindow=null;this.zindex=1001;this.mouseDownScreenX=0;this.mouseDownScreenY=0;this.mouseDownLayerX=0;this.mouseDownLayerY=0;this.mouseDownWidth=0;this.mouseDownHeight=0;this.idCounter=0};TinyMCE_Windows.prototype.init=function(settings){this.settings=settings;if(this.isMSIE)this.addEvent(document,"mousemove",mcWindows.eventDispatcher);else this.addEvent(window,"mousemove",mcWindows.eventDispatcher);this.addEvent(document,"mouseup",mcWindows.eventDispatcher);this.addEvent(window,"resize",mcWindows.eventDispatcher);this.addEvent(document,"scroll",mcWindows.eventDispatcher);this.doc=document};TinyMCE_Windows.prototype.getBounds=function(){if(!this.bounds){var vp=tinyMCE.getViewPort(window);var top,left,bottom,right,docEl=this.doc.documentElement;top=vp.top;left=vp.left;bottom=vp.height+top-2;right=vp.width+left-22;this.bounds=[left,top,right,bottom]}return this.bounds};TinyMCE_Windows.prototype.clampBoxPosition=function(x,y,w,h,minW,minH){var bounds=this.getBounds();x=Math.max(bounds[0],Math.min(bounds[2],x+w)-w);y=Math.max(bounds[1],Math.min(bounds[3],y+h)-h);return this.clampBoxSize(x,y,w,h,minW,minH)};TinyMCE_Windows.prototype.clampBoxSize=function(x,y,w,h,minW,minH){var bounds=this.getBounds();return[x,y,Math.max(minW,Math.min(bounds[2],x+w)-x),Math.max(minH,Math.min(bounds[3],y+h)-y)]};TinyMCE_Windows.prototype.getParam=function(name,default_value){var value=null;value=(typeof(this.settings[name])=="undefined")?default_value:this.settings[name];if(value=="true"||value=="false")return(value=="true");return value};TinyMCE_Windows.prototype.eventDispatcher=function(e){e=typeof(e)=="undefined"?window.event:e;if(mcWindows.selectedWindow==null)return;if(mcWindows.isGecko&&e.type=="mousedown"){var elm=e.currentTarget;for(var n in mcWindows.windows){var win=mcWindows.windows[n];if(win.headElement==elm||win.resizeElement==elm){win.focus();break}}}switch(e.type){case"mousemove":mcWindows.selectedWindow.onMouseMove(e);break;case"mouseup":mcWindows.selectedWindow.onMouseUp(e);break;case"mousedown":mcWindows.selectedWindow.onMouseDown(e);break;case"focus":mcWindows.selectedWindow.onFocus(e);break;case"scroll":case"resize":if(mcWindows.clampUpdateTimeout)clearTimeout(mcWindows.clampUpdateTimeout);mcWindows.clampEventType=e.type;mcWindows.clampUpdateTimeout=setTimeout(function(){mcWindows.updateClamping()},100);break}};TinyMCE_Windows.prototype.updateClamping=function(){var clamp,oversize,etype=mcWindows.clampEventType;this.bounds=null;this.clampUpdateTimeout=null;for(var n in this.windows){win=this.windows[n];if(typeof(win)=='function'||!win.winElement)continue;clamp=mcWindows.clampBoxPosition(win.left,win.top,win.winElement.scrollWidth,win.winElement.scrollHeight,win.features.minWidth,win.features.minHeight);oversize=(clamp[2]!=win.winElement.scrollWidth||clamp[3]!=win.winElement.scrollHeight)?true:false;if(!oversize||win.features.resizable=="yes"||etype!="scroll")win.moveTo(clamp[0],clamp[1]);if(oversize&&win.features.resizable=="yes")win.resizeTo(clamp[2],clamp[3])}};TinyMCE_Windows.prototype.addEvent=function(obj,name,handler){if(this.isMSIE)obj.attachEvent("on"+name,handler);else obj.addEventListener(name,handler,false)};TinyMCE_Windows.prototype.cancelEvent=function(e){if(this.isMSIE){e.returnValue=false;e.cancelBubble=true}else e.preventDefault()};TinyMCE_Windows.prototype.parseFeatures=function(opts){opts=opts.toLowerCase();opts=opts.replace(/;/g,",");opts=opts.replace(/[^0-9a-z=,]/g,"");var optionChunks=opts.split(',');var options=new Array();options['left']="10";options['top']="10";options['width']="300";options['height']="300";options['minwidth']="100";options['minheight']="100";options['resizable']="yes";options['minimizable']="yes";options['maximizable']="yes";options['close']="yes";options['movable']="yes";options['statusbar']="yes";options['scrollbars']="auto";options['modal']="no";if(opts=="")return options;for(var i=0;i<optionChunks.length;i++){var parts=optionChunks[i].split('=');if(parts.length==2)options[parts[0]]=parts[1]}options['left']=parseInt(options['left']);options['top']=parseInt(options['top']);options['width']=parseInt(options['width']);options['height']=parseInt(options['height']);options['minWidth']=parseInt(options['minwidth']);options['minHeight']=parseInt(options['minheight']);return options};TinyMCE_Windows.prototype.open=function(url,name,features){this.lastSelectedWindow=this.selectedWindow;var win=new TinyMCE_Window();var winDiv,html="",id;var imgPath=this.getParam("images_path");features=this.parseFeatures(features);var clamp=mcWindows.clampBoxPosition(features['left'],features['top'],features['width'],features['height'],features['minWidth'],features['minHeight']);features['left']=clamp[0];features['top']=clamp[1];if(features['resizable']=="yes"){features['width']=clamp[2];features['height']=clamp[3]}id="mcWindow_"+name;win.deltaHeight=18;if(features['statusbar']=="yes"){win.deltaHeight+=13;if(this.isMSIE)win.deltaHeight+=1}width=parseInt(features['width']);height=parseInt(features['height'])-win.deltaHeight;if(this.isMSIE)width-=2;win.id=id;win.url=url;win.name=name;win.features=features;this.windows[name]=win;iframeWidth=width;iframeHeight=height;html+='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">';html+='<html>';html+='<head>';html+='<title>Wrapper iframe</title>';html+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">';html+='<link href="'+this.getParam("css_file")+'" rel="stylesheet" type="text/css" />';html+='</head>';html+='<body onload="parent.mcWindows.onLoad(\''+name+'\');">';html+='<div id="'+id+'_container" class="mceWindow">';html+='<div id="'+id+'_head" class="mceWindowHead" onmousedown="parent.mcWindows.windows[\''+name+'\'].focus();">';html+=' <div id="'+id+'_title" class="mceWindowTitle"';html+=' onselectstart="return false;" unselectable="on" style="-moz-user-select: none !important;"></div>';html+=' <div class="mceWindowHeadTools">';html+=' <a href="javascript:parent.mcWindows.windows[\''+name+'\'].close();" target="_self" onmousedown="return false;" class="mceWindowClose"><img border="0" src="'+imgPath+'/window_close.gif" /></a>';if(features['resizable']=="yes"&&features['maximizable']=="yes")html+=' <a href="javascript:parent.mcWindows.windows[\''+name+'\'].maximize();" target="_self" onmousedown="return false;" class="mceWindowMaximize"><img border="0" src="'+imgPath+'/window_maximize.gif" /></a>';html+=' </div>';html+='</div><div id="'+id+'_body" class="mceWindowBody" style="width: '+width+'px; height: '+height+'px;">';html+='<iframe id="'+id+'_iframe" name="'+id+'_iframe" frameborder="0" width="'+iframeWidth+'" height="'+iframeHeight+'" src="'+url+'" class="mceWindowBodyIframe" scrolling="'+features['scrollbars']+'"></iframe></div>';if(features['statusbar']=="yes"){html+='<div id="'+id+'_statusbar" class="mceWindowStatusbar" onmousedown="parent.mcWindows.windows[\''+name+'\'].focus();">';if(features['resizable']=="yes"){if(this.isGecko)html+='<div id="'+id+'_resize" class="mceWindowResize"><div style="background-image: url(\''+imgPath+'/window_resize.gif\'); width: 12px; height: 12px;"></div></div>';else html+='<div id="'+id+'_resize" class="mceWindowResize"><img onmousedown="parent.mcWindows.windows[\''+name+'\'].focus();" border="0" src="'+imgPath+'/window_resize.gif" /></div>'}html+='</div>'}html+='</div>';html+='</body>';html+='</html>';this.createFloatingIFrame(id,features['left'],features['top'],features['width'],features['height'],html)};TinyMCE_Windows.prototype.setDocumentLock=function(state){var elm=document.getElementById('mcWindowEventBlocker');if(state){if(elm==null){elm=document.createElement("div");elm.id="mcWindowEventBlocker";elm.style.position="absolute";elm.style.left="0";elm.style.top="0";document.body.appendChild(elm)}elm.style.display="none";var imgPath=this.getParam("images_path");var width=document.body.clientWidth;var height=document.body.clientHeight;elm.style.width=width;elm.style.height=height;elm.innerHTML='<img src="'+imgPath+'/spacer.gif" width="'+width+'" height="'+height+'" />';elm.style.zIndex=mcWindows.zindex-1;elm.style.display="block"}else if(elm!=null){if(mcWindows.windows.length==0)elm.parentNode.removeChild(elm);else elm.style.zIndex=mcWindows.zindex-1}};TinyMCE_Windows.prototype.onLoad=function(name){var win=mcWindows.windows[name];var id="mcWindow_"+name;var wrapperIframe=window.frames[id+"_iframe"].frames[0];var wrapperDoc=window.frames[id+"_iframe"].document;var doc=window.frames[id+"_iframe"].document;var winDiv=document.getElementById("mcWindow_"+name+"_div");var realIframe=window.frames[id+"_iframe"].frames[0];win.id="mcWindow_"+name;win.winElement=winDiv;win.bodyElement=doc.getElementById(id+'_body');win.iframeElement=doc.getElementById(id+'_iframe');win.headElement=doc.getElementById(id+'_head');win.titleElement=doc.getElementById(id+'_title');win.resizeElement=doc.getElementById(id+'_resize');win.containerElement=doc.getElementById(id+'_container');win.left=win.features['left'];win.top=win.features['top'];win.frame=window.frames[id+'_iframe'].frames[0];win.wrapperFrame=window.frames[id+'_iframe'];win.wrapperIFrameElement=document.getElementById(id+"_iframe");mcWindows.addEvent(win.headElement,"mousedown",mcWindows.eventDispatcher);if(win.resizeElement!=null)mcWindows.addEvent(win.resizeElement,"mousedown",mcWindows.eventDispatcher);if(mcWindows.isMSIE){mcWindows.addEvent(realIframe.document,"mousemove",mcWindows.eventDispatcher);mcWindows.addEvent(realIframe.document,"mouseup",mcWindows.eventDispatcher)}else{mcWindows.addEvent(realIframe,"mousemove",mcWindows.eventDispatcher);mcWindows.addEvent(realIframe,"mouseup",mcWindows.eventDispatcher);mcWindows.addEvent(realIframe,"focus",mcWindows.eventDispatcher)}for(var i=0;i<window.frames.length;i++){if(!window.frames[i]._hasMouseHandlers){if(mcWindows.isMSIE){mcWindows.addEvent(window.frames[i].document,"mousemove",mcWindows.eventDispatcher);mcWindows.addEvent(window.frames[i].document,"mouseup",mcWindows.eventDispatcher)}else{mcWindows.addEvent(window.frames[i],"mousemove",mcWindows.eventDispatcher);mcWindows.addEvent(window.frames[i],"mouseup",mcWindows.eventDispatcher)}window.frames[i]._hasMouseHandlers=true}}if(mcWindows.isMSIE){mcWindows.addEvent(win.frame.document,"mousemove",mcWindows.eventDispatcher);mcWindows.addEvent(win.frame.document,"mouseup",mcWindows.eventDispatcher)}else{mcWindows.addEvent(win.frame,"mousemove",mcWindows.eventDispatcher);mcWindows.addEvent(win.frame,"mouseup",mcWindows.eventDispatcher);mcWindows.addEvent(win.frame,"focus",mcWindows.eventDispatcher)}var func=this.getParam("on_open_window","");if(func!="")eval(func+"(win);");win.focus();if(win.features['modal']=="yes")mcWindows.setDocumentLock(true)};TinyMCE_Windows.prototype.createFloatingIFrame=function(id_prefix,left,top,width,height,html){var iframe=document.createElement("iframe");var div=document.createElement("div"),doc;width=parseInt(width);height=parseInt(height)+1;div.setAttribute("id",id_prefix+"_div");div.setAttribute("width",width);div.setAttribute("height",(height));div.style.position="absolute";div.style.left=left+"px";div.style.top=top+"px";div.style.width=width+"px";div.style.height=(height)+"px";div.style.backgroundColor="white";div.style.display="none";if(this.isGecko){iframeWidth=width+2;iframeHeight=height+2}else{iframeWidth=width;iframeHeight=height+1}iframe.setAttribute("id",id_prefix+"_iframe");iframe.setAttribute("name",id_prefix+"_iframe");iframe.setAttribute("border","0");iframe.setAttribute("frameBorder","0");iframe.setAttribute("marginWidth","0");iframe.setAttribute("marginHeight","0");iframe.setAttribute("leftMargin","0");iframe.setAttribute("topMargin","0");iframe.setAttribute("width",iframeWidth);iframe.setAttribute("height",iframeHeight);iframe.setAttribute("scrolling","no");iframe.style.width=iframeWidth+"px";iframe.style.height=iframeHeight+"px";iframe.style.backgroundColor="white";div.appendChild(iframe);document.body.appendChild(div);div.innerHTML=div.innerHTML;if(this.isSafari){window.setTimeout(function(){var doc=window.frames[id_prefix+'_iframe'].document;doc.open();doc.write(html);doc.close()},10)}else{doc=window.frames[id_prefix+'_iframe'].window.document;doc.open();doc.write(html);doc.close()}div.style.display="block";return div};function TinyMCE_Window(){};TinyMCE_Window.prototype.focus=function(){if(this!=mcWindows.selectedWindow){this.winElement.style.zIndex=++mcWindows.zindex;mcWindows.lastSelectedWindow=mcWindows.selectedWindow;mcWindows.selectedWindow=this}};TinyMCE_Window.prototype.minimize=function(){};TinyMCE_Window.prototype.maximize=function(){if(this.restoreSize){this.moveTo(this.restoreSize[0],this.restoreSize[1]);this.resizeTo(this.restoreSize[2],this.restoreSize[3]);this.updateClamping();this.restoreSize=null}else{var bounds=mcWindows.getBounds();this.restoreSize=[this.left,this.top,this.winElement.scrollWidth,this.winElement.scrollHeight];this.moveTo(bounds[0],bounds[1]);this.resizeTo(bounds[2]-bounds[0],bounds[3]-bounds[1])}};TinyMCE_Window.prototype.startResize=function(){mcWindows.action="resize"};TinyMCE_Window.prototype.startMove=function(e){mcWindows.action="move"};TinyMCE_Window.prototype.close=function(){if(this.frame&&this.frame['tinyMCEPopup'])this.frame['tinyMCEPopup'].restoreSelection();if(mcWindows.lastSelectedWindow!=null)mcWindows.lastSelectedWindow.focus();var mcWindowsNew=new Array();for(var n in mcWindows.windows){var win=mcWindows.windows[n];if(typeof(win)=='function')continue;if(win.name!=this.name)mcWindowsNew[n]=win}mcWindows.windows=mcWindowsNew;var e=mcWindows.doc.getElementById(this.id+"_iframe");e.parentNode.removeChild(e);var e=mcWindows.doc.getElementById(this.id+"_div");e.parentNode.removeChild(e);mcWindows.setDocumentLock(false)};TinyMCE_Window.prototype.onMouseMove=function(e){var clamp;var dx=e.screenX-mcWindows.mouseDownScreenX;var dy=e.screenY-mcWindows.mouseDownScreenY;switch(mcWindows.action){case"resize":clamp=mcWindows.clampBoxSize(this.left,this.top,mcWindows.mouseDownWidth+(e.screenX-mcWindows.mouseDownScreenX),mcWindows.mouseDownHeight+(e.screenY-mcWindows.mouseDownScreenY),this.features.minWidth,this.features.minHeight);this.resizeTo(clamp[2],clamp[3]);mcWindows.cancelEvent(e);break;case"move":this.left=mcWindows.mouseDownLayerX+(e.screenX-mcWindows.mouseDownScreenX);this.top=mcWindows.mouseDownLayerY+(e.screenY-mcWindows.mouseDownScreenY);this.updateClamping();mcWindows.cancelEvent(e);break}};TinyMCE_Window.prototype.moveTo=function(x,y){this.left=x;this.top=y;this.winElement.style.left=this.left+"px";this.winElement.style.top=this.top+"px"};TinyMCE_Window.prototype.resizeTo=function(width,height){this.wrapperIFrameElement.style.width=(width+2)+'px';this.wrapperIFrameElement.style.height=(height+2)+'px';this.wrapperIFrameElement.width=width+2;this.wrapperIFrameElement.height=height+2;this.winElement.style.width=width+'px';this.winElement.style.height=height+'px';height=height-this.deltaHeight;this.containerElement.style.width=width+'px';this.iframeElement.style.width=width+'px';this.iframeElement.style.height=height+'px';this.bodyElement.style.width=width+'px';this.bodyElement.style.height=height+'px';this.headElement.style.width=width+'px';};TinyMCE_Window.prototype.updateClamping=function(){var clamp,oversize;clamp=mcWindows.clampBoxPosition(this.left,this.top,this.winElement.scrollWidth,this.winElement.scrollHeight,this.features.minWidth,this.features.minHeight);oversize=(clamp[2]!=this.winElement.scrollWidth||clamp[3]!=this.winElement.scrollHeight)?true:false;this.moveTo(clamp[0],clamp[1]);if(this.features.resizable=="yes"&&oversize)this.resizeTo(clamp[2],clamp[3])};function debug(msg){document.getElementById('debug').value+=msg+"\n"}TinyMCE_Window.prototype.onMouseUp=function(e){mcWindows.action="none"};TinyMCE_Window.prototype.onFocus=function(e){var winRef=e.currentTarget;for(var n in mcWindows.windows){var win=mcWindows.windows[n];if(typeof(win)=='function')continue;if(winRef.name==win.id+"_iframe"){win.focus();return}}};TinyMCE_Window.prototype.onMouseDown=function(e){var elm=mcWindows.isMSIE?this.wrapperFrame.event.srcElement:e.target;mcWindows.mouseDownScreenX=e.screenX;mcWindows.mouseDownScreenY=e.screenY;mcWindows.mouseDownLayerX=this.left;mcWindows.mouseDownLayerY=this.top;mcWindows.mouseDownWidth=parseInt(this.winElement.style.width);mcWindows.mouseDownHeight=parseInt(this.winElement.style.height);if(this.resizeElement!=null&&elm==this.resizeElement.firstChild)this.startResize(e);else this.startMove(e);mcWindows.cancelEvent(e)};var mcWindows=new TinyMCE_Windows();mcWindows.init({images_path:tinyMCE.baseURL+"/plugins/inlinepopups/images",css_file:tinyMCE.baseURL+"/plugins/inlinepopups/css/inlinepopup.css"});
|
|
add_to_tinymce_directory/plugins/inlinepopups/editor_plugin_src.js
DELETED
@@ -1,819 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* $Id: editor_plugin_src.js 268 2007-04-28 15:52:59Z spocke $
|
3 |
-
*
|
4 |
-
* Moxiecode DHTML Windows script.
|
5 |
-
*
|
6 |
-
* @author Moxiecode
|
7 |
-
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
8 |
-
*/
|
9 |
-
|
10 |
-
// Patch openWindow, closeWindow TinyMCE functions
|
11 |
-
|
12 |
-
var TinyMCE_InlinePopupsPlugin = {
|
13 |
-
getInfo : function() {
|
14 |
-
return {
|
15 |
-
longname : 'Inline Popups',
|
16 |
-
author : 'Moxiecode Systems AB',
|
17 |
-
authorurl : 'http://tinymce.moxiecode.com',
|
18 |
-
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/inlinepopups',
|
19 |
-
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
|
20 |
-
};
|
21 |
-
}
|
22 |
-
};
|
23 |
-
|
24 |
-
tinyMCE.addPlugin("inlinepopups", TinyMCE_InlinePopupsPlugin);
|
25 |
-
|
26 |
-
// Patch openWindow, closeWindow TinyMCE functions
|
27 |
-
|
28 |
-
TinyMCE_Engine.prototype.orgOpenWindow = TinyMCE_Engine.prototype.openWindow;
|
29 |
-
TinyMCE_Engine.prototype.orgCloseWindow = TinyMCE_Engine.prototype.closeWindow;
|
30 |
-
|
31 |
-
TinyMCE_Engine.prototype.openWindow = function(template, args) {
|
32 |
-
// Does the caller support inline
|
33 |
-
if (args['inline'] != "yes" || tinyMCE.isOpera || tinyMCE.getParam("plugins").indexOf('inlinepopups') == -1) {
|
34 |
-
mcWindows.selectedWindow = null;
|
35 |
-
args['mce_inside_iframe'] = false;
|
36 |
-
this.orgOpenWindow(template, args);
|
37 |
-
return;
|
38 |
-
}
|
39 |
-
|
40 |
-
var url, resizable, scrollbars;
|
41 |
-
|
42 |
-
args['mce_inside_iframe'] = true;
|
43 |
-
tinyMCE.windowArgs = args;
|
44 |
-
|
45 |
-
if (template['file'].charAt(0) != '/' && template['file'].indexOf('://') == -1)
|
46 |
-
url = tinyMCE.baseURL + "/themes/" + tinyMCE.getParam("theme") + "/" + template['file'];
|
47 |
-
else
|
48 |
-
url = template['file'];
|
49 |
-
|
50 |
-
if (!(width = parseInt(template['width'])))
|
51 |
-
width = 320;
|
52 |
-
|
53 |
-
if (!(height = parseInt(template['height'])))
|
54 |
-
height = 200;
|
55 |
-
|
56 |
-
if (!(minWidth = parseInt(template['minWidth'])))
|
57 |
-
minWidth = 100;
|
58 |
-
|
59 |
-
if (!(minHeight = parseInt(template['minHeight'])))
|
60 |
-
minHeight = 100;
|
61 |
-
|
62 |
-
resizable = (args && args['resizable']) ? args['resizable'] : "no";
|
63 |
-
scrollbars = (args && args['scrollbars']) ? args['scrollbars'] : "no";
|
64 |
-
|
65 |
-
height += 18;
|
66 |
-
|
67 |
-
// Replace all args as variables in URL
|
68 |
-
for (var name in args) {
|
69 |
-
if (typeof(args[name]) == 'function')
|
70 |
-
continue;
|
71 |
-
|
72 |
-
url = tinyMCE.replaceVar(url, name, escape(args[name]));
|
73 |
-
}
|
74 |
-
|
75 |
-
var elm = document.getElementById(this.selectedInstance.editorId + '_parent');
|
76 |
-
|
77 |
-
if (tinyMCE.hasPlugin('fullscreen') && this.selectedInstance.getData('fullscreen').enabled)
|
78 |
-
pos = { absLeft: 0, absTop: 0 };
|
79 |
-
else
|
80 |
-
pos = tinyMCE.getAbsPosition(elm);
|
81 |
-
|
82 |
-
// Center div in editor area
|
83 |
-
pos.absLeft += Math.round((elm.firstChild.clientWidth / 2) - (width / 2));
|
84 |
-
pos.absTop += Math.round((elm.firstChild.clientHeight / 2) - (height / 2));
|
85 |
-
|
86 |
-
mcWindows.open(url, mcWindows.idCounter++, "modal=yes,width=" + width+ ",height=" + height + ",resizable=" + resizable + ",scrollbars=" + scrollbars + ",statusbar=" + resizable + ",left=" + pos.absLeft + ",top=" + pos.absTop + ",minWidth=" + minWidth + ",minHeight=" + minHeight );
|
87 |
-
};
|
88 |
-
|
89 |
-
TinyMCE_Engine.prototype.closeWindow = function(win) {
|
90 |
-
var gotit = false, n, w;
|
91 |
-
|
92 |
-
for (n in mcWindows.windows) {
|
93 |
-
w = mcWindows.windows[n];
|
94 |
-
|
95 |
-
if (typeof(w) == 'function')
|
96 |
-
continue;
|
97 |
-
|
98 |
-
if (win.name == w.id + '_iframe') {
|
99 |
-
w.close();
|
100 |
-
gotit = true;
|
101 |
-
}
|
102 |
-
}
|
103 |
-
|
104 |
-
if (!gotit)
|
105 |
-
this.orgCloseWindow(win);
|
106 |
-
|
107 |
-
tinyMCE.selectedInstance.getWin().focus();
|
108 |
-
};
|
109 |
-
|
110 |
-
TinyMCE_Engine.prototype.setWindowTitle = function(win_ref, title) {
|
111 |
-
for (var n in mcWindows.windows) {
|
112 |
-
var win = mcWindows.windows[n];
|
113 |
-
if (typeof(win) == 'function')
|
114 |
-
continue;
|
115 |
-
|
116 |
-
if (win_ref.name == win.id + "_iframe")
|
117 |
-
window.frames[win.id + "_iframe"].document.getElementById(win.id + '_title').innerHTML = title;
|
118 |
-
}
|
119 |
-
};
|
120 |
-
|
121 |
-
// * * * * * TinyMCE_Windows classes below
|
122 |
-
|
123 |
-
// Windows handler
|
124 |
-
function TinyMCE_Windows() {
|
125 |
-
this.settings = new Array();
|
126 |
-
this.windows = new Array();
|
127 |
-
this.isMSIE = (navigator.appName == "Microsoft Internet Explorer");
|
128 |
-
this.isGecko = navigator.userAgent.indexOf('Gecko') != -1;
|
129 |
-
this.isSafari = navigator.userAgent.indexOf('Safari') != -1;
|
130 |
-
this.isMac = navigator.userAgent.indexOf('Mac') != -1;
|
131 |
-
this.isMSIE5_0 = this.isMSIE && (navigator.userAgent.indexOf('MSIE 5.0') != -1);
|
132 |
-
this.action = "none";
|
133 |
-
this.selectedWindow = null;
|
134 |
-
this.lastSelectedWindow = null;
|
135 |
-
this.zindex = 1001;
|
136 |
-
this.mouseDownScreenX = 0;
|
137 |
-
this.mouseDownScreenY = 0;
|
138 |
-
this.mouseDownLayerX = 0;
|
139 |
-
this.mouseDownLayerY = 0;
|
140 |
-
this.mouseDownWidth = 0;
|
141 |
-
this.mouseDownHeight = 0;
|
142 |
-
this.idCounter = 0;
|
143 |
-
};
|
144 |
-
|
145 |
-
TinyMCE_Windows.prototype.init = function(settings) {
|
146 |
-
this.settings = settings;
|
147 |
-
|
148 |
-
if (this.isMSIE)
|
149 |
-
this.addEvent(document, "mousemove", mcWindows.eventDispatcher);
|
150 |
-
else
|
151 |
-
this.addEvent(window, "mousemove", mcWindows.eventDispatcher);
|
152 |
-
|
153 |
-
this.addEvent(document, "mouseup", mcWindows.eventDispatcher);
|
154 |
-
|
155 |
-
this.addEvent(window, "resize", mcWindows.eventDispatcher);
|
156 |
-
this.addEvent(document, "scroll", mcWindows.eventDispatcher);
|
157 |
-
|
158 |
-
this.doc = document;
|
159 |
-
};
|
160 |
-
|
161 |
-
TinyMCE_Windows.prototype.getBounds = function() {
|
162 |
-
if (!this.bounds) {
|
163 |
-
var vp = tinyMCE.getViewPort(window);
|
164 |
-
var top, left, bottom, right, docEl = this.doc.documentElement;
|
165 |
-
|
166 |
-
top = vp.top;
|
167 |
-
left = vp.left;
|
168 |
-
bottom = vp.height + top - 2;
|
169 |
-
right = vp.width + left - 22; // TODO this number is platform dependant
|
170 |
-
// x1, y1, x2, y2
|
171 |
-
this.bounds = [left, top, right, bottom];
|
172 |
-
}
|
173 |
-
return this.bounds;
|
174 |
-
};
|
175 |
-
|
176 |
-
TinyMCE_Windows.prototype.clampBoxPosition = function(x, y, w, h, minW, minH) {
|
177 |
-
var bounds = this.getBounds();
|
178 |
-
|
179 |
-
x = Math.max(bounds[0], Math.min(bounds[2], x + w) - w);
|
180 |
-
y = Math.max(bounds[1], Math.min(bounds[3], y + h) - h);
|
181 |
-
|
182 |
-
return this.clampBoxSize(x, y, w, h, minW, minH);
|
183 |
-
};
|
184 |
-
|
185 |
-
TinyMCE_Windows.prototype.clampBoxSize = function(x, y, w, h, minW, minH) {
|
186 |
-
var bounds = this.getBounds();
|
187 |
-
|
188 |
-
return [
|
189 |
-
x, y,
|
190 |
-
Math.max(minW, Math.min(bounds[2], x + w) - x),
|
191 |
-
Math.max(minH, Math.min(bounds[3], y + h) - y)
|
192 |
-
];
|
193 |
-
};
|
194 |
-
|
195 |
-
TinyMCE_Windows.prototype.getParam = function(name, default_value) {
|
196 |
-
var value = null;
|
197 |
-
|
198 |
-
value = (typeof(this.settings[name]) == "undefined") ? default_value : this.settings[name];
|
199 |
-
|
200 |
-
// Fix bool values
|
201 |
-
if (value == "true" || value == "false")
|
202 |
-
return (value == "true");
|
203 |
-
|
204 |
-
return value;
|
205 |
-
};
|
206 |
-
|
207 |
-
TinyMCE_Windows.prototype.eventDispatcher = function(e) {
|
208 |
-
e = typeof(e) == "undefined" ? window.event : e;
|
209 |
-
|
210 |
-
if (mcWindows.selectedWindow == null)
|
211 |
-
return;
|
212 |
-
|
213 |
-
// Switch focus
|
214 |
-
if (mcWindows.isGecko && e.type == "mousedown") {
|
215 |
-
var elm = e.currentTarget;
|
216 |
-
|
217 |
-
for (var n in mcWindows.windows) {
|
218 |
-
var win = mcWindows.windows[n];
|
219 |
-
|
220 |
-
if (win.headElement == elm || win.resizeElement == elm) {
|
221 |
-
win.focus();
|
222 |
-
break;
|
223 |
-
}
|
224 |
-
}
|
225 |
-
}
|
226 |
-
|
227 |
-
switch (e.type) {
|
228 |
-
case "mousemove":
|
229 |
-
mcWindows.selectedWindow.onMouseMove(e);
|
230 |
-
break;
|
231 |
-
|
232 |
-
case "mouseup":
|
233 |
-
mcWindows.selectedWindow.onMouseUp(e);
|
234 |
-
break;
|
235 |
-
|
236 |
-
case "mousedown":
|
237 |
-
mcWindows.selectedWindow.onMouseDown(e);
|
238 |
-
break;
|
239 |
-
|
240 |
-
case "focus":
|
241 |
-
mcWindows.selectedWindow.onFocus(e);
|
242 |
-
break;
|
243 |
-
case "scroll":
|
244 |
-
case "resize":
|
245 |
-
if (mcWindows.clampUpdateTimeout)
|
246 |
-
clearTimeout(mcWindows.clampUpdateTimeout);
|
247 |
-
mcWindows.clampEventType = e.type;
|
248 |
-
mcWindows.clampUpdateTimeout =
|
249 |
-
setTimeout(function () {mcWindows.updateClamping()}, 100);
|
250 |
-
break;
|
251 |
-
}
|
252 |
-
};
|
253 |
-
|
254 |
-
TinyMCE_Windows.prototype.updateClamping = function () {
|
255 |
-
var clamp, oversize, etype = mcWindows.clampEventType;
|
256 |
-
|
257 |
-
this.bounds = null; // Recalc window bounds on resize/scroll
|
258 |
-
this.clampUpdateTimeout = null;
|
259 |
-
|
260 |
-
for (var n in this.windows) {
|
261 |
-
win = this.windows[n];
|
262 |
-
if (typeof(win) == 'function' || ! win.winElement) continue;
|
263 |
-
|
264 |
-
clamp = mcWindows.clampBoxPosition(
|
265 |
-
win.left, win.top,
|
266 |
-
win.winElement.scrollWidth,
|
267 |
-
win.winElement.scrollHeight,
|
268 |
-
win.features.minWidth,
|
269 |
-
win.features.minHeight
|
270 |
-
);
|
271 |
-
oversize = (
|
272 |
-
clamp[2] != win.winElement.scrollWidth ||
|
273 |
-
clamp[3] != win.winElement.scrollHeight
|
274 |
-
) ? true : false;
|
275 |
-
|
276 |
-
if (!oversize || win.features.resizable == "yes" || etype != "scroll")
|
277 |
-
win.moveTo(clamp[0], clamp[1]);
|
278 |
-
if (oversize && win.features.resizable == "yes")
|
279 |
-
win.resizeTo(clamp[2], clamp[3]);
|
280 |
-
}
|
281 |
-
};
|
282 |
-
|
283 |
-
TinyMCE_Windows.prototype.addEvent = function(obj, name, handler) {
|
284 |
-
if (this.isMSIE)
|
285 |
-
obj.attachEvent("on" + name, handler);
|
286 |
-
else
|
287 |
-
obj.addEventListener(name, handler, false);
|
288 |
-
};
|
289 |
-
|
290 |
-
TinyMCE_Windows.prototype.cancelEvent = function(e) {
|
291 |
-
if (this.isMSIE) {
|
292 |
-
e.returnValue = false;
|
293 |
-
e.cancelBubble = true;
|
294 |
-
} else
|
295 |
-
e.preventDefault();
|
296 |
-
};
|
297 |
-
|
298 |
-
TinyMCE_Windows.prototype.parseFeatures = function(opts) {
|
299 |
-
// Cleanup the options
|
300 |
-
opts = opts.toLowerCase();
|
301 |
-
opts = opts.replace(/;/g, ",");
|
302 |
-
opts = opts.replace(/[^0-9a-z=,]/g, "");
|
303 |
-
|
304 |
-
var optionChunks = opts.split(',');
|
305 |
-
var options = new Array();
|
306 |
-
|
307 |
-
options['left'] = "10";
|
308 |
-
options['top'] = "10";
|
309 |
-
options['width'] = "300";
|
310 |
-
options['height'] = "300";
|
311 |
-
options['minwidth'] = "100";
|
312 |
-
options['minheight'] = "100";
|
313 |
-
options['resizable'] = "yes";
|
314 |
-
options['minimizable'] = "yes";
|
315 |
-
options['maximizable'] = "yes";
|
316 |
-
options['close'] = "yes";
|
317 |
-
options['movable'] = "yes";
|
318 |
-
options['statusbar'] = "yes";
|
319 |
-
options['scrollbars'] = "auto";
|
320 |
-
options['modal'] = "no";
|
321 |
-
|
322 |
-
if (opts == "")
|
323 |
-
return options;
|
324 |
-
|
325 |
-
for (var i=0; i<optionChunks.length; i++) {
|
326 |
-
var parts = optionChunks[i].split('=');
|
327 |
-
|
328 |
-
if (parts.length == 2)
|
329 |
-
options[parts[0]] = parts[1];
|
330 |
-
}
|
331 |
-
|
332 |
-
options['left'] = parseInt(options['left']);
|
333 |
-
options['top'] = parseInt(options['top']);
|
334 |
-
options['width'] = parseInt(options['width']);
|
335 |
-
options['height'] = parseInt(options['height']);
|
336 |
-
options['minWidth'] = parseInt(options['minwidth']);
|
337 |
-
options['minHeight'] = parseInt(options['minheight']);
|
338 |
-
|
339 |
-
return options;
|
340 |
-
};
|
341 |
-
|
342 |
-
TinyMCE_Windows.prototype.open = function(url, name, features) {
|
343 |
-
this.lastSelectedWindow = this.selectedWindow;
|
344 |
-
|
345 |
-
var win = new TinyMCE_Window();
|
346 |
-
var winDiv, html = "", id;
|
347 |
-
var imgPath = this.getParam("images_path");
|
348 |
-
|
349 |
-
features = this.parseFeatures(features);
|
350 |
-
|
351 |
-
// Clamp specified dimensions
|
352 |
-
var clamp = mcWindows.clampBoxPosition(
|
353 |
-
features['left'], features['top'],
|
354 |
-
features['width'], features['height'],
|
355 |
-
features['minWidth'], features['minHeight']
|
356 |
-
);
|
357 |
-
|
358 |
-
features['left'] = clamp[0];
|
359 |
-
features['top'] = clamp[1];
|
360 |
-
|
361 |
-
if (features['resizable'] == "yes") {
|
362 |
-
features['width'] = clamp[2];
|
363 |
-
features['height'] = clamp[3];
|
364 |
-
}
|
365 |
-
|
366 |
-
// Create div
|
367 |
-
id = "mcWindow_" + name;
|
368 |
-
win.deltaHeight = 18;
|
369 |
-
|
370 |
-
if (features['statusbar'] == "yes") {
|
371 |
-
win.deltaHeight += 13;
|
372 |
-
|
373 |
-
if (this.isMSIE)
|
374 |
-
win.deltaHeight += 1;
|
375 |
-
}
|
376 |
-
|
377 |
-
width = parseInt(features['width']);
|
378 |
-
height = parseInt(features['height'])-win.deltaHeight;
|
379 |
-
|
380 |
-
if (this.isMSIE)
|
381 |
-
width -= 2;
|
382 |
-
|
383 |
-
// Setup first part of window
|
384 |
-
win.id = id;
|
385 |
-
win.url = url;
|
386 |
-
win.name = name;
|
387 |
-
win.features = features;
|
388 |
-
this.windows[name] = win;
|
389 |
-
|
390 |
-
iframeWidth = width;
|
391 |
-
iframeHeight = height;
|
392 |
-
|
393 |
-
// Create inner content
|
394 |
-
html += '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">';
|
395 |
-
html += '<html>';
|
396 |
-
html += '<head>';
|
397 |
-
html += '<title>Wrapper iframe</title>';
|
398 |
-
html += '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">';
|
399 |
-
html += '<link href="' + this.getParam("css_file") + '" rel="stylesheet" type="text/css" />';
|
400 |
-
html += '</head>';
|
401 |
-
html += '<body onload="parent.mcWindows.onLoad(\'' + name + '\');">';
|
402 |
-
|
403 |
-
html += '<div id="' + id + '_container" class="mceWindow">';
|
404 |
-
html += '<div id="' + id + '_head" class="mceWindowHead" onmousedown="parent.mcWindows.windows[\'' + name + '\'].focus();">';
|
405 |
-
html += ' <div id="' + id + '_title" class="mceWindowTitle"';
|
406 |
-
html += ' onselectstart="return false;" unselectable="on" style="-moz-user-select: none !important;"></div>';
|
407 |
-
html += ' <div class="mceWindowHeadTools">';
|
408 |
-
html += ' <a href="javascript:parent.mcWindows.windows[\'' + name + '\'].close();" target="_self" onmousedown="return false;" class="mceWindowClose"><img border="0" src="' + imgPath + '/window_close.gif" /></a>';
|
409 |
-
if (features['resizable'] == "yes" && features['maximizable'] == "yes")
|
410 |
-
html += ' <a href="javascript:parent.mcWindows.windows[\'' + name + '\'].maximize();" target="_self" onmousedown="return false;" class="mceWindowMaximize"><img border="0" src="' + imgPath + '/window_maximize.gif" /></a>';
|
411 |
-
// html += ' <a href="javascript:mcWindows.windows[\'' + name + '\'].minimize();" target="_self" onmousedown="return false;" class="mceWindowMinimize"></a>';
|
412 |
-
html += ' </div>';
|
413 |
-
html += '</div><div id="' + id + '_body" class="mceWindowBody" style="width: ' + width + 'px; height: ' + height + 'px;">';
|
414 |
-
html += '<iframe id="' + id + '_iframe" name="' + id + '_iframe" frameborder="0" width="' + iframeWidth + '" height="' + iframeHeight + '" src="' + url + '" class="mceWindowBodyIframe" scrolling="' + features['scrollbars'] + '"></iframe></div>';
|
415 |
-
|
416 |
-
if (features['statusbar'] == "yes") {
|
417 |
-
html += '<div id="' + id + '_statusbar" class="mceWindowStatusbar" onmousedown="parent.mcWindows.windows[\'' + name + '\'].focus();">';
|
418 |
-
|
419 |
-
if (features['resizable'] == "yes") {
|
420 |
-
if (this.isGecko)
|
421 |
-
html += '<div id="' + id + '_resize" class="mceWindowResize"><div style="background-image: url(\'' + imgPath + '/window_resize.gif\'); width: 12px; height: 12px;"></div></div>';
|
422 |
-
else
|
423 |
-
html += '<div id="' + id + '_resize" class="mceWindowResize"><img onmousedown="parent.mcWindows.windows[\'' + name + '\'].focus();" border="0" src="' + imgPath + '/window_resize.gif" /></div>';
|
424 |
-
}
|
425 |
-
|
426 |
-
html += '</div>';
|
427 |
-
}
|
428 |
-
|
429 |
-
html += '</div>';
|
430 |
-
|
431 |
-
html += '</body>';
|
432 |
-
html += '</html>';
|
433 |
-
|
434 |
-
// Create iframe
|
435 |
-
this.createFloatingIFrame(id, features['left'], features['top'], features['width'], features['height'], html);
|
436 |
-
};
|
437 |
-
|
438 |
-
// Blocks the document events by placing a image over the whole document
|
439 |
-
TinyMCE_Windows.prototype.setDocumentLock = function(state) {
|
440 |
-
var elm = document.getElementById('mcWindowEventBlocker');
|
441 |
-
|
442 |
-
if (state) {
|
443 |
-
if (elm == null) {
|
444 |
-
elm = document.createElement("div");
|
445 |
-
|
446 |
-
elm.id = "mcWindowEventBlocker";
|
447 |
-
elm.style.position = "absolute";
|
448 |
-
elm.style.left = "0";
|
449 |
-
elm.style.top = "0";
|
450 |
-
|
451 |
-
document.body.appendChild(elm);
|
452 |
-
}
|
453 |
-
|
454 |
-
elm.style.display = "none";
|
455 |
-
|
456 |
-
var imgPath = this.getParam("images_path");
|
457 |
-
var width = document.body.clientWidth;
|
458 |
-
var height = document.body.clientHeight;
|
459 |
-
|
460 |
-
elm.style.width = width;
|
461 |
-
elm.style.height = height;
|
462 |
-
elm.innerHTML = '<img src="' + imgPath + '/spacer.gif" width="' + width + '" height="' + height + '" />';
|
463 |
-
|
464 |
-
elm.style.zIndex = mcWindows.zindex-1;
|
465 |
-
elm.style.display = "block";
|
466 |
-
} else if (elm != null) {
|
467 |
-
if (mcWindows.windows.length == 0)
|
468 |
-
elm.parentNode.removeChild(elm);
|
469 |
-
else
|
470 |
-
elm.style.zIndex = mcWindows.zindex-1;
|
471 |
-
}
|
472 |
-
};
|
473 |
-
|
474 |
-
// Gets called when wrapper iframe is initialized
|
475 |
-
TinyMCE_Windows.prototype.onLoad = function(name) {
|
476 |
-
var win = mcWindows.windows[name];
|
477 |
-
var id = "mcWindow_" + name;
|
478 |
-
var wrapperIframe = window.frames[id + "_iframe"].frames[0];
|
479 |
-
var wrapperDoc = window.frames[id + "_iframe"].document;
|
480 |
-
var doc = window.frames[id + "_iframe"].document;
|
481 |
-
var winDiv = document.getElementById("mcWindow_" + name + "_div");
|
482 |
-
var realIframe = window.frames[id + "_iframe"].frames[0];
|
483 |
-
|
484 |
-
// Set window data
|
485 |
-
win.id = "mcWindow_" + name;
|
486 |
-
win.winElement = winDiv;
|
487 |
-
win.bodyElement = doc.getElementById(id + '_body');
|
488 |
-
win.iframeElement = doc.getElementById(id + '_iframe');
|
489 |
-
win.headElement = doc.getElementById(id + '_head');
|
490 |
-
win.titleElement = doc.getElementById(id + '_title');
|
491 |
-
win.resizeElement = doc.getElementById(id + '_resize');
|
492 |
-
win.containerElement = doc.getElementById(id + '_container');
|
493 |
-
win.left = win.features['left'];
|
494 |
-
win.top = win.features['top'];
|
495 |
-
win.frame = window.frames[id + '_iframe'].frames[0];
|
496 |
-
win.wrapperFrame = window.frames[id + '_iframe'];
|
497 |
-
win.wrapperIFrameElement = document.getElementById(id + "_iframe");
|
498 |
-
|
499 |
-
// Add event handlers
|
500 |
-
mcWindows.addEvent(win.headElement, "mousedown", mcWindows.eventDispatcher);
|
501 |
-
|
502 |
-
if (win.resizeElement != null)
|
503 |
-
mcWindows.addEvent(win.resizeElement, "mousedown", mcWindows.eventDispatcher);
|
504 |
-
|
505 |
-
if (mcWindows.isMSIE) {
|
506 |
-
mcWindows.addEvent(realIframe.document, "mousemove", mcWindows.eventDispatcher);
|
507 |
-
mcWindows.addEvent(realIframe.document, "mouseup", mcWindows.eventDispatcher);
|
508 |
-
} else {
|
509 |
-
mcWindows.addEvent(realIframe, "mousemove", mcWindows.eventDispatcher);
|
510 |
-
mcWindows.addEvent(realIframe, "mouseup", mcWindows.eventDispatcher);
|
511 |
-
mcWindows.addEvent(realIframe, "focus", mcWindows.eventDispatcher);
|
512 |
-
}
|
513 |
-
|
514 |
-
for (var i=0; i<window.frames.length; i++) {
|
515 |
-
if (!window.frames[i]._hasMouseHandlers) {
|
516 |
-
if (mcWindows.isMSIE) {
|
517 |
-
mcWindows.addEvent(window.frames[i].document, "mousemove", mcWindows.eventDispatcher);
|
518 |
-
mcWindows.addEvent(window.frames[i].document, "mouseup", mcWindows.eventDispatcher);
|
519 |
-
} else {
|
520 |
-
mcWindows.addEvent(window.frames[i], "mousemove", mcWindows.eventDispatcher);
|
521 |
-
mcWindows.addEvent(window.frames[i], "mouseup", mcWindows.eventDispatcher);
|
522 |
-
}
|
523 |
-
|
524 |
-
window.frames[i]._hasMouseHandlers = true;
|
525 |
-
}
|
526 |
-
}
|
527 |
-
|
528 |
-
if (mcWindows.isMSIE) {
|
529 |
-
mcWindows.addEvent(win.frame.document, "mousemove", mcWindows.eventDispatcher);
|
530 |
-
mcWindows.addEvent(win.frame.document, "mouseup", mcWindows.eventDispatcher);
|
531 |
-
} else {
|
532 |
-
mcWindows.addEvent(win.frame, "mousemove", mcWindows.eventDispatcher);
|
533 |
-
mcWindows.addEvent(win.frame, "mouseup", mcWindows.eventDispatcher);
|
534 |
-
mcWindows.addEvent(win.frame, "focus", mcWindows.eventDispatcher);
|
535 |
-
}
|
536 |
-
|
537 |
-
// Dispatch open window event
|
538 |
-
var func = this.getParam("on_open_window", "");
|
539 |
-
if (func != "")
|
540 |
-
eval(func + "(win);");
|
541 |
-
|
542 |
-
win.focus();
|
543 |
-
|
544 |
-
if (win.features['modal'] == "yes")
|
545 |
-
mcWindows.setDocumentLock(true);
|
546 |
-
};
|
547 |
-
|
548 |
-
TinyMCE_Windows.prototype.createFloatingIFrame = function(id_prefix, left, top, width, height, html) {
|
549 |
-
var iframe = document.createElement("iframe");
|
550 |
-
var div = document.createElement("div"), doc;
|
551 |
-
|
552 |
-
width = parseInt(width);
|
553 |
-
height = parseInt(height)+1;
|
554 |
-
|
555 |
-
// Create wrapper div
|
556 |
-
div.setAttribute("id", id_prefix + "_div");
|
557 |
-
div.setAttribute("width", width);
|
558 |
-
div.setAttribute("height", (height));
|
559 |
-
div.style.position = "absolute";
|
560 |
-
|
561 |
-
div.style.left = left + "px";
|
562 |
-
div.style.top = top + "px";
|
563 |
-
div.style.width = width + "px";
|
564 |
-
div.style.height = (height) + "px";
|
565 |
-
div.style.backgroundColor = "white";
|
566 |
-
div.style.display = "none";
|
567 |
-
|
568 |
-
if (this.isGecko) {
|
569 |
-
iframeWidth = width + 2;
|
570 |
-
iframeHeight = height + 2;
|
571 |
-
} else {
|
572 |
-
iframeWidth = width;
|
573 |
-
iframeHeight = height + 1;
|
574 |
-
}
|
575 |
-
|
576 |
-
// Create iframe
|
577 |
-
iframe.setAttribute("id", id_prefix + "_iframe");
|
578 |
-
iframe.setAttribute("name", id_prefix + "_iframe");
|
579 |
-
iframe.setAttribute("border", "0");
|
580 |
-
iframe.setAttribute("frameBorder", "0");
|
581 |
-
iframe.setAttribute("marginWidth", "0");
|
582 |
-
iframe.setAttribute("marginHeight", "0");
|
583 |
-
iframe.setAttribute("leftMargin", "0");
|
584 |
-
iframe.setAttribute("topMargin", "0");
|
585 |
-
iframe.setAttribute("width", iframeWidth);
|
586 |
-
iframe.setAttribute("height", iframeHeight);
|
587 |
-
// iframe.setAttribute("src", "../jscripts/tiny_mce/blank.htm");
|
588 |
-
// iframe.setAttribute("allowtransparency", "false");
|
589 |
-
iframe.setAttribute("scrolling", "no");
|
590 |
-
iframe.style.width = iframeWidth + "px";
|
591 |
-
iframe.style.height = iframeHeight + "px";
|
592 |
-
iframe.style.backgroundColor = "white";
|
593 |
-
div.appendChild(iframe);
|
594 |
-
|
595 |
-
document.body.appendChild(div);
|
596 |
-
|
597 |
-
// Fixed MSIE 5.0 issue
|
598 |
-
div.innerHTML = div.innerHTML;
|
599 |
-
|
600 |
-
if (this.isSafari) {
|
601 |
-
// Give Safari some time to setup
|
602 |
-
window.setTimeout(function() {
|
603 |
-
var doc = window.frames[id_prefix + '_iframe'].document;
|
604 |
-
doc.open();
|
605 |
-
doc.write(html);
|
606 |
-
doc.close();
|
607 |
-
}, 10);
|
608 |
-
} else {
|
609 |
-
doc = window.frames[id_prefix + '_iframe'].window.document;
|
610 |
-
doc.open();
|
611 |
-
doc.write(html);
|
612 |
-
doc.close();
|
613 |
-
}
|
614 |
-
|
615 |
-
div.style.display = "block";
|
616 |
-
|
617 |
-
return div;
|
618 |
-
};
|
619 |
-
|
620 |
-
// Window instance
|
621 |
-
function TinyMCE_Window() {
|
622 |
-
};
|
623 |
-
|
624 |
-
TinyMCE_Window.prototype.focus = function() {
|
625 |
-
if (this != mcWindows.selectedWindow) {
|
626 |
-
this.winElement.style.zIndex = ++mcWindows.zindex;
|
627 |
-
mcWindows.lastSelectedWindow = mcWindows.selectedWindow;
|
628 |
-
mcWindows.selectedWindow = this;
|
629 |
-
}
|
630 |
-
};
|
631 |
-
|
632 |
-
TinyMCE_Window.prototype.minimize = function() {
|
633 |
-
};
|
634 |
-
|
635 |
-
TinyMCE_Window.prototype.maximize = function() {
|
636 |
-
if (this.restoreSize) {
|
637 |
-
this.moveTo(this.restoreSize[0], this.restoreSize[1]);
|
638 |
-
this.resizeTo(this.restoreSize[2], this.restoreSize[3]);
|
639 |
-
this.updateClamping();
|
640 |
-
this.restoreSize = null;
|
641 |
-
} else {
|
642 |
-
var bounds = mcWindows.getBounds();
|
643 |
-
this.restoreSize = [
|
644 |
-
this.left, this.top,
|
645 |
-
this.winElement.scrollWidth,
|
646 |
-
this.winElement.scrollHeight
|
647 |
-
];
|
648 |
-
this.moveTo(bounds[0], bounds[1]);
|
649 |
-
this.resizeTo(
|
650 |
-
bounds[2] - bounds[0],
|
651 |
-
bounds[3] - bounds[1]
|
652 |
-
);
|
653 |
-
}
|
654 |
-
};
|
655 |
-
|
656 |
-
TinyMCE_Window.prototype.startResize = function() {
|
657 |
-
mcWindows.action = "resize";
|
658 |
-
};
|
659 |
-
|
660 |
-
TinyMCE_Window.prototype.startMove = function(e) {
|
661 |
-
mcWindows.action = "move";
|
662 |
-
};
|
663 |
-
|
664 |
-
TinyMCE_Window.prototype.close = function() {
|
665 |
-
if (this.frame && this.frame['tinyMCEPopup'])
|
666 |
-
this.frame['tinyMCEPopup'].restoreSelection();
|
667 |
-
|
668 |
-
if (mcWindows.lastSelectedWindow != null)
|
669 |
-
mcWindows.lastSelectedWindow.focus();
|
670 |
-
|
671 |
-
var mcWindowsNew = new Array();
|
672 |
-
for (var n in mcWindows.windows) {
|
673 |
-
var win = mcWindows.windows[n];
|
674 |
-
if (typeof(win) == 'function')
|
675 |
-
continue;
|
676 |
-
|
677 |
-
if (win.name != this.name)
|
678 |
-
mcWindowsNew[n] = win;
|
679 |
-
}
|
680 |
-
|
681 |
-
mcWindows.windows = mcWindowsNew;
|
682 |
-
|
683 |
-
// alert(mcWindows.doc.getElementById(this.id + "_iframe"));
|
684 |
-
|
685 |
-
var e = mcWindows.doc.getElementById(this.id + "_iframe");
|
686 |
-
e.parentNode.removeChild(e);
|
687 |
-
|
688 |
-
var e = mcWindows.doc.getElementById(this.id + "_div");
|
689 |
-
e.parentNode.removeChild(e);
|
690 |
-
|
691 |
-
mcWindows.setDocumentLock(false);
|
692 |
-
};
|
693 |
-
|
694 |
-
TinyMCE_Window.prototype.onMouseMove = function(e) {
|
695 |
-
var clamp;
|
696 |
-
// Calculate real X, Y
|
697 |
-
var dx = e.screenX - mcWindows.mouseDownScreenX;
|
698 |
-
var dy = e.screenY - mcWindows.mouseDownScreenY;
|
699 |
-
|
700 |
-
switch (mcWindows.action) {
|
701 |
-
case "resize":
|
702 |
-
clamp = mcWindows.clampBoxSize(
|
703 |
-
this.left, this.top,
|
704 |
-
mcWindows.mouseDownWidth + (e.screenX - mcWindows.mouseDownScreenX),
|
705 |
-
mcWindows.mouseDownHeight + (e.screenY - mcWindows.mouseDownScreenY),
|
706 |
-
this.features.minWidth, this.features.minHeight
|
707 |
-
);
|
708 |
-
|
709 |
-
this.resizeTo(clamp[2], clamp[3]);
|
710 |
-
|
711 |
-
mcWindows.cancelEvent(e);
|
712 |
-
break;
|
713 |
-
|
714 |
-
case "move":
|
715 |
-
this.left = mcWindows.mouseDownLayerX + (e.screenX - mcWindows.mouseDownScreenX);
|
716 |
-
this.top = mcWindows.mouseDownLayerY + (e.screenY - mcWindows.mouseDownScreenY);
|
717 |
-
this.updateClamping();
|
718 |
-
|
719 |
-
mcWindows.cancelEvent(e);
|
720 |
-
break;
|
721 |
-
}
|
722 |
-
};
|
723 |
-
|
724 |
-
TinyMCE_Window.prototype.moveTo = function (x, y) {
|
725 |
-
this.left = x;
|
726 |
-
this.top = y;
|
727 |
-
|
728 |
-
this.winElement.style.left = this.left + "px";
|
729 |
-
this.winElement.style.top = this.top + "px";
|
730 |
-
};
|
731 |
-
|
732 |
-
TinyMCE_Window.prototype.resizeTo = function (width, height) {
|
733 |
-
this.wrapperIFrameElement.style.width = (width+2) + 'px';
|
734 |
-
this.wrapperIFrameElement.style.height = (height+2) + 'px';
|
735 |
-
this.wrapperIFrameElement.width = width+2;
|
736 |
-
this.wrapperIFrameElement.height = height+2;
|
737 |
-
this.winElement.style.width = width + 'px';
|
738 |
-
this.winElement.style.height = height + 'px';
|
739 |
-
|
740 |
-
height = height - this.deltaHeight;
|
741 |
-
|
742 |
-
this.containerElement.style.width = width + 'px';
|
743 |
-
this.iframeElement.style.width = width + 'px';
|
744 |
-
this.iframeElement.style.height = height + 'px';
|
745 |
-
this.bodyElement.style.width = width + 'px';
|
746 |
-
this.bodyElement.style.height = height + 'px';
|
747 |
-
this.headElement.style.width = width + 'px';
|
748 |
-
//this.statusElement.style.width = width + 'px';
|
749 |
-
};
|
750 |
-
|
751 |
-
TinyMCE_Window.prototype.updateClamping = function () {
|
752 |
-
var clamp, oversize;
|
753 |
-
|
754 |
-
clamp = mcWindows.clampBoxPosition(
|
755 |
-
this.left, this.top,
|
756 |
-
this.winElement.scrollWidth,
|
757 |
-
this.winElement.scrollHeight,
|
758 |
-
this.features.minWidth, this.features.minHeight
|
759 |
-
);
|
760 |
-
oversize = (
|
761 |
-
clamp[2] != this.winElement.scrollWidth ||
|
762 |
-
clamp[3] != this.winElement.scrollHeight
|
763 |
-
) ? true : false;
|
764 |
-
|
765 |
-
this.moveTo(clamp[0], clamp[1]);
|
766 |
-
if (this.features.resizable == "yes" && oversize)
|
767 |
-
this.resizeTo(clamp[2], clamp[3]);
|
768 |
-
};
|
769 |
-
|
770 |
-
function debug(msg) {
|
771 |
-
document.getElementById('debug').value += msg + "\n";
|
772 |
-
}
|
773 |
-
|
774 |
-
TinyMCE_Window.prototype.onMouseUp = function(e) {
|
775 |
-
mcWindows.action = "none";
|
776 |
-
};
|
777 |
-
|
778 |
-
TinyMCE_Window.prototype.onFocus = function(e) {
|
779 |
-
// Gecko only handler
|
780 |
-
var winRef = e.currentTarget;
|
781 |
-
|
782 |
-
for (var n in mcWindows.windows) {
|
783 |
-
var win = mcWindows.windows[n];
|
784 |
-
if (typeof(win) == 'function')
|
785 |
-
continue;
|
786 |
-
|
787 |
-
if (winRef.name == win.id + "_iframe") {
|
788 |
-
win.focus();
|
789 |
-
return;
|
790 |
-
}
|
791 |
-
}
|
792 |
-
};
|
793 |
-
|
794 |
-
TinyMCE_Window.prototype.onMouseDown = function(e) {
|
795 |
-
var elm = mcWindows.isMSIE ? this.wrapperFrame.event.srcElement : e.target;
|
796 |
-
|
797 |
-
mcWindows.mouseDownScreenX = e.screenX;
|
798 |
-
mcWindows.mouseDownScreenY = e.screenY;
|
799 |
-
mcWindows.mouseDownLayerX = this.left;
|
800 |
-
mcWindows.mouseDownLayerY = this.top;
|
801 |
-
mcWindows.mouseDownWidth = parseInt(this.winElement.style.width);
|
802 |
-
mcWindows.mouseDownHeight = parseInt(this.winElement.style.height);
|
803 |
-
|
804 |
-
if (this.resizeElement != null && elm == this.resizeElement.firstChild)
|
805 |
-
this.startResize(e);
|
806 |
-
else
|
807 |
-
this.startMove(e);
|
808 |
-
|
809 |
-
mcWindows.cancelEvent(e);
|
810 |
-
};
|
811 |
-
|
812 |
-
// Global instance
|
813 |
-
var mcWindows = new TinyMCE_Windows();
|
814 |
-
|
815 |
-
// Initialize windows
|
816 |
-
mcWindows.init({
|
817 |
-
images_path : tinyMCE.baseURL + "/plugins/inlinepopups/images",
|
818 |
-
css_file : tinyMCE.baseURL + "/plugins/inlinepopups/css/inlinepopup.css"
|
819 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add_to_tinymce_directory/plugins/inlinepopups/images/spacer.gif
DELETED
Binary file
|
add_to_tinymce_directory/plugins/inlinepopups/images/window_close.gif
DELETED
Binary file
|
add_to_tinymce_directory/plugins/inlinepopups/images/window_maximize.gif
DELETED
Binary file
|
add_to_tinymce_directory/plugins/inlinepopups/images/window_minimize.gif
DELETED
Binary file
|
add_to_tinymce_directory/plugins/inlinepopups/images/window_resize.gif
DELETED
Binary file
|
add_to_tinymce_directory/plugins/inlinepopups/jscripts/mcwindows.js
DELETED
@@ -1,453 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* $Id: mcwindows.js 18 2006-06-29 14:11:23Z spocke $
|
3 |
-
*
|
4 |
-
* Moxiecode DHTML Windows script.
|
5 |
-
*
|
6 |
-
* @author Moxiecode
|
7 |
-
* @copyright Copyright � 2004, Moxiecode Systems AB, All rights reserved.
|
8 |
-
*/
|
9 |
-
|
10 |
-
// Windows handler
|
11 |
-
function MCWindows() {
|
12 |
-
this.settings = new Array();
|
13 |
-
this.windows = new Array();
|
14 |
-
this.isMSIE = (navigator.appName == "Microsoft Internet Explorer");
|
15 |
-
this.isGecko = navigator.userAgent.indexOf('Gecko') != -1;
|
16 |
-
this.isSafari = navigator.userAgent.indexOf('Safari') != -1;
|
17 |
-
this.isMac = navigator.userAgent.indexOf('Mac') != -1;
|
18 |
-
this.isMSIE5_0 = this.isMSIE && (navigator.userAgent.indexOf('MSIE 5.0') != -1);
|
19 |
-
this.action = "none";
|
20 |
-
this.selectedWindow = null;
|
21 |
-
this.zindex = 100;
|
22 |
-
this.mouseDownScreenX = 0;
|
23 |
-
this.mouseDownScreenY = 0;
|
24 |
-
this.mouseDownLayerX = 0;
|
25 |
-
this.mouseDownLayerY = 0;
|
26 |
-
this.mouseDownWidth = 0;
|
27 |
-
this.mouseDownHeight = 0;
|
28 |
-
};
|
29 |
-
|
30 |
-
MCWindows.prototype.init = function(settings) {
|
31 |
-
this.settings = settings;
|
32 |
-
|
33 |
-
if (this.isMSIE)
|
34 |
-
this.addEvent(document, "mousemove", mcWindows.eventDispatcher);
|
35 |
-
else
|
36 |
-
this.addEvent(window, "mousemove", mcWindows.eventDispatcher);
|
37 |
-
|
38 |
-
this.addEvent(document, "mouseup", mcWindows.eventDispatcher);
|
39 |
-
};
|
40 |
-
|
41 |
-
MCWindows.prototype.getParam = function(name, default_value) {
|
42 |
-
var value = null;
|
43 |
-
|
44 |
-
value = (typeof(this.settings[name]) == "undefined") ? default_value : this.settings[name];
|
45 |
-
|
46 |
-
// Fix bool values
|
47 |
-
if (value == "true" || value == "false")
|
48 |
-
return (value == "true");
|
49 |
-
|
50 |
-
return value;
|
51 |
-
};
|
52 |
-
|
53 |
-
MCWindows.prototype.eventDispatcher = function(e) {
|
54 |
-
e = typeof(e) == "undefined" ? window.event : e;
|
55 |
-
|
56 |
-
if (mcWindows.selectedWindow == null)
|
57 |
-
return;
|
58 |
-
|
59 |
-
// Switch focus
|
60 |
-
if (mcWindows.isGecko && e.type == "mousedown") {
|
61 |
-
var elm = e.currentTarget;
|
62 |
-
|
63 |
-
for (var n in mcWindows.windows) {
|
64 |
-
var win = mcWindows.windows[n];
|
65 |
-
if (typeof(win) == 'function')
|
66 |
-
continue;
|
67 |
-
|
68 |
-
if (win.headElement == elm || win.resizeElement == elm) {
|
69 |
-
win.focus();
|
70 |
-
break;
|
71 |
-
}
|
72 |
-
}
|
73 |
-
}
|
74 |
-
|
75 |
-
switch (e.type) {
|
76 |
-
case "mousemove":
|
77 |
-
mcWindows.selectedWindow.onMouseMove(e);
|
78 |
-
break;
|
79 |
-
|
80 |
-
case "mouseup":
|
81 |
-
mcWindows.selectedWindow.onMouseUp(e);
|
82 |
-
break;
|
83 |
-
|
84 |
-
case "mousedown":
|
85 |
-
mcWindows.selectedWindow.onMouseDown(e);
|
86 |
-
break;
|
87 |
-
|
88 |
-
case "focus":
|
89 |
-
mcWindows.selectedWindow.onFocus(e);
|
90 |
-
break;
|
91 |
-
}
|
92 |
-
}
|
93 |
-
|
94 |
-
MCWindows.prototype.addEvent = function(obj, name, handler) {
|
95 |
-
if (this.isMSIE)
|
96 |
-
obj.attachEvent("on" + name, handler);
|
97 |
-
else
|
98 |
-
obj.addEventListener(name, handler, true);
|
99 |
-
};
|
100 |
-
|
101 |
-
MCWindows.prototype.cancelEvent = function(e) {
|
102 |
-
if (this.isMSIE) {
|
103 |
-
e.returnValue = false;
|
104 |
-
e.cancelBubble = true;
|
105 |
-
} else
|
106 |
-
e.preventDefault();
|
107 |
-
};
|
108 |
-
|
109 |
-
MCWindows.prototype.parseFeatures = function(opts) {
|
110 |
-
// Cleanup the options
|
111 |
-
opts = opts.toLowerCase();
|
112 |
-
opts = opts.replace(/;/g, ",");
|
113 |
-
opts = opts.replace(/[^0-9a-z=,]/g, "");
|
114 |
-
|
115 |
-
var optionChunks = opts.split(',');
|
116 |
-
var options = new Array();
|
117 |
-
|
118 |
-
options['left'] = 10;
|
119 |
-
options['top'] = 10;
|
120 |
-
options['width'] = 300;
|
121 |
-
options['height'] = 300;
|
122 |
-
options['resizable'] = true;
|
123 |
-
options['minimizable'] = true;
|
124 |
-
options['maximizable'] = true;
|
125 |
-
options['close'] = true;
|
126 |
-
options['movable'] = true;
|
127 |
-
|
128 |
-
if (opts == "")
|
129 |
-
return options;
|
130 |
-
|
131 |
-
for (var i=0; i<optionChunks.length; i++) {
|
132 |
-
var parts = optionChunks[i].split('=');
|
133 |
-
|
134 |
-
if (parts.length == 2)
|
135 |
-
options[parts[0]] = parts[1];
|
136 |
-
}
|
137 |
-
|
138 |
-
return options;
|
139 |
-
};
|
140 |
-
|
141 |
-
MCWindows.prototype.open = function(url, name, features) {
|
142 |
-
var win = new MCWindow();
|
143 |
-
var winDiv, html = "", id;
|
144 |
-
|
145 |
-
features = this.parseFeatures(features);
|
146 |
-
|
147 |
-
// Create div
|
148 |
-
id = "mcWindow_" + name;
|
149 |
-
|
150 |
-
width = parseInt(features['width']);
|
151 |
-
height = parseInt(features['height'])-12-19;
|
152 |
-
|
153 |
-
if (this.isMSIE)
|
154 |
-
width -= 2;
|
155 |
-
|
156 |
-
// Setup first part of window
|
157 |
-
win.id = id;
|
158 |
-
win.url = url;
|
159 |
-
win.name = name;
|
160 |
-
win.features = features;
|
161 |
-
this.windows[name] = win;
|
162 |
-
|
163 |
-
iframeWidth = width;
|
164 |
-
iframeHeight = height;
|
165 |
-
|
166 |
-
// Create inner content
|
167 |
-
html += '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">';
|
168 |
-
html += '<html>';
|
169 |
-
html += '<head>';
|
170 |
-
html += '<title>Wrapper iframe</title>';
|
171 |
-
html += '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">';
|
172 |
-
html += '<link href="../jscripts/tiny_mce/themes/advanced/css/editor_ui.css" rel="stylesheet" type="text/css" />';
|
173 |
-
html += '</head>';
|
174 |
-
html += '<body onload="parent.mcWindows.onLoad(\'' + name + '\');">';
|
175 |
-
|
176 |
-
html += '<div id="' + id + '_container" class="mceWindow">';
|
177 |
-
html += '<div id="' + id + '_head" class="mceWindowHead" onmousedown="parent.mcWindows.windows[\'' + name + '\'].focus();">';
|
178 |
-
html += ' <div id="' + id + '_title" class="mceWindowTitle"';
|
179 |
-
html += ' onselectstart="return false;" unselectable="on" style="-moz-user-select: none !important;">No name window</div>';
|
180 |
-
html += ' <div class="mceWindowHeadTools">';
|
181 |
-
html += ' <a href="javascript:parent.mcWindows.windows[\'' + name + '\'].close();" onmousedown="return false;" class="mceWindowClose"><img border="0" src="../jscripts/tiny_mce/themes/advanced/images/window_close.gif" /></a>';
|
182 |
-
// html += ' <a href="javascript:mcWindows.windows[\'' + name + '\'].maximize();" onmousedown="return false;" class="mceWindowMaximize"></a>';
|
183 |
-
// html += ' <a href="javascript:mcWindows.windows[\'' + name + '\'].minimize();" onmousedown="return false;" class="mceWindowMinimize"></a>';
|
184 |
-
html += ' </div>';
|
185 |
-
html += '</div><div id="' + id + '_body" class="mceWindowBody" style="width: ' + width + 'px; height: ' + height + 'px;">';
|
186 |
-
html += '<iframe id="' + id + '_iframe" name="' + id + '_iframe" onfocus="parent.mcWindows.windows[\'' + name + '\'].focus();" frameborder="0" width="' + iframeWidth + '" height="' + iframeHeight + '" src="' + url + '" class="mceWindowBodyIframe"></iframe></div>';
|
187 |
-
html += '<div id="' + id + '_statusbar" class="mceWindowStatusbar" onmousedown="parent.mcWindows.windows[\'' + name + '\'].focus();">';
|
188 |
-
html += '<div id="' + id + '_resize" class="mceWindowResize"><img onmousedown="parent.mcWindows.windows[\'' + name + '\'].focus();" border="0" src="../jscripts/tiny_mce/themes/advanced/images/window_resize.gif" /></div>';
|
189 |
-
html += '</div>';
|
190 |
-
html += '</div>';
|
191 |
-
|
192 |
-
html += '</body>';
|
193 |
-
html += '</html>';
|
194 |
-
|
195 |
-
// Create iframe
|
196 |
-
this.createFloatingIFrame(id, features['left'], features['top'], features['width'], features['height'], html);
|
197 |
-
};
|
198 |
-
|
199 |
-
// Gets called when wrapper iframe is initialized
|
200 |
-
MCWindows.prototype.onLoad = function(name) {
|
201 |
-
var win = mcWindows.windows[name];
|
202 |
-
var id = "mcWindow_" + name;
|
203 |
-
var wrapperIframe = window.frames[id + "_iframe"].frames[0];
|
204 |
-
var wrapperDoc = window.frames[id + "_iframe"].document;
|
205 |
-
var doc = window.frames[id + "_iframe"].document;
|
206 |
-
var winDiv = document.getElementById("mcWindow_" + name + "_div");
|
207 |
-
var realIframe = window.frames[id + "_iframe"].frames[0];
|
208 |
-
|
209 |
-
// Set window data
|
210 |
-
win.id = "mcWindow_" + name + "_iframe";
|
211 |
-
win.winElement = winDiv;
|
212 |
-
win.bodyElement = doc.getElementById(id + '_body');
|
213 |
-
win.iframeElement = doc.getElementById(id + '_iframe');
|
214 |
-
win.headElement = doc.getElementById(id + '_head');
|
215 |
-
win.titleElement = doc.getElementById(id + '_title');
|
216 |
-
win.resizeElement = doc.getElementById(id + '_resize');
|
217 |
-
win.containerElement = doc.getElementById(id + '_container');
|
218 |
-
win.left = win.features['left'];
|
219 |
-
win.top = win.features['top'];
|
220 |
-
win.frame = window.frames[id + '_iframe'].frames[0];
|
221 |
-
win.wrapperFrame = window.frames[id + '_iframe'];
|
222 |
-
win.wrapperIFrameElement = document.getElementById(id + "_iframe");
|
223 |
-
|
224 |
-
// Add event handlers
|
225 |
-
mcWindows.addEvent(win.headElement, "mousedown", mcWindows.eventDispatcher);
|
226 |
-
mcWindows.addEvent(win.resizeElement, "mousedown", mcWindows.eventDispatcher);
|
227 |
-
|
228 |
-
if (mcWindows.isMSIE) {
|
229 |
-
mcWindows.addEvent(realIframe.document, "mousemove", mcWindows.eventDispatcher);
|
230 |
-
mcWindows.addEvent(realIframe.document, "mouseup", mcWindows.eventDispatcher);
|
231 |
-
} else {
|
232 |
-
mcWindows.addEvent(realIframe, "mousemove", mcWindows.eventDispatcher);
|
233 |
-
mcWindows.addEvent(realIframe, "mouseup", mcWindows.eventDispatcher);
|
234 |
-
mcWindows.addEvent(realIframe, "focus", mcWindows.eventDispatcher);
|
235 |
-
}
|
236 |
-
|
237 |
-
for (var i=0; i<window.frames.length; i++) {
|
238 |
-
if (!window.frames[i]._hasMouseHandlers) {
|
239 |
-
if (mcWindows.isMSIE) {
|
240 |
-
mcWindows.addEvent(window.frames[i].document, "mousemove", mcWindows.eventDispatcher);
|
241 |
-
mcWindows.addEvent(window.frames[i].document, "mouseup", mcWindows.eventDispatcher);
|
242 |
-
} else {
|
243 |
-
mcWindows.addEvent(window.frames[i], "mousemove", mcWindows.eventDispatcher);
|
244 |
-
mcWindows.addEvent(window.frames[i], "mouseup", mcWindows.eventDispatcher);
|
245 |
-
}
|
246 |
-
|
247 |
-
window.frames[i]._hasMouseHandlers = true;
|
248 |
-
}
|
249 |
-
}
|
250 |
-
|
251 |
-
if (mcWindows.isMSIE) {
|
252 |
-
mcWindows.addEvent(win.frame.document, "mousemove", mcWindows.eventDispatcher);
|
253 |
-
mcWindows.addEvent(win.frame.document, "mouseup", mcWindows.eventDispatcher);
|
254 |
-
} else {
|
255 |
-
mcWindows.addEvent(win.frame, "mousemove", mcWindows.eventDispatcher);
|
256 |
-
mcWindows.addEvent(win.frame, "mouseup", mcWindows.eventDispatcher);
|
257 |
-
mcWindows.addEvent(win.frame, "focus", mcWindows.eventDispatcher);
|
258 |
-
}
|
259 |
-
|
260 |
-
this.selectedWindow = win;
|
261 |
-
};
|
262 |
-
|
263 |
-
MCWindows.prototype.createFloatingIFrame = function(id_prefix, left, top, width, height, html) {
|
264 |
-
var iframe = document.createElement("iframe");
|
265 |
-
var div = document.createElement("div");
|
266 |
-
|
267 |
-
width = parseInt(width);
|
268 |
-
height = parseInt(height)+1;
|
269 |
-
|
270 |
-
// Create wrapper div
|
271 |
-
div.setAttribute("id", id_prefix + "_div");
|
272 |
-
div.setAttribute("width", width);
|
273 |
-
div.setAttribute("height", (height));
|
274 |
-
div.style.position = "absolute";
|
275 |
-
div.style.left = left + "px";
|
276 |
-
div.style.top = top + "px";
|
277 |
-
div.style.width = width + "px";
|
278 |
-
div.style.height = (height) + "px";
|
279 |
-
div.style.backgroundColor = "white";
|
280 |
-
div.style.display = "none";
|
281 |
-
|
282 |
-
if (this.isGecko) {
|
283 |
-
iframeWidth = width + 2;
|
284 |
-
iframeHeight = height + 2;
|
285 |
-
} else {
|
286 |
-
iframeWidth = width;
|
287 |
-
iframeHeight = height + 1;
|
288 |
-
}
|
289 |
-
|
290 |
-
// Create iframe
|
291 |
-
iframe.setAttribute("id", id_prefix + "_iframe");
|
292 |
-
iframe.setAttribute("name", id_prefix + "_iframe");
|
293 |
-
iframe.setAttribute("border", "0");
|
294 |
-
iframe.setAttribute("frameBorder", "0");
|
295 |
-
iframe.setAttribute("marginWidth", "0");
|
296 |
-
iframe.setAttribute("marginHeight", "0");
|
297 |
-
iframe.setAttribute("leftMargin", "0");
|
298 |
-
iframe.setAttribute("topMargin", "0");
|
299 |
-
iframe.setAttribute("width", iframeWidth);
|
300 |
-
iframe.setAttribute("height", iframeHeight);
|
301 |
-
// iframe.setAttribute("src", "../jscripts/tiny_mce/blank.htm");
|
302 |
-
// iframe.setAttribute("allowtransparency", "false");
|
303 |
-
iframe.setAttribute("scrolling", "no");
|
304 |
-
iframe.style.width = iframeWidth + "px";
|
305 |
-
iframe.style.height = iframeHeight + "px";
|
306 |
-
iframe.style.backgroundColor = "white";
|
307 |
-
div.appendChild(iframe);
|
308 |
-
|
309 |
-
document.body.appendChild(div);
|
310 |
-
|
311 |
-
// Fixed MSIE 5.0 issue
|
312 |
-
div.innerHTML = div.innerHTML;
|
313 |
-
|
314 |
-
if (this.isSafari) {
|
315 |
-
// Give Safari some time to setup
|
316 |
-
window.setTimeout(function() {
|
317 |
-
doc = window.frames[id_prefix + '_iframe'].document;
|
318 |
-
doc.open();
|
319 |
-
doc.write(html);
|
320 |
-
doc.close();
|
321 |
-
}, 10);
|
322 |
-
} else {
|
323 |
-
doc = window.frames[id_prefix + '_iframe'].window.document
|
324 |
-
doc.open();
|
325 |
-
doc.write(html);
|
326 |
-
doc.close();
|
327 |
-
}
|
328 |
-
|
329 |
-
div.style.display = "block";
|
330 |
-
|
331 |
-
return div;
|
332 |
-
};
|
333 |
-
|
334 |
-
// Window instance
|
335 |
-
function MCWindow() {
|
336 |
-
};
|
337 |
-
|
338 |
-
MCWindow.prototype.focus = function() {
|
339 |
-
this.winElement.style.zIndex = mcWindows.zindex++;
|
340 |
-
mcWindows.selectedWindow = this;
|
341 |
-
};
|
342 |
-
|
343 |
-
MCWindow.prototype.minimize = function() {
|
344 |
-
};
|
345 |
-
|
346 |
-
MCWindow.prototype.maximize = function() {
|
347 |
-
|
348 |
-
};
|
349 |
-
|
350 |
-
MCWindow.prototype.startResize = function() {
|
351 |
-
mcWindows.action = "resize";
|
352 |
-
};
|
353 |
-
|
354 |
-
MCWindow.prototype.startMove = function(e) {
|
355 |
-
mcWindows.action = "move";
|
356 |
-
};
|
357 |
-
|
358 |
-
MCWindow.prototype.close = function() {
|
359 |
-
document.body.removeChild(this.winElement);
|
360 |
-
mcWindows.windows[this.name] = null;
|
361 |
-
};
|
362 |
-
|
363 |
-
MCWindow.prototype.onMouseMove = function(e) {
|
364 |
-
var scrollX = 0;//this.doc.body.scrollLeft;
|
365 |
-
var scrollY = 0;//this.doc.body.scrollTop;
|
366 |
-
|
367 |
-
// Calculate real X, Y
|
368 |
-
var dx = e.screenX - mcWindows.mouseDownScreenX;
|
369 |
-
var dy = e.screenY - mcWindows.mouseDownScreenY;
|
370 |
-
|
371 |
-
switch (mcWindows.action) {
|
372 |
-
case "resize":
|
373 |
-
width = mcWindows.mouseDownWidth + (e.screenX - mcWindows.mouseDownScreenX);
|
374 |
-
height = mcWindows.mouseDownHeight + (e.screenY - mcWindows.mouseDownScreenY);
|
375 |
-
|
376 |
-
width = width < 100 ? 100 : width;
|
377 |
-
height = height < 100 ? 100 : height;
|
378 |
-
|
379 |
-
this.wrapperIFrameElement.style.width = width+2;
|
380 |
-
this.wrapperIFrameElement.style.height = height+2;
|
381 |
-
this.wrapperIFrameElement.width = width+2;
|
382 |
-
this.wrapperIFrameElement.height = height+2;
|
383 |
-
this.winElement.style.width = width;
|
384 |
-
this.winElement.style.height = height;
|
385 |
-
|
386 |
-
height = height-12-19;
|
387 |
-
|
388 |
-
this.containerElement.style.width = width;
|
389 |
-
|
390 |
-
this.iframeElement.style.width = width;
|
391 |
-
this.iframeElement.style.height = height;
|
392 |
-
this.bodyElement.style.width = width;
|
393 |
-
this.bodyElement.style.height = height;
|
394 |
-
this.headElement.style.width = width;
|
395 |
-
//this.statusElement.style.width = width;
|
396 |
-
|
397 |
-
mcWindows.cancelEvent(e);
|
398 |
-
break;
|
399 |
-
|
400 |
-
case "move":
|
401 |
-
this.left = mcWindows.mouseDownLayerX + (e.screenX - mcWindows.mouseDownScreenX);
|
402 |
-
this.top = mcWindows.mouseDownLayerY + (e.screenY - mcWindows.mouseDownScreenY);
|
403 |
-
this.winElement.style.left = this.left + "px";
|
404 |
-
this.winElement.style.top = this.top + "px";
|
405 |
-
|
406 |
-
mcWindows.cancelEvent(e);
|
407 |
-
break;
|
408 |
-
}
|
409 |
-
};
|
410 |
-
|
411 |
-
MCWindow.prototype.onMouseUp = function(e) {
|
412 |
-
mcWindows.action = "none";
|
413 |
-
};
|
414 |
-
|
415 |
-
MCWindow.prototype.onFocus = function(e) {
|
416 |
-
// Gecko only handler
|
417 |
-
var winRef = e.currentTarget;
|
418 |
-
|
419 |
-
for (var n in mcWindows.windows) {
|
420 |
-
var win = mcWindows.windows[n];
|
421 |
-
if (typeof(win) == 'function')
|
422 |
-
continue;
|
423 |
-
|
424 |
-
if (winRef.name == win.id) {
|
425 |
-
win.focus();
|
426 |
-
return;
|
427 |
-
}
|
428 |
-
}
|
429 |
-
};
|
430 |
-
|
431 |
-
MCWindow.prototype.onMouseDown = function(e) {
|
432 |
-
var elm = mcWindows.isMSIE ? this.wrapperFrame.event.srcElement : e.target;
|
433 |
-
|
434 |
-
var scrollX = 0;//this.doc.body.scrollLeft;
|
435 |
-
var scrollY = 0;//this.doc.body.scrollTop;
|
436 |
-
|
437 |
-
mcWindows.mouseDownScreenX = e.screenX;
|
438 |
-
mcWindows.mouseDownScreenY = e.screenY;
|
439 |
-
mcWindows.mouseDownLayerX = this.left;
|
440 |
-
mcWindows.mouseDownLayerY = this.top;
|
441 |
-
mcWindows.mouseDownWidth = parseInt(this.winElement.style.width);
|
442 |
-
mcWindows.mouseDownHeight = parseInt(this.winElement.style.height);
|
443 |
-
|
444 |
-
if (elm == this.resizeElement.firstChild)
|
445 |
-
this.startResize(e);
|
446 |
-
else
|
447 |
-
this.startMove(e);
|
448 |
-
|
449 |
-
mcWindows.cancelEvent(e);
|
450 |
-
};
|
451 |
-
|
452 |
-
// Global instance
|
453 |
-
var mcWindows = new MCWindows();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add_to_tinymce_directory/plugins/layer/editor_plugin.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
tinyMCE.importPluginLanguagePack('layer');var TinyMCE_LayerPlugin={getInfo:function(){return{longname:'Layer',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/layer',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},initInstance:function(inst){if(tinyMCE.isMSIE&&!tinyMCE.isOpera)inst.getDoc().execCommand('2D-Position')},handleEvent:function(e){var inst=tinyMCE.selectedInstance;var w=inst.getWin(),le=inst._lastStyleElm,e;if(tinyMCE.isGecko){e=this._getParentLayer(inst.getFocusElement());if(e){if(!inst._lastStyleElm){e.style.overflow='auto';inst._lastStyleElm=e}}else if(le){le=inst._lastStyleElm;le.style.width=le.scrollWidth+'px';le.style.height=le.scrollHeight+'px';le.style.overflow='';inst._lastStyleElm=null}}return true},handleVisualAid:function(el,deep,state,inst){var nl=inst.getDoc().getElementsByTagName("div"),i;for(i=0;i<nl.length;i++){if(new RegExp('absolute|relative|static','gi').test(nl[i].style.position)){if(state)tinyMCE.addCSSClass(nl[i],'mceVisualAid');else tinyMCE.removeCSSClass(nl[i],'mceVisualAid')}}},getControlHTML:function(cn){switch(cn){case"moveforward":return tinyMCE.getButtonHTML(cn,'lang_layer_forward_desc','{$pluginurl}/images/moveforward.gif','mceMoveForward',true);case"movebackward":return tinyMCE.getButtonHTML(cn,'lang_layer_backward_desc','{$pluginurl}/images/movebackward.gif','mceMoveBackward',true);case"absolute":return tinyMCE.getButtonHTML(cn,'lang_layer_absolute_desc','{$pluginurl}/images/absolute.gif','mceMakeAbsolute',true);case"insertlayer":return tinyMCE.getButtonHTML(cn,'lang_layer_insertlayer_desc','{$pluginurl}/images/insertlayer.gif','mceInsertLayer',true)}return""},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mceInsertLayer":this._insertLayer();return true;case"mceMoveForward":this._move(1);return true;case"mceMoveBackward":this._move(-1);return true;case"mceMakeAbsolute":this._toggleAbsolute();return true}return false},handleNodeChange:function(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){var inst=tinyMCE.getInstanceById(editor_id);var le=this._getParentLayer(inst.getFocusElement());var p=tinyMCE.getParentElement(inst.getFocusElement(),'div,p,img');tinyMCE.switchClass(editor_id+'_absolute','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_moveforward','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_movebackward','mceButtonDisabled');if(p)tinyMCE.switchClass(editor_id+'_absolute','mceButtonNormal');if(le&&le.style.position.toLowerCase()=="absolute"){tinyMCE.switchClass(editor_id+'_absolute','mceButtonSelected');tinyMCE.switchClass(editor_id+'_moveforward','mceButtonNormal');tinyMCE.switchClass(editor_id+'_movebackward','mceButtonNormal')}},_move:function(d){var inst=tinyMCE.selectedInstance,i,z=new Array();var le=this._getParentLayer(inst.getFocusElement()),ci=-1,fi=-1;var nl=tinyMCE.selectNodes(inst.getBody(),function(n){return n.nodeType==1&&new RegExp('absolute|relative|static','gi').test(n.style.position)});for(i=0;i<nl.length;i++){z[i]=nl[i].style.zIndex?parseInt(nl[i].style.zIndex):0;if(ci<0&&nl[i]==le)ci=i}if(d<0){for(i=0;i<z.length;i++){if(z[i]<z[ci]){fi=i;break}}if(fi>-1){nl[ci].style.zIndex=z[fi];nl[fi].style.zIndex=z[ci]}else{if(z[ci]>0)nl[ci].style.zIndex=z[ci]-1}}else{for(i=0;i<z.length;i++){if(z[i]>z[ci]){fi=i;break}}if(fi>-1){nl[ci].style.zIndex=z[fi];nl[fi].style.zIndex=z[ci]}else nl[ci].style.zIndex=z[ci]+1}inst.repaint()},_getParentLayer:function(n){return tinyMCE.getParentNode(n,function(n){return n.nodeType==1&&new RegExp('absolute|relative|static','gi').test(n.style.position)})},_insertLayer:function(){var inst=tinyMCE.selectedInstance;var e=tinyMCE.getParentElement(inst.getFocusElement());var p=tinyMCE.getAbsPosition(e);var d=inst.getDoc();var ne=d.createElement('div');var h=inst.selection.getSelectedHTML();ne.style.position='absolute';ne.style.left=p.absLeft+'px';ne.style.top=(p.absTop>20?p.absTop:20)+'px';ne.style.width='100px';ne.style.height='100px';ne.className='mceVisualAid';if(!h)h=tinyMCE.getLang('lang_layer_content');ne.innerHTML=h;d.body.appendChild(ne)},_toggleAbsolute:function(){var inst=tinyMCE.selectedInstance;var le=this._getParentLayer(inst.getFocusElement());if(le==null)le=tinyMCE.getParentElement(inst.getFocusElement(),'div,p,img');if(le){if(le.style.position.toLowerCase()=="absolute"){le.style.position="";le.style.left="";le.style.top=""}else{le.style.position="absolute";if(le.style.left=="")le.style.left=20+'px';if(le.style.top=="")le.style.top=20+'px';if(le.style.width=="")le.style.width=le.width?(le.width+'px'):'100px';if(le.style.height=="")le.style.height=le.height?(le.height+'px'):'100px';tinyMCE.handleVisualAid(inst.getBody(),true,inst.visualAid,inst)}inst.repaint();tinyMCE.triggerNodeChange()}}};tinyMCE.addPlugin("layer",TinyMCE_LayerPlugin);
|
|
add_to_tinymce_directory/plugins/media/editor_plugin.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
tinyMCE.importPluginLanguagePack('media');var TinyMCE_MediaPlugin={getInfo:function(){return{longname:'Media',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/media',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},initInstance:function(inst){if(inst.hasPlugin('flash')&&!tinyMCE.flashWarn){alert('Flash plugin is deprecated and should not be used together with the media plugin.');tinyMCE.flashWarn=true}if(!tinyMCE.settings['media_skip_plugin_css'])tinyMCE.importCSS(inst.getDoc(),tinyMCE.baseURL+"/plugins/media/css/content.css")},getControlHTML:function(cn){switch(cn){case"media":return tinyMCE.getButtonHTML(cn,'lang_media_desc','{$pluginurl}/images/media.gif','mceMedia')}return""},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mceMedia":tinyMCE.openWindow({file:'../../plugins/media/media.htm',width:430+tinyMCE.getLang('lang_media_delta_width',0),height:470+tinyMCE.getLang('lang_media_delta_height',0)},{editor_id:editor_id,inline:"yes"});return true}return false},cleanup:function(type,content,inst){var nl,img,i,ne,d,s,ci;switch(type){case"insert_to_editor":img=tinyMCE.getParam("theme_href")+'/images/spacer.gif';content=content.replace(/<script[^>]*>\s*write(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)\(\{([^\)]*)\}\);\s*<\/script>/gi,'<img class="mceItem$1" title="$2" src="'+img+'" />');content=content.replace(/<object([^>]*)>/gi,'<div class="mceItemObject" $1>');content=content.replace(/<embed([^>]*)>/gi,'<div class="mceItemObjectEmbed" $1>');content=content.replace(/<\/(object|embed)([^>]*)>/gi,'</div>');content=content.replace(/<param([^>]*)>/gi,'<div $1 class="mceItemParam"></div>');content=content.replace(new RegExp('\\/ class="mceItemParam"><\\/div>','gi'),'class="mceItemParam"></div>');break;case"insert_to_editor_dom":d=inst.getDoc();nl=content.getElementsByTagName("img");for(i=0;i<nl.length;i++){if(/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(nl[i].className)){nl[i].width=nl[i].title.replace(/.*width:[^0-9]?([0-9]+)%?.*/g,'$1');nl[i].height=nl[i].title.replace(/.*height:[^0-9]?([0-9]+)%?.*/g,'$1');}}nl=tinyMCE.selectElements(content,'DIV',function(n){return tinyMCE.hasCSSClass(n,'mceItemObject')});for(i=0;i<nl.length;i++){ci=tinyMCE.getAttrib(nl[i],"classid").toLowerCase().replace(/\s+/g,'');switch(ci){case'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000':nl[i].parentNode.replaceChild(TinyMCE_MediaPlugin._createImg('mceItemFlash',d,nl[i]),nl[i]);break;case'clsid:166b1bca-3f9c-11cf-8075-444553540000':nl[i].parentNode.replaceChild(TinyMCE_MediaPlugin._createImg('mceItemShockWave',d,nl[i]),nl[i]);break;case'clsid:6bf52a52-394a-11d3-b153-00c04f79faa6':case'clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95':case'clsid:05589fa1-c356-11ce-bf01-00aa0055595a':nl[i].parentNode.replaceChild(TinyMCE_MediaPlugin._createImg('mceItemWindowsMedia',d,nl[i]),nl[i]);break;case'clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b':nl[i].parentNode.replaceChild(TinyMCE_MediaPlugin._createImg('mceItemQuickTime',d,nl[i]),nl[i]);break;case'clsid:cfcdaa03-8be4-11cf-b84b-0020afbbccfa':nl[i].parentNode.replaceChild(TinyMCE_MediaPlugin._createImg('mceItemRealMedia',d,nl[i]),nl[i]);break}}nl=tinyMCE.selectNodes(content,function(n){return n.className=='mceItemObjectEmbed'});for(i=0;i<nl.length;i++){switch(tinyMCE.getAttrib(nl[i],'type')){case'application/x-shockwave-flash':TinyMCE_MediaPlugin._createImgFromEmbed(nl[i],d,'mceItemFlash');break;case'application/x-director':TinyMCE_MediaPlugin._createImgFromEmbed(nl[i],d,'mceItemShockWave');break;case'application/x-mplayer2':TinyMCE_MediaPlugin._createImgFromEmbed(nl[i],d,'mceItemWindowsMedia');break;case'video/quicktime':TinyMCE_MediaPlugin._createImgFromEmbed(nl[i],d,'mceItemQuickTime');break;case'audio/x-pn-realaudio-plugin':TinyMCE_MediaPlugin._createImgFromEmbed(nl[i],d,'mceItemRealMedia');break}}break;case"get_from_editor":var startPos=-1,endPos,attribs,chunkBefore,chunkAfter,embedHTML,at,pl,cb,mt,ex;while((startPos=content.indexOf('<img',startPos+1))!=-1){endPos=content.indexOf('/>',startPos);attribs=TinyMCE_MediaPlugin._parseAttributes(content.substring(startPos+4,endPos));if(!/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(attribs['class']))continue;endPos+=2;at=attribs['title'];if(at){at=at.replace(/&(#39|apos);/g,"'");at=at.replace(/&#quot;/g,'"');try{pl=eval('x={'+at+'};')}catch(ex){pl={}}}if(!tinyMCE.getParam('media_use_script',false)){switch(attribs['class']){case'mceItemFlash':ci='d27cdb6e-ae6d-11cf-96b8-444553540000';cb='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0';mt='application/x-shockwave-flash';break;case'mceItemShockWave':ci='166B1BCA-3F9C-11CF-8075-444553540000';cb='http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0';mt='application/x-director';break;case'mceItemWindowsMedia':ci=tinyMCE.getParam('media_wmp6_compatible')?'05589FA1-C356-11CE-BF01-00AA0055595A':'6BF52A52-394A-11D3-B153-00C04F79FAA6';cb='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701';mt='application/x-mplayer2';break;case'mceItemQuickTime':ci='02BF25D5-8C17-4B23-BC80-D3488ABDDC6B';cb='http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0';mt='video/quicktime';break;case'mceItemRealMedia':ci='CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA';cb='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0';mt='audio/x-pn-realaudio-plugin';break}if(!tinyMCE.getParam("relative_urls"))pl.src=tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'],pl.src);embedHTML=TinyMCE_MediaPlugin._getEmbed(ci,cb,mt,pl,attribs)}else{switch(attribs['class']){case'mceItemFlash':s='writeFlash';break;case'mceItemShockWave':s='writeShockWave';break;case'mceItemWindowsMedia':s='writeWindowsMedia';break;case'mceItemQuickTime':s='writeQuickTime';break;case'mceItemRealMedia':s='writeRealMedia';break}if(attribs.width)at=at.replace(/width:[^0-9]?[0-9]+%?[^0-9]?/g,"width:'"+attribs.width+"'");if(attribs.height)at=at.replace(/height:[^0-9]?[0-9]+%?[^0-9]?/g,"height:'"+attribs.height+"'");if(!tinyMCE.getParam("relative_urls")){pl.src=tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'],pl.src);at=at.replace(new RegExp("src:'[^']*'","g"),"src:'"+pl.src+"'")}embedHTML='<script type="text/javascript">'+s+'({'+at+'});</script>'}chunkBefore=content.substring(0,startPos);chunkAfter=content.substring(endPos);content=chunkBefore+embedHTML+chunkAfter}break}return content},handleNodeChange:function(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){if(node==null)return;do{if(node.nodeName=="IMG"&&/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(tinyMCE.getAttrib(node,'class'))){tinyMCE.switchClass(editor_id+'_media','mceButtonSelected');return true}}while((node=node.parentNode));tinyMCE.switchClass(editor_id+'_media','mceButtonNormal');return true},_createImgFromEmbed:function(n,d,cl){var ne,at,i,ti='',an;ne=d.createElement('img');ne.src=tinyMCE.getParam("theme_href")+'/images/spacer.gif';ne.width=tinyMCE.getAttrib(n,'width');ne.height=tinyMCE.getAttrib(n,'height');ne.className=cl;at=n.attributes;for(i=0;i<at.length;i++){if(at[i].specified&&at[i].nodeValue){an=at[i].nodeName.toLowerCase();if(an=='src')continue;if(an=='mce_src')an='src';if(an.indexOf('mce_')==-1&&!new RegExp('^(class|type)$').test(an))ti+=an.toLowerCase()+':\''+at[i].nodeValue+"',"}}ti=ti.length>0?ti.substring(0,ti.length-1):ti;ne.title=ti;n.parentNode.replaceChild(ne,n)},_createImg:function(cl,d,n){var i,nl,ti="",an,av,al=new Array();ne=d.createElement('img');ne.src=tinyMCE.getParam("theme_href")+'/images/spacer.gif';ne.width=tinyMCE.getAttrib(n,'width');ne.height=tinyMCE.getAttrib(n,'height');ne.className=cl;al.id=tinyMCE.getAttrib(n,'id');al.name=tinyMCE.getAttrib(n,'name');al.width=tinyMCE.getAttrib(n,'width');al.height=tinyMCE.getAttrib(n,'height');al.bgcolor=tinyMCE.getAttrib(n,'bgcolor');al.align=tinyMCE.getAttrib(n,'align');al.class_name=tinyMCE.getAttrib(n,'mce_class');nl=n.getElementsByTagName('div');for(i=0;i<nl.length;i++){av=tinyMCE.getAttrib(nl[i],'value');av=av.replace(new RegExp('\\\\','g'),'\\\\');av=av.replace(new RegExp('"','g'),'\\"');av=av.replace(new RegExp("'",'g'),"\\'");an=tinyMCE.getAttrib(nl[i],'name');al[an]=av}if(al.movie){al.src=al.movie;al.movie=null}for(an in al){if(al[an]!=null&&typeof(al[an])!="function"&&al[an]!='')ti+=an.toLowerCase()+':\''+al[an]+"',"}ti=ti.length>0?ti.substring(0,ti.length-1):ti;ne.title=ti;return ne},_getEmbed:function(cls,cb,mt,p,at){var h='',n;p.width=at.width?at.width:p.width;p.height=at.height?at.height:p.height;h+='<object classid="clsid:'+cls+'" codebase="'+cb+'"';h+=typeof(p.id)!="undefined"?' id="'+p.id+'"':'';h+=typeof(p.name)!="undefined"?' name="'+p.name+'"':'';h+=typeof(p.width)!="undefined"?' width="'+p.width+'"':'';h+=typeof(p.height)!="undefined"?' height="'+p.height+'"':'';h+=typeof(p.align)!="undefined"?' align="'+p.align+'"':'';h+='>';for(n in p){if(typeof(p[n])!="undefined"&&typeof(p[n])!="function"){h+='<param name="'+n+'" value="'+p[n]+'" />';if(n=='src'&&p[n].indexOf('://')!=-1&&mt=='application/x-mplayer2')h+='<param name="url" value="'+p[n]+'" />'}}h+='<embed type="'+mt+'"';for(n in p){if(typeof(p[n])=="function")continue;if(!(n=='url'&&mt=='application/x-mplayer2'))h+=' '+n+'="'+p[n]+'"'}h+='></embed></object>';return h},_parseAttributes:function(attribute_string){var attributeName="",endChr='"';var attributeValue="";var withInName;var withInValue;var attributes=new Array();var whiteSpaceRegExp=new RegExp('^[ \n\r\t]+','g');if(attribute_string==null||attribute_string.length<2)return null;withInName=withInValue=false;for(var i=0;i<attribute_string.length;i++){var chr=attribute_string.charAt(i);if((chr=='"'||chr=="'")&&!withInValue){withInValue=true;endChr=chr}else if(chr==endChr&&withInValue){withInValue=false;var pos=attributeName.lastIndexOf(' ');if(pos!=-1)attributeName=attributeName.substring(pos+1);attributes[attributeName.toLowerCase()]=attributeValue.substring(1);attributeName="";attributeValue=""}else if(!whiteSpaceRegExp.test(chr)&&!withInName&&!withInValue)withInName=true;if(chr=='='&&withInName)withInName=false;if(withInName)attributeName+=chr;if(withInValue)attributeValue+=chr}return attributes}};tinyMCE.addPlugin("media",TinyMCE_MediaPlugin);
|
|
add_to_tinymce_directory/plugins/print/editor_plugin.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
tinyMCE.importPluginLanguagePack('print');var TinyMCE_PrintPlugin={getInfo:function(){return{longname:'Print',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/print',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},getControlHTML:function(cn){switch(cn){case"print":return tinyMCE.getButtonHTML(cn,'lang_print_desc','{$pluginurl}/images/print.gif','mcePrint')}return""},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mcePrint":tinyMCE.getInstanceById(editor_id).contentWindow.print();return true}return false}};tinyMCE.addPlugin("print",TinyMCE_PrintPlugin);
|
|
add_to_tinymce_directory/plugins/searchreplace/css/searchreplace.css
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
/* stylesheet for advsearchreplace plugin*/
|
2 |
-
|
3 |
-
.panel_wrapper { height: 85px; }
|
4 |
-
.panel_wrapper div.current { height: 85px; }
|
5 |
-
|
6 |
-
/* MS IE only styles */
|
7 |
-
* html .panel_wrapper { height: 100px; }
|
8 |
-
* html .panel_wrapper div.current { height: 100px; }
|
9 |
-
|
10 |
-
#replaceBtn, #replaceAllBtn {
|
11 |
-
padding-bottom: 2px;
|
12 |
-
font-weight: bold;
|
13 |
-
width: 90px;
|
14 |
-
height: 21px;
|
15 |
-
border: 0;
|
16 |
-
cursor: pointer;
|
17 |
-
}
|
18 |
-
|
19 |
-
#replaceBtn { background: url(../images/replace_button_bg.gif); }
|
20 |
-
#replaceAllBtn { background: url(../images/replace_all_button_bg.gif); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add_to_tinymce_directory/plugins/searchreplace/editor_plugin.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
tinyMCE.importPluginLanguagePack('searchreplace');var TinyMCE_SearchReplacePlugin={getInfo:function(){return{longname:'Search/Replace',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_searchreplace.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},initInstance:function(inst){inst.addShortcut('ctrl','f','lang_searchreplace_search_desc','mceSearch',true);},getControlHTML:function(cn){switch(cn){case"search":return tinyMCE.getButtonHTML(cn,'lang_searchreplace_search_desc','{$pluginurl}/images/search.gif','mceSearch',true);case"replace":return tinyMCE.getButtonHTML(cn,'lang_searchreplace_replace_desc','{$pluginurl}/images/replace.gif','mceSearchReplace',true)}return""},execCommand:function(editor_id,element,command,user_interface,value){var inst=tinyMCE.getInstanceById(editor_id),selectedText=inst.selection.getSelectedText(),rng;function defValue(key,default_value){value[key]=typeof(value[key])=="undefined"?default_value:value[key]}function replaceSel(search_str,str,back){inst.execCommand('mceInsertContent',false,str)}if(!value)value=[];defValue("editor_id",editor_id);defValue("searchstring",selectedText);defValue("replacestring",null);defValue("replacemode","none");defValue("casesensitive",false);defValue("backwards",false);defValue("wrap",false);defValue("wholeword",false);defValue("inline","yes");defValue("resizable","no");switch(command){case"mceResetSearch":tinyMCE.lastSearchRng=null;return true;case"mceSearch":if(user_interface){var template=new Array();template['file']='../../plugins/searchreplace/searchreplace.htm';template['width']=380;template['height']=155+(tinyMCE.isNS7?20:0)+(tinyMCE.isMSIE?15:0);template['width']+=tinyMCE.getLang('lang_searchreplace_delta_width',0);template['height']+=tinyMCE.getLang('lang_searchreplace_delta_height',0);inst.execCommand('SelectAll');if(tinyMCE.isMSIE){var r=inst.selection.getRng();r.collapse(true);r.select()}else inst.selection.getSel().collapseToStart();tinyMCE.openWindow(template,value)}else{var win=tinyMCE.getInstanceById(editor_id).contentWindow;var doc=tinyMCE.getInstanceById(editor_id).contentWindow.document;var body=tinyMCE.getInstanceById(editor_id).contentWindow.document.body;if(body.innerHTML==""){alert(tinyMCE.getLang('lang_searchreplace_notfound'));return true}if(value['replacemode']=="current"){replaceSel(value['string'],value['replacestring'],value['backwards']);value['replacemode']="none";tinyMCE.execInstanceCommand(editor_id,'mceSearch',user_interface,value,false);return true}if(tinyMCE.isMSIE){var rng=tinyMCE.lastSearchRng?tinyMCE.lastSearchRng:doc.selection.createRange();var flags=0;if(value['wholeword'])flags=flags|2;if(value['casesensitive'])flags=flags|4;if(!rng.findText){alert('This operation is currently not supported by this browser.');return true}if(value['replacemode']=="all"){while(rng.findText(value['string'],value['backwards']?-1:1,flags)){rng.scrollIntoView();rng.select();rng.collapse(false);replaceSel(value['string'],value['replacestring'],value['backwards'])}alert(tinyMCE.getLang('lang_searchreplace_allreplaced'));return true}if(rng.findText(value['string'],value['backwards']?-1:1,flags)){rng.scrollIntoView();rng.select();rng.collapse(value['backwards']);tinyMCE.lastSearchRng=rng}else alert(tinyMCE.getLang('lang_searchreplace_notfound'))}else{if(value['replacemode']=="all"){while(win.find(value['string'],value['casesensitive'],value['backwards'],value['wrap'],value['wholeword'],false,false))replaceSel(value['string'],value['replacestring'],value['backwards']);alert(tinyMCE.getLang('lang_searchreplace_allreplaced'));return true}if(!win.find(value['string'],value['casesensitive'],value['backwards'],value['wrap'],value['wholeword'],false,false))alert(tinyMCE.getLang('lang_searchreplace_notfound'))}}return true;case"mceSearchReplace":value['replacestring']="";tinyMCE.execInstanceCommand(editor_id,'mceSearch',user_interface,value,false);return true}return false}};tinyMCE.addPlugin("searchreplace",TinyMCE_SearchReplacePlugin);
|
|
add_to_tinymce_directory/plugins/table/editor_plugin.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
tinyMCE.importPluginLanguagePack('table');var TinyMCE_TablePlugin={getInfo:function(){return{longname:'Tables',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/table',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},initInstance:function(inst){if(tinyMCE.isGecko){var doc=inst.getDoc();tinyMCE.addEvent(doc,"mouseup",TinyMCE_TablePlugin._mouseDownHandler)}inst.tableRowClipboard=null},getControlHTML:function(control_name){var controls=new Array(['table','table.gif','lang_table_desc','mceInsertTable',true],['delete_table','table_delete.gif','lang_table_del','mceTableDelete'],['delete_col','table_delete_col.gif','lang_table_delete_col_desc','mceTableDeleteCol'],['delete_row','table_delete_row.gif','lang_table_delete_row_desc','mceTableDeleteRow'],['col_after','table_insert_col_after.gif','lang_table_col_after_desc','mceTableInsertColAfter'],['col_before','table_insert_col_before.gif','lang_table_col_before_desc','mceTableInsertColBefore'],['row_after','table_insert_row_after.gif','lang_table_row_after_desc','mceTableInsertRowAfter'],['row_before','table_insert_row_before.gif','lang_table_row_before_desc','mceTableInsertRowBefore'],['row_props','table_row_props.gif','lang_table_row_desc','mceTableRowProps',true],['cell_props','table_cell_props.gif','lang_table_cell_desc','mceTableCellProps',true],['split_cells','table_split_cells.gif','lang_table_split_cells_desc','mceTableSplitCells',true],['merge_cells','table_merge_cells.gif','lang_table_merge_cells_desc','mceTableMergeCells',true]);for(var i=0;i<controls.length;i++){var but=controls[i];var cmd='tinyMCE.execInstanceCommand(\'{$editor_id}\',\''+but[3]+'\', '+(but.length>4?but[4]:false)+(but.length>5?', \''+but[5]+'\'':'')+');return false;';if(but[0]==control_name)return tinyMCE.getButtonHTML(control_name,but[2],'{$pluginurl}/images/'+but[1],but[3],(but.length>4?but[4]:false))}if(control_name=="tablecontrols"){var html="";html+=tinyMCE.getControlHTML("table");html+=tinyMCE.getControlHTML("separator");html+=tinyMCE.getControlHTML("row_props");html+=tinyMCE.getControlHTML("cell_props");html+=tinyMCE.getControlHTML("separator");html+=tinyMCE.getControlHTML("row_before");html+=tinyMCE.getControlHTML("row_after");html+=tinyMCE.getControlHTML("delete_row");html+=tinyMCE.getControlHTML("separator");html+=tinyMCE.getControlHTML("col_before");html+=tinyMCE.getControlHTML("col_after");html+=tinyMCE.getControlHTML("delete_col");html+=tinyMCE.getControlHTML("separator");html+=tinyMCE.getControlHTML("split_cells");html+=tinyMCE.getControlHTML("merge_cells");return html}return""},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mceInsertTable":case"mceTableRowProps":case"mceTableCellProps":case"mceTableSplitCells":case"mceTableMergeCells":case"mceTableInsertRowBefore":case"mceTableInsertRowAfter":case"mceTableDeleteRow":case"mceTableInsertColBefore":case"mceTableInsertColAfter":case"mceTableDeleteCol":case"mceTableCutRow":case"mceTableCopyRow":case"mceTablePasteRowBefore":case"mceTablePasteRowAfter":case"mceTableDelete":var inst=tinyMCE.getInstanceById(editor_id);inst.execCommand('mceBeginUndoLevel');TinyMCE_TablePlugin._doExecCommand(editor_id,element,command,user_interface,value);inst.execCommand('mceEndUndoLevel');return true}return false},handleNodeChange:function(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){var colspan="1",rowspan="1",tdElm;var inst=tinyMCE.getInstanceById(editor_id);tinyMCE.switchClass(editor_id+'_table','mceButtonNormal');tinyMCE.switchClass(editor_id+'_delete_table','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_row_props','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_cell_props','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_row_before','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_row_after','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_delete_row','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_col_before','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_col_after','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_delete_col','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_split_cells','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_merge_cells','mceButtonDisabled');if(tdElm=tinyMCE.getParentElement(node,"td,th")){tinyMCE.switchClass(editor_id+'_cell_props','mceButtonSelected');tinyMCE.switchClass(editor_id+'_delete_table','mceButtonNormal');tinyMCE.switchClass(editor_id+'_row_before','mceButtonNormal');tinyMCE.switchClass(editor_id+'_row_after','mceButtonNormal');tinyMCE.switchClass(editor_id+'_delete_row','mceButtonNormal');tinyMCE.switchClass(editor_id+'_col_before','mceButtonNormal');tinyMCE.switchClass(editor_id+'_col_after','mceButtonNormal');tinyMCE.switchClass(editor_id+'_delete_col','mceButtonNormal');colspan=tinyMCE.getAttrib(tdElm,"colspan");rowspan=tinyMCE.getAttrib(tdElm,"rowspan");colspan=colspan==""?"1":colspan;rowspan=rowspan==""?"1":rowspan;if(colspan!="1"||rowspan!="1")tinyMCE.switchClass(editor_id+'_split_cells','mceButtonNormal')}if(tinyMCE.getParentElement(node,"tr"))tinyMCE.switchClass(editor_id+'_row_props','mceButtonSelected');if(tinyMCE.getParentElement(node,"table")){tinyMCE.switchClass(editor_id+'_table','mceButtonSelected');tinyMCE.switchClass(editor_id+'_merge_cells','mceButtonNormal')}},_mouseDownHandler:function(e){var elm=tinyMCE.isMSIE?event.srcElement:e.target;var focusElm=tinyMCE.selectedInstance.getFocusElement();if(elm.nodeName=="BODY"&&(focusElm.nodeName=="TD"||focusElm.nodeName=="TH"||(focusElm.parentNode&&focusElm.parentNode.nodeName=="TD")||(focusElm.parentNode&&focusElm.parentNode.nodeName=="TH"))){window.setTimeout(function(){var tableElm=tinyMCE.getParentElement(focusElm,"table");tinyMCE.handleVisualAid(tableElm,true,tinyMCE.settings['visual'],tinyMCE.selectedInstance)},10)}},_doExecCommand:function(editor_id,element,command,user_interface,value){var inst=tinyMCE.getInstanceById(editor_id);var focusElm=inst.getFocusElement();var trElm=tinyMCE.getParentElement(focusElm,"tr");var tdElm=tinyMCE.getParentElement(focusElm,"td,th");var tableElm=tinyMCE.getParentElement(focusElm,"table");var doc=inst.contentWindow.document;var tableBorder=tableElm?tableElm.getAttribute("border"):"";if(trElm&&tdElm==null)tdElm=trElm.cells[0];function inArray(ar,v){for(var i=0;i<ar.length;i++){if(ar[i].length>0&&inArray(ar[i],v))return true;if(ar[i]==v)return true}return false}function makeTD(){var newTD=doc.createElement("td");newTD.innerHTML=" "}function getColRowSpan(td){var colspan=tinyMCE.getAttrib(td,"colspan");var rowspan=tinyMCE.getAttrib(td,"rowspan");colspan=colspan==""?1:parseInt(colspan);rowspan=rowspan==""?1:parseInt(rowspan);return{colspan:colspan,rowspan:rowspan}}function getCellPos(grid,td){var x,y;for(y=0;y<grid.length;y++){for(x=0;x<grid[y].length;x++){if(grid[y][x]==td)return{cellindex:x,rowindex:y}}}return null}function getCell(grid,row,col){if(grid[row]&&grid[row][col])return grid[row][col];return null}function getTableGrid(table){var grid=new Array(),rows=table.rows,x,y,td,sd,xstart,x2,y2;for(y=0;y<rows.length;y++){for(x=0;x<rows[y].cells.length;x++){td=rows[y].cells[x];sd=getColRowSpan(td);for(xstart=x;grid[y]&&grid[y][xstart];xstart++);for(y2=y;y2<y+sd['rowspan'];y2++){if(!grid[y2])grid[y2]=new Array();for(x2=xstart;x2<xstart+sd['colspan'];x2++)grid[y2][x2]=td}}}return grid}function trimRow(table,tr,td,new_tr){var grid=getTableGrid(table),cpos=getCellPos(grid,td);var cells,lastElm;if(new_tr.cells.length!=tr.childNodes.length){cells=tr.childNodes;lastElm=null;for(var x=0;td=getCell(grid,cpos.rowindex,x);x++){var remove=true;var sd=getColRowSpan(td);if(inArray(cells,td)){new_tr.childNodes[x]._delete=true}else if((lastElm==null||td!=lastElm)&&sd.colspan>1){for(var i=x;i<x+td.colSpan;i++)new_tr.childNodes[i]._delete=true}if((lastElm==null||td!=lastElm)&&sd.rowspan>1)td.rowSpan=sd.rowspan+1;lastElm=td}deleteMarked(tableElm)}}function prevElm(node,name){while((node=node.previousSibling)!=null){if(node.nodeName==name)return node}return null}function nextElm(node,names){var namesAr=names.split(',');while((node=node.nextSibling)!=null){for(var i=0;i<namesAr.length;i++){if(node.nodeName.toLowerCase()==namesAr[i].toLowerCase())return node}}return null}function deleteMarked(tbl){if(tbl.rows==0)return;var tr=tbl.rows[0];do{var next=nextElm(tr,"TR");if(tr._delete){tr.parentNode.removeChild(tr);continue}var td=tr.cells[0];if(td.cells>1){do{var nexttd=nextElm(td,"TD,TH");if(td._delete)td.parentNode.removeChild(td)}while((td=nexttd)!=null)}}while((tr=next)!=null)}function addRows(td_elm,tr_elm,rowspan){td_elm.rowSpan=1;var trNext=nextElm(tr_elm,"TR");for(var i=1;i<rowspan&&trNext;i++){var newTD=doc.createElement("td");newTD.innerHTML=" ";if(tinyMCE.isMSIE)trNext.insertBefore(newTD,trNext.cells(td_elm.cellIndex));else trNext.insertBefore(newTD,trNext.cells[td_elm.cellIndex]);trNext=nextElm(trNext,"TR")}}function copyRow(doc,table,tr){var grid=getTableGrid(table);var newTR=tr.cloneNode(false);var cpos=getCellPos(grid,tr.cells[0]);var lastCell=null;var tableBorder=tinyMCE.getAttrib(table,"border");var tdElm=null;for(var x=0;tdElm=getCell(grid,cpos.rowindex,x);x++){var newTD=null;if(lastCell!=tdElm){for(var i=0;i<tr.cells.length;i++){if(tdElm==tr.cells[i]){newTD=tdElm.cloneNode(true);break}}}if(newTD==null){newTD=doc.createElement("td");newTD.innerHTML=" "}newTD.colSpan=1;newTD.rowSpan=1;newTR.appendChild(newTD);lastCell=tdElm}return newTR}switch(command){case"mceTableRowProps":if(trElm==null)return true;if(user_interface){var template=new Array();template['file']='../../plugins/table/row.htm';template['width']=380;template['height']=295;template['width']+=tinyMCE.getLang('lang_table_rowprops_delta_width',0);template['height']+=tinyMCE.getLang('lang_table_rowprops_delta_height',0);tinyMCE.openWindow(template,{editor_id:inst.editorId,inline:"yes"})}return true;case"mceTableCellProps":if(tdElm==null)return true;if(user_interface){var template=new Array();template['file']='../../plugins/table/cell.htm';template['width']=380;template['height']=295;template['width']+=tinyMCE.getLang('lang_table_cellprops_delta_width',0);template['height']+=tinyMCE.getLang('lang_table_cellprops_delta_height',0);tinyMCE.openWindow(template,{editor_id:inst.editorId,inline:"yes"})}return true;case"mceInsertTable":if(user_interface){var template=new Array();template['file']='../../plugins/table/table.htm';template['width']=380;template['height']=295;template['width']+=tinyMCE.getLang('lang_table_table_delta_width',0);template['height']+=tinyMCE.getLang('lang_table_table_delta_height',0);tinyMCE.openWindow(template,{editor_id:inst.editorId,inline:"yes",action:value})}return true;case"mceTableDelete":var table=tinyMCE.getParentElement(inst.getFocusElement(),"table");if(table){table.parentNode.removeChild(table);inst.repaint()}return true;case"mceTableSplitCells":case"mceTableMergeCells":case"mceTableInsertRowBefore":case"mceTableInsertRowAfter":case"mceTableDeleteRow":case"mceTableInsertColBefore":case"mceTableInsertColAfter":case"mceTableDeleteCol":case"mceTableCutRow":case"mceTableCopyRow":case"mceTablePasteRowBefore":case"mceTablePasteRowAfter":if(!tableElm)return true;if(trElm&&tableElm!=trElm.parentNode)tableElm=trElm.parentNode;if(tableElm&&trElm){switch(command){case"mceTableCutRow":if(!trElm||!tdElm)return true;inst.tableRowClipboard=copyRow(doc,tableElm,trElm);inst.execCommand("mceTableDeleteRow");break;case"mceTableCopyRow":if(!trElm||!tdElm)return true;inst.tableRowClipboard=copyRow(doc,tableElm,trElm);break;case"mceTablePasteRowBefore":if(!trElm||!tdElm)return true;var newTR=inst.tableRowClipboard.cloneNode(true);var prevTR=prevElm(trElm,"TR");if(prevTR!=null)trimRow(tableElm,prevTR,prevTR.cells[0],newTR);trElm.parentNode.insertBefore(newTR,trElm);break;case"mceTablePasteRowAfter":if(!trElm||!tdElm)return true;var nextTR=nextElm(trElm,"TR");var newTR=inst.tableRowClipboard.cloneNode(true);trimRow(tableElm,trElm,tdElm,newTR);if(nextTR==null)trElm.parentNode.appendChild(newTR);else nextTR.parentNode.insertBefore(newTR,nextTR);break;case"mceTableInsertRowBefore":if(!trElm||!tdElm)return true;var grid=getTableGrid(tableElm);var cpos=getCellPos(grid,tdElm);var newTR=doc.createElement("tr");var lastTDElm=null;cpos.rowindex--;if(cpos.rowindex<0)cpos.rowindex=0;for(var x=0;tdElm=getCell(grid,cpos.rowindex,x);x++){if(tdElm!=lastTDElm){var sd=getColRowSpan(tdElm);if(sd['rowspan']==1){var newTD=doc.createElement("td");newTD.innerHTML=" ";newTD.colSpan=tdElm.colSpan;newTR.appendChild(newTD)}else tdElm.rowSpan=sd['rowspan']+1;lastTDElm=tdElm}}trElm.parentNode.insertBefore(newTR,trElm);grid=getTableGrid(tableElm);inst.selection.selectNode(getCell(grid,cpos.rowindex+1,cpos.cellindex),tinyMCE.isGecko,true);break;case"mceTableInsertRowAfter":if(!trElm||!tdElm)return true;var grid=getTableGrid(tableElm);var cpos=getCellPos(grid,tdElm);var newTR=doc.createElement("tr");var lastTDElm=null;for(var x=0;tdElm=getCell(grid,cpos.rowindex,x);x++){if(tdElm!=lastTDElm){var sd=getColRowSpan(tdElm);if(sd['rowspan']==1){var newTD=doc.createElement("td");newTD.innerHTML=" ";newTD.colSpan=tdElm.colSpan;newTR.appendChild(newTD)}else tdElm.rowSpan=sd['rowspan']+1;lastTDElm=tdElm}}if(newTR.hasChildNodes()){var nextTR=nextElm(trElm,"TR");if(nextTR)nextTR.parentNode.insertBefore(newTR,nextTR);else tableElm.appendChild(newTR)}grid=getTableGrid(tableElm);inst.selection.selectNode(getCell(grid,cpos.rowindex,cpos.cellindex),tinyMCE.isGecko,true);break;case"mceTableDeleteRow":if(!trElm||!tdElm)return true;var grid=getTableGrid(tableElm);var cpos=getCellPos(grid,tdElm);if(grid.length==1){tableElm=tinyMCE.getParentElement(tableElm,"table");tableElm.parentNode.removeChild(tableElm);return true}var cells=trElm.cells;var nextTR=nextElm(trElm,"TR");for(var x=0;x<cells.length;x++){if(cells[x].rowSpan>1){var newTD=cells[x].cloneNode(true);var sd=getColRowSpan(cells[x]);newTD.rowSpan=sd.rowspan-1;var nextTD=nextTR.cells[x];if(nextTD==null)nextTR.appendChild(newTD);else nextTR.insertBefore(newTD,nextTD)}}var lastTDElm=null;for(var x=0;tdElm=getCell(grid,cpos.rowindex,x);x++){if(tdElm!=lastTDElm){var sd=getColRowSpan(tdElm);if(sd.rowspan>1){tdElm.rowSpan=sd.rowspan-1}else{trElm=tdElm.parentNode;if(trElm.parentNode)trElm._delete=true}lastTDElm=tdElm}}deleteMarked(tableElm);cpos.rowindex--;if(cpos.rowindex<0)cpos.rowindex=0;grid=getTableGrid(tableElm);inst.selection.selectNode(getCell(grid,cpos.rowindex,0),tinyMCE.isGecko,true);break;case"mceTableInsertColBefore":if(!trElm||!tdElm)return true;var grid=getTableGrid(tableElm);var cpos=getCellPos(grid,tdElm);var lastTDElm=null;for(var y=0;tdElm=getCell(grid,y,cpos.cellindex);y++){if(tdElm!=lastTDElm){var sd=getColRowSpan(tdElm);if(sd['colspan']==1){var newTD=doc.createElement(tdElm.nodeName);newTD.innerHTML=" ";newTD.rowSpan=tdElm.rowSpan;tdElm.parentNode.insertBefore(newTD,tdElm)}else tdElm.colSpan++;lastTDElm=tdElm}}grid=getTableGrid(tableElm);inst.selection.selectNode(getCell(grid,cpos.rowindex,cpos.cellindex+1),tinyMCE.isGecko,true);break;case"mceTableInsertColAfter":if(!trElm||!tdElm)return true;var grid=getTableGrid(tableElm);var cpos=getCellPos(grid,tdElm);var lastTDElm=null;for(var y=0;tdElm=getCell(grid,y,cpos.cellindex);y++){if(tdElm!=lastTDElm){var sd=getColRowSpan(tdElm);if(sd['colspan']==1){var newTD=doc.createElement(tdElm.nodeName);newTD.innerHTML=" ";newTD.rowSpan=tdElm.rowSpan;var nextTD=nextElm(tdElm,"TD,TH");if(nextTD==null)tdElm.parentNode.appendChild(newTD);else nextTD.parentNode.insertBefore(newTD,nextTD)}else tdElm.colSpan++;lastTDElm=tdElm}}grid=getTableGrid(tableElm);inst.selection.selectNode(getCell(grid,cpos.rowindex,cpos.cellindex),tinyMCE.isGecko,true);break;case"mceTableDeleteCol":if(!trElm||!tdElm)return true;var grid=getTableGrid(tableElm);var cpos=getCellPos(grid,tdElm);var lastTDElm=null;if(grid.length>1&&grid[0].length<=1){tableElm=tinyMCE.getParentElement(tableElm,"table");tableElm.parentNode.removeChild(tableElm);return true}for(var y=0;tdElm=getCell(grid,y,cpos.cellindex);y++){if(tdElm!=lastTDElm){var sd=getColRowSpan(tdElm);if(sd['colspan']>1)tdElm.colSpan=sd['colspan']-1;else{if(tdElm.parentNode)tdElm.parentNode.removeChild(tdElm)}lastTDElm=tdElm}}cpos.cellindex--;if(cpos.cellindex<0)cpos.cellindex=0;grid=getTableGrid(tableElm);inst.selection.selectNode(getCell(grid,cpos.rowindex,0),tinyMCE.isGecko,true);break;case"mceTableSplitCells":if(!trElm||!tdElm)return true;var spandata=getColRowSpan(tdElm);var colspan=spandata["colspan"];var rowspan=spandata["rowspan"];if(colspan>1||rowspan>1){tdElm.colSpan=1;for(var i=1;i<colspan;i++){var newTD=doc.createElement("td");newTD.innerHTML=" ";trElm.insertBefore(newTD,nextElm(tdElm,"TD,TH"));if(rowspan>1)addRows(newTD,trElm,rowspan)}addRows(tdElm,trElm,rowspan)}tableElm=tinyMCE.getParentElement(inst.getFocusElement(),"table");break;case"mceTableMergeCells":var rows=new Array();var sel=inst.getSel();var grid=getTableGrid(tableElm);if(tinyMCE.isMSIE||sel.rangeCount==1){if(user_interface){var template=new Array();var sp=getColRowSpan(tdElm);template['file']='../../plugins/table/merge_cells.htm';template['width']=250;template['height']=105+(tinyMCE.isNS7?25:0);template['width']+=tinyMCE.getLang('lang_table_merge_cells_delta_width',0);template['height']+=tinyMCE.getLang('lang_table_merge_cells_delta_height',0);tinyMCE.openWindow(template,{editor_id:inst.editorId,inline:"yes",action:"update",numcols:sp.colspan,numrows:sp.rowspan});return true}else{var numRows=parseInt(value['numrows']);var numCols=parseInt(value['numcols']);var cpos=getCellPos(grid,tdElm);if((""+numRows)=="NaN")numRows=1;if((""+numCols)=="NaN")numCols=1;var tRows=tableElm.rows;for(var y=cpos.rowindex;y<grid.length;y++){var rowCells=new Array();for(var x=cpos.cellindex;x<grid[y].length;x++){var td=getCell(grid,y,x);if(td&&!inArray(rows,td)&&!inArray(rowCells,td)){var cp=getCellPos(grid,td);if(cp.cellindex<cpos.cellindex+numCols&&cp.rowindex<cpos.rowindex+numRows)rowCells[rowCells.length]=td}}if(rowCells.length>0)rows[rows.length]=rowCells}}}else{var cells=new Array();var sel=inst.getSel();var lastTR=null;var curRow=null;var x1=-1,y1=-1,x2,y2;if(sel.rangeCount<2)return true;for(var i=0;i<sel.rangeCount;i++){var rng=sel.getRangeAt(i);var tdElm=rng.startContainer.childNodes[rng.startOffset];if(!tdElm)break;if(tdElm.nodeName=="TD")cells[cells.length]=tdElm}var tRows=tableElm.rows;for(var y=0;y<tRows.length;y++){var rowCells=new Array();for(var x=0;x<tRows[y].cells.length;x++){var td=tRows[y].cells[x];for(var i=0;i<cells.length;i++){if(td==cells[i]){rowCells[rowCells.length]=td}}}if(rowCells.length>0)rows[rows.length]=rowCells}var curRow=new Array();var lastTR=null;for(var y=0;y<grid.length;y++){for(var x=0;x<grid[y].length;x++){grid[y][x]._selected=false;for(var i=0;i<cells.length;i++){if(grid[y][x]==cells[i]){if(x1==-1){x1=x;y1=y}x2=x;y2=y;grid[y][x]._selected=true}}}}for(var y=y1;y<=y2;y++){for(var x=x1;x<=x2;x++){if(!grid[y][x]._selected){alert("Invalid selection for merge.");return true}}}}var rowSpan=1,colSpan=1;var lastRowSpan=-1;for(var y=0;y<rows.length;y++){var rowColSpan=0;for(var x=0;x<rows[y].length;x++){var sd=getColRowSpan(rows[y][x]);rowColSpan+=sd['colspan'];if(lastRowSpan!=-1&&sd['rowspan']!=lastRowSpan){alert("Invalid selection for merge.");return true}lastRowSpan=sd['rowspan']}if(rowColSpan>colSpan)colSpan=rowColSpan;lastRowSpan=-1}var lastColSpan=-1;for(var x=0;x<rows[0].length;x++){var colRowSpan=0;for(var y=0;y<rows.length;y++){var sd=getColRowSpan(rows[y][x]);colRowSpan+=sd['rowspan'];if(lastColSpan!=-1&&sd['colspan']!=lastColSpan){alert("Invalid selection for merge.");return true}lastColSpan=sd['colspan']}if(colRowSpan>rowSpan)rowSpan=colRowSpan;lastColSpan=-1}tdElm=rows[0][0];tdElm.rowSpan=rowSpan;tdElm.colSpan=colSpan;for(var y=0;y<rows.length;y++){for(var x=0;x<rows[y].length;x++){var html=rows[y][x].innerHTML;var chk=tinyMCE.regexpReplace(html,"[ \t\r\n]","");if(chk!="<br/>"&&chk!="<br>"&&chk!=" "&&(x+y>0))tdElm.innerHTML+=html;if(rows[y][x]!=tdElm&&!rows[y][x]._deleted){var cpos=getCellPos(grid,rows[y][x]);var tr=rows[y][x].parentNode;tr.removeChild(rows[y][x]);rows[y][x]._deleted=true;if(!tr.hasChildNodes()){tr.parentNode.removeChild(tr);var lastCell=null;for(var x=0;cellElm=getCell(grid,cpos.rowindex,x);x++){if(cellElm!=lastCell&&cellElm.rowSpan>1)cellElm.rowSpan--;lastCell=cellElm}if(tdElm.rowSpan>1)tdElm.rowSpan--}}}}break}tableElm=tinyMCE.getParentElement(inst.getFocusElement(),"table");tinyMCE.handleVisualAid(tableElm,true,tinyMCE.settings['visual'],tinyMCE.selectedInstance);tinyMCE.triggerNodeChange();inst.repaint()}return true}return false}};tinyMCE.addPlugin("table",TinyMCE_TablePlugin);
|
|
add_to_tinymce_directory/plugins/table/images/buttons.gif
DELETED
Binary file
|
add_to_tinymce_directory/plugins/table/images/table_delete_col.gif
DELETED
Binary file
|
add_to_tinymce_directory/plugins/table/images/table_delete_row.gif
DELETED
Binary file
|
add_to_tinymce_directory/plugins/visualchars/editor_plugin.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
tinyMCE.importPluginLanguagePack('visualchars');var TinyMCE_VisualCharsPlugin={getInfo:function(){return{longname:'Visual characters',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/visualchars',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},initInstance:function(inst){inst.visualChars={state:false}},getControlHTML:function(cn){switch(cn){case"visualchars":return tinyMCE.getButtonHTML(cn,'lang_visualchars_desc','{$pluginurl}/images/visualchars.gif','mceVisualChars',false)}return""},execCommand:function(editor_id,element,command,user_interface,value){var inst=tinyMCE.getInstanceById(editor_id);switch(command){case"mceVisualChars":this._toggleVisualChars(editor_id,inst);return true}return false},cleanup:function(type,content,inst){if(type=="insert_to_editor_dom"||type=="get_from_editor_dom"){inst.visualChars.state=true;this._toggleVisualChars(inst.editorId,inst)}return content},_toggleVisualChars:function(editor_id,inst){var nl,i,h,d=inst.getDoc(),b=inst.getBody(),nv,s=inst.selection,bo;inst.visualChars.state=!inst.visualChars.state;bo=s.getBookmark(true);tinyMCE.switchClass(editor_id+'_visualchars',inst.visualChars.state?'mceButtonSelected':'mceButtonNormal');if(inst.visualChars.state){nl=tinyMCE.selectNodes(b,function(n){return n.nodeType==3&&n.nodeValue&&n.nodeValue.indexOf('\u00a0')!=-1});for(i=0;i<nl.length;i++){nv=nl[i].nodeValue;nv=nv.replace(/(\u00a0+)/g,'<span class="mceItemHiddenVisualChar">$1</span>');nv=nv.replace(/\u00a0/g,'\u00b7');tinyMCE.setOuterHTML(nl[i],nv,d)}}else{nl=tinyMCE.selectNodes(b,function(n){return n.nodeType==1&&n.nodeName=='SPAN'&&n.className=='mceItemHiddenVisualChar'});for(i=0;i<nl.length;i++)tinyMCE.setOuterHTML(nl[i],nl[i].innerHTML.replace(/(·|\u00b7)/g,' '),d)}}};tinyMCE.addPlugin("visualchars",TinyMCE_VisualCharsPlugin);
|
|
add_to_tinymce_directory/plugins/xhtmlxtras/editor_plugin.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
tinyMCE.importPluginLanguagePack('xhtmlxtras');var TinyMCE_XHTMLXtrasPlugin={getInfo:function(){return{longname:'XHTML Xtras Plugin',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/xhtmlxtras',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},initInstance:function(inst){tinyMCE.importCSS(inst.getDoc(),tinyMCE.baseURL+"/plugins/xhtmlxtras/css/xhtmlxtras.css")},getControlHTML:function(cn){switch(cn){case"cite":return tinyMCE.getButtonHTML(cn,'lang_xhtmlxtras_cite_desc','{$pluginurl}/images/cite.gif','mceCite',true);case"acronym":return tinyMCE.getButtonHTML(cn,'lang_xhtmlxtras_acronym_desc','{$pluginurl}/images/acronym.gif','mceAcronym',true);case"abbr":return tinyMCE.getButtonHTML(cn,'lang_xhtmlxtras_abbr_desc','{$pluginurl}/images/abbr.gif','mceAbbr',true);case"del":return tinyMCE.getButtonHTML(cn,'lang_xhtmlxtras_del_desc','{$pluginurl}/images/del.gif','mceDel',true);case"ins":return tinyMCE.getButtonHTML(cn,'lang_xhtmlxtras_ins_desc','{$pluginurl}/images/ins.gif','mceIns',true);case"attribs":return tinyMCE.getButtonHTML(cn,'lang_xhtmlxtras_attribs_desc','{$pluginurl}/images/attribs.gif','mceAttributes',true)}return""},execCommand:function(editor_id,element,command,user_interface,value){var template,inst,elm;switch(command){case"mceCite":if(!this._anySel(editor_id))return true;template=new Array();template['file']='../../plugins/xhtmlxtras/cite.htm';template['width']=350;template['height']=250;tinyMCE.openWindow(template,{editor_id:editor_id});return true;case"mceAcronym":if(!this._anySel(editor_id))return true;template=new Array();template['file']='../../plugins/xhtmlxtras/acronym.htm';template['width']=350;template['height']=250;tinyMCE.openWindow(template,{editor_id:editor_id});return true;case"mceAbbr":if(!this._anySel(editor_id))return true;template=new Array();template['file']='../../plugins/xhtmlxtras/abbr.htm';template['width']=350;template['height']=250;tinyMCE.openWindow(template,{editor_id:editor_id});return true;case"mceIns":if(!this._anySel(editor_id))return true;template=new Array();template['file']='../../plugins/xhtmlxtras/ins.htm';template['width']=350;template['height']=310;tinyMCE.openWindow(template,{editor_id:editor_id});return true;case"mceDel":if(!this._anySel(editor_id))return true;template=new Array();template['file']='../../plugins/xhtmlxtras/del.htm';template['width']=350;template['height']=310;tinyMCE.openWindow(template,{editor_id:editor_id});return true;case"mceAttributes":inst=tinyMCE.getInstanceById(editor_id);elm=inst.getFocusElement();if(elm&&elm.nodeName!=='BODY'&&elm.className.indexOf('mceItem')==-1){tinyMCE.openWindow({file:'../../plugins/xhtmlxtras/attributes.htm',width:380,height:370},{editor_id:editor_id})}return true}return false},cleanup:function(type,content,inst){if(type=='insert_to_editor'&&tinyMCE.isIE&&!tinyMCE.isOpera){content=content.replace(/<abbr([^>]+)>/gi,'<html:ABBR $1>');content=content.replace(/<\/abbr>/gi,'</html:ABBR>')}return content},handleNodeChange:function(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){var elm=tinyMCE.getParentElement(node);if(node==null)return;tinyMCE.switchClass(editor_id+'_attribs','mceButtonDisabled');if(!any_selection){tinyMCE.switchClass(editor_id+'_cite','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_acronym','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_abbr','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_del','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_ins','mceButtonDisabled')}else{tinyMCE.switchClass(editor_id+'_cite','mceButtonNormal');tinyMCE.switchClass(editor_id+'_acronym','mceButtonNormal');tinyMCE.switchClass(editor_id+'_abbr','mceButtonNormal');tinyMCE.switchClass(editor_id+'_del','mceButtonNormal');tinyMCE.switchClass(editor_id+'_ins','mceButtonNormal')}if(elm&&elm.nodeName!='BODY'&&elm.className.indexOf('mceItem')==-1)tinyMCE.switchClass(editor_id+'_attribs','mceButtonNormal');switch(node.nodeName){case"CITE":tinyMCE.switchClass(editor_id+'_cite','mceButtonSelected');return true;case"ACRONYM":tinyMCE.switchClass(editor_id+'_acronym','mceButtonSelected');return true;case"abbr":case"HTML:ABBR":case"ABBR":tinyMCE.switchClass(editor_id+'_abbr','mceButtonSelected');return true;case"DEL":tinyMCE.switchClass(editor_id+'_del','mceButtonSelected');return true;case"INS":tinyMCE.switchClass(editor_id+'_ins','mceButtonSelected');return true}return true},_anySel:function(editor_id){var inst=tinyMCE.getInstanceById(editor_id),t=inst.selection.getSelectedText(),pe;pe=tinyMCE.getParentElement(inst.getFocusElement(),'CITE,ACRONYM,ABBR,HTML:ABBR,DEL,INS');return pe||inst.getFocusElement().nodeName=="IMG"||(t&&t.length>0)}};tinyMCE.addPlugin("xhtmlxtras",TinyMCE_XHTMLXtrasPlugin);
|
|
readme.txt
CHANGED
@@ -3,14 +3,19 @@ Contributors: Andrew Ozz
|
|
3 |
Donate link:
|
4 |
Tags: wysiwyg, formatting, tinymce, write, edit, post
|
5 |
Requires at least: 2.2.1
|
6 |
-
Tested up to: 2.2.
|
7 |
-
Stable tag:
|
8 |
|
9 |
-
Enables most of the advanced features of TinyMCE, the WordPress WYSIWYG editor.
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
-
This plugin adds
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
= Some of the new features added by this plugin =
|
16 |
|
@@ -18,13 +23,15 @@ This plugin adds 12 plugins to TinyMCE: Advanced hr, Advanced Image, Advanced Li
|
|
18 |
|
19 |
* Fullscreen mode.
|
20 |
|
21 |
-
* Support for making and editing tables.
|
|
|
|
|
22 |
|
23 |
* Much better (advanced) link and image dialogs that offer a lot of options.
|
24 |
|
25 |
* Search and Replace while editing.
|
26 |
|
27 |
-
*
|
28 |
|
29 |
|
30 |
== Installation ==
|
@@ -33,45 +40,89 @@ This plugin adds 12 plugins to TinyMCE: Advanced hr, Advanced Image, Advanced Li
|
|
33 |
|
34 |
2. Unzip.
|
35 |
|
36 |
-
3. Upload
|
37 |
|
38 |
4. Activate the plugin.
|
39 |
|
40 |
-
5.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
|
42 |
|
43 |
== Frequently Asked Questions ==
|
44 |
|
45 |
= No styles are imported in the Styles drop-down menu. =
|
46 |
|
47 |
-
These styles (just the classes) are imported from your current themes style.css file. However some themes use @import to load the actual css file(s). Tiny does not follow these links
|
48 |
|
49 |
-
.
|
|
|
50 |
|
51 |
-
|
52 |
|
53 |
-
|
54 |
-
|
55 |
-
.my_other_class{}
|
56 |
|
57 |
= I�ve just installed this plugin, but it doesn�t do anything. =
|
58 |
|
59 |
-
Log out of WordPress, clear your browser cache, quit and restart the browser and try again. If that does not work,
|
|
|
|
|
|
|
|
|
60 |
|
61 |
-
= The
|
62 |
|
63 |
-
|
64 |
|
65 |
-
=
|
66 |
|
67 |
-
|
68 |
|
69 |
-
= The plugin
|
70 |
|
71 |
Make sure the "Use the visual editor when writing" checkbox under "Users - Your Profile" is checked.
|
72 |
|
|
|
|
|
73 |
= Other questions? Screenshots? =
|
74 |
|
75 |
Please visit the homepage for [TinyMCE Advanced](http://www.laptoptips.ca/projects/tinymce-advanced/).
|
76 |
-
|
77 |
-
|
3 |
Donate link:
|
4 |
Tags: wysiwyg, formatting, tinymce, write, edit, post
|
5 |
Requires at least: 2.2.1
|
6 |
+
Tested up to: 2.2.3
|
7 |
+
Stable tag: trunk
|
8 |
|
9 |
+
Enables most of the advanced features of TinyMCE, the WordPress WYSIWYG editor.
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
+
This plugin adds 16 plugins to TinyMCE: Advanced hr, Advanced Image, Advanced Link, Context Menu, Emotions (Smilies), Full Screen, IESpell, Layer, Media, Nonbreaking, Print, Search and Replace, Style, Table, Visual Characters and XHTML Extras.
|
14 |
+
|
15 |
+
Version 2.0 includes an admin page for arranging the TinyMCE toolbar buttons, easy installation, a lot of bugfixes, customized "Smilies" plugin that uses the built-in WordPress smilies, etc. The admin page uses Scriptaculous and Prototype.js (similar to the "Widgets" admin page) that lets you "drag and drop" the TinyMCE buttons to arrange your own toolbars and enables/disables the corresponding plugins depending on the used buttons.
|
16 |
+
|
17 |
+
**Language Support:** The plugin interface in only in English, but the TinyMCE plugins include several translations: German, French, Italian, Spanish, Portuguese, Russian and Chineze. Another 36 translations are available as a [separate download](http://svn.wp-plugins.org/tinymce-advanced/branches/tinymce-advanced_extra-languages.zip).
|
18 |
+
|
19 |
|
20 |
= Some of the new features added by this plugin =
|
21 |
|
23 |
|
24 |
* Fullscreen mode.
|
25 |
|
26 |
+
* Support for making and editing basic tables.
|
27 |
+
|
28 |
+
* In-line css styles.
|
29 |
|
30 |
* Much better (advanced) link and image dialogs that offer a lot of options.
|
31 |
|
32 |
* Search and Replace while editing.
|
33 |
|
34 |
+
* Support for XHTML specific tags and for (div based) layers.
|
35 |
|
36 |
|
37 |
== Installation ==
|
40 |
|
41 |
2. Unzip.
|
42 |
|
43 |
+
3. Upload to the plugins directory (wp-content/plugins).
|
44 |
|
45 |
4. Activate the plugin.
|
46 |
|
47 |
+
5. Set your preferences at "Manage - TinyMCE Advanced".
|
48 |
+
|
49 |
+
6. Clear your browser cache.
|
50 |
+
|
51 |
+
|
52 |
+
= Upgrading from TinyMCE Advanced 2.0-beta =
|
53 |
+
|
54 |
+
1. Deactivate the beta version.
|
55 |
+
|
56 |
+
2. Delete the "tinymce-advanced" folder from WordPress plugins directory.
|
57 |
+
|
58 |
+
3. Follow the above steps to install the new version.
|
59 |
+
|
60 |
+
|
61 |
+
= Upgrading from TinyMCE Advanced 1.0 =
|
62 |
+
|
63 |
+
This version of TinyMCE Advanced is self-contained. It does not require separate installation of TinyMCE plugins. If you have one of the previous versions (1.0 or 1.0.1) installed, please follow these steps:
|
64 |
+
|
65 |
+
1. Deactivat the old TinyMCE Advanced.
|
66 |
+
|
67 |
+
2. Backup the TinyMCE plugins folder, located at wp-includes/js/tinymce/plugins.
|
68 |
+
|
69 |
+
3. Delete the following TinyMCE plugins that were added when installing the previous version (delete the directories with these names from wp-includes/js/tinymce/plugins):
|
70 |
+
|
71 |
+
* advhr
|
72 |
+
* contextmenu
|
73 |
+
* print
|
74 |
+
* visualchars
|
75 |
+
* advimage
|
76 |
+
* advlink
|
77 |
+
* table
|
78 |
+
* xhtmlxtras
|
79 |
+
* nonbreaking
|
80 |
+
* layer
|
81 |
+
* searchreplace
|
82 |
+
* fullscreen
|
83 |
+
|
84 |
+
4. After deleting the above plugins, you should have the 7 default plugins that came with WordPress: autosave, directionality, inlinepopups, paste, spellchecker, wordpress, wphelp. Or if you prefer, delete the whole tinymce plugins directory (wp-includes/js/tinymce/plugins) and upload a fresh copy from the WordPress installation package.
|
85 |
+
|
86 |
+
5. Delete the tinymce-advanced folder from WordPress plugins directory (wp-includes/plugins).
|
87 |
+
|
88 |
+
6. Follow the installation instructions above to install the new version.
|
89 |
|
90 |
|
91 |
== Frequently Asked Questions ==
|
92 |
|
93 |
= No styles are imported in the Styles drop-down menu. =
|
94 |
|
95 |
+
These styles (just the classes) are imported from your current themes style.css file. However some themes use @import to load the actual css file(s). Tiny does not follow these links. To make the classes appear, add their names to tinymce.css file located in "tinymce-advanced/css". You don�t need to copy the whole classes, just add the names, like that:
|
96 |
|
97 |
+
.my-class{}
|
98 |
+
.my-other-class{}
|
99 |
|
100 |
+
= I just added my css classes to tinymce.css but they are still missing from the editor. =
|
101 |
|
102 |
+
Click on "Save Changes" on the admin page of the plugin, even if you did not change any buttons. This will force TinyMCE to reload the css files.
|
|
|
|
|
103 |
|
104 |
= I�ve just installed this plugin, but it doesn�t do anything. =
|
105 |
|
106 |
+
Log out of WordPress, clear your browser cache, quit and restart the browser and try again. If that does not work, there may be a caching proxy or network cache somewhere between you and your host. You may need to wait for a few hours until this cache expires.
|
107 |
+
|
108 |
+
= When I add "Smilies", they do not show in the editor. =
|
109 |
+
|
110 |
+
The "Emotions" button in TinyMCE adds the codes for the smilies. The actual images are added by WordPress when viewing the Post/Page. Make sure the checkbox "Convert emoticons to graphics on display" in "Options - Writing" is checked.
|
111 |
|
112 |
+
= The Media plugin is missing. =
|
113 |
|
114 |
+
Yes, the Media plugin is disabled in IE. It seems that it conflicts with some of the other js loaded when editing posts in WordPress. However it works nicely in both Firefox and Opera.
|
115 |
|
116 |
+
= Some of the window shows through in full screen mode. =
|
117 |
|
118 |
+
Click on "Save and continue editing" to refresh it.
|
119 |
|
120 |
+
= The plugin does not add any buttons. =
|
121 |
|
122 |
Make sure the "Use the visual editor when writing" checkbox under "Users - Your Profile" is checked.
|
123 |
|
124 |
+
== Screenshots ==
|
125 |
+
|
126 |
= Other questions? Screenshots? =
|
127 |
|
128 |
Please visit the homepage for [TinyMCE Advanced](http://www.laptoptips.ca/projects/tinymce-advanced/).
|
|
|
|
tinymce-advanced/css/tadv-styles.css
ADDED
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
body {
|
2 |
+
height: 100%;
|
3 |
+
}
|
4 |
+
input.tadv-chk {
|
5 |
+
border: none;
|
6 |
+
padding: 0;
|
7 |
+
}
|
8 |
+
* html input.tadv-chk {
|
9 |
+
margin: 0;
|
10 |
+
background-color:#eaeaea;
|
11 |
+
}
|
12 |
+
label.tadv-box {
|
13 |
+
margin: 0 2px;
|
14 |
+
padding: 1px 3px 3px 7px;
|
15 |
+
background-color: #eaeaea;
|
16 |
+
cursor: default;
|
17 |
+
line-height: 28px;
|
18 |
+
}
|
19 |
+
* html label.tadv-box {
|
20 |
+
padding: 0 3px 1px 8px;
|
21 |
+
}
|
22 |
+
#tadvWpadv {
|
23 |
+
position: relative;
|
24 |
+
top: 0px;
|
25 |
+
left: 0px;
|
26 |
+
z-index: 0;
|
27 |
+
opacity: 0.999999;
|
28 |
+
}
|
29 |
+
#tadvadmin p {
|
30 |
+
margin: 6px 0;
|
31 |
+
}
|
32 |
+
#tadvadmin, #tadvzones, #tadvpalette {
|
33 |
+
-moz-user-select: none;
|
34 |
+
-khtml-user-select: none;
|
35 |
+
user-select: none;
|
36 |
+
}
|
37 |
+
* ul, * ul li {
|
38 |
+
list-style-type: none;
|
39 |
+
}
|
40 |
+
#tadvadmin p.submit {
|
41 |
+
padding-right: 10px;
|
42 |
+
}
|
43 |
+
#reset {
|
44 |
+
float: left;
|
45 |
+
width: 15em;
|
46 |
+
margin-right: 20px;
|
47 |
+
}
|
48 |
+
#tadvzones {
|
49 |
+
margin-right: 200px;
|
50 |
+
}
|
51 |
+
.tadvdropzone {
|
52 |
+
float: left;
|
53 |
+
width: 99.99%;
|
54 |
+
padding: 0;
|
55 |
+
height: 26px;
|
56 |
+
margin: 8px 0;
|
57 |
+
z-index: -1;
|
58 |
+
}
|
59 |
+
.tadvdropzone .descr {
|
60 |
+
display: none;
|
61 |
+
}
|
62 |
+
.tadvdropzone .tadvmodule .tadvitem {
|
63 |
+
margin: 0;
|
64 |
+
padding: 0;
|
65 |
+
border: none;
|
66 |
+
}
|
67 |
+
.tadvdropzone ul {
|
68 |
+
height: 24px;
|
69 |
+
border: 1px solid #bbb;
|
70 |
+
background-color: #f0f0ee;
|
71 |
+
width: 99.99%;
|
72 |
+
float: left;
|
73 |
+
margin: 0;
|
74 |
+
padding: 0;
|
75 |
+
}
|
76 |
+
#tadvadmin .tadvmodule {
|
77 |
+
cursor: crosshair;
|
78 |
+
position: relative;
|
79 |
+
}
|
80 |
+
.tadvdropzone .tadvmodule, #tadvWpadv {
|
81 |
+
width: 23px;
|
82 |
+
height: 22px;
|
83 |
+
margin: 1px 0 0;
|
84 |
+
padding: 0;
|
85 |
+
float: left;
|
86 |
+
}
|
87 |
+
#tadvadmin img {
|
88 |
+
border: 0;
|
89 |
+
vertical-align: -5px;
|
90 |
+
margin: 1px 0 0 1px;
|
91 |
+
}
|
92 |
+
#tadvpalette li, .tadvdropzone li {
|
93 |
+
float: left;
|
94 |
+
margin: 0;
|
95 |
+
padding: 0;
|
96 |
+
border: none;
|
97 |
+
margin-bottom: 0;
|
98 |
+
}
|
99 |
+
#tadvpalette {
|
100 |
+
border: 1px solid #bbb;
|
101 |
+
background-color: #f0f8ff;
|
102 |
+
height: 64px;
|
103 |
+
padding: 4px;
|
104 |
+
margin: 8px 0;
|
105 |
+
}
|
106 |
+
#tadvpalette .tadvmodule .tadvitem {
|
107 |
+
display: block;
|
108 |
+
height: 22px;
|
109 |
+
width: 134px;
|
110 |
+
border: 1px solid #bbb;
|
111 |
+
background-color: #fff;
|
112 |
+
margin: 4px;
|
113 |
+
}
|
114 |
+
#tadvpalette .tadvmodule .descr {
|
115 |
+
display: inline;
|
116 |
+
margin-left: 2px;
|
117 |
+
}
|
118 |
+
* html #tadvpalette .tadvmodule img {
|
119 |
+
vertical-align: middle;
|
120 |
+
}
|
121 |
+
#pre_styleselect.tadvmodule .tadvitem {
|
122 |
+
width: 248px;
|
123 |
+
}
|
124 |
+
#pre_fontselect.tadvmodule .tadvitem {
|
125 |
+
width: 185px;
|
126 |
+
}
|
127 |
+
#pre_tablecontrols.tadvmodule .tadvitem {
|
128 |
+
width: 335px;
|
129 |
+
}
|
130 |
+
#pre_vipersvideoquicktags.tadvmodule .tadvitem {
|
131 |
+
width: 305px;
|
132 |
+
}
|
133 |
+
.tadvdropzone #pre_formatselect, .tadvdropzone #pre_formatselect .tadvitem {
|
134 |
+
width: 80px;
|
135 |
+
}
|
136 |
+
.tadvdropzone #pre_styleselect, .tadvdropzone #pre_styleselect .tadvitem {
|
137 |
+
width: 173px;
|
138 |
+
}
|
139 |
+
.tadvdropzone #pre_fontselect, .tadvdropzone #pre_fontselect .tadvitem {
|
140 |
+
width: 105px;
|
141 |
+
}
|
142 |
+
.tadvdropzone #pre_tablecontrols, .tadvdropzone #pre_tablecontrols .tadvitem {
|
143 |
+
width: 287px;
|
144 |
+
}
|
145 |
+
.tadvdropzone #pre_layer, .tadvdropzone #pre_layer .tadvitem {
|
146 |
+
width: 90px;
|
147 |
+
}
|
148 |
+
.tadvdropzone #pre_vipersvideoquicktags, .tadvdropzone #pre_vipersvideoquicktags .tadvitem {
|
149 |
+
width: 208px;
|
150 |
+
}
|
151 |
+
#tadvpalette .separator, .tadvdropzone .separator {
|
152 |
+
float: left;
|
153 |
+
position: relative;
|
154 |
+
cursor: crosshair;
|
155 |
+
}
|
156 |
+
.separator .tadvitem {
|
157 |
+
display: block;
|
158 |
+
width: 11px;
|
159 |
+
height: 22px;
|
160 |
+
}
|
161 |
+
#tadvpalette .separator .tadvitem {
|
162 |
+
margin: 4px;
|
163 |
+
border: 1px solid #bbb;
|
164 |
+
}
|
165 |
+
* html #tadvpalette .separator .tadvitem img {
|
166 |
+
margin: 1px 0 -2px 1px;
|
167 |
+
}
|
168 |
+
.tadvdropzone .separator {
|
169 |
+
margin: 1px 0 0;
|
170 |
+
}
|
171 |
+
#tadvWarnmsg {
|
172 |
+
color: #ff0000;
|
173 |
+
font-weight: bold;
|
174 |
+
height: 26px;
|
175 |
+
line-height: 26px;
|
176 |
+
}
|
tinymce-advanced/css/tadv-tinymce.css
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* You can add css class names below */
|
2 |
+
.shutter {}
|
3 |
+
.shutterset {}
|
4 |
+
|
5 |
+
|
6 |
+
|
7 |
+
|
8 |
+
|
9 |
+
|
10 |
+
|
11 |
+
|
12 |
+
|
13 |
+
|
14 |
+
|
15 |
+
|
16 |
+
|
17 |
+
|
18 |
+
/* styles for the TinyMCE editor */
|
19 |
+
body {color: #000000;text-align:left;}
|
20 |
+
p {text-align: none !important;}
|
21 |
+
a {color: blue;}
|
22 |
+
ul, ol {margin : 10px 0 10px 20px;}
|
23 |
+
ul li {list-style : disc;}
|
24 |
+
ol li {list-style : decimal;}
|
25 |
+
ul li, ol li {margin : 0.5em 0;}
|
tinymce-advanced/images/NextGEN.gif
ADDED
Binary file
|
{add_to_tinymce_directory/plugins/xhtmlxtras → tinymce-advanced}/images/abbr.gif
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins/xhtmlxtras → tinymce-advanced}/images/acronym.gif
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins/advhr → tinymce-advanced}/images/advhr.gif
RENAMED
File without changes
|
tinymce-advanced/images/anchor.gif
ADDED
Binary file
|
{add_to_tinymce_directory/plugins/xhtmlxtras → tinymce-advanced}/images/attribs.gif
RENAMED
File without changes
|
tinymce-advanced/images/backcolor.gif
ADDED
Binary file
|
tinymce-advanced/images/bold.gif
ADDED
Binary file
|
tinymce-advanced/images/bullist.gif
ADDED
Binary file
|
tinymce-advanced/images/charmap.gif
ADDED
Binary file
|
{add_to_tinymce_directory/plugins/xhtmlxtras → tinymce-advanced}/images/cite.gif
RENAMED
File without changes
|
tinymce-advanced/images/cleanup.gif
ADDED
Binary file
|
tinymce-advanced/images/code.gif
ADDED
Binary file
|
tinymce-advanced/images/copy.gif
ADDED
Binary file
|
tinymce-advanced/images/cut.gif
ADDED
Binary file
|
{add_to_tinymce_directory/plugins/xhtmlxtras → tinymce-advanced}/images/del.gif
RENAMED
File without changes
|
tinymce-advanced/images/embeddedvideo.gif
ADDED
Binary file
|
tinymce-advanced/images/emotions.gif
ADDED
Binary file
|
tinymce-advanced/images/fontselect.gif
ADDED
Binary file
|
tinymce-advanced/images/forecolor.gif
ADDED
Binary file
|
tinymce-advanced/images/formatselect.gif
ADDED
Binary file
|
{add_to_tinymce_directory/plugins/fullscreen → tinymce-advanced}/images/fullscreen.gif
RENAMED
File without changes
|
tinymce-advanced/images/g2image.gif
ADDED
Binary file
|
tinymce-advanced/images/googlevideo.gif
ADDED
Binary file
|
tinymce-advanced/images/iespell.gif
ADDED
Binary file
|
tinymce-advanced/images/image.gif
ADDED
Binary file
|
tinymce-advanced/images/indent.gif
ADDED
Binary file
|
{add_to_tinymce_directory/plugins/xhtmlxtras → tinymce-advanced}/images/ins.gif
RENAMED
File without changes
|
tinymce-advanced/images/italic.gif
ADDED
Binary file
|
tinymce-advanced/images/justifycenter.gif
ADDED
Binary file
|
tinymce-advanced/images/justifyfull.gif
ADDED
Binary file
|
tinymce-advanced/images/justifyleft.gif
ADDED
Binary file
|
tinymce-advanced/images/justifyright.gif
ADDED
Binary file
|
tinymce-advanced/images/layer.gif
ADDED
Binary file
|
tinymce-advanced/images/link.gif
ADDED
Binary file
|
{add_to_tinymce_directory/plugins/media → tinymce-advanced}/images/media.gif
RENAMED
File without changes
|
tinymce-advanced/images/nonbreaking.gif
ADDED
Binary file
|
tinymce-advanced/images/numlist.gif
ADDED
Binary file
|
tinymce-advanced/images/outdent.gif
ADDED
Binary file
|
tinymce-advanced/images/paste.gif
ADDED
Binary file
|
tinymce-advanced/images/pastetext.gif
ADDED
Binary file
|
tinymce-advanced/images/pasteword.gif
ADDED
Binary file
|
{add_to_tinymce_directory/plugins/print → tinymce-advanced}/images/print.gif
RENAMED
File without changes
|
tinymce-advanced/images/ps_imagemanager_tinymceplugin.gif
ADDED
Binary file
|
tinymce-advanced/images/redo.gif
ADDED
Binary file
|
tinymce-advanced/images/removeformat.gif
ADDED
Binary file
|
{add_to_tinymce_directory/plugins/searchreplace → tinymce-advanced}/images/replace.gif
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins/searchreplace → tinymce-advanced}/images/search.gif
RENAMED
File without changes
|
tinymce-advanced/images/separator.gif
ADDED
Binary file
|
{add_to_tinymce_directory/plugins/contextmenu → tinymce-advanced}/images/spacer.gif
RENAMED
File without changes
|
tinymce-advanced/images/spellchecker.gif
ADDED
Binary file
|
tinymce-advanced/images/strikethrough.gif
ADDED
Binary file
|
tinymce-advanced/images/styleprops.gif
ADDED
Binary file
|
tinymce-advanced/images/styleselect.gif
ADDED
Binary file
|
tinymce-advanced/images/sub.gif
ADDED
Binary file
|
tinymce-advanced/images/sup.gif
ADDED
Binary file
|
tinymce-advanced/images/tablecontrols.gif
ADDED
Binary file
|
tinymce-advanced/images/toolbars.gif
ADDED
Binary file
|
tinymce-advanced/images/underline.gif
ADDED
Binary file
|
tinymce-advanced/images/underline_es.gif
ADDED
Binary file
|
tinymce-advanced/images/undo.gif
ADDED
Binary file
|
tinymce-advanced/images/unlink.gif
ADDED
Binary file
|
tinymce-advanced/images/vipersvideoquicktags.gif
ADDED
Binary file
|
tinymce-advanced/images/visualaid.gif
ADDED
Binary file
|
{add_to_tinymce_directory/plugins/visualchars → tinymce-advanced}/images/visualchars.gif
RENAMED
File without changes
|
tinymce-advanced/images/wp_help.gif
ADDED
Binary file
|
tinymce-advanced/images/wp_more.gif
ADDED
Binary file
|
tinymce-advanced/images/wp_page.gif
ADDED
Binary file
|
tinymce-advanced/js/tadv-all.js
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
var Prototype={Version:'1.5.0',BrowserFeatures:{XPath:!!document.evaluate},ScriptFragment:'(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)',emptyFunction:function(){},K:function(a){return a}};var Class={create:function(){return function(){this.initialize.apply(this,arguments)}}};var Abstract=new Object();Object.extend=function(a,b){for(var c in b){a[c]=b[c]}return a};Object.extend(Object,{inspect:function(a){try{if(a===undefined)return'undefined';if(a===null)return'null';return a.inspect?a.inspect():a.toString()}catch(e){if(e instanceof RangeError)return'...';throw e;}},keys:function(a){var b=[];for(var c in a)b.push(c);return b},values:function(a){var b=[];for(var c in a)b.push(a[c]);return b},clone:function(a){return Object.extend({},a)}});Function.prototype.bind=function(){var a=this,args=$A(arguments),object=args.shift();return function(){return a.apply(object,args.concat($A(arguments)))}};Function.prototype.bindAsEventListener=function(b){var c=this,args=$A(arguments),b=args.shift();return function(a){return c.apply(b,[(a||window.event)].concat(args).concat($A(arguments)))}};Object.extend(Number.prototype,{toColorPart:function(){var a=this.toString(16);if(this<16)return'0'+a;return a},succ:function(){return this+1},times:function(a){$R(0,this,true).each(a);return this}});var Try={these:function(){var a;for(var i=0,length=arguments.length;i<length;i++){var b=arguments[i];try{a=b();break}catch(e){}}return a}};var PeriodicalExecuter=Class.create();PeriodicalExecuter.prototype={initialize:function(a,b){this.callback=a;this.frequency=b;this.currentlyExecuting=false;this.registerCallback()},registerCallback:function(){this.timer=setInterval(this.onTimerEvent.bind(this),this.frequency*1000)},stop:function(){if(!this.timer)return;clearInterval(this.timer);this.timer=null},onTimerEvent:function(){if(!this.currentlyExecuting){try{this.currentlyExecuting=true;this.callback(this)}finally{this.currentlyExecuting=false}}}};String.interpret=function(a){return a==null?'':String(a)};Object.extend(String.prototype,{gsub:function(a,b){var c='',source=this,match;b=arguments.callee.prepareReplacement(b);while(source.length>0){if(match=source.match(a)){c+=source.slice(0,match.index);c+=String.interpret(b(match));source=source.slice(match.index+match[0].length)}else{c+=source,source=''}}return c},sub:function(b,c,d){c=this.gsub.prepareReplacement(c);d=d===undefined?1:d;return this.gsub(b,function(a){if(--d<0)return a[0];return c(a)})},scan:function(a,b){this.gsub(a,b);return this},truncate:function(a,b){a=a||30;b=b===undefined?'...':b;return this.length>a?this.slice(0,a-b.length)+b:this},strip:function(){return this.replace(/^\s+/,'').replace(/\s+$/,'')},stripTags:function(){return this.replace(/<\/?[^>]+>/gi,'')},stripScripts:function(){return this.replace(new RegExp(Prototype.ScriptFragment,'img'),'')},extractScripts:function(){var b=new RegExp(Prototype.ScriptFragment,'img');var c=new RegExp(Prototype.ScriptFragment,'im');return(this.match(b)||[]).map(function(a){return(a.match(c)||['',''])[1]})},evalScripts:function(){return this.extractScripts().map(function(a){return eval(a)})},escapeHTML:function(){var a=document.createElement('div');var b=document.createTextNode(this);a.appendChild(b);return a.innerHTML},unescapeHTML:function(){var c=document.createElement('div');c.innerHTML=this.stripTags();return c.childNodes[0]?(c.childNodes.length>1?$A(c.childNodes).inject('',function(a,b){return a+b.nodeValue}):c.childNodes[0].nodeValue):''},toQueryParams:function(e){var f=this.strip().match(/([^?#]*)(#.*)?$/);if(!f)return{};return f[1].split(e||'&').inject({},function(a,b){if((b=b.split('='))[0]){var c=decodeURIComponent(b[0]);var d=b[1]?decodeURIComponent(b[1]):undefined;if(a[c]!==undefined){if(a[c].constructor!=Array)a[c]=[a[c]];if(d)a[c].push(d)}else a[c]=d}return a})},toArray:function(){return this.split('')},succ:function(){return this.slice(0,this.length-1)+String.fromCharCode(this.charCodeAt(this.length-1)+1)},camelize:function(){var a=this.split('-'),len=a.length;if(len==1)return a[0];var b=this.charAt(0)=='-'?a[0].charAt(0).toUpperCase()+a[0].substring(1):a[0];for(var i=1;i<len;i++)b+=a[i].charAt(0).toUpperCase()+a[i].substring(1);return b},capitalize:function(){return this.charAt(0).toUpperCase()+this.substring(1).toLowerCase()},underscore:function(){return this.gsub(/::/,'/').gsub(/([A-Z]+)([A-Z][a-z])/,'#{1}_#{2}').gsub(/([a-z\d])([A-Z])/,'#{1}_#{2}').gsub(/-/,'_').toLowerCase()},dasherize:function(){return this.gsub(/_/,'-')},inspect:function(a){var b=this.replace(/\\/g,'\\\\');if(useDoubleQuotes)return'"'+escapedString.replace(/"/g,'\\"')+'"';else return"'"+escapedString.replace(/'/g,'\\\'')+"'"}});String.prototype.gsub.prepareReplacement=function(b){if(typeof b=='function')return b;var c=new Template(b);return function(a){return c.evaluate(a)}};String.prototype.parseQuery=String.prototype.toQueryParams;var Template=Class.create();Template.Pattern=/(^|.|\r|\n)(#\{(.*?)\})/;Template.prototype={initialize:function(a,b){this.template=a.toString();this.pattern=b||Template.Pattern},evaluate:function(c){return this.template.gsub(this.pattern,function(a){var b=a[1];if(b=='\\')return a[2];return b+String.interpret(c[a[3]])})}};var $break=new Object();var $continue=new Object();var Enumerable={each:function(b){var c=0;try{this._each(function(a){try{b(a,c++)}catch(e){if(e!=$continue)throw e;}})}catch(e){if(e!=$break)throw e;}return this},eachSlice:function(a,b){var c=-a,slices=[],array=this.toArray();while((c+=a)<array.length)slices.push(array.slice(c,c+a));return slices.map(b)},all:function(c){var d=true;this.each(function(a,b){d=d&&!!(c||Prototype.K)(a,b);if(!d)throw $break;});return d},any:function(c){var d=false;this.each(function(a,b){if(d=!!(c||Prototype.K)(a,b))throw $break;});return d},collect:function(c){var d=[];this.each(function(a,b){d.push((c||Prototype.K)(a,b))});return d},detect:function(c){var d;this.each(function(a,b){if(c(a,b)){d=a;throw $break;}});return d},findAll:function(c){var d=[];this.each(function(a,b){if(c(a,b))d.push(a)});return d},grep:function(d,e){var f=[];this.each(function(a,b){var c=a.toString();if(c.match(d))f.push((e||Prototype.K)(a,b))});return f},include:function(b){var c=false;this.each(function(a){if(a==b){c=true;throw $break;}});return c},inGroupsOf:function(b,c){c=c===undefined?null:c;return this.eachSlice(b,function(a){while(a.length<b)a.push(c);return a})},inject:function(c,d){this.each(function(a,b){c=d(c,a,b)});return c},invoke:function(b){var c=$A(arguments).slice(1);return this.map(function(a){return a[b].apply(a,c)})},max:function(c){var d;this.each(function(a,b){a=(c||Prototype.K)(a,b);if(d==undefined||a>=d)d=a});return d},min:function(c){var d;this.each(function(a,b){a=(c||Prototype.K)(a,b);if(d==undefined||a<d)d=a});return d},partition:function(c){var d=[],falses=[];this.each(function(a,b){((c||Prototype.K)(a,b)?d:falses).push(a)});return[d,falses]},pluck:function(c){var d=[];this.each(function(a,b){d.push(a[c])});return d},reject:function(c){var d=[];this.each(function(a,b){if(!c(a,b))d.push(a)});return d},sortBy:function(e){return this.map(function(a,b){return{value:a,criteria:e(a,b)}}).sort(function(c,d){var a=c.criteria,b=d.criteria;return a<b?-1:a>b?1:0}).pluck('value')},toArray:function(){return this.map()},zip:function(){var c=Prototype.K,args=$A(arguments);if(typeof args.last()=='function')c=args.pop();var d=[this].concat(args).map($A);return this.map(function(a,b){return c(d.pluck(b))})},size:function(){return this.toArray().length},inspect:function(){return'#<Enumerable:'+this.toArray().inspect()+'>'}};Object.extend(Enumerable,{map:Enumerable.collect,find:Enumerable.detect,select:Enumerable.findAll,member:Enumerable.include,entries:Enumerable.toArray});var $A=Array.from=function(a){if(!a)return[];if(a.toArray){return a.toArray()}else{var b=[];for(var i=0,length=a.length;i<length;i++)b.push(a[i]);return b}};Object.extend(Array.prototype,Enumerable);if(!Array.prototype._reverse)Array.prototype._reverse=Array.prototype.reverse;Object.extend(Array.prototype,{_each:function(a){for(var i=0,length=this.length;i<length;i++)a(this[i])},clear:function(){this.length=0;return this},first:function(){return this[0]},last:function(){return this[this.length-1]},compact:function(){return this.select(function(a){return a!=null})},flatten:function(){return this.inject([],function(a,b){return a.concat(b&&b.constructor==Array?b.flatten():[b])})},without:function(){var b=$A(arguments);return this.select(function(a){return!b.include(a)})},indexOf:function(a){for(var i=0,length=this.length;i<length;i++)if(this[i]==a)return i;return-1},reverse:function(a){return(a!==false?this:this.toArray())._reverse()},reduce:function(){return this.length>1?this:this[0]},uniq:function(){return this.inject([],function(a,b){return a.include(b)?a:a.concat([b])})},clone:function(){return[].concat(this)},size:function(){return this.length},inspect:function(){return'['+this.map(Object.inspect).join(', ')+']'}});Array.prototype.toArray=Array.prototype.clone;function $w(a){a=a.strip();return a?a.split(/\s+/):[]}if(window.opera){Array.prototype.concat=function(){var a=[];for(var i=0,length=this.length;i<length;i++)a.push(this[i]);for(var i=0,length=arguments.length;i<length;i++){if(arguments[i].constructor==Array){for(var j=0,arrayLength=arguments[i].length;j<arrayLength;j++)a.push(arguments[i][j])}else{a.push(arguments[i])}}return a}}var Hash=function(a){Object.extend(this,a||{})};Object.extend(Hash,{toQueryString:function(d){var e=[];this.prototype._each.call(d,function(b){if(!b.key)return;if(b.value&&b.value.constructor==Array){var c=b.value.compact();if(c.length<2)b.value=c.reduce();else{key=encodeURIComponent(b.key);c.each(function(a){a=a!=undefined?encodeURIComponent(a):'';e.push(key+'='+encodeURIComponent(a))});return}}if(b.value==undefined)b[1]='';e.push(b.map(encodeURIComponent).join('='))});return e.join('&')}});Object.extend(Hash.prototype,Enumerable);Object.extend(Hash.prototype,{_each:function(a){for(var b in this){var c=this[b];if(c&&c==Hash.prototype[b])continue;var d=[b,c];d.key=b;d.value=c;a(d)}},keys:function(){return this.pluck('key')},values:function(){return this.pluck('value')},merge:function(c){return $H(c).inject(this,function(a,b){a[b.key]=b.value;return a})},remove:function(){var a;for(var i=0,length=arguments.length;i<length;i++){var b=this[arguments[i]];if(b!==undefined){if(a===undefined)a=b;else{if(a.constructor!=Array)a=[a];a.push(b)}}delete this[arguments[i]]}return a},toQueryString:function(){return Hash.toQueryString(this)},inspect:function(){return'#<Hash:{'+this.map(function(a){return a.map(Object.inspect).join(': ')}).join(', ')+'}>'}});function $H(a){if(a&&a.constructor==Hash)return a;return new Hash(a)};ObjectRange=Class.create();Object.extend(ObjectRange.prototype,Enumerable);Object.extend(ObjectRange.prototype,{initialize:function(a,b,c){this.start=a;this.end=b;this.exclusive=c},_each:function(a){var b=this.start;while(this.include(b)){a(b);b=b.succ()}},include:function(a){if(a<this.start)return false;if(this.exclusive)return a<this.end;return a<=this.end}});var $R=function(a,b,c){return new ObjectRange(a,b,c)};var Ajax={getTransport:function(){return Try.these(function(){return new XMLHttpRequest()},function(){return new ActiveXObject('Msxml2.XMLHTTP')},function(){return new ActiveXObject('Microsoft.XMLHTTP')})||false},activeRequestCount:0};Ajax.Responders={responders:[],_each:function(a){this.responders._each(a)},register:function(a){if(!this.include(a))this.responders.push(a)},unregister:function(a){this.responders=this.responders.without(a)},dispatch:function(b,c,d,f){this.each(function(a){if(typeof a[b]=='function'){try{a[b].apply(a,[c,d,f])}catch(e){}}})}};Object.extend(Ajax.Responders,Enumerable);Ajax.Responders.register({onCreate:function(){Ajax.activeRequestCount++},onComplete:function(){Ajax.activeRequestCount--}});Ajax.Base=function(){};Ajax.Base.prototype={setOptions:function(a){this.options={method:'post',asynchronous:true,contentType:'application/x-www-form-urlencoded',encoding:'UTF-8',parameters:''};Object.extend(this.options,a||{});this.options.method=this.options.method.toLowerCase();if(typeof this.options.parameters=='string')this.options.parameters=this.options.parameters.toQueryParams()}};Ajax.Request=Class.create();Ajax.Request.Events=['Uninitialized','Loading','Loaded','Interactive','Complete'];Ajax.Request.prototype=Object.extend(new Ajax.Base(),{_complete:false,initialize:function(a,b){this.transport=Ajax.getTransport();this.setOptions(b);this.request(a)},request:function(a){this.url=a;this.method=this.options.method;var b=this.options.parameters;if(!['get','post'].include(this.method)){b['_method']=this.method;this.method='post'}b=Hash.toQueryString(b);if(b&&/Konqueror|Safari|KHTML/.test(navigator.userAgent))b+='&_=';if(this.method=='get'&&b)this.url+=(this.url.indexOf('?')>-1?'&':'?')+b;try{Ajax.Responders.dispatch('onCreate',this,this.transport);this.transport.open(this.method.toUpperCase(),this.url,this.options.asynchronous);if(this.options.asynchronous)setTimeout(function(){this.respondToReadyState(1)}.bind(this),10);this.transport.onreadystatechange=this.onStateChange.bind(this);this.setRequestHeaders();var c=this.method=='post'?(this.options.postBody||b):null;this.transport.send(c);if(!this.options.asynchronous&&this.transport.overrideMimeType)this.onStateChange()}catch(e){this.dispatchException(e)}},onStateChange:function(){var a=this.transport.readyState;if(a>1&&!((a==4)&&this._complete))this.respondToReadyState(this.transport.readyState)},setRequestHeaders:function(){var b={'X-Requested-With':'XMLHttpRequest','X-Prototype-Version':Prototype.Version,'Accept':'text/javascript, text/html, application/xml, text/xml, */*'};if(this.method=='post'){b['Content-type']=this.options.contentType+(this.options.encoding?'; charset='+this.options.encoding:'');if(this.transport.overrideMimeType&&(navigator.userAgent.match(/Gecko\/(\d{4})/)||[0,2005])[1]<2005)b['Connection']='close'}if(typeof this.options.requestHeaders=='object'){var c=this.options.requestHeaders;if(typeof c.push=='function')for(var i=0,length=c.length;i<length;i+=2)b[c[i]]=c[i+1];else $H(c).each(function(a){b[a.key]=a.value})}for(var d in b)this.transport.setRequestHeader(d,b[d])},success:function(){return!this.transport.status||(this.transport.status>=200&&this.transport.status<300)},respondToReadyState:function(a){var b=Ajax.Request.Events[a];var c=this.transport,json=this.evalJSON();if(b=='Complete'){try{this._complete=true;(this.options['on'+this.transport.status]||this.options['on'+(this.success()?'Success':'Failure')]||Prototype.emptyFunction)(c,json)}catch(e){this.dispatchException(e)}if((this.getHeader('Content-type')||'text/javascript').strip().match(/^(text|application)\/(x-)?(java|ecma)script(;.*)?$/i))this.evalResponse()}try{(this.options['on'+b]||Prototype.emptyFunction)(c,json);Ajax.Responders.dispatch('on'+b,this,c,json)}catch(e){this.dispatchException(e)}if(b=='Complete'){this.transport.onreadystatechange=Prototype.emptyFunction}},getHeader:function(a){try{return this.transport.getResponseHeader(a)}catch(e){return null}},evalJSON:function(){try{var a=this.getHeader('X-JSON');return a?eval('('+a+')'):null}catch(e){return null}},evalResponse:function(){try{return eval(this.transport.responseText)}catch(e){this.dispatchException(e)}},dispatchException:function(a){(this.options.onException||Prototype.emptyFunction)(this,a);Ajax.Responders.dispatch('onException',this,a)}});Ajax.Updater=Class.create();Object.extend(Object.extend(Ajax.Updater.prototype,Ajax.Request.prototype),{initialize:function(c,d,e){this.container={success:(c.success||c),failure:(c.failure||(c.success?null:c))};this.transport=Ajax.getTransport();this.setOptions(e);var f=this.options.onComplete||Prototype.emptyFunction;this.options.onComplete=(function(a,b){this.updateContent();f(a,b)}).bind(this);this.request(d)},updateContent:function(){var a=this.container[this.success()?'success':'failure'];var b=this.transport.responseText;if(!this.options.evalScripts)b=b.stripScripts();if(a=$(a)){if(this.options.insertion)new this.options.insertion(a,b);else a.update(b)}if(this.success()){if(this.onComplete)setTimeout(this.onComplete.bind(this),10)}}});Ajax.PeriodicalUpdater=Class.create();Ajax.PeriodicalUpdater.prototype=Object.extend(new Ajax.Base(),{initialize:function(a,b,c){this.setOptions(c);this.onComplete=this.options.onComplete;this.frequency=(this.options.frequency||2);this.decay=(this.options.decay||1);this.updater={};this.container=a;this.url=b;this.start()},start:function(){this.options.onComplete=this.updateComplete.bind(this);this.onTimerEvent()},stop:function(){this.updater.options.onComplete=undefined;clearTimeout(this.timer);(this.onComplete||Prototype.emptyFunction).apply(this,arguments)},updateComplete:function(a){if(this.options.decay){this.decay=(a.responseText==this.lastText?this.decay*this.options.decay:1);this.lastText=a.responseText}this.timer=setTimeout(this.onTimerEvent.bind(this),this.decay*this.frequency*1000)},onTimerEvent:function(){this.updater=new Ajax.Updater(this.container,this.url,this.options)}});function $(a){if(arguments.length>1){for(var i=0,elements=[],length=arguments.length;i<length;i++)elements.push($(arguments[i]));return elements}if(typeof a=='string')a=document.getElementById(a);return Element.extend(a)}if(Prototype.BrowserFeatures.XPath){document._getElementsByXPath=function(a,b){var c=[];var d=document.evaluate(a,$(b)||document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(var i=0,length=d.snapshotLength;i<length;i++)c.push(d.snapshotItem(i));return c}}document.getElementsByClassName=function(a,b){if(Prototype.BrowserFeatures.XPath){var q=".//*[contains(concat(' ', @class, ' '), ' "+a+" ')]";return document._getElementsByXPath(q,b)}else{var c=($(b)||document.body).getElementsByTagName('*');var d=[],child;for(var i=0,length=c.length;i<length;i++){child=c[i];if(Element.hasClassName(child,a))d.push(Element.extend(child))}return d}};if(!window.Element)var Element=new Object();Element.extend=function(a){if(!a||_nativeExtensions||a.nodeType==3)return a;if(!a._extended&&a.tagName&&a!=window){var b=Object.clone(Element.Methods),cache=Element.extend.cache;if(a.tagName=='FORM')Object.extend(b,Form.Methods);if(['INPUT','TEXTAREA','SELECT'].include(a.tagName))Object.extend(b,Form.Element.Methods);Object.extend(b,Element.Methods.Simulated);for(var c in b){var d=b[c];if(typeof d=='function'&&!(c in a))a[c]=cache.findOrStore(d)}}a._extended=true;return a};Element.extend.cache={findOrStore:function(a){return this[a]=this[a]||function(){return a.apply(null,[this].concat($A(arguments)))}}};Element.Methods={visible:function(a){return $(a).style.display!='none'},toggle:function(a){a=$(a);Element[Element.visible(a)?'hide':'show'](a);return a},hide:function(a){$(a).style.display='none';return a},show:function(a){$(a).style.display='';return a},remove:function(a){a=$(a);a.parentNode.removeChild(a);return a},update:function(a,b){b=typeof b=='undefined'?'':b.toString();$(a).innerHTML=b.stripScripts();setTimeout(function(){b.evalScripts()},10);return a},replace:function(a,b){a=$(a);b=typeof b=='undefined'?'':b.toString();if(a.outerHTML){a.outerHTML=b.stripScripts()}else{var c=a.ownerDocument.createRange();c.selectNodeContents(a);a.parentNode.replaceChild(c.createContextualFragment(b.stripScripts()),a)}setTimeout(function(){b.evalScripts()},10);return a},inspect:function(d){d=$(d);var e='<'+d.tagName.toLowerCase();$H({'id':'id','className':'class'}).each(function(a){var b=a.first(),attribute=a.last();var c=(d[b]||'').toString();if(c)e+=' '+attribute+'='+c.inspect(true)});return e+'>'},recursivelyCollect:function(a,b){a=$(a);var c=[];while(a=a[b])if(a.nodeType==1)c.push(Element.extend(a));return c},ancestors:function(a){return $(a).recursivelyCollect('parentNode')},descendants:function(a){return $A($(a).getElementsByTagName('*'))},immediateDescendants:function(a){if(!(a=$(a).firstChild))return[];while(a&&a.nodeType!=1)a=a.nextSibling;if(a)return[a].concat($(a).nextSiblings());return[]},previousSiblings:function(a){return $(a).recursivelyCollect('previousSibling')},nextSiblings:function(a){return $(a).recursivelyCollect('nextSibling')},siblings:function(a){a=$(a);return a.previousSiblings().reverse().concat(a.nextSiblings())},match:function(a,b){if(typeof b=='string')b=new Selector(b);return b.match($(a))},up:function(a,b,c){return Selector.findElement($(a).ancestors(),b,c)},down:function(a,b,c){return Selector.findElement($(a).descendants(),b,c)},previous:function(a,b,c){return Selector.findElement($(a).previousSiblings(),b,c)},next:function(a,b,c){return Selector.findElement($(a).nextSiblings(),b,c)},getElementsBySelector:function(){var a=$A(arguments),element=$(a.shift());return Selector.findChildElements(element,a)},getElementsByClassName:function(a,b){return document.getElementsByClassName(b,a)},readAttribute:function(a,b){a=$(a);if(document.all&&!window.opera){var t=Element._attributeTranslations;if(t.values[b])return t.values[b](a,b);if(t.names[b])b=t.names[b];var c=a.attributes[b];if(c)return c.nodeValue}return a.getAttribute(b)},getHeight:function(a){return $(a).getDimensions().height},getWidth:function(a){return $(a).getDimensions().width},classNames:function(a){return new Element.ClassNames(a)},hasClassName:function(a,b){if(!(a=$(a)))return;var c=a.className;if(c.length==0)return false;if(c==b||c.match(new RegExp("(^|\\s)"+b+"(\\s|$)")))return true;return false},addClassName:function(a,b){if(!(a=$(a)))return;Element.classNames(a).add(b);return a},removeClassName:function(a,b){if(!(a=$(a)))return;Element.classNames(a).remove(b);return a},toggleClassName:function(a,b){if(!(a=$(a)))return;Element.classNames(a)[a.hasClassName(b)?'remove':'add'](b);return a},observe:function(){Event.observe.apply(Event,arguments);return $A(arguments).first()},stopObserving:function(){Event.stopObserving.apply(Event,arguments);return $A(arguments).first()},cleanWhitespace:function(a){a=$(a);var b=a.firstChild;while(b){var c=b.nextSibling;if(b.nodeType==3&&!/\S/.test(b.nodeValue))a.removeChild(b);b=c}return a},empty:function(a){return $(a).innerHTML.match(/^\s*$/)},descendantOf:function(a,b){a=$(a),b=$(b);while(a=a.parentNode)if(a==b)return true;return false},scrollTo:function(a){a=$(a);var b=Position.cumulativeOffset(a);window.scrollTo(b[0],b[1]);return a},getStyle:function(a,b){a=$(a);if(['float','cssFloat'].include(b))b=(typeof a.style.styleFloat!='undefined'?'styleFloat':'cssFloat');b=b.camelize();var c=a.style[b];if(!c){if(document.defaultView&&document.defaultView.getComputedStyle){var d=document.defaultView.getComputedStyle(a,null);c=d?d[b]:null}else if(a.currentStyle){c=a.currentStyle[b]}}if((c=='auto')&&['width','height'].include(b)&&(a.getStyle('display')!='none'))c=a['offset'+b.capitalize()]+'px';if(window.opera&&['left','top','right','bottom'].include(b))if(Element.getStyle(a,'position')=='static')c='auto';if(b=='opacity'){if(c)return parseFloat(c);if(c=(a.getStyle('filter')||'').match(/alpha\(opacity=(.*)\)/))if(c[1])return parseFloat(c[1])/100;return 1.0}return c=='auto'?null:c},setStyle:function(a,b){a=$(a);for(var c in b){var d=b[c];if(c=='opacity'){if(d==1){d=(/Gecko/.test(navigator.userAgent)&&!/Konqueror|Safari|KHTML/.test(navigator.userAgent))?0.999999:1.0;if(/MSIE/.test(navigator.userAgent)&&!window.opera)a.style.filter=a.getStyle('filter').replace(/alpha\([^\)]*\)/gi,'')}else if(d==''){if(/MSIE/.test(navigator.userAgent)&&!window.opera)a.style.filter=a.getStyle('filter').replace(/alpha\([^\)]*\)/gi,'')}else{if(d<0.00001)d=0;if(/MSIE/.test(navigator.userAgent)&&!window.opera)a.style.filter=a.getStyle('filter').replace(/alpha\([^\)]*\)/gi,'')+'alpha(opacity='+d*100+')'}}else if(['float','cssFloat'].include(c))c=(typeof a.style.styleFloat!='undefined')?'styleFloat':'cssFloat';a.style[c.camelize()]=d}return a},getDimensions:function(a){a=$(a);var b=$(a).getStyle('display');if(b!='none'&&b!=null)return{width:a.offsetWidth,height:a.offsetHeight};var c=a.style;var d=c.visibility;var e=c.position;var f=c.display;c.visibility='hidden';c.position='absolute';c.display='block';var g=a.clientWidth;var h=a.clientHeight;c.display=f;c.position=e;c.visibility=d;return{width:g,height:h}},makePositioned:function(a){a=$(a);var b=Element.getStyle(a,'position');if(b=='static'||!b){a._madePositioned=true;a.style.position='relative';if(window.opera){a.style.top=0;a.style.left=0}}return a},undoPositioned:function(a){a=$(a);if(a._madePositioned){a._madePositioned=undefined;a.style.position=a.style.top=a.style.left=a.style.bottom=a.style.right=''}return a},makeClipping:function(a){a=$(a);if(a._overflow)return a;a._overflow=a.style.overflow||'auto';if((Element.getStyle(a,'overflow')||'visible')!='hidden')a.style.overflow='hidden';return a},undoClipping:function(a){a=$(a);if(!a._overflow)return a;a.style.overflow=a._overflow=='auto'?'':a._overflow;a._overflow=null;return a}};Object.extend(Element.Methods,{childOf:Element.Methods.descendantOf});Element._attributeTranslations={};Element._attributeTranslations.names={colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",datetime:"dateTime",accesskey:"accessKey",tabindex:"tabIndex",enctype:"encType",maxlength:"maxLength",readonly:"readOnly",longdesc:"longDesc"};Element._attributeTranslations.values={_getAttr:function(a,b){return a.getAttribute(b,2)},_flag:function(a,b){return $(a).hasAttribute(b)?b:null},style:function(a){return a.style.cssText.toLowerCase()},title:function(a){var b=a.getAttributeNode('title');return b.specified?b.nodeValue:null}};Object.extend(Element._attributeTranslations.values,{href:Element._attributeTranslations.values._getAttr,src:Element._attributeTranslations.values._getAttr,disabled:Element._attributeTranslations.values._flag,checked:Element._attributeTranslations.values._flag,readonly:Element._attributeTranslations.values._flag,multiple:Element._attributeTranslations.values._flag});Element.Methods.Simulated={hasAttribute:function(a,b){var t=Element._attributeTranslations;b=t.names[b]||b;return $(a).getAttributeNode(b).specified}};if(document.all&&!window.opera){Element.Methods.update=function(b,c){b=$(b);c=typeof c=='undefined'?'':c.toString();var d=b.tagName.toUpperCase();if(['THEAD','TBODY','TR','TD'].include(d)){var e=document.createElement('div');switch(d){case'THEAD':case'TBODY':e.innerHTML='<table><tbody>'+c.stripScripts()+'</tbody></table>';depth=2;break;case'TR':e.innerHTML='<table><tbody><tr>'+c.stripScripts()+'</tr></tbody></table>';depth=3;break;case'TD':e.innerHTML='<table><tbody><tr><td>'+c.stripScripts()+'</td></tr></tbody></table>';depth=4}$A(b.childNodes).each(function(a){b.removeChild(a)});depth.times(function(){e=e.firstChild});$A(e.childNodes).each(function(a){b.appendChild(a)})}else{b.innerHTML=c.stripScripts()}setTimeout(function(){c.evalScripts()},10);return b}};Object.extend(Element,Element.Methods);var _nativeExtensions=false;if(/Konqueror|Safari|KHTML/.test(navigator.userAgent))['','Form','Input','TextArea','Select'].each(function(a){var b='HTML'+a+'Element';if(window[b])return;var c=window[b]={};c.prototype=document.createElement(a?a.toLowerCase():'div').__proto__});Element.addMethods=function(g){Object.extend(Element.Methods,g||{});function copy(a,b,c){c=c||false;var d=Element.extend.cache;for(var e in a){var f=a[e];if(!c||!(e in b))b[e]=d.findOrStore(f)}}if(typeof HTMLElement!='undefined'){copy(Element.Methods,HTMLElement.prototype);copy(Element.Methods.Simulated,HTMLElement.prototype,true);copy(Form.Methods,HTMLFormElement.prototype);[HTMLInputElement,HTMLTextAreaElement,HTMLSelectElement].each(function(a){copy(Form.Element.Methods,a.prototype)});_nativeExtensions=true}};var Toggle=new Object();Toggle.display=Element.toggle;Abstract.Insertion=function(a){this.adjacency=a};Abstract.Insertion.prototype={initialize:function(a,b){this.element=$(a);this.content=b.stripScripts();if(this.adjacency&&this.element.insertAdjacentHTML){try{this.element.insertAdjacentHTML(this.adjacency,this.content)}catch(e){var c=this.element.tagName.toUpperCase();if(['TBODY','TR'].include(c)){this.insertContent(this.contentFromAnonymousTable())}else{throw e;}}}else{this.range=this.element.ownerDocument.createRange();if(this.initializeRange)this.initializeRange();this.insertContent([this.range.createContextualFragment(this.content)])}setTimeout(function(){b.evalScripts()},10)},contentFromAnonymousTable:function(){var a=document.createElement('div');a.innerHTML='<table><tbody>'+this.content+'</tbody></table>';return $A(a.childNodes[0].childNodes[0].childNodes)}};var Insertion=new Object();Insertion.Before=Class.create();Insertion.Before.prototype=Object.extend(new Abstract.Insertion('beforeBegin'),{initializeRange:function(){this.range.setStartBefore(this.element)},insertContent:function(b){b.each((function(a){this.element.parentNode.insertBefore(a,this.element)}).bind(this))}});Insertion.Top=Class.create();Insertion.Top.prototype=Object.extend(new Abstract.Insertion('afterBegin'),{initializeRange:function(){this.range.selectNodeContents(this.element);this.range.collapse(true)},insertContent:function(b){b.reverse(false).each((function(a){this.element.insertBefore(a,this.element.firstChild)}).bind(this))}});Insertion.Bottom=Class.create();Insertion.Bottom.prototype=Object.extend(new Abstract.Insertion('beforeEnd'),{initializeRange:function(){this.range.selectNodeContents(this.element);this.range.collapse(this.element)},insertContent:function(b){b.each((function(a){this.element.appendChild(a)}).bind(this))}});Insertion.After=Class.create();Insertion.After.prototype=Object.extend(new Abstract.Insertion('afterEnd'),{initializeRange:function(){this.range.setStartAfter(this.element)},insertContent:function(b){b.each((function(a){this.element.parentNode.insertBefore(a,this.element.nextSibling)}).bind(this))}});Element.ClassNames=Class.create();Element.ClassNames.prototype={initialize:function(a){this.element=$(a)},_each:function(b){this.element.className.split(/\s+/).select(function(a){return a.length>0})._each(b)},set:function(a){this.element.className=a},add:function(a){if(this.include(a))return;this.set($A(this).concat(a).join(' '))},remove:function(a){if(!this.include(a))return;this.set($A(this).without(a).join(' '))},toString:function(){return $A(this).join(' ')}};Object.extend(Element.ClassNames.prototype,Enumerable);var Selector=Class.create();Selector.prototype={initialize:function(a){this.params={classNames:[]};this.expression=a.toString().strip();this.parseExpression();this.compileMatcher()},parseExpression:function(){function abort(a){throw'Parse error in selector: '+a;}if(this.expression=='')abort('empty expression');var b=this.params,expr=this.expression,match,modifier,clause,rest;while(match=expr.match(/^(.*)\[([a-z0-9_:-]+?)(?:([~\|!]?=)(?:"([^"]*)"|([^\]\s]*)))?\]$/i)){b.attributes=b.attributes||[];b.attributes.push({name:match[2],operator:match[3],value:match[4]||match[5]||''});expr=match[1]}if(expr=='*')return this.params.wildcard=true;while(match=expr.match(/^([^a-z0-9_-])?([a-z0-9_-]+)(.*)/i)){modifier=match[1],clause=match[2],rest=match[3];switch(modifier){case'#':b.id=clause;break;case'.':b.classNames.push(clause);break;case'':case undefined:b.tagName=clause.toUpperCase();break;default:abort(expr.inspect())}expr=rest}if(expr.length>0)abort(expr.inspect())},buildMatchExpression:function(){var e=this.params,conditions=[],clause;if(e.wildcard)conditions.push('true');if(clause=e.id)conditions.push('element.readAttribute("id") == '+clause.inspect());if(clause=e.tagName)conditions.push('element.tagName.toUpperCase() == '+clause.inspect());if((clause=e.classNames).length>0)for(var i=0,length=clause.length;i<length;i++)conditions.push('element.hasClassName('+clause[i].inspect()+')');if(clause=e.attributes){clause.each(function(b){var c='element.readAttribute('+b.name.inspect()+')';var d=function(a){return c+' && '+c+'.split('+a.inspect()+')'};switch(b.operator){case'=':conditions.push(c+' == '+b.value.inspect());break;case'~=':conditions.push(d(' ')+'.include('+b.value.inspect()+')');break;case'|=':conditions.push(d('-')+'.first().toUpperCase() == '+b.value.toUpperCase().inspect());break;case'!=':conditions.push(c+' != '+b.value.inspect());break;case'':case undefined:conditions.push('element.hasAttribute('+b.name.inspect()+')');break;default:throw'Unknown operator '+b.operator+' in selector';}})}return conditions.join(' && ')},compileMatcher:function(){this.match=new Function('element','if(!element.tagName){ return false;} return '+this.buildMatchExpression())},findElements:function(a){var b;if(b=$(this.params.id))if(this.match(b))if(!a||Element.childOf(b,a))return[b];a=(a||document).getElementsByTagName(this.params.tagName||'*');var c=[];for(var i=0,length=a.length;i<length;i++)if(this.match(b=a[i]))c.push(Element.extend(b));return c},toString:function(){return this.expression}};Object.extend(Selector,{matchElements:function(a,b){var c=new Selector(b);return a.select(c.match.bind(c)).map(Element.extend)},findElement:function(a,b,c){if(typeof b=='number')c=b,b=false;return Selector.matchElements(a,b||'*')[c||0]},findChildElements:function(g,h){return h.map(function(f){return f.match(/[^\s"]+(?:"[^"]*"[^\s"]+)*/g).inject([null],function(c,d){var e=new Selector(d);return c.inject([],function(a,b){return a.concat(e.findElements(b||g))})})}).flatten()}});function $$(){return Selector.findChildElements(document,$A(arguments))}var Form={reset:function(a){$(a).reset();return a},serializeElements:function(d,e){var f=d.inject({},function(a,b){if(!b.disabled&&b.name){var c=b.name,value=$(b).getValue();if(value!=undefined){if(a[c]){if(a[c].constructor!=Array)a[c]=[a[c]];a[c].push(value)}else a[c]=value}}return a});return e?f:Hash.toQueryString(f)}};Form.Methods={serialize:function(a,b){return Form.serializeElements(Form.getElements(a),b)},getElements:function(c){return $A($(c).getElementsByTagName('*')).inject([],function(a,b){if(Form.Element.Serializers[b.tagName.toLowerCase()])a.push(Element.extend(b));return a})},getInputs:function(a,b,c){a=$(a);var d=a.getElementsByTagName('input');if(!b&&!c)return $A(d).map(Element.extend);for(var i=0,matchingInputs=[],length=d.length;i<length;i++){var e=d[i];if((b&&e.type!=b)||(c&&e.name!=c))continue;matchingInputs.push(Element.extend(e))}return matchingInputs},disable:function(b){b=$(b);b.getElements().each(function(a){a.blur();a.disabled='true'});return b},enable:function(b){b=$(b);b.getElements().each(function(a){a.disabled=''});return b},findFirstElement:function(b){return $(b).getElements().find(function(a){return a.type!='hidden'&&!a.disabled&&['input','select','textarea'].include(a.tagName.toLowerCase())})},focusFirstElement:function(a){a=$(a);a.findFirstElement().activate();return a}};Object.extend(Form,Form.Methods);Form.Element={focus:function(a){$(a).focus();return a},select:function(a){$(a).select();return a}};Form.Element.Methods={serialize:function(a){a=$(a);if(!a.disabled&&a.name){var b=a.getValue();if(b!=undefined){var c={};c[a.name]=b;return Hash.toQueryString(c)}}return''},getValue:function(a){a=$(a);var b=a.tagName.toLowerCase();return Form.Element.Serializers[b](a)},clear:function(a){$(a).value='';return a},present:function(a){return $(a).value!=''},activate:function(a){a=$(a);a.focus();if(a.select&&(a.tagName.toLowerCase()!='input'||!['button','reset','submit'].include(a.type)))a.select();return a},disable:function(a){a=$(a);a.disabled=true;return a},enable:function(a){a=$(a);a.blur();a.disabled=false;return a}};Object.extend(Form.Element,Form.Element.Methods);var Field=Form.Element;var $F=Form.Element.getValue;Form.Element.Serializers={input:function(a){switch(a.type.toLowerCase()){case'checkbox':case'radio':return Form.Element.Serializers.inputSelector(a);default:return Form.Element.Serializers.textarea(a)}},inputSelector:function(a){return a.checked?a.value:null},textarea:function(a){return a.value},select:function(a){return this[a.type=='select-one'?'selectOne':'selectMany'](a)},selectOne:function(a){var b=a.selectedIndex;return b>=0?this.optionValue(a.options[b]):null},selectMany:function(a){var b,length=a.length;if(!length)return null;for(var i=0,b=[];i<length;i++){var c=a.options[i];if(c.selected)b.push(this.optionValue(c))}return b},optionValue:function(a){return Element.extend(a).hasAttribute('value')?a.value:a.text}};Abstract.TimedObserver=function(){};Abstract.TimedObserver.prototype={initialize:function(a,b,c){this.frequency=b;this.element=$(a);this.callback=c;this.lastValue=this.getValue();this.registerCallback()},registerCallback:function(){setInterval(this.onTimerEvent.bind(this),this.frequency*1000)},onTimerEvent:function(){var a=this.getValue();var b=('string'==typeof this.lastValue&&'string'==typeof a?this.lastValue!=a:String(this.lastValue)!=String(a));if(b){this.callback(this.element,a);this.lastValue=a}}};Form.Element.Observer=Class.create();Form.Element.Observer.prototype=Object.extend(new Abstract.TimedObserver(),{getValue:function(){return Form.Element.getValue(this.element)}});Form.Observer=Class.create();Form.Observer.prototype=Object.extend(new Abstract.TimedObserver(),{getValue:function(){return Form.serialize(this.element)}});Abstract.EventObserver=function(){};Abstract.EventObserver.prototype={initialize:function(a,b){this.element=$(a);this.callback=b;this.lastValue=this.getValue();if(this.element.tagName.toLowerCase()=='form')this.registerFormCallbacks();else this.registerCallback(this.element)},onElementEvent:function(){var a=this.getValue();if(this.lastValue!=a){this.callback(this.element,a);this.lastValue=a}},registerFormCallbacks:function(){Form.getElements(this.element).each(this.registerCallback.bind(this))},registerCallback:function(a){if(a.type){switch(a.type.toLowerCase()){case'checkbox':case'radio':Event.observe(a,'click',this.onElementEvent.bind(this));break;default:Event.observe(a,'change',this.onElementEvent.bind(this));break}}}};Form.Element.EventObserver=Class.create();Form.Element.EventObserver.prototype=Object.extend(new Abstract.EventObserver(),{getValue:function(){return Form.Element.getValue(this.element)}});Form.EventObserver=Class.create();Form.EventObserver.prototype=Object.extend(new Abstract.EventObserver(),{getValue:function(){return Form.serialize(this.element)}});if(!window.Event){var Event=new Object()}Object.extend(Event,{KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,KEY_HOME:36,KEY_END:35,KEY_PAGEUP:33,KEY_PAGEDOWN:34,element:function(a){return a.target||a.srcElement},isLeftClick:function(a){return(((a.which)&&(a.which==1))||((a.button)&&(a.button==1)))},pointerX:function(a){return a.pageX||(a.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft))},pointerY:function(a){return a.pageY||(a.clientY+(document.documentElement.scrollTop||document.body.scrollTop))},stop:function(a){if(a.preventDefault){a.preventDefault();a.stopPropagation()}else{a.returnValue=false;a.cancelBubble=true}},findElement:function(a,b){var c=Event.element(a);while(c.parentNode&&(!c.tagName||(c.tagName.toUpperCase()!=b.toUpperCase())))c=c.parentNode;return c},observers:false,_observeAndCache:function(a,b,c,d){if(!this.observers)this.observers=[];if(a.addEventListener){this.observers.push([a,b,c,d]);a.addEventListener(b,c,d)}else if(a.attachEvent){this.observers.push([a,b,c,d]);a.attachEvent('on'+b,c)}},unloadCache:function(){if(!Event.observers)return;for(var i=0,length=Event.observers.length;i<length;i++){Event.stopObserving.apply(this,Event.observers[i]);Event.observers[i][0]=null}Event.observers=false},observe:function(a,b,c,d){a=$(a);d=d||false;if(b=='keypress'&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||a.attachEvent))b='keydown';Event._observeAndCache(a,b,c,d)},stopObserving:function(a,b,c,d){a=$(a);d=d||false;if(b=='keypress'&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||a.detachEvent))b='keydown';if(a.removeEventListener){a.removeEventListener(b,c,d)}else if(a.detachEvent){try{a.detachEvent('on'+b,c)}catch(e){}}}});if(navigator.appVersion.match(/\bMSIE\b/))Event.observe(window,'unload',Event.unloadCache,false);var Position={includeScrollOffsets:false,prepare:function(){this.deltaX=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;this.deltaY=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},realOffset:function(a){var b=0,valueL=0;do{b+=a.scrollTop||0;valueL+=a.scrollLeft||0;a=a.parentNode}while(a);return[valueL,b]},cumulativeOffset:function(a){var b=0,valueL=0;do{b+=a.offsetTop||0;valueL+=a.offsetLeft||0;a=a.offsetParent}while(a);return[valueL,b]},positionedOffset:function(a){var b=0,valueL=0;do{b+=a.offsetTop||0;valueL+=a.offsetLeft||0;a=a.offsetParent;if(a){if(a.tagName=='BODY')break;var p=Element.getStyle(a,'position');if(p=='relative'||p=='absolute')break}}while(a);return[valueL,b]},offsetParent:function(a){if(a.offsetParent)return a.offsetParent;if(a==document.body)return a;while((a=a.parentNode)&&a!=document.body)if(Element.getStyle(a,'position')!='static')return a;return document.body},within:function(a,b,c){if(this.includeScrollOffsets)return this.withinIncludingScrolloffsets(a,b,c);this.xcomp=b;this.ycomp=c;this.offset=this.cumulativeOffset(a);return(c>=this.offset[1]&&c<this.offset[1]+a.offsetHeight&&b>=this.offset[0]&&b<this.offset[0]+a.offsetWidth)},withinIncludingScrolloffsets:function(a,b,c){var d=this.realOffset(a);this.xcomp=b+d[0]-this.deltaX;this.ycomp=c+d[1]-this.deltaY;this.offset=this.cumulativeOffset(a);return(this.ycomp>=this.offset[1]&&this.ycomp<this.offset[1]+a.offsetHeight&&this.xcomp>=this.offset[0]&&this.xcomp<this.offset[0]+a.offsetWidth)},overlap:function(a,b){if(!a)return 0;if(a=='vertical')return((this.offset[1]+b.offsetHeight)-this.ycomp)/b.offsetHeight;if(a=='horizontal')return((this.offset[0]+b.offsetWidth)-this.xcomp)/b.offsetWidth},page:function(a){var b=0,valueL=0;var c=a;do{b+=c.offsetTop||0;valueL+=c.offsetLeft||0;if(c.offsetParent==document.body)if(Element.getStyle(c,'position')=='absolute')break}while(c=c.offsetParent);c=a;do{if(!window.opera||c.tagName=='BODY'){b-=c.scrollTop||0;valueL-=c.scrollLeft||0}}while(c=c.parentNode);return[valueL,b]},clone:function(a,b){var c=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},arguments[2]||{});a=$(a);var p=Position.page(a);b=$(b);var d=[0,0];var e=null;if(Element.getStyle(b,'position')=='absolute'){e=Position.offsetParent(b);d=Position.page(e)}if(e==document.body){d[0]-=document.body.offsetLeft;d[1]-=document.body.offsetTop}if(c.setLeft)b.style.left=(p[0]-d[0]+c.offsetLeft)+'px';if(c.setTop)b.style.top=(p[1]-d[1]+c.offsetTop)+'px';if(c.setWidth)b.style.width=a.offsetWidth+'px';if(c.setHeight)b.style.height=a.offsetHeight+'px'},absolutize:function(a){a=$(a);if(a.style.position=='absolute')return;Position.prepare();var b=Position.positionedOffset(a);var c=b[1];var d=b[0];var e=a.clientWidth;var f=a.clientHeight;a._originalLeft=d-parseFloat(a.style.left||0);a._originalTop=c-parseFloat(a.style.top||0);a._originalWidth=a.style.width;a._originalHeight=a.style.height;a.style.position='absolute';a.style.top=c+'px';a.style.left=d+'px';a.style.width=e+'px';a.style.height=f+'px'},relativize:function(a){a=$(a);if(a.style.position=='relative')return;Position.prepare();a.style.position='relative';var b=parseFloat(a.style.top||0)-(a._originalTop||0);var c=parseFloat(a.style.left||0)-(a._originalLeft||0);a.style.top=b+'px';a.style.left=c+'px';a.style.height=a._originalHeight;a.style.width=a._originalWidth}};if(/Konqueror|Safari|KHTML/.test(navigator.userAgent)){Position.cumulativeOffset=function(a){var b=0,valueL=0;do{b+=a.offsetTop||0;valueL+=a.offsetLeft||0;if(a.offsetParent==document.body)if(Element.getStyle(a,'position')=='absolute')break;a=a.offsetParent}while(a);return[valueL,b]}}Element.addMethods();
|
2 |
+
String.prototype.parseColor=function(){var a='#';if(this.slice(0,4)=='rgb('){var b=this.slice(4,this.length-1).split(',');var i=0;do{a+=parseInt(b[i]).toColorPart()}while(++i<3)}else{if(this.slice(0,1)=='#'){if(this.length==4)for(var i=1;i<4;i++)a+=(this.charAt(i)+this.charAt(i)).toLowerCase();if(this.length==7)a=this.toLowerCase()}};return(a.length==7?a:(arguments[0]||this))};Element.collectTextNodes=function(b){return $A($(b).childNodes).collect(function(a){return(a.nodeType==3?a.nodeValue:(a.hasChildNodes()?Element.collectTextNodes(a):''))}).flatten().join('')};Element.collectTextNodesIgnoreClass=function(b,c){return $A($(b).childNodes).collect(function(a){return(a.nodeType==3?a.nodeValue:((a.hasChildNodes()&&!Element.hasClassName(a,c))?Element.collectTextNodesIgnoreClass(a,c):''))}).flatten().join('')};Element.setContentZoom=function(a,b){a=$(a);a.setStyle({fontSize:(b/100)+'em'});if(navigator.appVersion.indexOf('AppleWebKit')>0)window.scrollBy(0,0);return a};Element.getOpacity=function(a){return $(a).getStyle('opacity')};Element.setOpacity=function(a,b){return $(a).setStyle({opacity:b})};Element.getInlineOpacity=function(a){return $(a).style.opacity||''};Element.forceRerendering=function(a){try{a=$(a);var n=document.createTextNode(' ');a.appendChild(n);a.removeChild(n)}catch(e){}};Array.prototype.call=function(){var a=arguments;this.each(function(f){f.apply(this,a)})};var Effect={_elementDoesNotExistError:{name:'ElementDoesNotExistError',message:'The specified DOM element does not exist, but is required for this effect to operate'},tagifyText:function(c){if(typeof Builder=='undefined')throw("Effect.tagifyText requires including script.aculo.us' builder.js library");var d='position:relative';if(/MSIE/.test(navigator.userAgent)&&!window.opera)d+=';zoom:1';c=$(c);$A(c.childNodes).each(function(b){if(b.nodeType==3){b.nodeValue.toArray().each(function(a){c.insertBefore(Builder.node('span',{style:d},a==' '?String.fromCharCode(160):a),b)});Element.remove(b)}})},multiple:function(c,d){var e;if(((typeof c=='object')||(typeof c=='function'))&&(c.length))e=c;else e=$(c).childNodes;var f=Object.extend({speed:0.1,delay:0.0},arguments[2]||{});var g=f.delay;$A(e).each(function(a,b){new d(a,Object.extend(f,{delay:b*f.speed+g}))})},PAIRS:{'slide':['SlideDown','SlideUp'],'blind':['BlindDown','BlindUp'],'appear':['Appear','Fade']},toggle:function(a,b){a=$(a);b=(b||'appear').toLowerCase();var c=Object.extend({queue:{position:'end',scope:(a.id||'global'),limit:1}},arguments[2]||{});Effect[a.visible()?Effect.PAIRS[b][1]:Effect.PAIRS[b][0]](a,c)}};var Effect2=Effect;Effect.Transitions={linear:Prototype.K,sinoidal:function(a){return(-Math.cos(a*Math.PI)/2)+0.5},reverse:function(a){return 1-a},flicker:function(a){return((-Math.cos(a*Math.PI)/4)+0.75)+Math.random()/4},wobble:function(a){return(-Math.cos(a*Math.PI*(9*a))/2)+0.5},pulse:function(a,b){b=b||5;return(Math.round((a%(1/b))*b)==0?((a*b*2)-Math.floor(a*b*2)):1-((a*b*2)-Math.floor(a*b*2)))},none:function(a){return 0},full:function(a){return 1}};Effect.ScopedQueue=Class.create();Object.extend(Object.extend(Effect.ScopedQueue.prototype,Enumerable),{initialize:function(){this.effects=[];this.interval=null},_each:function(a){this.effects._each(a)},add:function(a){var b=new Date().getTime();var c=(typeof a.options.queue=='string')?a.options.queue:a.options.queue.position;switch(c){case'front':this.effects.findAll(function(e){return e.state=='idle'}).each(function(e){e.startOn+=a.finishOn;e.finishOn+=a.finishOn});break;case'with-last':b=this.effects.pluck('startOn').max()||b;break;case'end':b=this.effects.pluck('finishOn').max()||b;break}a.startOn+=b;a.finishOn+=b;if(!a.options.queue.limit||(this.effects.length<a.options.queue.limit))this.effects.push(a);if(!this.interval)this.interval=setInterval(this.loop.bind(this),15)},remove:function(a){this.effects=this.effects.reject(function(e){return e==a});if(this.effects.length==0){clearInterval(this.interval);this.interval=null}},loop:function(){var a=new Date().getTime();for(var i=0,len=this.effects.length;i<len;i++)if(this.effects[i])this.effects[i].loop(a)}});Effect.Queues={instances:$H(),get:function(a){if(typeof a!='string')return a;if(!this.instances[a])this.instances[a]=new Effect.ScopedQueue();return this.instances[a]}};Effect.Queue=Effect.Queues.get('global');Effect.DefaultOptions={transition:Effect.Transitions.sinoidal,duration:1.0,fps:60.0,sync:false,from:0.0,to:1.0,delay:0.0,queue:'parallel'};Effect.Base=function(){};Effect.Base.prototype={position:null,start:function(a){this.options=Object.extend(Object.extend({},Effect.DefaultOptions),a||{});this.currentFrame=0;this.state='idle';this.startOn=this.options.delay*1000;this.finishOn=this.startOn+(this.options.duration*1000);this.event('beforeStart');if(!this.options.sync)Effect.Queues.get(typeof this.options.queue=='string'?'global':this.options.queue.scope).add(this)},loop:function(a){if(a>=this.startOn){if(a>=this.finishOn){this.render(1.0);this.cancel();this.event('beforeFinish');if(this.finish)this.finish();this.event('afterFinish');return}var b=(a-this.startOn)/(this.finishOn-this.startOn);var c=Math.round(b*this.options.fps*this.options.duration);if(c>this.currentFrame){this.render(b);this.currentFrame=c}}},render:function(a){if(this.state=='idle'){this.state='running';this.event('beforeSetup');if(this.setup)this.setup();this.event('afterSetup')}if(this.state=='running'){if(this.options.transition)a=this.options.transition(a);a*=(this.options.to-this.options.from);a+=this.options.from;this.position=a;this.event('beforeUpdate');if(this.update)this.update(a);this.event('afterUpdate')}},cancel:function(){if(!this.options.sync)Effect.Queues.get(typeof this.options.queue=='string'?'global':this.options.queue.scope).remove(this);this.state='finished'},event:function(a){if(this.options[a+'Internal'])this.options[a+'Internal'](this);if(this.options[a])this.options[a](this)},inspect:function(){var a=$H();for(property in this)if(typeof this[property]!='function')a[property]=this[property];return'#<Effect:'+a.inspect()+',options:'+$H(this.options).inspect()+'>'}};Effect.Parallel=Class.create();Object.extend(Object.extend(Effect.Parallel.prototype,Effect.Base.prototype),{initialize:function(a){this.effects=a||[];this.start(arguments[1])},update:function(a){this.effects.invoke('render',a)},finish:function(b){this.effects.each(function(a){a.render(1.0);a.cancel();a.event('beforeFinish');if(a.finish)a.finish(b);a.event('afterFinish')})}});Effect.Event=Class.create();Object.extend(Object.extend(Effect.Event.prototype,Effect.Base.prototype),{initialize:function(){var a=Object.extend({duration:0},arguments[0]||{});this.start(a)},update:Prototype.emptyFunction});Effect.Opacity=Class.create();Object.extend(Object.extend(Effect.Opacity.prototype,Effect.Base.prototype),{initialize:function(a){this.element=$(a);if(!this.element)throw(Effect._elementDoesNotExistError);if(/MSIE/.test(navigator.userAgent)&&!window.opera&&(!this.element.currentStyle.hasLayout))this.element.setStyle({zoom:1});var b=Object.extend({from:this.element.getOpacity()||0.0,to:1.0},arguments[1]||{});this.start(b)},update:function(a){this.element.setOpacity(a)}});Effect.Move=Class.create();Object.extend(Object.extend(Effect.Move.prototype,Effect.Base.prototype),{initialize:function(a){this.element=$(a);if(!this.element)throw(Effect._elementDoesNotExistError);var b=Object.extend({x:0,y:0,mode:'relative'},arguments[1]||{});this.start(b)},setup:function(){this.element.makePositioned();this.originalLeft=parseFloat(this.element.getStyle('left')||'0');this.originalTop=parseFloat(this.element.getStyle('top')||'0');if(this.options.mode=='absolute'){this.options.x=this.options.x-this.originalLeft;this.options.y=this.options.y-this.originalTop}},update:function(a){this.element.setStyle({left:Math.round(this.options.x*a+this.originalLeft)+'px',top:Math.round(this.options.y*a+this.originalTop)+'px'})}});Effect.MoveBy=function(a,b,c){return new Effect.Move(a,Object.extend({x:c,y:b},arguments[3]||{}))};Effect.Scale=Class.create();Object.extend(Object.extend(Effect.Scale.prototype,Effect.Base.prototype),{initialize:function(a,b){this.element=$(a);if(!this.element)throw(Effect._elementDoesNotExistError);var c=Object.extend({scaleX:true,scaleY:true,scaleContent:true,scaleFromCenter:false,scaleMode:'box',scaleFrom:100.0,scaleTo:b},arguments[2]||{});this.start(c)},setup:function(){this.restoreAfterFinish=this.options.restoreAfterFinish||false;this.elementPositioning=this.element.getStyle('position');this.originalStyle={};['top','left','width','height','fontSize'].each(function(k){this.originalStyle[k]=this.element.style[k]}.bind(this));this.originalTop=this.element.offsetTop;this.originalLeft=this.element.offsetLeft;var b=this.element.getStyle('font-size')||'100%';['em','px','%','pt'].each(function(a){if(b.indexOf(a)>0){this.fontSize=parseFloat(b);this.fontSizeType=a}}.bind(this));this.factor=(this.options.scaleTo-this.options.scaleFrom)/100;this.dims=null;if(this.options.scaleMode=='box')this.dims=[this.element.offsetHeight,this.element.offsetWidth];if(/^content/.test(this.options.scaleMode))this.dims=[this.element.scrollHeight,this.element.scrollWidth];if(!this.dims)this.dims=[this.options.scaleMode.originalHeight,this.options.scaleMode.originalWidth]},update:function(a){var b=(this.options.scaleFrom/100.0)+(this.factor*a);if(this.options.scaleContent&&this.fontSize)this.element.setStyle({fontSize:this.fontSize*b+this.fontSizeType});this.setDimensions(this.dims[0]*b,this.dims[1]*b)},finish:function(a){if(this.restoreAfterFinish)this.element.setStyle(this.originalStyle)},setDimensions:function(a,b){var d={};if(this.options.scaleX)d.width=Math.round(b)+'px';if(this.options.scaleY)d.height=Math.round(a)+'px';if(this.options.scaleFromCenter){var c=(a-this.dims[0])/2;var e=(b-this.dims[1])/2;if(this.elementPositioning=='absolute'){if(this.options.scaleY)d.top=this.originalTop-c+'px';if(this.options.scaleX)d.left=this.originalLeft-e+'px'}else{if(this.options.scaleY)d.top=-c+'px';if(this.options.scaleX)d.left=-e+'px'}}this.element.setStyle(d)}});Effect.Highlight=Class.create();Object.extend(Object.extend(Effect.Highlight.prototype,Effect.Base.prototype),{initialize:function(a){this.element=$(a);if(!this.element)throw(Effect._elementDoesNotExistError);var b=Object.extend({startcolor:'#ffff99'},arguments[1]||{});this.start(b)},setup:function(){if(this.element.getStyle('display')=='none'){this.cancel();return}this.oldStyle={};if(!this.options.keepBackgroundImage){this.oldStyle.backgroundImage=this.element.getStyle('background-image');this.element.setStyle({backgroundImage:'none'})}if(!this.options.endcolor)this.options.endcolor=this.element.getStyle('background-color').parseColor('#ffffff');if(!this.options.restorecolor)this.options.restorecolor=this.element.getStyle('background-color');this._base=$R(0,2).map(function(i){return parseInt(this.options.startcolor.slice(i*2+1,i*2+3),16)}.bind(this));this._delta=$R(0,2).map(function(i){return parseInt(this.options.endcolor.slice(i*2+1,i*2+3),16)-this._base[i]}.bind(this))},update:function(a){this.element.setStyle({backgroundColor:$R(0,2).inject('#',function(m,v,i){return m+(Math.round(this._base[i]+(this._delta[i]*a)).toColorPart())}.bind(this))})},finish:function(){this.element.setStyle(Object.extend(this.oldStyle,{backgroundColor:this.options.restorecolor}))}});Effect.ScrollTo=Class.create();Object.extend(Object.extend(Effect.ScrollTo.prototype,Effect.Base.prototype),{initialize:function(a){this.element=$(a);this.start(arguments[1]||{})},setup:function(){Position.prepare();var a=Position.cumulativeOffset(this.element);if(this.options.offset)a[1]+=this.options.offset;var b=window.innerHeight?window.height-window.innerHeight:document.body.scrollHeight-(document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight);this.scrollStart=Position.deltaY;this.delta=(a[1]>b?b:a[1])-this.scrollStart},update:function(a){Position.prepare();window.scrollTo(Position.deltaX,this.scrollStart+(a*this.delta))}});Effect.Fade=function(b){b=$(b);var c=b.getInlineOpacity();var d=Object.extend({from:b.getOpacity()||1.0,to:0.0,afterFinishInternal:function(a){if(a.options.to!=0)return;a.element.hide().setStyle({opacity:c})}},arguments[1]||{});return new Effect.Opacity(b,d)};Effect.Appear=function(b){b=$(b);var c=Object.extend({from:(b.getStyle('display')=='none'?0.0:b.getOpacity()||0.0),to:1.0,afterFinishInternal:function(a){a.element.forceRerendering()},beforeSetup:function(a){a.element.setOpacity(a.options.from).show()}},arguments[1]||{});return new Effect.Opacity(b,c)};Effect.Puff=function(b){b=$(b);var c={opacity:b.getInlineOpacity(),position:b.getStyle('position'),top:b.style.top,left:b.style.left,width:b.style.width,height:b.style.height};return new Effect.Parallel([new Effect.Scale(b,200,{sync:true,scaleFromCenter:true,scaleContent:true,restoreAfterFinish:true}),new Effect.Opacity(b,{sync:true,to:0.0})],Object.extend({duration:1.0,beforeSetupInternal:function(a){Position.absolutize(a.effects[0].element)},afterFinishInternal:function(a){a.effects[0].element.hide().setStyle(c)}},arguments[1]||{}))};Effect.BlindUp=function(b){b=$(b);b.makeClipping();return new Effect.Scale(b,0,Object.extend({scaleContent:false,scaleX:false,restoreAfterFinish:true,afterFinishInternal:function(a){a.element.hide().undoClipping()}},arguments[1]||{}))};Effect.BlindDown=function(b){b=$(b);var c=b.getDimensions();return new Effect.Scale(b,100,Object.extend({scaleContent:false,scaleX:false,scaleFrom:0,scaleMode:{originalHeight:c.height,originalWidth:c.width},restoreAfterFinish:true,afterSetup:function(a){a.element.makeClipping().setStyle({height:'0px'}).show()},afterFinishInternal:function(a){a.element.undoClipping()}},arguments[1]||{}))};Effect.SwitchOff=function(c){c=$(c);var d=c.getInlineOpacity();return new Effect.Appear(c,Object.extend({duration:0.4,from:0,transition:Effect.Transitions.flicker,afterFinishInternal:function(b){new Effect.Scale(b.element,1,{duration:0.3,scaleFromCenter:true,scaleX:false,scaleContent:false,restoreAfterFinish:true,beforeSetup:function(a){a.element.makePositioned().makeClipping()},afterFinishInternal:function(a){a.element.hide().undoClipping().undoPositioned().setStyle({opacity:d})}})}},arguments[1]||{}))};Effect.DropOut=function(b){b=$(b);var c={top:b.getStyle('top'),left:b.getStyle('left'),opacity:b.getInlineOpacity()};return new Effect.Parallel([new Effect.Move(b,{x:0,y:100,sync:true}),new Effect.Opacity(b,{sync:true,to:0.0})],Object.extend({duration:0.5,beforeSetup:function(a){a.effects[0].element.makePositioned()},afterFinishInternal:function(a){a.effects[0].element.hide().undoPositioned().setStyle(c)}},arguments[1]||{}))};Effect.Shake=function(g){g=$(g);var h={top:g.getStyle('top'),left:g.getStyle('left')};return new Effect.Move(g,{x:20,y:0,duration:0.05,afterFinishInternal:function(f){new Effect.Move(f.element,{x:-40,y:0,duration:0.1,afterFinishInternal:function(e){new Effect.Move(e.element,{x:40,y:0,duration:0.1,afterFinishInternal:function(d){new Effect.Move(d.element,{x:-40,y:0,duration:0.1,afterFinishInternal:function(c){new Effect.Move(c.element,{x:40,y:0,duration:0.1,afterFinishInternal:function(b){new Effect.Move(b.element,{x:-20,y:0,duration:0.05,afterFinishInternal:function(a){a.element.undoPositioned().setStyle(h)}})}})}})}})}})}})};Effect.SlideDown=function(b){b=$(b).cleanWhitespace();var c=b.down().getStyle('bottom');var d=b.getDimensions();return new Effect.Scale(b,100,Object.extend({scaleContent:false,scaleX:false,scaleFrom:window.opera?0:1,scaleMode:{originalHeight:d.height,originalWidth:d.width},restoreAfterFinish:true,afterSetup:function(a){a.element.makePositioned();a.element.down().makePositioned();if(window.opera)a.element.setStyle({top:''});a.element.makeClipping().setStyle({height:'0px'}).show()},afterUpdateInternal:function(a){a.element.down().setStyle({bottom:(a.dims[0]-a.element.clientHeight)+'px'})},afterFinishInternal:function(a){a.element.undoClipping().undoPositioned();a.element.down().undoPositioned().setStyle({bottom:c})}},arguments[1]||{}))};Effect.SlideUp=function(b){b=$(b).cleanWhitespace();var c=b.down().getStyle('bottom');return new Effect.Scale(b,window.opera?0:1,Object.extend({scaleContent:false,scaleX:false,scaleMode:'box',scaleFrom:100,restoreAfterFinish:true,beforeStartInternal:function(a){a.element.makePositioned();a.element.down().makePositioned();if(window.opera)a.element.setStyle({top:''});a.element.makeClipping().show()},afterUpdateInternal:function(a){a.element.down().setStyle({bottom:(a.dims[0]-a.element.clientHeight)+'px'})},afterFinishInternal:function(a){a.element.hide().undoClipping().undoPositioned().setStyle({bottom:c});a.element.down().undoPositioned()}},arguments[1]||{}))};Effect.Squish=function(b){return new Effect.Scale(b,window.opera?1:0,{restoreAfterFinish:true,beforeSetup:function(a){a.element.makeClipping()},afterFinishInternal:function(a){a.element.hide().undoClipping()}})};Effect.Grow=function(c){c=$(c);var d=Object.extend({direction:'center',moveTransition:Effect.Transitions.sinoidal,scaleTransition:Effect.Transitions.sinoidal,opacityTransition:Effect.Transitions.full},arguments[1]||{});var e={top:c.style.top,left:c.style.left,height:c.style.height,width:c.style.width,opacity:c.getInlineOpacity()};var f=c.getDimensions();var g,initialMoveY;var h,moveY;switch(d.direction){case'top-left':g=initialMoveY=h=moveY=0;break;case'top-right':g=f.width;initialMoveY=moveY=0;h=-f.width;break;case'bottom-left':g=h=0;initialMoveY=f.height;moveY=-f.height;break;case'bottom-right':g=f.width;initialMoveY=f.height;h=-f.width;moveY=-f.height;break;case'center':g=f.width/2;initialMoveY=f.height/2;h=-f.width/2;moveY=-f.height/2;break};return new Effect.Move(c,{x:g,y:initialMoveY,duration:0.01,beforeSetup:function(a){a.element.hide().makeClipping().makePositioned()},afterFinishInternal:function(b){new Effect.Parallel([new Effect.Opacity(b.element,{sync:true,to:1.0,from:0.0,transition:d.opacityTransition}),new Effect.Move(b.element,{x:h,y:moveY,sync:true,transition:d.moveTransition}),new Effect.Scale(b.element,100,{scaleMode:{originalHeight:f.height,originalWidth:f.width},sync:true,scaleFrom:window.opera?1:0,transition:d.scaleTransition,restoreAfterFinish:true})],Object.extend({beforeSetup:function(a){a.effects[0].element.setStyle({height:'0px'}).show()},afterFinishInternal:function(a){a.effects[0].element.undoClipping().undoPositioned().setStyle(e)}},d))}})};Effect.Shrink=function(b){b=$(b);var c=Object.extend({direction:'center',moveTransition:Effect.Transitions.sinoidal,scaleTransition:Effect.Transitions.sinoidal,opacityTransition:Effect.Transitions.none},arguments[1]||{});var d={top:b.style.top,left:b.style.left,height:b.style.height,width:b.style.width,opacity:b.getInlineOpacity()};var e=b.getDimensions();var f,moveY;switch(c.direction){case'top-left':f=moveY=0;break;case'top-right':f=e.width;moveY=0;break;case'bottom-left':f=0;moveY=e.height;break;case'bottom-right':f=e.width;moveY=e.height;break;case'center':f=e.width/2;moveY=e.height/2;break};return new Effect.Parallel([new Effect.Opacity(b,{sync:true,to:0.0,from:1.0,transition:c.opacityTransition}),new Effect.Scale(b,window.opera?1:0,{sync:true,transition:c.scaleTransition,restoreAfterFinish:true}),new Effect.Move(b,{x:f,y:moveY,sync:true,transition:c.moveTransition})],Object.extend({beforeStartInternal:function(a){a.effects[0].element.makePositioned().makeClipping()},afterFinishInternal:function(a){a.effects[0].element.hide().undoClipping().undoPositioned().setStyle(d)}},c))};Effect.Pulsate=function(b){b=$(b);var c=arguments[1]||{};var d=b.getInlineOpacity();var e=c.transition||Effect.Transitions.sinoidal;var f=function(a){return e(1-Effect.Transitions.pulse(a,c.pulses))};f.bind(e);return new Effect.Opacity(b,Object.extend(Object.extend({duration:2.0,from:0,afterFinishInternal:function(a){a.element.setStyle({opacity:d})}},c),{transition:f}))};Effect.Fold=function(c){c=$(c);var d={top:c.style.top,left:c.style.left,width:c.style.width,height:c.style.height};c.makeClipping();return new Effect.Scale(c,5,Object.extend({scaleContent:false,scaleX:false,afterFinishInternal:function(b){new Effect.Scale(c,1,{scaleContent:false,scaleY:false,afterFinishInternal:function(a){a.element.hide().undoClipping().setStyle(d)}})}},arguments[1]||{}))};Effect.Morph=Class.create();Object.extend(Object.extend(Effect.Morph.prototype,Effect.Base.prototype),{initialize:function(c){this.element=$(c);if(!this.element)throw(Effect._elementDoesNotExistError);var d=Object.extend({style:{}},arguments[1]||{});if(typeof d.style=='string'){if(d.style.indexOf(':')==-1){var e='',selector='.'+d.style;$A(document.styleSheets).reverse().each(function(b){if(b.cssRules)cssRules=b.cssRules;else if(b.rules)cssRules=b.rules;$A(cssRules).reverse().each(function(a){if(selector==a.selectorText){e=a.style.cssText;throw $break;}});if(e)throw $break;});this.style=e.parseStyle();d.afterFinishInternal=function(b){b.element.addClassName(b.options.style);b.transforms.each(function(a){if(a.style!='opacity')b.element.style[a.style.camelize()]=''})}}else this.style=d.style.parseStyle()}else this.style=$H(d.style);this.start(d)},setup:function(){function parseColor(a){if(!a||['rgba(0, 0, 0, 0)','transparent'].include(a))a='#ffffff';a=a.parseColor();return $R(0,2).map(function(i){return parseInt(a.slice(i*2+1,i*2+3),16)})};this.transforms=this.style.map(function(a){var b=a[0].underscore().dasherize(),value=a[1],unit=null;if(value.parseColor('#zzzzzz')!='#zzzzzz'){value=value.parseColor();unit='color'}else if(b=='opacity'){value=parseFloat(value);if(/MSIE/.test(navigator.userAgent)&&!window.opera&&(!this.element.currentStyle.hasLayout))this.element.setStyle({zoom:1})}else if(Element.CSS_LENGTH.test(value))var c=value.match(/^([\+\-]?[0-9\.]+)(.*)$/),value=parseFloat(c[1]),unit=(c.length==3)?c[2]:null;var d=this.element.getStyle(b);return $H({style:b,originalValue:unit=='color'?parseColor(d):parseFloat(d||0),targetValue:unit=='color'?parseColor(value):value,unit:unit})}.bind(this)).reject(function(a){return((a.originalValue==a.targetValue)||(a.unit!='color'&&(isNaN(a.originalValue)||isNaN(a.targetValue))))})},update:function(b){var c=$H(),value=null;this.transforms.each(function(a){value=a.unit=='color'?$R(0,2).inject('#',function(m,v,i){return m+(Math.round(a.originalValue[i]+(a.targetValue[i]-a.originalValue[i])*b)).toColorPart()}):a.originalValue+Math.round(((a.targetValue-a.originalValue)*b)*1000)/1000+a.unit;c[a.style]=value});this.element.setStyle(c)}});Effect.Transform=Class.create();Object.extend(Effect.Transform.prototype,{initialize:function(a){this.tracks=[];this.options=arguments[1]||{};this.addTracks(a)},addTracks:function(c){c.each(function(a){var b=$H(a).values().first();this.tracks.push($H({ids:$H(a).keys().first(),effect:Effect.Morph,options:{style:b}}))}.bind(this));return this},play:function(){return new Effect.Parallel(this.tracks.map(function(a){var b=[$(a.ids)||$$(a.ids)].flatten();return b.map(function(e){return new a.effect(e,Object.extend({sync:true},a.options))})}).flatten(),this.options)}});Element.CSS_PROPERTIES=$w('backgroundColor backgroundPosition borderBottomColor borderBottomStyle '+'borderBottomWidth borderLeftColor borderLeftStyle borderLeftWidth '+'borderRightColor borderRightStyle borderRightWidth borderSpacing '+'borderTopColor borderTopStyle borderTopWidth bottom clip color '+'fontSize fontWeight height left letterSpacing lineHeight '+'marginBottom marginLeft marginRight marginTop markerOffset maxHeight '+'maxWidth minHeight minWidth opacity outlineColor outlineOffset '+'outlineWidth paddingBottom paddingLeft paddingRight paddingTop '+'right textIndent top width wordSpacing zIndex');Element.CSS_LENGTH=/^(([\+\-]?[0-9\.]+)(em|ex|px|in|cm|mm|pt|pc|\%))|0$/;String.prototype.parseStyle=function(){var b=Element.extend(document.createElement('div'));b.innerHTML='<div style="'+this+'"></div>';var c=b.down().style,styleRules=$H();Element.CSS_PROPERTIES.each(function(a){if(c[a])styleRules[a]=c[a]});if(/MSIE/.test(navigator.userAgent)&&!window.opera&&this.indexOf('opacity')>-1){styleRules.opacity=this.match(/opacity:\s*((?:0|1)?(?:\.\d*)?)/)[1]};return styleRules};Element.morph=function(a,b){new Effect.Morph(a,Object.extend({style:b},arguments[2]||{}));return a};['setOpacity','getOpacity','getInlineOpacity','forceRerendering','setContentZoom','collectTextNodes','collectTextNodesIgnoreClass','morph'].each(function(f){Element.Methods[f]=Element[f]});Element.Methods.visualEffect=function(a,b,c){s=b.gsub(/_/,'-').camelize();effect_class=s.charAt(0).toUpperCase()+s.substring(1);new Effect[effect_class](a,c);return $(a)};Element.addMethods();
|
3 |
+
var Builder={NODEMAP:{AREA:'map',CAPTION:'table',COL:'table',COLGROUP:'table',LEGEND:'fieldset',OPTGROUP:'select',OPTION:'select',PARAM:'object',TBODY:'table',TD:'table',TFOOT:'table',TH:'table',THEAD:'table',TR:'table'},node:function(a){a=a.toUpperCase();var b=this.NODEMAP[a]||'div';var c=document.createElement(b);try{c.innerHTML="<"+a+"></"+a+">"}catch(e){}var d=c.firstChild||null;if(d&&(d.tagName.toUpperCase()!=a))d=d.getElementsByTagName(a)[0];if(!d)d=document.createElement(a);if(!d)return;if(arguments[1])if(this._isStringOrNumber(arguments[1])||(arguments[1]instanceof Array)){this._children(d,arguments[1])}else{var f=this._attributes(arguments[1]);if(f.length){try{c.innerHTML="<"+a+" "+f+"></"+a+">"}catch(e){}d=c.firstChild||null;if(!d){d=document.createElement(a);for(attr in arguments[1])d[attr=='class'?'className':attr]=arguments[1][attr]}if(d.tagName.toUpperCase()!=a)d=c.getElementsByTagName(a)[0]}};if(arguments[2])this._children(d,arguments[2]);return d},_text:function(a){return document.createTextNode(a)},ATTR_MAP:{'className':'class','htmlFor':'for'},_attributes:function(a){var b=[];for(attribute in a)b.push((attribute in this.ATTR_MAP?this.ATTR_MAP[attribute]:attribute)+'="'+a[attribute].toString().escapeHTML()+'"');return b.join(" ")},_children:function(a,b){if(typeof b=='object'){b.flatten().each(function(e){if(typeof e=='object')a.appendChild(e);else if(Builder._isStringOrNumber(e))a.appendChild(Builder._text(e))})}else if(Builder._isStringOrNumber(b))a.appendChild(Builder._text(b))},_isStringOrNumber:function(a){return(typeof a=='string'||typeof a=='number')},build:function(a){var b=this.node('div');$(b).update(a.strip());return b.down()},dump:function(b){if(typeof b!='object'&&typeof b!='function')b=window;var c=("A ABBR ACRONYM ADDRESS APPLET AREA B BASE BASEFONT BDO BIG BLOCKQUOTE BODY "+"BR BUTTON CAPTION CENTER CITE CODE COL COLGROUP DD DEL DFN DIR DIV DL DT EM FIELDSET "+"FONT FORM FRAME FRAMESET H1 H2 H3 H4 H5 H6 HEAD HR HTML I IFRAME IMG INPUT INS ISINDEX "+"KBD LABEL LEGEND LI LINK MAP MENU META NOFRAMES NOSCRIPT OBJECT OL OPTGROUP OPTION P "+"PARAM PRE Q S SAMP SCRIPT SELECT SMALL SPAN STRIKE STRONG STYLE SUB SUP TABLE TBODY TD "+"TEXTAREA TFOOT TH THEAD TITLE TR TT U UL VAR").split(/\s+/);c.each(function(a){b[a]=function(){return Builder.node.apply(Builder,[a].concat($A(arguments)))}})}};
|
4 |
+
if(typeof Effect=='undefined')throw("dragdrop.js requires including script.aculo.us' effects.js library");var Droppables={drops:[],remove:function(a){this.drops=this.drops.reject(function(d){return d.element==$(a)})},add:function(a){a=$(a);var b=Object.extend({greedy:true,hoverclass:null,tree:false},arguments[1]||{});if(b.containment){b._containers=[];var d=b.containment;if((typeof d=='object')&&(d.constructor==Array)){d.each(function(c){b._containers.push($(c))})}else{b._containers.push($(d))}};if(b.accept)b.accept=[b.accept].flatten();Element.makePositioned(a);b.element=a;this.drops.push(b)},findDeepestChild:function(a){deepest=a[0];for(i=1;i<a.length;++i)if(Element.isParent(a[i].element,deepest.element))deepest=a[i];return deepest},isContained:function(a,b){var d;if(b.tree){d=a.treeNode}else{d=a.parentNode}return b._containers.detect(function(c){return d==c})},isAffected:function(a,b,c){return((c.element!=b)&&((!c._containers)||this.isContained(b,c))&&((!c.accept)||(Element.classNames(b).detect(function(v){return c.accept.include(v)})))&&Position.within(c.element,a[0],a[1]))},deactivate:function(a){if(a.hoverclass)Element.removeClassName(a.element,a.hoverclass);this.last_active=null},activate:function(a){if(a.hoverclass)Element.addClassName(a.element,a.hoverclass);this.last_active=a},show:function(b,c){if(!this.drops.length)return;var d=[];if(this.last_active)this.deactivate(this.last_active);this.drops.each(function(a){if(Droppables.isAffected(b,c,a))d.push(a)});if(d.length>0){drop=Droppables.findDeepestChild(d);Position.within(drop.element,b[0],b[1]);if(drop.onHover)drop.onHover(c,drop.element,Position.overlap(drop.overlap,drop.element));Droppables.activate(drop)}},fire:function(a,b){if(!this.last_active)return;Position.prepare();if(this.isAffected([Event.pointerX(a),Event.pointerY(a)],b,this.last_active))if(this.last_active.onDrop)this.last_active.onDrop(b,this.last_active.element,a)},reset:function(){if(this.last_active)this.deactivate(this.last_active)}};var Draggables={drags:[],observers:[],register:function(a){if(this.drags.length==0){this.eventMouseUp=this.endDrag.bindAsEventListener(this);this.eventMouseMove=this.updateDrag.bindAsEventListener(this);this.eventKeypress=this.keyPress.bindAsEventListener(this);Event.observe(document,"mouseup",this.eventMouseUp);Event.observe(document,"mousemove",this.eventMouseMove);Event.observe(document,"keypress",this.eventKeypress)};this.drags.push(a)},unregister:function(a){this.drags=this.drags.reject(function(d){return d==a});if(this.drags.length==0){Event.stopObserving(document,"mouseup",this.eventMouseUp);Event.stopObserving(document,"mousemove",this.eventMouseMove);Event.stopObserving(document,"keypress",this.eventKeypress)}},activate:function(a){if(a.options.delay){this._timeout=setTimeout(function(){Draggables._timeout=null;window.focus();Draggables.activeDraggable=a}.bind(this),a.options.delay)}else{window.focus();this.activeDraggable=a}},deactivate:function(){this.activeDraggable=null},updateDrag:function(a){if(!this.activeDraggable)return;var b=[Event.pointerX(a),Event.pointerY(a)];if(this._lastPointer&&(this._lastPointer.inspect()==b.inspect()))return;this._lastPointer=b;if(document.createCDATASection==null){try{spdfix.innerHTML=b[0]}catch(e){spdfix=document.createElement('div');spdfix.style.display='none';document.body.insertBefore(spdfix,document.body.firstChild)}};this.activeDraggable.updateDrag(a,b)},endDrag:function(a){if(this._timeout){clearTimeout(this._timeout);this._timeout=null}if(!this.activeDraggable)return;this._lastPointer=null;this.activeDraggable.endDrag(a);this.activeDraggable=null},keyPress:function(a){if(this.activeDraggable)this.activeDraggable.keyPress(a)},addObserver:function(a){this.observers.push(a);this._cacheObserverCallbacks()},removeObserver:function(a){this.observers=this.observers.reject(function(o){return o.element==a});this._cacheObserverCallbacks()},notify:function(a,b,c){if(this[a+'Count']>0)this.observers.each(function(o){if(o[a])o[a](a,b,c)});if(b.options[a])b.options[a](b,c)},_cacheObserverCallbacks:function(){['onStart','onEnd','onDrag'].each(function(a){Draggables[a+'Count']=Draggables.observers.select(function(o){return o[a]}).length})}};var Draggable=Class.create();Draggable._dragging={};Draggable.prototype={initialize:function(e){var f={handle:false,reverteffect:function(a,b,c){var d=Math.sqrt(Math.abs(b^2)+Math.abs(c^2))*0.02;new Effect.Move(a,{x:-c,y:-b,duration:d,queue:{scope:'_draggable',position:'end'}})},endeffect:function(a){var b=typeof a._opacity=='number'?a._opacity:1.0;new Effect.Opacity(a,{duration:0.2,from:0.7,to:b,queue:{scope:'_draggable',position:'end'},afterFinish:function(){Draggable._dragging[a]=false}})},zindex:1000,revert:false,scroll:false,scrollSensitivity:20,scrollSpeed:15,snap:false,delay:0};if(!arguments[1]||typeof arguments[1].endeffect=='undefined')Object.extend(f,{starteffect:function(a){a._opacity=Element.getOpacity(a);Draggable._dragging[a]=true;new Effect.Opacity(a,{duration:0.2,from:a._opacity,to:0.7})}});var g=Object.extend(f,arguments[1]||{});this.element=$(e);if(g.handle&&(typeof g.handle=='string'))this.handle=this.element.down('.'+g.handle,0);if(!this.handle)this.handle=$(g.handle);if(!this.handle)this.handle=this.element;if(g.scroll&&!g.scroll.scrollTo&&!g.scroll.outerHTML){g.scroll=$(g.scroll);this._isScrollChild=Element.childOf(this.element,g.scroll)};Element.makePositioned(this.element);this.options=g;this.dragging=false;this.eventMouseDown=this.initDrag.bindAsEventListener(this);Event.observe(this.handle,"mousedown",this.eventMouseDown);Draggables.register(this)},destroy:function(){Event.stopObserving(this.handle,"mousedown",this.eventMouseDown);Draggables.unregister(this)},currentDelta:function(){return([parseInt(Element.getStyle(this.element,'left')||'0'),parseInt(Element.getStyle(this.element,'top')||'0')])},initDrag:function(a){if(typeof Draggable._dragging[this.element]!='undefined'&&Draggable._dragging[this.element])return;if(Event.isLeftClick(a)){var b=Event.element(a);if((tag_name=b.tagName.toUpperCase())&&(tag_name=='INPUT'||tag_name=='SELECT'||tag_name=='OPTION'||tag_name=='BUTTON'||tag_name=='TEXTAREA'))return;var c=[Event.pointerX(a),Event.pointerY(a)];var d=Position.cumulativeOffset(this.element);this.offset=[0,1].map(function(i){return(c[i]-d[i])});Draggables.activate(this);Event.stop(a)}},startDrag:function(a){this.dragging=true;if(!this.delta)this.delta=this.currentDelta();if(this.options.zindex){this.originalZ=parseInt(Element.getStyle(this.element,'z-index')||0);this.element.style.zIndex=this.options.zindex};if(this.options.ghosting){this._clone=this.element.cloneNode(true);Position.absolutize(this.element);this.element.parentNode.insertBefore(this._clone,this.element)};if(this.options.scroll){if(this.options.scroll==window){var b=this._getWindowScroll(this.options.scroll);this.originalScrollLeft=b.left;this.originalScrollTop=b.top}else{this.originalScrollLeft=this.options.scroll.scrollLeft;this.originalScrollTop=this.options.scroll.scrollTop}};Draggables.notify('onStart',this,a);if(this.options.starteffect)this.options.starteffect(this.element)},updateDrag:function(a,b){if(!this.dragging)this.startDrag(a);Position.prepare();Droppables.show(b,this.element);Draggables.notify('onDrag',this,a);this.draw(b);if(this.options.change)this.options.change(this);if(this.options.scroll){this.stopScrolling();var p;if(this.options.scroll==window){with(this._getWindowScroll(this.options.scroll)){p=[left,top,left+width,top+height]}}else{p=Position.page(this.options.scroll);p[0]+=this.options.scroll.scrollLeft+Position.deltaX;p[1]+=this.options.scroll.scrollTop+Position.deltaY;p.push(p[0]+this.options.scroll.offsetWidth);p.push(p[1]+this.options.scroll.offsetHeight)};var c=[0,0];if(b[0]<(p[0]+this.options.scrollSensitivity))c[0]=b[0]-(p[0]+this.options.scrollSensitivity);if(b[1]<(p[1]+this.options.scrollSensitivity))c[1]=b[1]-(p[1]+this.options.scrollSensitivity);if(b[0]>(p[2]-this.options.scrollSensitivity))c[0]=b[0]-(p[2]-this.options.scrollSensitivity);if(b[1]>(p[3]-this.options.scrollSensitivity))c[1]=b[1]-(p[3]-this.options.scrollSensitivity);this.startScrolling(c)};if(navigator.appVersion.indexOf('AppleWebKit')>0)window.scrollBy(0,0);Event.stop(a)},finishDrag:function(a,b){this.dragging=false;if(this.options.ghosting){Position.relativize(this.element);Element.remove(this._clone);this._clone=null};if(b)Droppables.fire(a,this.element);Draggables.notify('onEnd',this,a);var c=this.options.revert;if(c&&typeof c=='function')c=c(this.element);var d=this.currentDelta();if(c&&this.options.reverteffect){this.options.reverteffect(this.element,d[1]-this.delta[1],d[0]-this.delta[0])}else{this.delta=d};if(this.options.zindex)this.element.style.zIndex=this.originalZ;if(this.options.endeffect)this.options.endeffect(this.element);Draggables.deactivate(this);Droppables.reset()},keyPress:function(a){if(a.keyCode!=Event.KEY_ESC)return;this.finishDrag(a,false);Event.stop(a)},endDrag:function(a){if(!this.dragging)return;this.stopScrolling();this.finishDrag(a,true);Event.stop(a)},draw:function(a){var b=Position.cumulativeOffset(this.element);if(this.options.ghosting){var r=Position.realOffset(this.element);b[0]+=r[0]-Position.deltaX;b[1]+=r[1]-Position.deltaY};var d=this.currentDelta();b[0]-=d[0];b[1]-=d[1];if(this.options.scroll&&(this.options.scroll!=window&&this._isScrollChild)){b[0]-=this.options.scroll.scrollLeft-this.originalScrollLeft;b[1]-=this.options.scroll.scrollTop-this.originalScrollTop};var p=[0,1].map(function(i){return(a[i]-b[i]-this.offset[i])}.bind(this));if(this.options.snap){if(typeof this.options.snap=='function'){p=this.options.snap(p[0],p[1],this)}else{if(this.options.snap instanceof Array){p=p.map(function(v,i){return Math.round(v/this.options.snap[i])*this.options.snap[i]}.bind(this))}else{p=p.map(function(v){return Math.round(v/this.options.snap)*this.options.snap}.bind(this))}}};var c=this.element.style;if((!this.options.constraint)||(this.options.constraint=='horizontal'))c.left=p[0]+"px";if((!this.options.constraint)||(this.options.constraint=='vertical'))c.top=p[1]+"px";if(c.visibility=="hidden")c.visibility=""},stopScrolling:function(){if(this.scrollInterval){clearInterval(this.scrollInterval);this.scrollInterval=null;Draggables._lastScrollPointer=null}},startScrolling:function(a){if(!(a[0]||a[1]))return;this.scrollSpeed=[a[0]*this.options.scrollSpeed,a[1]*this.options.scrollSpeed];this.lastScrolled=new Date();this.scrollInterval=setInterval(this.scroll.bind(this),10)},scroll:function(){var a=new Date();var b=a-this.lastScrolled;this.lastScrolled=a;if(this.options.scroll==window){with(this._getWindowScroll(this.options.scroll)){if(this.scrollSpeed[0]||this.scrollSpeed[1]){var d=b/1000;this.options.scroll.scrollTo(left+d*this.scrollSpeed[0],top+d*this.scrollSpeed[1])}}}else{this.options.scroll.scrollLeft+=this.scrollSpeed[0]*b/1000;this.options.scroll.scrollTop+=this.scrollSpeed[1]*b/1000};Position.prepare();Droppables.show(Draggables._lastPointer,this.element);Draggables.notify('onDrag',this);if(this._isScrollChild){Draggables._lastScrollPointer=Draggables._lastScrollPointer||$A(Draggables._lastPointer);Draggables._lastScrollPointer[0]+=this.scrollSpeed[0]*b/1000;Draggables._lastScrollPointer[1]+=this.scrollSpeed[1]*b/1000;if(Draggables._lastScrollPointer[0]<0)Draggables._lastScrollPointer[0]=0;if(Draggables._lastScrollPointer[1]<0)Draggables._lastScrollPointer[1]=0;this.draw(Draggables._lastScrollPointer)};if(this.options.change)this.options.change(this)},_getWindowScroll:function(w){var T,L,W,H;with(w.document){if(w.document.documentElement&&documentElement.scrollTop){T=documentElement.scrollTop;L=documentElement.scrollLeft}else if(w.document.body){T=body.scrollTop;L=body.scrollLeft};if(w.innerWidth){W=w.innerWidth;H=w.innerHeight}else if(w.document.documentElement&&documentElement.clientWidth){W=documentElement.clientWidth;H=documentElement.clientHeight}else{W=body.offsetWidth;H=body.offsetHeight}};return{top:T,left:L,width:W,height:H}}};var SortableObserver=Class.create();SortableObserver.prototype={initialize:function(a,b){this.element=$(a);this.observer=b;this.lastValue=Sortable.serialize(this.element)},onStart:function(){this.lastValue=Sortable.serialize(this.element)},onEnd:function(){Sortable.unmark();if(this.lastValue!=Sortable.serialize(this.element))this.observer(this.element)}};var Sortable={SERIALIZE_RULE:/^[^_\-](?:[A-Za-z0-9\-\_]*)[_](.*)$/,sortables:{},_findRootElement:function(a){while(a.tagName.toUpperCase()!="BODY"){if(a.id&&Sortable.sortables[a.id])return a;a=a.parentNode}},options:function(a){a=Sortable._findRootElement($(a));if(!a)return;return Sortable.sortables[a.id]},destroy:function(a){var s=Sortable.options(a);if(s){Draggables.removeObserver(s.element);s.droppables.each(function(d){Droppables.remove(d)});s.draggables.invoke('destroy');delete Sortable.sortables[s.element.id]}},create:function(b){b=$(b);var c=Object.extend({element:b,tag:'li',dropOnEmpty:false,tree:false,treeTag:'ul',overlap:'vertical',constraint:'vertical',containment:b,handle:false,only:false,delay:0,hoverclass:null,ghosting:false,scroll:false,scrollSensitivity:20,scrollSpeed:15,format:this.SERIALIZE_RULE,onChange:Prototype.emptyFunction,onUpdate:Prototype.emptyFunction},arguments[1]||{});this.destroy(b);var d={revert:true,scroll:c.scroll,scrollSpeed:c.scrollSpeed,scrollSensitivity:c.scrollSensitivity,delay:c.delay,ghosting:c.ghosting,constraint:c.constraint,handle:c.handle};if(c.starteffect)d.starteffect=c.starteffect;if(c.reverteffect)d.reverteffect=c.reverteffect;else if(c.ghosting)d.reverteffect=function(a){a.style.top=0;a.style.left=0};if(c.endeffect)d.endeffect=c.endeffect;if(c.zindex)d.zindex=c.zindex;var f={overlap:c.overlap,containment:c.containment,tree:c.tree,hoverclass:c.hoverclass,onHover:Sortable.onHover};var g={onHover:Sortable.onEmptyHover,overlap:c.overlap,containment:c.containment,tree:c.tree,hoverclass:c.hoverclass};Element.cleanWhitespace(b);c.draggables=[];c.droppables=[];if(c.dropOnEmpty||c.tree){Droppables.add(b,g);c.droppables.push(b)};(this.findElements(b,c)||[]).each(function(e){var a=c.handle?$(e).down('.'+c.handle,0):e;c.draggables.push(new Draggable(e,Object.extend(d,{handle:a})));Droppables.add(e,f);if(c.tree)e.treeNode=b;c.droppables.push(e)});if(c.tree){(Sortable.findTreeElements(b,c)||[]).each(function(e){Droppables.add(e,g);e.treeNode=b;c.droppables.push(e)})};this.sortables[b.id]=c;Draggables.addObserver(new SortableObserver(b,c.onUpdate))},findElements:function(a,b){return Element.findChildren(a,b.only,b.tree?true:false,b.tag)},findTreeElements:function(a,b){return Element.findChildren(a,b.only,b.tree?true:false,b.treeTag)},onHover:function(a,b,c){if(Sortable.options(b).tree){if(Element.isParent(b,a)||(c>.33&&c<.66)){return}}else{if(Element.isParent(a,b)){return}};if(c>0.5){Sortable.mark(b,'before');if(b.previousSibling!=a){var d=a.parentNode;a.style.visibility="hidden";b.parentNode.insertBefore(a,b);if(b.parentNode!=d)Sortable.options(d).onChange(a,"left_to",b);Sortable.options(b.parentNode).onChange(a,"left_to",b)}}else{Sortable.mark(b,'after');var e=b.nextSibling||null;if(e!=a){var d=a.parentNode;a.style.visibility="hidden";b.parentNode.insertBefore(a,e);if(b.parentNode!=d)Sortable.options(d).onChange(a,"right_to",b);Sortable.options(b.parentNode).onChange(a,"right_to",b)}}},onEmptyHover:function(a,b,c){var d=a.parentNode;var e=Sortable.options(b);if(Sortable.options(b).tree){if(!Element.isParent(b,a)){var f;var g=Sortable.findElements(b,{tag:e.tag,only:e.only});var h=null;if(g){var i=Element.offsetSize(b,e.overlap)*(1.0-c);for(f=0;f<g.length;f+=1){if(i-Element.offsetSize(g[f],e.overlap)>=0){i-=Element.offsetSize(g[f],e.overlap)}else if(i-(Element.offsetSize(g[f],e.overlap)/2)>=0){h=f+1<g.length?1:null;break}else{h=1;break}}};if(h==null){b.appendChild(a);Sortable.options(d).onChange(a);e.onChange(a)}}}else{if(Element.isParent(a,b))return;b.appendChild(a);Sortable.options(d).onChange(a);e.onChange(a)}},unmark:function(){if(Sortable._marker)Sortable._marker.hide()},mark:function(a,b){var c=Sortable.options(a.parentNode);if(c&&!c.ghosting)return;if(!Sortable._marker){Sortable._marker=($('dropmarker')||Element.extend(document.createElement('DIV'))).hide().addClassName('dropmarker').setStyle({position:'absolute'});document.getElementsByTagName("body").item(0).appendChild(Sortable._marker)};var d=Position.cumulativeOffset(a);Sortable._marker.setStyle({left:d[0]+'px',top:d[1]+'px'});if(b=='after')if(c.overlap=='horizontal')Sortable._marker.setStyle({left:(d[0]+a.clientWidth)+'px'});else Sortable._marker.setStyle({top:(d[1]+a.clientHeight)+'px'});Sortable._marker.show()},_tree:function(a,b,c){var d=Sortable.findElements(a,b)||[];for(var i=0;i<d.length;++i){var e=d[i].id.match(b.format);if(!e)continue;var f={id:encodeURIComponent(e?e[1]:null),element:a,parent:c,children:[],position:c.children.length,container:$(d[i]).down(b.treeTag)};if(f.container)this._tree(f.container,b,f);c.children.push(f)};return c},tree:function(a){a=$(a);var b=this.options(a);var c=Object.extend({tag:b.tag,treeTag:b.treeTag,only:b.only,name:a.id,format:b.format},arguments[1]||{});var d={id:null,parent:null,children:[],container:a,position:0};return Sortable._tree(a,c,d)},_constructIndex:function(a){var b='';do{if(a.id)b='['+a.position+']'+b}while((a=a.parent)!=null);return b},sequence:function(b){b=$(b);var c=Object.extend(this.options(b),arguments[1]||{});return $(this.findElements(b,c)||[]).map(function(a){return a.id.match(c.format)?a.id.match(c.format)[1]:''})},setSequence:function(b,c){b=$(b);var d=Object.extend(this.options(b),arguments[2]||{});var e={};this.findElements(b,d).each(function(n){if(n.id.match(d.format))e[n.id.match(d.format)[1]]=[n,n.parentNode];n.parentNode.removeChild(n)});c.each(function(a){var n=e[a];if(n){n[1].appendChild(n[0]);delete e[a]}})},serialize:function(b){b=$(b);var c=Object.extend(Sortable.options(b),arguments[1]||{});var d=encodeURIComponent((arguments[1]&&arguments[1].name)?arguments[1].name:b.id);if(c.tree){return Sortable.tree(b,arguments[1]).children.map(function(a){return[d+Sortable._constructIndex(a)+"[id]="+encodeURIComponent(a.id)].concat(a.children.map(arguments.callee))}).flatten().join('&')}else{return Sortable.sequence(b,arguments[1]).map(function(a){return d+"[]="+encodeURIComponent(a)}).join('&')}}};Element.isParent=function(a,b){if(!a.parentNode||a==b)return false;if(a.parentNode==b)return true;return Element.isParent(a.parentNode,b)};Element.findChildren=function(b,c,d,f){if(!b.hasChildNodes())return null;f=f.toUpperCase();if(c)c=[c].flatten();var g=[];$A(b.childNodes).each(function(e){if(e.tagName&&e.tagName.toUpperCase()==f&&(!c||(Element.classNames(e).detect(function(v){return c.include(v)}))))g.push(e);if(d){var a=Element.findChildren(e,c,d,f);if(a)g.push(a)}});return(g.length>0?g.flatten():[])};Element.offsetSize=function(a,b){return a['offset'+((b=='vertical'||b=='height')?'Height':'Width')]};
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advhr/css/advhr.css
RENAMED
File without changes
|
add_to_tinymce_directory/plugins/advhr/editor_plugin_src.js → tinymce-advanced/mce/advhr/editor_plugin.js
RENAMED
@@ -5,6 +5,15 @@
|
|
5 |
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
6 |
*/
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
/* Import plugin specific language pack */
|
9 |
tinyMCE.importPluginLanguagePack('advhr');
|
10 |
|
@@ -37,7 +46,7 @@ var TinyMCE_AdvancedHRPlugin = {
|
|
37 |
case "mceAdvancedHr":
|
38 |
var template = new Array();
|
39 |
|
40 |
-
template['file'] = '
|
41 |
template['width'] = 250;
|
42 |
template['height'] = 160;
|
43 |
|
5 |
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
6 |
*/
|
7 |
|
8 |
+
/* Default language strings */
|
9 |
+
tadvmce = realTinyMCE;
|
10 |
+
tadvmce.addToLang('',{
|
11 |
+
insert_advhr_desc : 'Horizontale rule',
|
12 |
+
insert_advhr_width : 'Width',
|
13 |
+
insert_advhr_size : 'Height',
|
14 |
+
insert_advhr_noshade : 'No shadow'
|
15 |
+
});
|
16 |
+
|
17 |
/* Import plugin specific language pack */
|
18 |
tinyMCE.importPluginLanguagePack('advhr');
|
19 |
|
46 |
case "mceAdvancedHr":
|
47 |
var template = new Array();
|
48 |
|
49 |
+
template['file'] = tinyMCE.baseURL + '/../../../wp-content/plugins/tinymce-advanced/mce/advhr/rule.htm'; // Relative to theme
|
50 |
template['width'] = 250;
|
51 |
template['height'] = 160;
|
52 |
|
tinymce-advanced/mce/advhr/images/advhr.gif
ADDED
Binary file
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advhr/jscripts/rule.js
RENAMED
File without changes
|
tinymce-advanced/mce/advhr/langs/de_de.js
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// DE lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('',{
|
4 |
+
insert_advhr_desc : 'Horizontale Linie einfügen/bearbeiten',
|
5 |
+
insert_advhr_width : 'Breite',
|
6 |
+
insert_advhr_size : 'Höhe',
|
7 |
+
insert_advhr_noshade : 'Kein Schatten'
|
8 |
+
});
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advhr/langs/en.js
RENAMED
File without changes
|
tinymce-advanced/mce/advhr/langs/es_es.js
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// ES lang variables by Alvaro Velasco and Adolfo Sanz De Diego (asanzdiego) <asanzdiego@yahoo.es>
|
2 |
+
// Last Updated : October 2005
|
3 |
+
// TinyMCE Version : 2.0RC3
|
4 |
+
|
5 |
+
tinyMCE.addToLang('',{
|
6 |
+
insert_advhr_desc : 'Insertar/Editar Barra Horizontal',
|
7 |
+
insert_advhr_width : 'Ancho',
|
8 |
+
insert_advhr_size : 'Alto',
|
9 |
+
insert_advhr_noshade : 'Sin Sombras'
|
10 |
+
});
|
tinymce-advanced/mce/advhr/langs/fr_fr.js
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// FR lang variables
|
2 |
+
// Modified by Motte, last updated 2006-03-23
|
3 |
+
|
4 |
+
tinyMCE.addToLang('',{
|
5 |
+
insert_advhr_desc : 'Insérer une règle horizontale stylée',
|
6 |
+
insert_advhr_width : 'Largeur',
|
7 |
+
insert_advhr_size : 'Hauteur',
|
8 |
+
insert_advhr_noshade : 'Sans ombre'
|
9 |
+
});
|
tinymce-advanced/mce/advhr/langs/it_it.js
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* IT lang variables
|
3 |
+
*
|
4 |
+
* Author : Luciano Vernaschi <luciano@virgilio.it>
|
5 |
+
* Last Updated : Mar. 1st, 2007
|
6 |
+
* TinyMCE Version : 2.1.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
tinyMCE.addToLang('',{
|
10 |
+
insert_advhr_desc : 'Riga orizzontale',
|
11 |
+
insert_advhr_width : 'Larghezza',
|
12 |
+
insert_advhr_size : 'Altezza',
|
13 |
+
insert_advhr_noshade : 'Senza rilievo'
|
14 |
+
});
|
tinymce-advanced/mce/advhr/langs/pt_br.js
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* pt_br lang variables
|
3 |
+
* Brazilian Portuguese
|
4 |
+
*
|
5 |
+
* Author
|
6 |
+
* Revision and modifications:
|
7 |
+
* Marcio Barbosa (mpg) <mpg@mpg.com.br>
|
8 |
+
* First Release : November 26, 2005 - TinyMCE Version : 2.0RC4
|
9 |
+
* Last Updated : November 20, 2006 - TinyMCE Version : 2.0.8
|
10 |
+
*/
|
11 |
+
tinyMCE.addToLang('',{
|
12 |
+
insert_advhr_desc : 'Inserir/editar linha horizontal',
|
13 |
+
insert_advhr_width : 'Largura',
|
14 |
+
insert_advhr_size : 'Altura',
|
15 |
+
insert_advhr_noshade : 'Sem sombra'
|
16 |
+
});
|
tinymce-advanced/mce/advhr/langs/ru_ru.js
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// RU lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('',{
|
4 |
+
insert_advhr_desc : 'Вставить / редактировать горизонтальный разделитель',
|
5 |
+
insert_advhr_width : 'Ширина',
|
6 |
+
insert_advhr_size : 'Высота',
|
7 |
+
insert_advhr_noshade : 'Без тени'
|
8 |
+
});
|
tinymce-advanced/mce/advhr/langs/zh_cn.js
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// Simplified Chinese lang variables contributed by TinyMCE_China_Team ( tinymce_china {AT} yahoogroups {DOT} com ).
|
2 |
+
// visit our homepage at: http://www.cube316.net/tinymce/ for more information.
|
3 |
+
|
4 |
+
tinyMCE.addToLang('',{
|
5 |
+
insert_advhr_desc : '����/�༭ ˮƽ���',
|
6 |
+
insert_advhr_width : '����',
|
7 |
+
insert_advhr_size : '�߶�',
|
8 |
+
insert_advhr_noshade : '����Ӱ'
|
9 |
+
});
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advhr/readme.txt
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advhr/rule.htm
RENAMED
@@ -1,9 +1,9 @@
|
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_insert_advhr_desc}</title>
|
4 |
-
<script language="javascript" type="text/javascript" src="
|
5 |
<script language="javascript" type="text/javascript" src="jscripts/rule.js"></script>
|
6 |
-
<script language="javascript" type="text/javascript" src="
|
7 |
<link href="css/advhr.css" rel="stylesheet" type="text/css" />
|
8 |
<base target="_self" />
|
9 |
</head>
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_insert_advhr_desc}</title>
|
4 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/tiny_mce_popup.js"></script>
|
5 |
<script language="javascript" type="text/javascript" src="jscripts/rule.js"></script>
|
6 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/mctabs.js"></script>
|
7 |
<link href="css/advhr.css" rel="stylesheet" type="text/css" />
|
8 |
<base target="_self" />
|
9 |
</head>
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advimage/css/advimage.css
RENAMED
File without changes
|
add_to_tinymce_directory/plugins/advimage/editor_plugin_src.js → tinymce-advanced/mce/advimage/editor_plugin.js
RENAMED
@@ -5,6 +5,34 @@
|
|
5 |
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
6 |
*/
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
/* Import plugin specific language pack */
|
9 |
tinyMCE.importPluginLanguagePack('advimage');
|
10 |
|
@@ -33,7 +61,7 @@ var TinyMCE_AdvancedImagePlugin = {
|
|
33 |
case "mceAdvImage":
|
34 |
var template = new Array();
|
35 |
|
36 |
-
template['file'] = '
|
37 |
template['width'] = 480;
|
38 |
template['height'] = 380;
|
39 |
|
5 |
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
6 |
*/
|
7 |
|
8 |
+
// UK lang variables
|
9 |
+
tadvmce = realTinyMCE;
|
10 |
+
tadvmce.addToLang('advimage',{
|
11 |
+
tab_general : 'General',
|
12 |
+
tab_appearance : 'Appearance',
|
13 |
+
tab_advanced : 'Advanced',
|
14 |
+
general : 'General',
|
15 |
+
title : 'Title',
|
16 |
+
preview : 'Preview',
|
17 |
+
constrain_proportions : 'Constrain proportions',
|
18 |
+
langdir : 'Language direction',
|
19 |
+
langcode : 'Language code',
|
20 |
+
long_desc : 'Long description link',
|
21 |
+
style : 'Style',
|
22 |
+
classes : 'Classes',
|
23 |
+
ltr : 'Left to right',
|
24 |
+
rtl : 'Right to left',
|
25 |
+
id : 'Id',
|
26 |
+
image_map : 'Image map',
|
27 |
+
swap_image : 'Swap image',
|
28 |
+
alt_image : 'Alternative image',
|
29 |
+
mouseover : 'for mouse over',
|
30 |
+
mouseout : 'for mouse out',
|
31 |
+
misc : 'Miscellaneous',
|
32 |
+
example_img : 'Appearance preview image',
|
33 |
+
missing_alt : 'Are you sure you want to continue without including an Image Description? Without it the image may not be accessible to some users with disabilities, or to those using a text browser, or browsing the Web with images turned off.'
|
34 |
+
});
|
35 |
+
|
36 |
/* Import plugin specific language pack */
|
37 |
tinyMCE.importPluginLanguagePack('advimage');
|
38 |
|
61 |
case "mceAdvImage":
|
62 |
var template = new Array();
|
63 |
|
64 |
+
template['file'] = tinyMCE.baseURL + '/../../../wp-content/plugins/tinymce-advanced/mce/advimage/image.htm';
|
65 |
template['width'] = 480;
|
66 |
template['height'] = 380;
|
67 |
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advimage/image.htm
RENAMED
@@ -1,11 +1,12 @@
|
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_insert_image_title}</title>
|
4 |
-
<script language="javascript" type="text/javascript" src="
|
5 |
-
<script language="javascript" type="text/javascript" src="
|
6 |
-
<script language="javascript" type="text/javascript" src="
|
7 |
-
<script language="javascript" type="text/javascript" src="
|
8 |
<script language="javascript" type="text/javascript" src="jscripts/functions.js"></script>
|
|
|
9 |
<link href="css/advimage.css" rel="stylesheet" type="text/css" />
|
10 |
<base target="_self" />
|
11 |
</head>
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_insert_image_title}</title>
|
4 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/tiny_mce_popup.js"></script>
|
5 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/mctabs.js"></script>
|
6 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/form_utils.js"></script>
|
7 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/validate.js"></script>
|
8 |
<script language="javascript" type="text/javascript" src="jscripts/functions.js"></script>
|
9 |
+
|
10 |
<link href="css/advimage.css" rel="stylesheet" type="text/css" />
|
11 |
<base target="_self" />
|
12 |
</head>
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advimage/images/sample.gif
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advimage/jscripts/functions.js
RENAMED
@@ -239,12 +239,8 @@ function setAttrib(elm, attrib, value) {
|
|
239 |
attrib = "className";
|
240 |
|
241 |
eval('elm.' + attrib + "=value;");
|
242 |
-
} else
|
243 |
-
if (attrib == 'class')
|
244 |
-
elm.className = '';
|
245 |
-
|
246 |
elm.removeAttribute(attrib);
|
247 |
-
}
|
248 |
}
|
249 |
|
250 |
function makeAttrib(attrib, value) {
|
@@ -478,18 +474,18 @@ function showPreviewImage(src, start) {
|
|
478 |
if (src == "")
|
479 |
elm.innerHTML = "";
|
480 |
else
|
481 |
-
elm.innerHTML = '<img id="previewImg" src="' + src + '" border="0" onload="updateImageData(
|
482 |
}
|
483 |
|
484 |
-
function updateImageData(
|
485 |
var formObj = document.forms[0];
|
486 |
|
487 |
preloadImg = document.getElementById('previewImg');
|
488 |
|
489 |
-
if (
|
490 |
formObj.width.value = preloadImg.width;
|
491 |
|
492 |
-
if (
|
493 |
formObj.height.value = preloadImg.height;
|
494 |
|
495 |
updateStyle();
|
239 |
attrib = "className";
|
240 |
|
241 |
eval('elm.' + attrib + "=value;");
|
242 |
+
} else
|
|
|
|
|
|
|
243 |
elm.removeAttribute(attrib);
|
|
|
244 |
}
|
245 |
|
246 |
function makeAttrib(attrib, value) {
|
474 |
if (src == "")
|
475 |
elm.innerHTML = "";
|
476 |
else
|
477 |
+
elm.innerHTML = '<img id="previewImg" src="' + src + '" border="0" onload="updateImageData();" onerror="resetImageData();" />'
|
478 |
}
|
479 |
|
480 |
+
function updateImageData() {
|
481 |
var formObj = document.forms[0];
|
482 |
|
483 |
preloadImg = document.getElementById('previewImg');
|
484 |
|
485 |
+
if (formObj.width.value == "")
|
486 |
formObj.width.value = preloadImg.width;
|
487 |
|
488 |
+
if (formObj.height.value == "")
|
489 |
formObj.height.value = preloadImg.height;
|
490 |
|
491 |
updateStyle();
|
tinymce-advanced/mce/advimage/langs/de_de.js
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// DE lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('advimage',{
|
4 |
+
tab_general : 'Allgemein',
|
5 |
+
tab_appearance : 'Erscheinungsbild',
|
6 |
+
tab_advanced : 'Erweitert',
|
7 |
+
general : 'Allgemein',
|
8 |
+
title : 'Titel',
|
9 |
+
preview : 'Vorschau',
|
10 |
+
constrain_proportions : 'Verhältnis beibehalten',
|
11 |
+
langdir : 'Textfluss',
|
12 |
+
langcode : 'Sprach-Code',
|
13 |
+
long_desc : 'Link zur ausführlichen Beschreibung',
|
14 |
+
style : 'CSS-Stil',
|
15 |
+
classes : 'CSS-Klassen',
|
16 |
+
ltr : 'Von links nach rechts',
|
17 |
+
rtl : 'Von rechts nach links',
|
18 |
+
id : 'ID',
|
19 |
+
image_map : 'Image Map (Bild mit sensitiven Bereichen)',
|
20 |
+
swap_image : 'Bild austauschen',
|
21 |
+
alt_image : 'Alternatives Bild',
|
22 |
+
mouseover : 'für Mouse-Over',
|
23 |
+
mouseout : 'für Mouse-Out',
|
24 |
+
misc : 'Verschiedenes',
|
25 |
+
example_img : 'Erscheinungsbild Vorschau Bild',
|
26 |
+
missing_alt : 'Sind Sie sicher fortzufahren, ohne eine Bild-Beschreibung einzugeben? Ohne die Bild-Beschreibung können einige Besucher mit einer Behinderung, Besucher die nur einen Text-Browser benutzen oder die das Anzeigen von Bilder im Internet deaktiviert haben, Ihre Bilder nicht richtig sehen.'
|
27 |
+
});
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advimage/langs/en.js
RENAMED
File without changes
|
tinymce-advanced/mce/advimage/langs/es_es.js
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* ES lang variables
|
3 |
+
*
|
4 |
+
* Authors : Alvaro Velasco,
|
5 |
+
* Adolfo Sanz De Diego (asanzdiego) <asanzdiego@yahoo.es>,
|
6 |
+
* Carlos C Soto (eclipxe) <csoto@sia-solutions.com>
|
7 |
+
* Eneko Castresana Vara
|
8 |
+
* Last Updated : July 14, 2006
|
9 |
+
* TinyMCE Version : 2.0.6.1
|
10 |
+
*/
|
11 |
+
|
12 |
+
tinyMCE.addToLang('advimage',{
|
13 |
+
tab_general : 'General',
|
14 |
+
tab_appearance : 'Aspecto',
|
15 |
+
tab_advanced : 'Avanzado',
|
16 |
+
general : 'General',
|
17 |
+
title : 'Titulo',
|
18 |
+
preview : 'Vista previa',
|
19 |
+
constrain_proportions : 'Bloquear relación de aspecto',
|
20 |
+
langdir : 'Dirección del texto',
|
21 |
+
langcode : 'Código del idioma',
|
22 |
+
long_desc : 'Descripción larga del link',
|
23 |
+
style : 'Estilo',
|
24 |
+
classes : 'Clases',
|
25 |
+
ltr : 'De izquierda a derecha',
|
26 |
+
rtl : 'De derecha a izquierda',
|
27 |
+
id : 'Id',
|
28 |
+
image_map : 'Mapa de la imagen',
|
29 |
+
swap_image : 'Intercambio de imagen',
|
30 |
+
alt_image : 'Imagen alternativa',
|
31 |
+
mouseover : 'Al pasar el ratón por encima de la imagen',
|
32 |
+
mouseout : 'Al sacar el ratón de la imagen',
|
33 |
+
misc : 'Misceláneo',
|
34 |
+
example_img : 'Aspecto vista previa imagen',
|
35 |
+
missing_alt : '¿Estás seguro de querer continuar sin incluir una descripción de la imagen? Sin ella la imagen puede no ser accesible para ciertos usuarios discapacitados, o para los usuarios que usen navegadores de texto, o para los usuarios que tengan las imagenes desactivadas en su navegador.'
|
36 |
+
});
|
tinymce-advanced/mce/advimage/langs/fr_fr.js
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// FR lang variables
|
2 |
+
// Modified by Motte, last updated 2006-03-23
|
3 |
+
|
4 |
+
tinyMCE.addToLang('advimage',{
|
5 |
+
tab_general : 'Générale',
|
6 |
+
tab_appearance : 'Apparence',
|
7 |
+
tab_advanced : 'Avancé',
|
8 |
+
general : 'Générale',
|
9 |
+
title : 'Titre',
|
10 |
+
preview : 'Prévisualisation',
|
11 |
+
constrain_proportions : 'Conserver les proportions',
|
12 |
+
langdir : 'Sens d\'écriture',
|
13 |
+
langcode : 'Code de langue du libellé',
|
14 |
+
long_desc : 'Description du lien',
|
15 |
+
style : 'Style',
|
16 |
+
classes : 'Classes',
|
17 |
+
ltr : 'De gauche à droite',
|
18 |
+
rtl : 'De droite à gauche',
|
19 |
+
id : 'Id',
|
20 |
+
image_map : 'Image map',
|
21 |
+
swap_image : 'Image d\'échange',
|
22 |
+
alt_image : 'Image alternative',
|
23 |
+
mouseover : 'Quand le pointeur est au dessus',
|
24 |
+
mouseout : 'Quand le pointeur est en dehors',
|
25 |
+
misc : 'Divers',
|
26 |
+
example_img : 'Apparence prévisualisation image',
|
27 |
+
missing_alt : 'Etes vous sur de vouloir continuer sans inclure une description de l\'image. Cette description est utile pour les utilisateurs ne pouvant pas afficher les images ou les ayant désactivées.'
|
28 |
+
});
|
tinymce-advanced/mce/advimage/langs/it_it.js
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* IT lang variables
|
3 |
+
*
|
4 |
+
* Author : Luciano Vernaschi <luciano@virgilio.it>
|
5 |
+
* Last Updated : Mar. 1st, 2007
|
6 |
+
* TinyMCE Version : 2.1.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
tinyMCE.addToLang('advimage',{
|
10 |
+
tab_general : 'Generale',
|
11 |
+
tab_appearance : 'Aspetto',
|
12 |
+
tab_advanced : 'Avanzate',
|
13 |
+
general : 'Generale',
|
14 |
+
title : 'Titolo',
|
15 |
+
preview : 'Anteprima',
|
16 |
+
constrain_proportions : 'Mantieni proporzioni',
|
17 |
+
langdir : 'Direzione del testo',
|
18 |
+
langcode : 'Codifica lingua',
|
19 |
+
long_desc : 'Link alla descrizione',
|
20 |
+
style : 'Stile',
|
21 |
+
classes : 'Classi',
|
22 |
+
ltr : 'Da sinistra a destra',
|
23 |
+
rtl : 'Da destra a sinistra',
|
24 |
+
id : 'Id',
|
25 |
+
image_map : 'Mappa',
|
26 |
+
swap_image : 'Scambia immagine',
|
27 |
+
alt_image : 'Immagini alternative',
|
28 |
+
mouseover : 'Per il mouseover',
|
29 |
+
mouseout : 'Per il mouseout',
|
30 |
+
misc : 'Altro',
|
31 |
+
example_img : 'Aspetto anteprima immagine',
|
32 |
+
missing_alt : 'Sei sicuro di voler omettere il testo alternativo? Questo testo è utile a persone che usano browser testuali, che hanno disattivato il caricamento delle immagini, oppure ai disabili.'
|
33 |
+
});
|
tinymce-advanced/mce/advimage/langs/pt_br.js
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* pt_br lang variables
|
3 |
+
* Brazilian Portuguese
|
4 |
+
*
|
5 |
+
* Author
|
6 |
+
* Revision and modifications:
|
7 |
+
* Marcio Barbosa (mpg) <mpg@mpg.com.br>
|
8 |
+
* First Release : November 26, 2005 - TinyMCE Version : 2.0RC4
|
9 |
+
* Last Updated : November 20, 2006 - TinyMCE Version : 2.0.8
|
10 |
+
*/
|
11 |
+
tinyMCE.addToLang('advimage',{
|
12 |
+
tab_general : 'Geral',
|
13 |
+
tab_appearance : 'Apar�ncia',
|
14 |
+
tab_advanced : 'Avan�ado',
|
15 |
+
general : 'Geral',
|
16 |
+
title : 'T�tulo',
|
17 |
+
preview : 'Visualizar (Preview)',
|
18 |
+
constrain_proportions : 'Bloquear propor��es',
|
19 |
+
langdir : 'Dire��o da linguagem',
|
20 |
+
langcode : 'C�digo da linguagem',
|
21 |
+
long_desc : 'Descri��o completa do link',
|
22 |
+
style : 'Estilo',
|
23 |
+
classes : 'Classes',
|
24 |
+
ltr : 'Esquerda para direita',
|
25 |
+
rtl : 'Direita para esquerda',
|
26 |
+
id : 'Id',
|
27 |
+
image_map : 'Mapa da imagem',
|
28 |
+
swap_image : 'Trocar imagem',
|
29 |
+
alt_image : 'Imagem alternativa',
|
30 |
+
mouseover : 'para o mouse sobre o link',
|
31 |
+
mouseout : 'para o mouse fora do link',
|
32 |
+
misc : 'Miscel�nia',
|
33 |
+
example_img : 'Exemplo da apar�ncia',
|
34 |
+
missing_alt : 'N�o foi definida uma descri��o para a imagem. Deseja continuar?\r\nSem a descri��o, a imagem pode n�o estar acess�vel para alguns usu�rios com necessidades especiais, ou para aqueles que utilizam um navegador em modo texto ou com imagens desativadas.',
|
35 |
+
delta_width : 40
|
36 |
+
});
|
tinymce-advanced/mce/advimage/langs/ru_ru.js
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// RU lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('advimage',{
|
4 |
+
tab_general : 'Основные',
|
5 |
+
tab_appearance : 'Визуализация',
|
6 |
+
tab_advanced : 'Расширенные',
|
7 |
+
general : 'Главные',
|
8 |
+
title : 'Заголовок',
|
9 |
+
preview : 'Предпросмотр',
|
10 |
+
constrain_proportions : 'Сохранить пропорции',
|
11 |
+
langdir : 'Описание языка',
|
12 |
+
langcode : 'Код языка',
|
13 |
+
long_desc : 'Полное описание',
|
14 |
+
style : 'Стили',
|
15 |
+
classes : 'Классы',
|
16 |
+
ltr : 'Слева направо',
|
17 |
+
rtl : 'Справа налево',
|
18 |
+
id : 'Id',
|
19 |
+
image_map : 'Карта изображения',
|
20 |
+
swap_image : 'Подмена картинки',
|
21 |
+
alt_image : 'Альтернативное изображение',
|
22 |
+
mouseover : 'при наведении мыши',
|
23 |
+
mouseout : 'когда уводите мышь',
|
24 |
+
misc : 'Прочее',
|
25 |
+
example_img : 'Визуализация расположения картинки',
|
26 |
+
missing_alt : 'Продолжить без Описания Изображения? Без описания, изображение может быть недоступно для пользователей, использующих текстовые браузеры или отключивших показ изображений.'
|
27 |
+
});
|
tinymce-advanced/mce/advimage/langs/zh_cn.js
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// Simplified Chinese lang variables contributed by TinyMCE_China_Team ( tinymce_china {AT} yahoogroups {DOT} com ).
|
2 |
+
// visit our homepage at: http://www.cube316.net/tinymce/ for more information.
|
3 |
+
|
4 |
+
tinyMCE.addToLang('advimage',{
|
5 |
+
tab_general : 'һ��',
|
6 |
+
tab_appearance : '��ʾ',
|
7 |
+
tab_advanced : '��',
|
8 |
+
general : 'һ��',
|
9 |
+
title : '����',
|
10 |
+
preview : 'Ԥ��',
|
11 |
+
constrain_proportions : 'Լ������',
|
12 |
+
langdir : '�����',
|
13 |
+
langcode : '���Ա���',
|
14 |
+
long_desc : '����������',
|
15 |
+
style : '���',
|
16 |
+
classes : '��',
|
17 |
+
ltr : '��������',
|
18 |
+
rtl : '��������',
|
19 |
+
id : '��ʶ',
|
20 |
+
image_map : 'ͼƬ��Ӧ',
|
21 |
+
swap_image : '����ͼƬ',
|
22 |
+
alt_image : '��ѡͼƬ',
|
23 |
+
mouseover : '���������ʱ',
|
24 |
+
mouseout : '����뿪ʱ',
|
25 |
+
misc : '����',
|
26 |
+
example_img : '��ʾ Ԥ�� ͼƬ',
|
27 |
+
missing_alt : '��ȷ��Ҫ��û��ͼƬ˵��������¼����� ���������ر�ͼƬ������û�����ע�����������ͼƬ��'
|
28 |
+
});
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advimage/readme.txt
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advlink/css/advlink.css
RENAMED
File without changes
|
tinymce-advanced/mce/advlink/editor_plugin.js
ADDED
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z spocke $
|
3 |
+
*
|
4 |
+
* @author Moxiecode
|
5 |
+
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
6 |
+
*/
|
7 |
+
|
8 |
+
// UK lang variables
|
9 |
+
tadvmce = realTinyMCE;
|
10 |
+
tadvmce.addToLang('advlink',{
|
11 |
+
general_tab : 'General',
|
12 |
+
popup_tab : 'Popup',
|
13 |
+
events_tab : 'Events',
|
14 |
+
advanced_tab : 'Advanced',
|
15 |
+
general_props : 'General properties',
|
16 |
+
popup_props : 'Popup properties',
|
17 |
+
event_props : 'Events',
|
18 |
+
advanced_props : 'Advanced properties',
|
19 |
+
popup_opts : 'Options',
|
20 |
+
anchor_names : 'Anchors',
|
21 |
+
target_same : 'Open in this window / frame',
|
22 |
+
target_parent : 'Open in parent window / frame',
|
23 |
+
target_top : 'Open in top frame (replaces all frames)',
|
24 |
+
target_blank : 'Open in new window',
|
25 |
+
popup : 'Javascript popup',
|
26 |
+
popup_url : 'Popup URL',
|
27 |
+
popup_name : 'Window name',
|
28 |
+
popup_return : 'Insert \'return false\'',
|
29 |
+
popup_scrollbars : 'Show scrollbars',
|
30 |
+
popup_statusbar : 'Show status bar',
|
31 |
+
popup_toolbar : 'Show toolbars',
|
32 |
+
popup_menubar : 'Show menu bar',
|
33 |
+
popup_location : 'Show location bar',
|
34 |
+
popup_resizable : 'Make window resizable',
|
35 |
+
popup_dependent : 'Dependent (Mozilla/Firefox only)',
|
36 |
+
popup_size : 'Size',
|
37 |
+
popup_position : 'Position (X/Y)',
|
38 |
+
id : 'Id',
|
39 |
+
style: 'Style',
|
40 |
+
classes : 'Classes',
|
41 |
+
target_name : 'Target name',
|
42 |
+
langdir : 'Language direction',
|
43 |
+
target_langcode : 'Target language',
|
44 |
+
langcode : 'Language code',
|
45 |
+
encoding : 'Target character encoding',
|
46 |
+
mime : 'Target MIME type',
|
47 |
+
rel : 'Relationship page to target',
|
48 |
+
rev : 'Relationship target to page',
|
49 |
+
tabindex : 'Tabindex',
|
50 |
+
accesskey : 'Accesskey',
|
51 |
+
ltr : 'Left to right',
|
52 |
+
rtl : 'Right to left'
|
53 |
+
});
|
54 |
+
|
55 |
+
/* Import plugin specific language pack */
|
56 |
+
tinyMCE.importPluginLanguagePack('advlink');
|
57 |
+
|
58 |
+
var TinyMCE_AdvancedLinkPlugin = {
|
59 |
+
getInfo : function() {
|
60 |
+
return {
|
61 |
+
longname : 'Advanced link',
|
62 |
+
author : 'Moxiecode Systems AB',
|
63 |
+
authorurl : 'http://tinymce.moxiecode.com',
|
64 |
+
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink',
|
65 |
+
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
|
66 |
+
};
|
67 |
+
},
|
68 |
+
|
69 |
+
initInstance : function(inst) {
|
70 |
+
inst.addShortcut('ctrl', 'k', 'lang_advlink_desc', 'mceAdvLink');
|
71 |
+
},
|
72 |
+
|
73 |
+
getControlHTML : function(cn) {
|
74 |
+
switch (cn) {
|
75 |
+
case "link":
|
76 |
+
return tinyMCE.getButtonHTML(cn, 'lang_link_desc', '{$themeurl}/images/link.gif', 'mceAdvLink');
|
77 |
+
}
|
78 |
+
|
79 |
+
return "";
|
80 |
+
},
|
81 |
+
|
82 |
+
execCommand : function(editor_id, element, command, user_interface, value) {
|
83 |
+
switch (command) {
|
84 |
+
case "mceAdvLink":
|
85 |
+
var anySelection = false;
|
86 |
+
var inst = tinyMCE.getInstanceById(editor_id);
|
87 |
+
var focusElm = inst.getFocusElement();
|
88 |
+
var selectedText = inst.selection.getSelectedText();
|
89 |
+
|
90 |
+
if (tinyMCE.selectedElement)
|
91 |
+
anySelection = (tinyMCE.selectedElement.nodeName.toLowerCase() == "img") || (selectedText && selectedText.length > 0);
|
92 |
+
|
93 |
+
if (anySelection || (focusElm != null && focusElm.nodeName == "A")) {
|
94 |
+
var template = new Array();
|
95 |
+
|
96 |
+
template['file'] = tinyMCE.baseURL + '/../../../wp-content/plugins/tinymce-advanced/mce/advlink/link.htm';
|
97 |
+
template['width'] = 480;
|
98 |
+
template['height'] = 400;
|
99 |
+
|
100 |
+
// Language specific width and height addons
|
101 |
+
template['width'] += tinyMCE.getLang('lang_advlink_delta_width', 0);
|
102 |
+
template['height'] += tinyMCE.getLang('lang_advlink_delta_height', 0);
|
103 |
+
|
104 |
+
tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes"});
|
105 |
+
}
|
106 |
+
|
107 |
+
return true;
|
108 |
+
}
|
109 |
+
|
110 |
+
return false;
|
111 |
+
},
|
112 |
+
|
113 |
+
handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) {
|
114 |
+
if (node == null)
|
115 |
+
return;
|
116 |
+
|
117 |
+
do {
|
118 |
+
if (node.nodeName == "A" && tinyMCE.getAttrib(node, 'href') != "") {
|
119 |
+
tinyMCE.switchClass(editor_id + '_advlink', 'mceButtonSelected');
|
120 |
+
return true;
|
121 |
+
}
|
122 |
+
} while ((node = node.parentNode));
|
123 |
+
|
124 |
+
if (any_selection) {
|
125 |
+
tinyMCE.switchClass(editor_id + '_advlink', 'mceButtonNormal');
|
126 |
+
return true;
|
127 |
+
}
|
128 |
+
|
129 |
+
tinyMCE.switchClass(editor_id + '_advlink', 'mceButtonDisabled');
|
130 |
+
|
131 |
+
return true;
|
132 |
+
}
|
133 |
+
};
|
134 |
+
|
135 |
+
tinyMCE.addPlugin("advlink", TinyMCE_AdvancedLinkPlugin);
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advlink/jscripts/functions.js
RENAMED
@@ -131,14 +131,6 @@ function init() {
|
|
131 |
window.focus();
|
132 |
}
|
133 |
|
134 |
-
function checkPrefix(n) {
|
135 |
-
if (Validator.isEmail(n) && !/^\s*mailto:/i.test(n.value) && confirm(tinyMCE.getLang('lang_is_email')))
|
136 |
-
n.value = 'mailto:' + n.value;
|
137 |
-
|
138 |
-
if (/^\s*www./i.test(n.value) && confirm(tinyMCE.getLang('lang_is_external')))
|
139 |
-
n.value = 'http://' + n.value;
|
140 |
-
}
|
141 |
-
|
142 |
function setFormValue(name, value) {
|
143 |
document.forms[0].elements[name].value = value;
|
144 |
}
|
@@ -399,14 +391,15 @@ function setAttrib(elm, attrib, value) {
|
|
399 |
|
400 |
function getAnchorListHTML(id, target) {
|
401 |
var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id'));
|
402 |
-
var nodes = inst.getBody().getElementsByTagName("a")
|
|
|
403 |
var html = "";
|
404 |
|
405 |
html += '<select id="' + id + '" name="' + id + '" class="mceAnchorList" onfocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="this.form.' + target + '.value=';
|
406 |
html += 'this.options[this.selectedIndex].value;">';
|
407 |
html += '<option value="">---</option>';
|
408 |
|
409 |
-
for (i=0; i<nodes.length; i++) {
|
410 |
if ((name = tinyMCE.getAttrib(nodes[i], "name")) != "")
|
411 |
html += '<option value="#' + name + '">' + name + '</option>';
|
412 |
}
|
@@ -420,8 +413,6 @@ function insertAction() {
|
|
420 |
var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id'));
|
421 |
var elm = inst.getFocusElement();
|
422 |
|
423 |
-
checkPrefix(document.forms[0].href);
|
424 |
-
|
425 |
elm = tinyMCE.getParentElement(elm, "a");
|
426 |
|
427 |
tinyMCEPopup.execCommand("mceBeginUndoLevel");
|
@@ -437,16 +428,7 @@ function insertAction() {
|
|
437 |
for (var i=0; i<elementArray.length; i++) {
|
438 |
var elm = elementArray[i];
|
439 |
|
440 |
-
// Move cursor to end
|
441 |
-
try {
|
442 |
-
tinyMCE.selectedInstance.selection.collapse(false);
|
443 |
-
} catch (ex) {
|
444 |
-
// Ignore
|
445 |
-
}
|
446 |
-
|
447 |
// Move cursor behind the new anchor
|
448 |
-
// Don't remember why this was needed so it's now removed
|
449 |
-
/*
|
450 |
if (tinyMCE.isGecko) {
|
451 |
var sp = inst.getDoc().createTextNode(" ");
|
452 |
|
@@ -465,7 +447,6 @@ function insertAction() {
|
|
465 |
sel.removeAllRanges();
|
466 |
sel.addRange(rng);
|
467 |
}
|
468 |
-
*/
|
469 |
|
470 |
setAllAttribs(elm);
|
471 |
}
|
131 |
window.focus();
|
132 |
}
|
133 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
function setFormValue(name, value) {
|
135 |
document.forms[0].elements[name].value = value;
|
136 |
}
|
391 |
|
392 |
function getAnchorListHTML(id, target) {
|
393 |
var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id'));
|
394 |
+
var nodes = inst.getBody().getElementsByTagName("a");
|
395 |
+
|
396 |
var html = "";
|
397 |
|
398 |
html += '<select id="' + id + '" name="' + id + '" class="mceAnchorList" onfocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="this.form.' + target + '.value=';
|
399 |
html += 'this.options[this.selectedIndex].value;">';
|
400 |
html += '<option value="">---</option>';
|
401 |
|
402 |
+
for (var i=0; i<nodes.length; i++) {
|
403 |
if ((name = tinyMCE.getAttrib(nodes[i], "name")) != "")
|
404 |
html += '<option value="#' + name + '">' + name + '</option>';
|
405 |
}
|
413 |
var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id'));
|
414 |
var elm = inst.getFocusElement();
|
415 |
|
|
|
|
|
416 |
elm = tinyMCE.getParentElement(elm, "a");
|
417 |
|
418 |
tinyMCEPopup.execCommand("mceBeginUndoLevel");
|
428 |
for (var i=0; i<elementArray.length; i++) {
|
429 |
var elm = elementArray[i];
|
430 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
431 |
// Move cursor behind the new anchor
|
|
|
|
|
432 |
if (tinyMCE.isGecko) {
|
433 |
var sp = inst.getDoc().createTextNode(" ");
|
434 |
|
447 |
sel.removeAllRanges();
|
448 |
sel.addRange(rng);
|
449 |
}
|
|
|
450 |
|
451 |
setAllAttribs(elm);
|
452 |
}
|
tinymce-advanced/mce/advlink/langs/de_de.js
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// DE lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('advlink',{
|
4 |
+
general_tab : 'Allgemein',
|
5 |
+
popup_tab : 'Popup',
|
6 |
+
events_tab : 'Events',
|
7 |
+
advanced_tab : 'Erweitert',
|
8 |
+
general_props : 'Allgemeine Eigenschaften',
|
9 |
+
popup_props : 'Popup-Eigenschaften',
|
10 |
+
event_props : 'Javascript-Events',
|
11 |
+
advanced_props : 'Erweiterte Eigenschaften',
|
12 |
+
popup_opts : 'Optionen',
|
13 |
+
anchor_names : 'Anker',
|
14 |
+
target_same : 'In diesem Fenster/Frame öffnen (_self)',
|
15 |
+
target_parent : 'Im übergeordneten Fenster/Frame öffnen (_parent)',
|
16 |
+
target_top : 'Im Fenster öffnen (ersetzt alle Frames) (_top)',
|
17 |
+
target_blank : '_blank - In neuem Fenster öffnen',
|
18 |
+
popup : 'Javascript-Popup',
|
19 |
+
popup_url : 'Popup-URL',
|
20 |
+
popup_name : 'Popup-Name',
|
21 |
+
popup_return : 'Mit \'return false\' einfügen',
|
22 |
+
popup_scrollbars : 'Scrollleisten anzeigen',
|
23 |
+
popup_statusbar : 'Statuszeilen anzeigen',
|
24 |
+
popup_toolbar : 'Werkzeugleisten anzeigen',
|
25 |
+
popup_menubar : 'Menüleiste anzeigen',
|
26 |
+
popup_location : 'Adresszeile anzeigen',
|
27 |
+
popup_resizable : 'Fenstergröße veränderbar',
|
28 |
+
popup_dependent : 'Abhängiges Fenster (Nur Mozilla/Firefox)',
|
29 |
+
popup_size : 'Größe',
|
30 |
+
popup_position : 'Position (X/Y)',
|
31 |
+
id : 'ID',
|
32 |
+
style: 'CSS-Stil',
|
33 |
+
classes : 'CSS-Klassen',
|
34 |
+
target_name : 'Zielname',
|
35 |
+
langdir : 'Textfluss',
|
36 |
+
target_langcode : 'Zielsprache',
|
37 |
+
langcode : 'Sprach-Code',
|
38 |
+
encoding : 'Zeichenkodierung',
|
39 |
+
mime : 'MIME-Typ',
|
40 |
+
rel : 'Verhältnis Seite zu Ziel',
|
41 |
+
rev : 'Verhältnis Ziel zu Seite',
|
42 |
+
tabindex : 'Tabulator-Index',
|
43 |
+
accesskey : 'Tastaturkürzel',
|
44 |
+
ltr : 'Von links nach rechts',
|
45 |
+
rtl : 'Von rechts nach links'
|
46 |
+
});
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advlink/langs/en.js
RENAMED
@@ -43,4 +43,4 @@ tabindex : 'Tabindex',
|
|
43 |
accesskey : 'Accesskey',
|
44 |
ltr : 'Left to right',
|
45 |
rtl : 'Right to left'
|
46 |
-
});
|
43 |
accesskey : 'Accesskey',
|
44 |
ltr : 'Left to right',
|
45 |
rtl : 'Right to left'
|
46 |
+
});
|
tinymce-advanced/mce/advlink/langs/es_es.js
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* ES lang variables
|
3 |
+
*
|
4 |
+
* Authors : Alvaro Velasco,
|
5 |
+
* Adolfo Sanz De Diego (asanzdiego) <asanzdiego@yahoo.es>,
|
6 |
+
* Carlos C Soto (eclipxe) <csoto@sia-solutions.com>
|
7 |
+
* Eneko Castresana Vara
|
8 |
+
* Last Updated : July 14, 2006
|
9 |
+
* TinyMCE Version : 2.0.6.1
|
10 |
+
*/
|
11 |
+
|
12 |
+
tinyMCE.addToLang('advlink',{
|
13 |
+
general_tab : 'General',
|
14 |
+
popup_tab : 'Popup',
|
15 |
+
events_tab : 'Eventos',
|
16 |
+
advanced_tab : 'Avanzado',
|
17 |
+
general_props : 'Propiedades generales',
|
18 |
+
popup_props : 'Propiedades de la popup',
|
19 |
+
event_props : 'Eventos',
|
20 |
+
advanced_props : 'Propiedades avanzadas',
|
21 |
+
popup_opts : 'Opciones',
|
22 |
+
anchor_names : 'Anclas',
|
23 |
+
target_same : 'Abrir en esta ventana/frame',
|
24 |
+
target_parent : 'Abrir en la ventana/frame padre',
|
25 |
+
target_top : 'Abrir el frame superior (replaza todos los frames)',
|
26 |
+
target_blank : 'Abrir en una ventana nueva',
|
27 |
+
popup : 'Popup con JavaScript',
|
28 |
+
popup_url : 'Dirección de la popup',
|
29 |
+
popup_name : 'Nombre de la ventana',
|
30 |
+
popup_return : 'Insertar \'return false\'',
|
31 |
+
popup_scrollbars : 'Mostrar barras de scroll',
|
32 |
+
popup_statusbar : 'Mostrar barra de estado',
|
33 |
+
popup_toolbar : 'Mostrar barras de tarea',
|
34 |
+
popup_menubar : 'Mostrar barra de menu',
|
35 |
+
popup_location : 'Mostrar barra de direcciones',
|
36 |
+
popup_resizable : 'La ventana puede cambiar de tamaño',
|
37 |
+
popup_dependent : 'Dependiente (solo Mozilla/Firefox)',
|
38 |
+
popup_size : 'Tamaño',
|
39 |
+
popup_position : 'Posición (X/Y)',
|
40 |
+
id : 'Id',
|
41 |
+
style: 'Estilo',
|
42 |
+
classes : 'Clases',
|
43 |
+
target_name : 'Nombre del target',
|
44 |
+
langdir : 'Dirección del texto',
|
45 |
+
target_langcode : 'Idioma del target',
|
46 |
+
langcode : 'Código del idioma',
|
47 |
+
encoding : 'Codificación de los carácteres del target',
|
48 |
+
mime : 'Tipo MIME del target',
|
49 |
+
rel : 'Relación de la página con el target',
|
50 |
+
rev : 'Relación del target con la página',
|
51 |
+
tabindex : 'Indice para la tabulación',
|
52 |
+
accesskey : 'Tecla de acceso',
|
53 |
+
ltr : 'de izquierda a derecha',
|
54 |
+
rtl : 'de derecha a izquierda'
|
55 |
+
});
|
tinymce-advanced/mce/advlink/langs/fr_fr.js
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// FR lang variables
|
2 |
+
// Modified by Motte, last updated 2006-03-23
|
3 |
+
|
4 |
+
tinyMCE.addToLang('advlink',{
|
5 |
+
popup_missingtarget : 'Veuillez insérer un nom pour la cible ou choisissez une autre option.',
|
6 |
+
general_tab : 'Général',
|
7 |
+
popup_tab : 'Popup',
|
8 |
+
events_tab : 'Evênements',
|
9 |
+
advanced_tab : 'Avancé',
|
10 |
+
general_props : 'Propriétés générales',
|
11 |
+
popup_props : 'Propriétés Popup',
|
12 |
+
event_props : 'Evênements',
|
13 |
+
advanced_props : 'Propriétés Avancées',
|
14 |
+
popup_opts : 'Options',
|
15 |
+
anchor_names : 'Ancres',
|
16 |
+
target_same : 'Ouvre dans la même fenêtre / Cadre',
|
17 |
+
target_parent : 'Ouvre dans la fenêtre / cadre parente',
|
18 |
+
target_top : 'Ouvre dans le Top frame (remplace toutes les cadres)',
|
19 |
+
target_blank : 'Ouvre dans une nouvelle fenêtre',
|
20 |
+
popup : 'JS-Popup',
|
21 |
+
popup_url : 'URL de la Popup',
|
22 |
+
popup_name : 'Nom de la fenêtre',
|
23 |
+
popup_return : 'Insert \'return false\'',
|
24 |
+
popup_scrollbars : 'Montrer la barre de défilement ',
|
25 |
+
popup_statusbar : 'Montrer la barre d\'état',
|
26 |
+
popup_toolbar : 'Montrer la barre d\'outils',
|
27 |
+
popup_menubar : 'Montrer la barre du menu',
|
28 |
+
popup_location : 'Montre la barre d\'adresse',
|
29 |
+
popup_resizable : 'Fabriquer une fenêtre redimensionnable',
|
30 |
+
popup_dependent : 'Dependent (Mozilla/Firefox only)',
|
31 |
+
popup_size : 'Taille',
|
32 |
+
popup_position : 'Position (X/Y)',
|
33 |
+
id : 'Id',
|
34 |
+
style: 'Style',
|
35 |
+
classes : 'Classes',
|
36 |
+
target_name : 'Nom de la cible',
|
37 |
+
langdir : 'Sens d\'écriture',
|
38 |
+
target_langcode : 'Langage cible',
|
39 |
+
langcode : 'Code langue',
|
40 |
+
encoding : 'Codage caractères de la cible',
|
41 |
+
mime : 'Type MIME de la cible',
|
42 |
+
rel : 'Page relative à la cible',
|
43 |
+
rev : 'Cible relative à la page',
|
44 |
+
tabindex : 'Tabindex',
|
45 |
+
accesskey : 'Touche d\'accès',
|
46 |
+
ltr : 'De gauche à droite',
|
47 |
+
rtl : 'De droite à gauche'
|
48 |
+
});
|
tinymce-advanced/mce/advlink/langs/it_it.js
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* IT lang variables
|
3 |
+
*
|
4 |
+
* Author : Luciano Vernaschi <luciano@virgilio.it>
|
5 |
+
* Last Updated : Mar. 1st, 2007
|
6 |
+
* TinyMCE Version : 2.1.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
tinyMCE.addToLang('advlink',{
|
10 |
+
general_tab : 'Generale',
|
11 |
+
popup_tab : 'Popup',
|
12 |
+
events_tab : 'Eventi',
|
13 |
+
advanced_tab : 'Avanzate',
|
14 |
+
general_props : 'Proprietà generali',
|
15 |
+
popup_props : 'Proprietà del popup',
|
16 |
+
event_props : 'Eventi',
|
17 |
+
advanced_props : 'Proprietà avanzate',
|
18 |
+
popup_opts : 'Opzioni',
|
19 |
+
anchor_names : 'Ancore',
|
20 |
+
target_same : 'Apri nella stessa finestra o frame',
|
21 |
+
target_parent : 'Apri nella finestra o nel frame superiori',
|
22 |
+
target_top : 'Apri nel frame principale (occupa tutta la finestra)',
|
23 |
+
target_blank : 'Apri in una nuova finestra',
|
24 |
+
popup : 'Popup Javascript',
|
25 |
+
popup_url : 'URL del popup',
|
26 |
+
popup_name : 'Nome della finestra',
|
27 |
+
popup_return : 'Inserisci \'return false\'',
|
28 |
+
popup_scrollbars : 'Mostra le barre di scorrimento',
|
29 |
+
popup_statusbar : 'Mostra la barra di stato',
|
30 |
+
popup_toolbar : 'Mostra la barra degli strumenti',
|
31 |
+
popup_menubar : 'Mostra la barra dei menu',
|
32 |
+
popup_location : 'Mostra la barra degli indirizzi',
|
33 |
+
popup_resizable : 'Permetti di ridimensionare la finestra',
|
34 |
+
popup_dependent : 'Dipendente (solo Mozilla/Firefox)',
|
35 |
+
popup_size : 'Dimensioni',
|
36 |
+
popup_position : 'Posizione (X/Y)',
|
37 |
+
id : 'Id',
|
38 |
+
style: 'Stile',
|
39 |
+
classes : 'Classi',
|
40 |
+
target_name : 'Nome della destinazione',
|
41 |
+
langdir : 'Direzione del testo',
|
42 |
+
target_langcode : 'Codifica lingua destinazione',
|
43 |
+
langcode : 'Codifica lingua',
|
44 |
+
encoding : 'Codifica caratteri destinazione',
|
45 |
+
mime : 'Tipo MIME destinazione',
|
46 |
+
rel : 'Relazione pagina-destinazione',
|
47 |
+
rev : 'Relazione destinazione-pagina',
|
48 |
+
tabindex : 'Indice TAB',
|
49 |
+
accesskey : 'Tasto di accesso',
|
50 |
+
ltr : 'Da sinistra a destra',
|
51 |
+
rtl : 'Da destra a sinistra'
|
52 |
+
});
|
tinymce-advanced/mce/advlink/langs/pt_br.js
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* pt_br lang variables
|
3 |
+
* Brazilian Portuguese
|
4 |
+
*
|
5 |
+
* Author
|
6 |
+
* Revision and modifications:
|
7 |
+
* Marcio Barbosa (mpg) <mpg@mpg.com.br>
|
8 |
+
* First Release : November 26, 2005 - TinyMCE Version : 2.0RC4
|
9 |
+
* Last Updated : November 20, 2006 - TinyMCE Version : 2.0.8
|
10 |
+
*/
|
11 |
+
tinyMCE.addToLang('advlink',{
|
12 |
+
general_tab : 'Geral',
|
13 |
+
popup_tab : 'Popup',
|
14 |
+
events_tab : 'Eventos',
|
15 |
+
advanced_tab : 'Avan�ado',
|
16 |
+
general_props : 'Propriedades gerais',
|
17 |
+
popup_props : 'Propriedades do popup',
|
18 |
+
event_props : 'Eventos',
|
19 |
+
advanced_props : 'Propriedades avan�adas',
|
20 |
+
popup_opts : 'Op��es',
|
21 |
+
anchor_names : '�ncoras',
|
22 |
+
target_same : 'Abrir nesta janela/frame',
|
23 |
+
target_parent : 'Abrir na janela/frame',
|
24 |
+
target_top : 'Abrir na janela superior (repondo todas as frames)',
|
25 |
+
target_blank : 'Abrir em uma nova janela',
|
26 |
+
popup : 'Javascript popup',
|
27 |
+
popup_url : 'Popup de uma URL',
|
28 |
+
popup_name : 'Nome da janela',
|
29 |
+
popup_return : 'Inserir \'retorna falso\'',
|
30 |
+
popup_scrollbars : 'Mostrar barra de rolagem',
|
31 |
+
popup_statusbar : 'Mostrar barra de status',
|
32 |
+
popup_toolbar : 'Mostrar barra de ferramentas',
|
33 |
+
popup_menubar : 'Mostrar barra do menu',
|
34 |
+
popup_location : 'Mostrar barra de endere�o',
|
35 |
+
popup_resizable : 'Permite redimensionamento da janela',
|
36 |
+
popup_dependent : 'Dependente (somente para Mozilla/Firefox)',
|
37 |
+
popup_size : 'Tamanho',
|
38 |
+
popup_position : 'Posi��o (X/Y)',
|
39 |
+
id : 'Id',
|
40 |
+
style: 'Estilo',
|
41 |
+
classes : 'Classes',
|
42 |
+
target_name : 'Nome do destino',
|
43 |
+
langdir : 'Dire��o do texto',
|
44 |
+
target_langcode : 'Idioma do destino',
|
45 |
+
langcode : 'C�digo do idioma',
|
46 |
+
encoding : 'Tipo de codifi��o de caractere de destino',
|
47 |
+
mime : 'Tipo de MIME do destino',
|
48 |
+
rel : 'Relacionamento da p�gina com o destino',
|
49 |
+
rev : 'Relacionamento do destino com a p�gina',
|
50 |
+
tabindex : 'Tabindex',
|
51 |
+
accesskey : 'Accesskey',
|
52 |
+
ltr : 'Esquerda para direita',
|
53 |
+
rtl : 'Direita para esquerda'
|
54 |
+
});
|
tinymce-advanced/mce/advlink/langs/ru_ru.js
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// RU lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('advlink',{
|
4 |
+
general_tab : 'Основные',
|
5 |
+
popup_tab : 'Всплывающие',
|
6 |
+
events_tab : 'События',
|
7 |
+
advanced_tab : 'Расширенные',
|
8 |
+
general_props : 'Основные свойства',
|
9 |
+
popup_props : 'Свойства всплывющих элементов',
|
10 |
+
event_props : 'События',
|
11 |
+
advanced_props : 'Расширенные настройки',
|
12 |
+
popup_opts : 'Опции',
|
13 |
+
anchor_names : 'Якоря',
|
14 |
+
target_same : 'Открывать в этом окне / фрейме',
|
15 |
+
target_parent : 'Открывать в родительском окне / фрейме',
|
16 |
+
target_top : 'Открывать в верхнем фрейме (заменять все фреймы)',
|
17 |
+
target_blank : 'Открывать в новом окне',
|
18 |
+
popup : 'Всплывающее окно Javascript',
|
19 |
+
popup_url : 'Всплывающий URL',
|
20 |
+
popup_name : 'Имя окна',
|
21 |
+
popup_return : 'Вставить \'return false\'',
|
22 |
+
popup_scrollbars : 'Показывать линейки прокрутки',
|
23 |
+
popup_statusbar : 'Показывать строку состояния',
|
24 |
+
popup_toolbar : 'Показывать панели инструментов',
|
25 |
+
popup_menubar : 'Показывать панель меню',
|
26 |
+
popup_location : 'Показывать панель расположения',
|
27 |
+
popup_resizable : 'Позволить изменять размеры окна',
|
28 |
+
popup_dependent : 'Зависимость (только Mozilla/Firefox)',
|
29 |
+
popup_size : 'Размер',
|
30 |
+
popup_position : 'Расположение (X/Y)',
|
31 |
+
id : 'Id',
|
32 |
+
style: 'Стиль',
|
33 |
+
classes : 'Классы',
|
34 |
+
target_name : 'Имя цели',
|
35 |
+
langdir : 'Направление письма в языке',
|
36 |
+
target_langcode : 'Целевой язык',
|
37 |
+
langcode : 'Код языка',
|
38 |
+
encoding : 'Целевая кодировка',
|
39 |
+
mime : 'Целевой MIME тип',
|
40 |
+
rel : 'Зависимость страница -> цель',
|
41 |
+
rev : 'Зависимость цель -> страница',
|
42 |
+
tabindex : 'Индекс таблицы',
|
43 |
+
accesskey : 'Ключ доступа',
|
44 |
+
ltr : 'Слева направо',
|
45 |
+
rtl : 'Справа налево'
|
46 |
+
});
|
tinymce-advanced/mce/advlink/langs/zh_cn.js
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// Simplified Chinese lang variables contributed by TinyMCE_China_Team ( tinymce_china {AT} yahoogroups {DOT} com ).
|
2 |
+
// visit our homepage at: http://www.cube316.net/tinymce/ for more information.
|
3 |
+
|
4 |
+
tinyMCE.addToLang('advlink',{
|
5 |
+
general_tab : 'һ��',
|
6 |
+
popup_tab : '����',
|
7 |
+
events_tab : '�¼�',
|
8 |
+
advanced_tab : '��',
|
9 |
+
general_props : 'һ������',
|
10 |
+
popup_props : '��������',
|
11 |
+
event_props : '�¼�����',
|
12 |
+
advanced_props : '������',
|
13 |
+
popup_opts : 'ѡ��',
|
14 |
+
anchor_names : '�',
|
15 |
+
target_same : '�ڵ�ǰ����/����д�',
|
16 |
+
target_parent : '�ڸ�����/����д�',
|
17 |
+
target_top : '�ڶ��˴���/����д�',
|
18 |
+
target_blank : '���´����д�',
|
19 |
+
popup : 'Javascript ����',
|
20 |
+
popup_url : '������ַ',
|
21 |
+
popup_name : '����������',
|
22 |
+
popup_return : '���� \'return false\'',
|
23 |
+
popup_scrollbars : '��ʾ������',
|
24 |
+
popup_statusbar : '��ʾ״̬��',
|
25 |
+
popup_toolbar : '��ʾ������',
|
26 |
+
popup_menubar : '��ʾ�˵���',
|
27 |
+
popup_location : '��ʾ��ַ��',
|
28 |
+
popup_resizable : '���ڴ�С�ɱ�',
|
29 |
+
popup_dependent : 'Dependent (������ Mozilla/Firefox)',
|
30 |
+
popup_size : '��С',
|
31 |
+
popup_position : '� (X/Y)',
|
32 |
+
id : '��ʶ',
|
33 |
+
style: '��ʽ',
|
34 |
+
classes : '��',
|
35 |
+
target_name : 'Ŀ������',
|
36 |
+
langdir : '�����',
|
37 |
+
target_langcode : 'Ŀ������',
|
38 |
+
langcode : '���Ա���',
|
39 |
+
encoding : 'Ŀ�����ֱ���',
|
40 |
+
mime : 'Ŀ�� MIME ����',
|
41 |
+
rel : 'ҳ��Ŀ��Ĺ�ϵ',
|
42 |
+
rev : 'Ŀ����ҳ�Ĺ�ϵ',
|
43 |
+
tabindex : 'Tabindex',
|
44 |
+
accesskey : '��ݼ�',
|
45 |
+
ltr : '������',
|
46 |
+
rtl : '���ҵ���'
|
47 |
+
});
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advlink/link.htm
RENAMED
@@ -1,10 +1,9 @@
|
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_insert_link_title}</title>
|
4 |
-
<script language="javascript" type="text/javascript" src="
|
5 |
-
<script language="javascript" type="text/javascript" src="
|
6 |
-
<script language="javascript" type="text/javascript" src="
|
7 |
-
<script language="javascript" type="text/javascript" src="../../utils/validate.js"></script>
|
8 |
<script language="javascript" type="text/javascript" src="jscripts/functions.js"></script>
|
9 |
<link href="css/advlink.css" rel="stylesheet" type="text/css" />
|
10 |
<base target="_self" />
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_insert_link_title}</title>
|
4 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/tiny_mce_popup.js"></script>
|
5 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/mctabs.js"></script>
|
6 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/form_utils.js"></script>
|
|
|
7 |
<script language="javascript" type="text/javascript" src="jscripts/functions.js"></script>
|
8 |
<link href="css/advlink.css" rel="stylesheet" type="text/css" />
|
9 |
<base target="_self" />
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/advlink/readme.txt
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/contextmenu/css/contextmenu.css
RENAMED
File without changes
|
add_to_tinymce_directory/plugins/contextmenu/editor_plugin_src.js → tinymce-advanced/mce/contextmenu/editor_plugin.js
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* $Id: editor_plugin_src.js
|
3 |
*
|
4 |
* @author Moxiecode
|
5 |
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
@@ -7,7 +7,7 @@
|
|
7 |
|
8 |
/* Import plugin specific language pack */
|
9 |
if (!tinyMCE.settings['contextmenu_skip_plugin_css']) {
|
10 |
-
tinyMCE.loadCSS(tinyMCE.baseURL + "/plugins/contextmenu/css/contextmenu.css");
|
11 |
}
|
12 |
|
13 |
var TinyMCE_ContextMenuPlugin = {
|
@@ -31,7 +31,7 @@ var TinyMCE_ContextMenuPlugin = {
|
|
31 |
|
32 |
TinyMCE_ContextMenuPlugin._contextMenu = new TinyMCE_ContextMenu({
|
33 |
commandhandler : "TinyMCE_ContextMenuPlugin._commandHandler",
|
34 |
-
spacer_image : tinyMCE.baseURL + "/plugins/contextmenu/images/spacer.gif"
|
35 |
});
|
36 |
|
37 |
// Add hide event handles
|
@@ -73,9 +73,6 @@ var TinyMCE_ContextMenuPlugin = {
|
|
73 |
},
|
74 |
|
75 |
_showContextMenu : function(e, inst) {
|
76 |
-
if (e.ctrlKey)
|
77 |
-
return true;
|
78 |
-
|
79 |
function getAttrib(elm, name) {
|
80 |
return elm.getAttribute(name) ? elm.getAttribute(name) : "";
|
81 |
}
|
@@ -117,16 +114,16 @@ var TinyMCE_ContextMenuPlugin = {
|
|
117 |
|
118 |
// If flash
|
119 |
if (tinyMCE.hasPlugin('flash') && tinyMCE.getAttrib(elm, 'class').indexOf('mceItemFlash') != -1)
|
120 |
-
contextMenu.addItem(tinyMCE.baseURL + "/plugins/flash/images/flash.gif", "$lang_flash_props", "mceFlash");
|
121 |
else if (tinyMCE.hasPlugin('media') && /mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(tinyMCE.getAttrib(elm, 'class')))
|
122 |
-
contextMenu.addItem(tinyMCE.baseURL + "/plugins/flash/images/flash.gif", "$lang_media_title", "mceMedia");
|
123 |
else
|
124 |
contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/image.gif", "$lang_image_props_desc", inst.hasPlugin("advimage") ? "mceAdvImage" : "mceImage");
|
125 |
break;
|
126 |
|
127 |
case "HR":
|
128 |
contextMenu.addSeparator();
|
129 |
-
contextMenu.addItem(tinyMCE.baseURL + "/plugins/advhr/images/advhr.gif", "$lang_insert_advhr_desc", "mceAdvancedHr");
|
130 |
break;
|
131 |
|
132 |
case "TABLE":
|
@@ -150,22 +147,22 @@ var TinyMCE_ContextMenuPlugin = {
|
|
150 |
contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/justifyright.gif", "$lang_justifyright_desc", "JustifyRight", "", false);
|
151 |
contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/justifyfull.gif", "$lang_justifyfull_desc", "JustifyFull", "", false);*/
|
152 |
contextMenu.addSeparator();
|
153 |
-
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table.gif", "$lang_table_desc", "mceInsertTable", "insert");
|
154 |
-
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table.gif", "$lang_table_props_desc", "mceInsertTable");
|
155 |
-
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_cell_props.gif", "$lang_table_cell_desc", "mceTableCellProps");
|
156 |
-
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_delete.gif", "$lang_table_del", "mceTableDelete");
|
157 |
contextMenu.addSeparator();
|
158 |
-
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_row_props.gif", "$lang_table_row_desc", "mceTableRowProps");
|
159 |
-
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_insert_row_before.gif", "$lang_table_row_before_desc", "mceTableInsertRowBefore");
|
160 |
-
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_insert_row_after.gif", "$lang_table_row_after_desc", "mceTableInsertRowAfter");
|
161 |
-
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_delete_row.gif", "$lang_table_delete_row_desc", "mceTableDeleteRow");
|
162 |
contextMenu.addSeparator();
|
163 |
-
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_insert_col_before.gif", "$lang_table_col_before_desc", "mceTableInsertColBefore");
|
164 |
-
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_insert_col_after.gif", "$lang_table_col_after_desc", "mceTableInsertColAfter");
|
165 |
-
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_delete_col.gif", "$lang_table_delete_col_desc", "mceTableDeleteCol");
|
166 |
contextMenu.addSeparator();
|
167 |
-
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_split_cells.gif", "$lang_table_split_cells_desc", "mceTableSplitCells", "", (colspan == "1" && rowspan == "1"));
|
168 |
-
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_merge_cells.gif", "$lang_table_merge_cells_desc", "mceTableMergeCells", "", false);
|
169 |
}
|
170 |
break;
|
171 |
}
|
@@ -173,7 +170,7 @@ var TinyMCE_ContextMenuPlugin = {
|
|
173 |
// Add table specific
|
174 |
if (inst.hasPlugin("table")) {
|
175 |
contextMenu.addSeparator();
|
176 |
-
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table.gif", "$lang_table_desc", "mceInsertTable", "insert");
|
177 |
}
|
178 |
}
|
179 |
|
@@ -253,7 +250,7 @@ function TinyMCE_ContextMenu(settings) {
|
|
253 |
this.pop = window.createPopup();
|
254 |
doc = this.pop.document;
|
255 |
doc.open();
|
256 |
-
doc.write('<html><head><link href="' + tinyMCE.baseURL + '/plugins/contextmenu/css/contextmenu.css" rel="stylesheet" type="text/css" /></head><body unselectable="yes" class="contextMenuIEPopup"></body></html>');
|
257 |
doc.close();
|
258 |
}
|
259 |
};
|
1 |
/**
|
2 |
+
* $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z spocke $
|
3 |
*
|
4 |
* @author Moxiecode
|
5 |
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
7 |
|
8 |
/* Import plugin specific language pack */
|
9 |
if (!tinyMCE.settings['contextmenu_skip_plugin_css']) {
|
10 |
+
tinyMCE.loadCSS(tinyMCE.baseURL + "/../../../wp-content/plugins/tinymce-advanced/mce/contextmenu/css/contextmenu.css");
|
11 |
}
|
12 |
|
13 |
var TinyMCE_ContextMenuPlugin = {
|
31 |
|
32 |
TinyMCE_ContextMenuPlugin._contextMenu = new TinyMCE_ContextMenu({
|
33 |
commandhandler : "TinyMCE_ContextMenuPlugin._commandHandler",
|
34 |
+
spacer_image : tinyMCE.baseURL + "/../../../wp-content/plugins/tinymce-advanced/mce/contextmenu/images/spacer.gif"
|
35 |
});
|
36 |
|
37 |
// Add hide event handles
|
73 |
},
|
74 |
|
75 |
_showContextMenu : function(e, inst) {
|
|
|
|
|
|
|
76 |
function getAttrib(elm, name) {
|
77 |
return elm.getAttribute(name) ? elm.getAttribute(name) : "";
|
78 |
}
|
114 |
|
115 |
// If flash
|
116 |
if (tinyMCE.hasPlugin('flash') && tinyMCE.getAttrib(elm, 'class').indexOf('mceItemFlash') != -1)
|
117 |
+
contextMenu.addItem(tinyMCE.baseURL + "/../../../wp-content/plugins/tinymce-advanced/mce/flash/images/flash.gif", "$lang_flash_props", "mceFlash");
|
118 |
else if (tinyMCE.hasPlugin('media') && /mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(tinyMCE.getAttrib(elm, 'class')))
|
119 |
+
contextMenu.addItem(tinyMCE.baseURL + "/../../../wp-content/plugins/tinymce-advanced/mce/flash/images/flash.gif", "$lang_media_title", "mceMedia");
|
120 |
else
|
121 |
contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/image.gif", "$lang_image_props_desc", inst.hasPlugin("advimage") ? "mceAdvImage" : "mceImage");
|
122 |
break;
|
123 |
|
124 |
case "HR":
|
125 |
contextMenu.addSeparator();
|
126 |
+
contextMenu.addItem(tinyMCE.baseURL + "/../../../wp-content/plugins/tinymce-advanced/mce/advhr/images/advhr.gif", "$lang_insert_advhr_desc", "mceAdvancedHr");
|
127 |
break;
|
128 |
|
129 |
case "TABLE":
|
147 |
contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/justifyright.gif", "$lang_justifyright_desc", "JustifyRight", "", false);
|
148 |
contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/justifyfull.gif", "$lang_justifyfull_desc", "JustifyFull", "", false);*/
|
149 |
contextMenu.addSeparator();
|
150 |
+
contextMenu.addItem(tinyMCE.baseURL + "/../../../wp-content/plugins/tinymce-advanced/mce/table/images/table.gif", "$lang_table_desc", "mceInsertTable", "insert");
|
151 |
+
contextMenu.addItem(tinyMCE.baseURL + "/../../../wp-content/plugins/tinymce-advanced/mce/table/images/table.gif", "$lang_table_props_desc", "mceInsertTable");
|
152 |
+
contextMenu.addItem(tinyMCE.baseURL + "/../../../wp-content/plugins/tinymce-advanced/mce/table/images/table_cell_props.gif", "$lang_table_cell_desc", "mceTableCellProps");
|
153 |
+
contextMenu.addItem(tinyMCE.baseURL + "/../../../wp-content/plugins/tinymce-advanced/mce/table/images/table_delete.gif", "$lang_table_del", "mceTableDelete");
|
154 |
contextMenu.addSeparator();
|
155 |
+
contextMenu.addItem(tinyMCE.baseURL + "/../../../wp-content/plugins/tinymce-advanced/mce/table/images/table_row_props.gif", "$lang_table_row_desc", "mceTableRowProps");
|
156 |
+
contextMenu.addItem(tinyMCE.baseURL + "/../../../wp-content/plugins/tinymce-advanced/mce/table/images/table_insert_row_before.gif", "$lang_table_row_before_desc", "mceTableInsertRowBefore");
|
157 |
+
contextMenu.addItem(tinyMCE.baseURL + "/../../../wp-content/plugins/tinymce-advanced/mce/table/images/table_insert_row_after.gif", "$lang_table_row_after_desc", "mceTableInsertRowAfter");
|
158 |
+
contextMenu.addItem(tinyMCE.baseURL + "/../../../wp-content/plugins/tinymce-advanced/mce/table/images/table_delete_row.gif", "$lang_table_delete_row_desc", "mceTableDeleteRow");
|
159 |
contextMenu.addSeparator();
|
160 |
+
contextMenu.addItem(tinyMCE.baseURL + "/../../../wp-content/plugins/tinymce-advanced/mce/table/images/table_insert_col_before.gif", "$lang_table_col_before_desc", "mceTableInsertColBefore");
|
161 |
+
contextMenu.addItem(tinyMCE.baseURL + "/../../../wp-content/plugins/tinymce-advanced/mce/table/images/table_insert_col_after.gif", "$lang_table_col_after_desc", "mceTableInsertColAfter");
|
162 |
+
contextMenu.addItem(tinyMCE.baseURL + "/../../../wp-content/plugins/tinymce-advanced/mce/table/images/table_delete_col.gif", "$lang_table_delete_col_desc", "mceTableDeleteCol");
|
163 |
contextMenu.addSeparator();
|
164 |
+
contextMenu.addItem(tinyMCE.baseURL + "/../../../wp-content/plugins/tinymce-advanced/mce/table/images/table_split_cells.gif", "$lang_table_split_cells_desc", "mceTableSplitCells", "", (colspan == "1" && rowspan == "1"));
|
165 |
+
contextMenu.addItem(tinyMCE.baseURL + "/../../../wp-content/plugins/tinymce-advanced/mce/table/images/table_merge_cells.gif", "$lang_table_merge_cells_desc", "mceTableMergeCells", "", false);
|
166 |
}
|
167 |
break;
|
168 |
}
|
170 |
// Add table specific
|
171 |
if (inst.hasPlugin("table")) {
|
172 |
contextMenu.addSeparator();
|
173 |
+
contextMenu.addItem(tinyMCE.baseURL + "/../../../wp-content/plugins/tinymce-advanced/mce/table/images/table.gif", "$lang_table_desc", "mceInsertTable", "insert");
|
174 |
}
|
175 |
}
|
176 |
|
250 |
this.pop = window.createPopup();
|
251 |
doc = this.pop.document;
|
252 |
doc.open();
|
253 |
+
doc.write('<html><head><link href="' + tinyMCE.baseURL + '/../../../wp-content/plugins/tinymce-advanced/mce/contextmenu/css/contextmenu.css" rel="stylesheet" type="text/css" /></head><body unselectable="yes" class="contextMenuIEPopup"></body></html>');
|
254 |
doc.close();
|
255 |
}
|
256 |
};
|
tinymce-advanced/mce/contextmenu/images/spacer.gif
ADDED
Binary file
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/contextmenu/readme.txt
RENAMED
File without changes
|
tinymce-advanced/mce/emotions/editor_plugin.js
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z spocke $
|
3 |
+
*
|
4 |
+
* @author Moxiecode
|
5 |
+
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
6 |
+
*
|
7 |
+
* Modified to use the build-in smilies in WordPress.
|
8 |
+
*/
|
9 |
+
|
10 |
+
// UK lang variables
|
11 |
+
tadvmce = realTinyMCE;
|
12 |
+
tadvmce.addToLang('emotions',{
|
13 |
+
title : ':-)'
|
14 |
+
});
|
15 |
+
|
16 |
+
/* Import plugin specific language pack */
|
17 |
+
tinyMCE.importPluginLanguagePack('emotions');
|
18 |
+
|
19 |
+
// Plugin static class
|
20 |
+
var TinyMCE_EmotionsPlugin = {
|
21 |
+
getInfo : function() {
|
22 |
+
return {
|
23 |
+
longname : 'Emotions',
|
24 |
+
author : 'Moxiecode Systems AB',
|
25 |
+
authorurl : 'http://tinymce.moxiecode.com',
|
26 |
+
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions',
|
27 |
+
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
|
28 |
+
};
|
29 |
+
},
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Returns the HTML contents of the emotions control.
|
33 |
+
*/
|
34 |
+
getControlHTML : function(cn) {
|
35 |
+
switch (cn) {
|
36 |
+
case "emotions":
|
37 |
+
return tinyMCE.getButtonHTML(cn, 'lang_emotions_desc', '{$pluginurl}/images/emotions.gif', 'mceEmotion');
|
38 |
+
}
|
39 |
+
|
40 |
+
return "";
|
41 |
+
},
|
42 |
+
|
43 |
+
/**
|
44 |
+
* Executes the mceEmotion command.
|
45 |
+
*/
|
46 |
+
execCommand : function(editor_id, element, command, user_interface, value) {
|
47 |
+
// Handle commands
|
48 |
+
switch (command) {
|
49 |
+
case "mceEmotion":
|
50 |
+
var template = new Array();
|
51 |
+
|
52 |
+
template['file'] = tinyMCE.baseURL + '/../../../wp-content/plugins/tinymce-advanced/mce/emotions/emotions.htm'; // Relative to theme
|
53 |
+
template['width'] = 230;
|
54 |
+
template['height'] = 140;
|
55 |
+
|
56 |
+
// Language specific width and height addons
|
57 |
+
template['width'] += tinyMCE.getLang('lang_emotions_delta_width', 0);
|
58 |
+
template['height'] += tinyMCE.getLang('lang_emotions_delta_height', 0);
|
59 |
+
|
60 |
+
tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes"});
|
61 |
+
|
62 |
+
return true;
|
63 |
+
}
|
64 |
+
|
65 |
+
// Pass to next handler in chain
|
66 |
+
return false;
|
67 |
+
}
|
68 |
+
};
|
69 |
+
|
70 |
+
// Register plugin
|
71 |
+
tinyMCE.addPlugin('emotions', TinyMCE_EmotionsPlugin);
|
tinymce-advanced/mce/emotions/emotions.htm
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
+
<head>
|
3 |
+
<title>{$lang_emotions_title}</title>
|
4 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/tiny_mce_popup.js"></script>
|
5 |
+
|
6 |
+
<script language="javascript" type="text/javascript" src="jscripts/functions.js"></script>
|
7 |
+
<style type="text/css">
|
8 |
+
table#emotions {border:0;}
|
9 |
+
#emotions img {border:0;margin:4px;}
|
10 |
+
</style>
|
11 |
+
<base target="_self" />
|
12 |
+
</head>
|
13 |
+
<body onload="tinyMCEPopup.executeOnLoad('init();');" style="display: none">
|
14 |
+
<div align="center">
|
15 |
+
<div class="title">{$lang_emotions_title}:<br /><br /></div>
|
16 |
+
|
17 |
+
<table id="emotions">
|
18 |
+
<tr>
|
19 |
+
<td><a href="javascript:insertEmotion(' 8-)');">
|
20 |
+
<img src="../../../../../wp-includes/images/smilies/icon_cool.gif" width="15" height="15" alt="8-)" title="8-)" /></a></td>
|
21 |
+
|
22 |
+
<td><a href="javascript:insertEmotion(' :cry: ');">
|
23 |
+
<img src="../../../../../wp-includes/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title=":cry:" /></a></td>
|
24 |
+
|
25 |
+
<td><a href="javascript:insertEmotion(' :oops: ');">
|
26 |
+
<img src="../../../../../wp-includes/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title=":oops:" /></a></td>
|
27 |
+
|
28 |
+
<td><a href="javascript:insertEmotion(' :mrgreen: ');">
|
29 |
+
<img src="../../../../../wp-includes/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title=":mrgreen:" /></a></td>
|
30 |
+
|
31 |
+
<td><a href="javascript:insertEmotion(' :-( ');">
|
32 |
+
<img src="../../../../../wp-includes/images/smilies/icon_sad.gif" width="15" height="15" alt=":-(" title=":-(" /></a></td>
|
33 |
+
|
34 |
+
<td><a href="javascript:insertEmotion(' :twisted: ');">
|
35 |
+
<img src="../../../../../wp-includes/images/smilies/icon_twisted.gif" width="15" height="15" alt=":twisted:" title=":twisted:" /></a></td>
|
36 |
+
</tr>
|
37 |
+
|
38 |
+
<tr>
|
39 |
+
<td><a href="javascript:insertEmotion(' :evil: ');">
|
40 |
+
<img src="../../../../../wp-includes/images/smilies/icon_evil.gif" width="15" height="15" alt=":evil:" title=":evil:" /></a></td>
|
41 |
+
|
42 |
+
<td><a href="javascript:insertEmotion(' :lol: ');">
|
43 |
+
<img src="../../../../../wp-includes/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title=":lol:" /></a></td>
|
44 |
+
|
45 |
+
<td><a href="javascript:insertEmotion(' :roll: ');">
|
46 |
+
<img src="../../../../../wp-includes/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title=":roll:" /></a></td>
|
47 |
+
|
48 |
+
<td><a href="javascript:insertEmotion(' :-? ');">
|
49 |
+
<img src="../../../../../wp-includes/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title=":-?" /></a></td>
|
50 |
+
|
51 |
+
<td><a href="javascript:insertEmotion(' :-) ');">
|
52 |
+
<img src="../../../../../wp-includes/images/smilies/icon_smile.gif" width="15" height="15" alt=":-)" title=":-)" /></a></td>
|
53 |
+
|
54 |
+
<td><a href="javascript:insertEmotion(' :-o ');">
|
55 |
+
<img src="../../../../../wp-includes/images/smilies/icon_surprised.gif" width="15" height="15" alt=":-o" title=":-o" /></a></td>
|
56 |
+
</tr>
|
57 |
+
|
58 |
+
<tr>
|
59 |
+
<td><a href="javascript:insertEmotion(' :-P ');">
|
60 |
+
<img src="../../../../../wp-includes/images/smilies/icon_razz.gif" width="15" height="15" alt=":-P" title=":-P" /></a></td>
|
61 |
+
|
62 |
+
<td><a href="javascript:insertEmotion(' :-| ');">
|
63 |
+
<img src="../../../../../wp-includes/images/smilies/icon_neutral.gif" width="15" height="15" alt=":-|" title=":-|" /></a></td>
|
64 |
+
|
65 |
+
<td><a href="javascript:insertEmotion(' ;-) ');">
|
66 |
+
<img src="../../../../../wp-includes/images/smilies/icon_wink.gif" width="15" height="15" alt=";-)" title=";-)" /></a></td>
|
67 |
+
|
68 |
+
<td><a href="javascript:insertEmotion(' :-x ');">
|
69 |
+
<img src="../../../../../wp-includes/images/smilies/icon_mad.gif" width="15" height="15" alt=":-x" title=":-x" /></a></td>
|
70 |
+
|
71 |
+
<td><a href="javascript:insertEmotion(' 8-O ');">
|
72 |
+
<img src="../../../../../wp-includes/images/smilies/icon_eek.gif" width="15" height="15" alt="'8-O" title="'8-O" /></a></td>
|
73 |
+
|
74 |
+
<td><a href="javascript:insertEmotion(' :-D ');">
|
75 |
+
<img src="../../../../../wp-includes/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":-D" title=":-D" /></a></td>
|
76 |
+
</tr>
|
77 |
+
</table>
|
78 |
+
</div>
|
79 |
+
</body>
|
80 |
+
</html>
|
tinymce-advanced/mce/emotions/images/emotions.gif
ADDED
Binary file
|
tinymce-advanced/mce/emotions/jscripts/functions.js
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function init() {
|
2 |
+
tinyMCEPopup.resizeToInnerSize();
|
3 |
+
}
|
4 |
+
|
5 |
+
function insertEmotion(code) {
|
6 |
+
|
7 |
+
var html = ' ' + code + ' ';
|
8 |
+
|
9 |
+
tinyMCE.execCommand('mceInsertContent', false, html);
|
10 |
+
tinyMCEPopup.close();
|
11 |
+
}
|
tinymce-advanced/mce/emotions/langs/de_de.js
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// DE lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('emotions',{
|
4 |
+
title : 'Emotion einfügen',
|
5 |
+
desc : 'Emotions',
|
6 |
+
cool : 'Cool',
|
7 |
+
cry : 'Weinen',
|
8 |
+
embarassed : 'Beschämt',
|
9 |
+
foot_in_mouth : 'Fettnäpfchen',
|
10 |
+
frown : 'Missbilligen',
|
11 |
+
innocent : 'Unschuldig',
|
12 |
+
kiss : 'Kuss',
|
13 |
+
laughing : 'Lachanfall',
|
14 |
+
money_mouth : 'Geld im Kopf',
|
15 |
+
sealed : 'Besiegelt',
|
16 |
+
smile : 'Lächeln',
|
17 |
+
surprised : 'Überrascht',
|
18 |
+
tongue_out : 'Zunge ausstrecken',
|
19 |
+
undecided : 'Unentschieden',
|
20 |
+
wink : 'Winken',
|
21 |
+
yell : 'Schreien'
|
22 |
+
});
|
tinymce-advanced/mce/emotions/langs/en.js
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// UK lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('emotions',{
|
4 |
+
title : 'Insert smiley',
|
5 |
+
desc : 'Emotions',
|
6 |
+
cool : 'Cool',
|
7 |
+
cry : 'Cry',
|
8 |
+
embarassed : 'Embarassed',
|
9 |
+
mrgreen : 'Mr Green',
|
10 |
+
sad : 'Sad',
|
11 |
+
twisted : 'Twisted',
|
12 |
+
evil : 'Evil',
|
13 |
+
lol : 'LOL',
|
14 |
+
roll : 'Rolleyes',
|
15 |
+
confused : 'Confused',
|
16 |
+
smile : 'Smile',
|
17 |
+
surprised : 'Surprised',
|
18 |
+
tongue_out : 'Tongue out',
|
19 |
+
undecided : 'Undecided',
|
20 |
+
wink : 'Wink',
|
21 |
+
mad : 'Mad',
|
22 |
+
eek : 'Eeeek',
|
23 |
+
biggrin : 'Big grin'
|
24 |
+
});
|
tinymce-advanced/mce/emotions/langs/es_es.js
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* ES lang variables
|
3 |
+
*
|
4 |
+
* Authors : Alvaro Velasco,
|
5 |
+
* Adolfo Sanz De Diego (asanzdiego) <asanzdiego@yahoo.es>,
|
6 |
+
* Carlos C Soto (eclipxe) <csoto@sia-solutions.com>
|
7 |
+
* Eneko Castresana Vara
|
8 |
+
* Last Updated : July 14, 2006
|
9 |
+
* TinyMCE Version : 2.0.6.1
|
10 |
+
*/
|
11 |
+
|
12 |
+
tinyMCE.addToLang('emotions',{
|
13 |
+
title : 'Intertar emoticono',
|
14 |
+
desc : 'Emoticonos',
|
15 |
+
cool : 'Chulo',
|
16 |
+
cry : 'Llorando',
|
17 |
+
embarassed : 'Avergonzado',
|
18 |
+
foot_in_mouth : 'Sin palabras',
|
19 |
+
frown : 'Triste',
|
20 |
+
innocent : 'Inocente',
|
21 |
+
kiss : 'Beso',
|
22 |
+
laughing : 'Riendo',
|
23 |
+
money_mouth : 'Forrado',
|
24 |
+
sealed : 'Boca sellada',
|
25 |
+
smile : 'Sonriente',
|
26 |
+
surprised : 'Sorprendido',
|
27 |
+
tongue_out : 'Burla',
|
28 |
+
undecided : 'Indeciso',
|
29 |
+
wink : 'Guiño',
|
30 |
+
yell : 'Enfadado'
|
31 |
+
});
|
tinymce-advanced/mce/emotions/langs/fr_fr.js
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// FR lang variables
|
2 |
+
// Modified by keyko-web.net, last updated 2007-03-08, based on the work of Motte
|
3 |
+
|
4 |
+
tinyMCE.addToLang('emotions',{
|
5 |
+
title : 'Choisir une émoticône',
|
6 |
+
desc : 'Insérer une émoticône',
|
7 |
+
cool : 'Cool',
|
8 |
+
cry : 'Triste',
|
9 |
+
embarassed : 'Embarrassé',
|
10 |
+
foot_in_mouth : 'Oups !',
|
11 |
+
frown : 'Mécontent',
|
12 |
+
innocent : 'Innocent',
|
13 |
+
kiss : 'Bisou',
|
14 |
+
laughing : 'Mort de rire',
|
15 |
+
money_mouth : 'Sensuré',
|
16 |
+
sealed : 'Motus',
|
17 |
+
smile : 'Sourire',
|
18 |
+
surprised : 'Surprise',
|
19 |
+
tongue_out : 'Moqueur',
|
20 |
+
undecided : 'Perplexe',
|
21 |
+
wink : 'Clin d\'oeil',
|
22 |
+
yell : 'Horreur !'
|
23 |
+
});
|
tinymce-advanced/mce/emotions/langs/it_it.js
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* IT lang variables
|
3 |
+
*
|
4 |
+
* Author : Luciano Vernaschi <luciano@virgilio.it>
|
5 |
+
* Last Updated : Mar. 1st, 2007
|
6 |
+
* TinyMCE Version : 2.1.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
tinyMCE.addToLang('emotions',{
|
10 |
+
title : 'Inserisci emoticon',
|
11 |
+
desc : 'Emoticons',
|
12 |
+
cool : 'Fico',
|
13 |
+
cry : 'Pianto',
|
14 |
+
embarassed : 'Imbarazzo',
|
15 |
+
foot_in_mouth : 'Calcio in faccia',
|
16 |
+
frown : 'Tristezza',
|
17 |
+
innocent : 'Innocenza',
|
18 |
+
kiss : 'Bacio',
|
19 |
+
laughing : 'Risata',
|
20 |
+
money_mouth : 'Soldi',
|
21 |
+
sealed : 'Bocca chiusa',
|
22 |
+
smile : 'Sorriso',
|
23 |
+
surprised : 'Sorpresa',
|
24 |
+
tongue_out : 'Linguaccia',
|
25 |
+
undecided : 'Indecisione',
|
26 |
+
wink : 'Occhiolino',
|
27 |
+
yell : 'Urlo'
|
28 |
+
});
|
tinymce-advanced/mce/emotions/langs/pt_br.js
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* pt_br lang variables
|
3 |
+
* Brazilian Portuguese
|
4 |
+
*
|
5 |
+
* Author
|
6 |
+
* Revision and modifications:
|
7 |
+
* Marcio Barbosa (mpg) <mpg@mpg.com.br>
|
8 |
+
* First Release : November 26, 2005 - TinyMCE Version : 2.0RC4
|
9 |
+
* Last Updated : November 20, 2006 - TinyMCE Version : 2.0.8
|
10 |
+
*/
|
11 |
+
tinyMCE.addToLang('emotions',{
|
12 |
+
title : 'Inserir emoticons',
|
13 |
+
desc : 'Emoticons',
|
14 |
+
cool : 'Legal',
|
15 |
+
cry : 'Chorando',
|
16 |
+
embarassed : 'Embara�ado',
|
17 |
+
foot_in_mouth : 'Falando asneira',
|
18 |
+
frown : 'Triste',
|
19 |
+
innocent : 'Inocente',
|
20 |
+
kiss : 'Beijo',
|
21 |
+
laughing : 'Rindo',
|
22 |
+
money_mouth : 'Interesseiro',
|
23 |
+
sealed : 'L�bios fechados',
|
24 |
+
smile : 'Sorriso',
|
25 |
+
surprised : 'Surpreso',
|
26 |
+
tongue_out : 'Mostrar a l�ngua',
|
27 |
+
undecided : 'Indeciso',
|
28 |
+
wink : 'Piscar',
|
29 |
+
yell : 'Grito'
|
30 |
+
});
|
tinymce-advanced/mce/emotions/langs/ru_ru.js
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// RU lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('emotions',{
|
4 |
+
title : 'Вставить смайлик',
|
5 |
+
desc : 'Смайлики',
|
6 |
+
cool : 'Круто',
|
7 |
+
cry : 'Плач',
|
8 |
+
embarassed : 'Смущенный',
|
9 |
+
foot_in_mouth : 'Косноязычный',
|
10 |
+
frown : 'Нахмуренный',
|
11 |
+
innocent : 'Святой',
|
12 |
+
kiss : 'Поцелуй',
|
13 |
+
laughing : 'Смех',
|
14 |
+
money_mouth : 'Дельный',
|
15 |
+
sealed : 'Заклеенный',
|
16 |
+
smile : 'Улыбка',
|
17 |
+
surprised : 'Сюрприз',
|
18 |
+
tongue_out : 'Высунутый язык',
|
19 |
+
undecided : 'Нерешительный',
|
20 |
+
wink : 'Подмигнуть',
|
21 |
+
yell : 'Вопль'
|
22 |
+
});
|
tinymce-advanced/mce/emotions/langs/zh_cn.js
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// Simplified Chinese lang variables contributed by TinyMCE_China_Team ( tinymce_china {AT} yahoogroups {DOT} com ).
|
2 |
+
// visit our homepage at: http://www.cube316.net/tinymce/ for more information.
|
3 |
+
|
4 |
+
tinyMCE.addToLang('emotions',{
|
5 |
+
title : '�������',
|
6 |
+
desc : '����',
|
7 |
+
cool : '��',
|
8 |
+
cry : '��',
|
9 |
+
embarassed : '����',
|
10 |
+
foot_in_mouth : 'Foot in mouth',
|
11 |
+
frown : '��ü',
|
12 |
+
innocent : '��',
|
13 |
+
kiss : '����',
|
14 |
+
laughing : '��Ц',
|
15 |
+
money_mouth : 'Money mouth',
|
16 |
+
sealed : '����',
|
17 |
+
smile : 'Ц',
|
18 |
+
surprised : '����',
|
19 |
+
tongue_out : '����',
|
20 |
+
undecided : '��ԥ',
|
21 |
+
wink : 'գ��',
|
22 |
+
yell : '���'
|
23 |
+
});
|
tinymce-advanced/mce/emotions/readme.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
Modified to use the build-in smilies in WordPress.
|
2 |
+
Check the TinyMCE documentation for details on this plugin.
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/fullscreen/css/page.css
RENAMED
File without changes
|
add_to_tinymce_directory/plugins/fullscreen/editor_plugin_src.js → tinymce-advanced/mce/fullscreen/editor_plugin.js
RENAMED
@@ -4,6 +4,12 @@
|
|
4 |
* @author Moxiecode
|
5 |
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
6 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
/* Import plugin specific language pack */
|
9 |
tinyMCE.importPluginLanguagePack('fullscreen');
|
@@ -21,7 +27,7 @@ var TinyMCE_FullScreenPlugin = {
|
|
21 |
|
22 |
initInstance : function(inst) {
|
23 |
if (!tinyMCE.settings['fullscreen_skip_plugin_css'])
|
24 |
-
tinyMCE.importCSS(inst.getContainerWin().document, tinyMCE.baseURL + "/plugins/fullscreen/css/page.css");
|
25 |
},
|
26 |
|
27 |
getControlHTML : function(cn) {
|
@@ -61,7 +67,7 @@ var TinyMCE_FullScreenPlugin = {
|
|
61 |
} else {
|
62 |
tinyMCE.setWindowArg('editor_id', inst.editorId);
|
63 |
|
64 |
-
var win = window.open(tinyMCE.baseURL + "/plugins/fullscreen/fullscreen.htm", "mceFullScreenPopup", "fullscreen=yes,menubar=no,toolbar=no,scrollbars=no,resizable=yes,left=0,top=0,width=" + screen.availWidth + ",height=" + screen.availHeight);
|
65 |
try { win.resizeTo(screen.availWidth, screen.availHeight); } catch (e) {}
|
66 |
}
|
67 |
},
|
4 |
* @author Moxiecode
|
5 |
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
6 |
*/
|
7 |
+
|
8 |
+
// UK lang variables
|
9 |
+
tadvmce = realTinyMCE;
|
10 |
+
tadvmce.addToLang('',{
|
11 |
+
fullscreen_desc : 'Toggle fullscreen mode'
|
12 |
+
});
|
13 |
|
14 |
/* Import plugin specific language pack */
|
15 |
tinyMCE.importPluginLanguagePack('fullscreen');
|
27 |
|
28 |
initInstance : function(inst) {
|
29 |
if (!tinyMCE.settings['fullscreen_skip_plugin_css'])
|
30 |
+
tinyMCE.importCSS(inst.getContainerWin().document, tinyMCE.baseURL + "/../../../wp-content/plugins/tinymce-advanced/mce/fullscreen/css/page.css");
|
31 |
},
|
32 |
|
33 |
getControlHTML : function(cn) {
|
67 |
} else {
|
68 |
tinyMCE.setWindowArg('editor_id', inst.editorId);
|
69 |
|
70 |
+
var win = window.open(tinyMCE.baseURL + "/../../../wp-content/plugins/tinymce-advanced/mce/fullscreen/fullscreen.htm", "mceFullScreenPopup", "fullscreen=yes,menubar=no,toolbar=no,scrollbars=no,resizable=yes,left=0,top=0,width=" + screen.availWidth + ",height=" + screen.availHeight);
|
71 |
try { win.resizeTo(screen.availWidth, screen.availHeight); } catch (e) {}
|
72 |
}
|
73 |
},
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/fullscreen/fullscreen.htm
RENAMED
@@ -2,7 +2,7 @@
|
|
2 |
<head>
|
3 |
<title>{$lang_fullscreen_title}</title>
|
4 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
5 |
-
<script language="javascript" type="text/javascript" src="
|
6 |
<script language="javascript" type="text/javascript">
|
7 |
function patchCallback(settings, key) {
|
8 |
if (settings[key])
|
2 |
<head>
|
3 |
<title>{$lang_fullscreen_title}</title>
|
4 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
5 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/tiny_mce.js"></script>
|
6 |
<script language="javascript" type="text/javascript">
|
7 |
function patchCallback(settings, key) {
|
8 |
if (settings[key])
|
tinymce-advanced/mce/fullscreen/images/fullscreen.gif
ADDED
Binary file
|
tinymce-advanced/mce/fullscreen/langs/de_de.js
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// DE lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('',{
|
4 |
+
fullscreen_title : 'Vollbild-Modus',
|
5 |
+
fullscreen_desc : 'Vollbild-Modus umschalten'
|
6 |
+
});
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/fullscreen/langs/en.js
RENAMED
File without changes
|
tinymce-advanced/mce/fullscreen/langs/es_es.js
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// ES lang variables by Alvaro Velasco and Adolfo Sanz De Diego (asanzdiego) <asanzdiego@yahoo.es>
|
2 |
+
// Last Updated : October 2005
|
3 |
+
// TinyMCE Version : 2.0RC3
|
4 |
+
|
5 |
+
tinyMCE.addToLang('',{
|
6 |
+
fullscreen_title : 'Pantalla completa',
|
7 |
+
fullscreen_desc : 'Cambiar a pantalla completa'
|
8 |
+
});
|
tinymce-advanced/mce/fullscreen/langs/fr_fr.js
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// FR lang variables
|
2 |
+
// Modified by Motte, last updated 2006-03-23
|
3 |
+
|
4 |
+
tinyMCE.addToLang('',{
|
5 |
+
fullscreen_title : 'Affichage plein écran',
|
6 |
+
fullscreen_desc : 'Affichage plein écran/normal'
|
7 |
+
});
|
tinymce-advanced/mce/fullscreen/langs/it_it.js
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* IT lang variables
|
3 |
+
*
|
4 |
+
* Author : Luciano Vernaschi <luciano@virgilio.it>
|
5 |
+
* Last Updated : Mar. 1st, 2007
|
6 |
+
* TinyMCE Version : 2.1.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
tinyMCE.addToLang('',{
|
10 |
+
fullscreen_desc : 'Abilita o disabilita la modalità a schermo intero'
|
11 |
+
});
|
tinymce-advanced/mce/fullscreen/langs/pt_br.js
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* pt_br lang variables
|
3 |
+
* Brazilian Portuguese
|
4 |
+
*
|
5 |
+
* Author
|
6 |
+
* Revision and modifications:
|
7 |
+
* Marcio Barbosa (mpg) <mpg@mpg.com.br>
|
8 |
+
* First Release : November 26, 2005 - TinyMCE Version : 2.0RC4
|
9 |
+
* Last Updated : November 20, 2006 - TinyMCE Version : 2.0.8
|
10 |
+
*/
|
11 |
+
tinyMCE.addToLang('',{
|
12 |
+
fullscreen_title : 'Modo de janela inteira (Fullscreen)',
|
13 |
+
fullscreen_desc : 'Alterar para modo de janela inteira'
|
14 |
+
});
|
tinymce-advanced/mce/fullscreen/langs/ru.js
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// RU lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('',{
|
4 |
+
fullscreen_title : 'Полноэкранный режим',
|
5 |
+
fullscreen_desc : 'Включить полноэкранный режим'
|
6 |
+
});
|
tinymce-advanced/mce/fullscreen/langs/zh_cn.js
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// Simplified Chinese lang variables contributed by TinyMCE_China_Team ( tinymce_china {AT} yahoogroups {DOT} com ).
|
2 |
+
// visit our homepage at: http://www.cube316.net/tinymce/ for more information.
|
3 |
+
|
4 |
+
tinyMCE.addToLang('',{
|
5 |
+
fullscreen_title : 'ȫ��ģʽ',
|
6 |
+
fullscreen_desc : '�л�ȫ��ģʽ'
|
7 |
+
});
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/fullscreen/readme.txt
RENAMED
File without changes
|
tinymce-advanced/mce/iespell/editor_plugin.js
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z spocke $
|
3 |
+
*
|
4 |
+
* @author Moxiecode
|
5 |
+
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
6 |
+
*/
|
7 |
+
|
8 |
+
// UK lang variables
|
9 |
+
tadvmce = realTinyMCE;
|
10 |
+
tadvmce.addToLang('',{
|
11 |
+
iespell_desc : 'Run spell checking',
|
12 |
+
iespell_download : "ieSpell not detected. Click OK to go to download page."
|
13 |
+
});
|
14 |
+
|
15 |
+
/* Import plugin specific language pack */
|
16 |
+
tinyMCE.importPluginLanguagePack('iespell');
|
17 |
+
|
18 |
+
var TinyMCE_IESpellPlugin = {
|
19 |
+
getInfo : function() {
|
20 |
+
return {
|
21 |
+
longname : 'IESpell (MSIE Only)',
|
22 |
+
author : 'Moxiecode Systems AB',
|
23 |
+
authorurl : 'http://tinymce.moxiecode.com',
|
24 |
+
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell',
|
25 |
+
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
|
26 |
+
};
|
27 |
+
},
|
28 |
+
|
29 |
+
/**
|
30 |
+
* Returns the HTML contents of the iespell control.
|
31 |
+
*/
|
32 |
+
getControlHTML : function(cn) {
|
33 |
+
// Is it the iespell control and is the brower MSIE.
|
34 |
+
if (cn == "iespell" && (tinyMCE.isMSIE && !tinyMCE.isOpera))
|
35 |
+
return tinyMCE.getButtonHTML(cn, 'lang_iespell_desc', '{$pluginurl}/images/iespell.gif', 'mceIESpell');
|
36 |
+
|
37 |
+
return "";
|
38 |
+
},
|
39 |
+
|
40 |
+
/**
|
41 |
+
* Executes the mceIESpell command.
|
42 |
+
*/
|
43 |
+
execCommand : function(editor_id, element, command, user_interface, value) {
|
44 |
+
// Handle ieSpellCommand
|
45 |
+
if (command == "mceIESpell") {
|
46 |
+
try {
|
47 |
+
var ieSpell = new ActiveXObject("ieSpell.ieSpellExtension");
|
48 |
+
ieSpell.CheckDocumentNode(tinyMCE.getInstanceById(editor_id).contentDocument.documentElement);
|
49 |
+
} catch (e) {
|
50 |
+
if (e.number == -2146827859) {
|
51 |
+
if (confirm(tinyMCE.getLang("lang_iespell_download", "", true)))
|
52 |
+
window.open('http://www.iespell.com/download.php', 'ieSpellDownload', '');
|
53 |
+
} else
|
54 |
+
alert("Error Loading ieSpell: Exception " + e.number);
|
55 |
+
}
|
56 |
+
|
57 |
+
return true;
|
58 |
+
}
|
59 |
+
|
60 |
+
// Pass to next handler in chain
|
61 |
+
return false;
|
62 |
+
}
|
63 |
+
};
|
64 |
+
|
65 |
+
tinyMCE.addPlugin("iespell", TinyMCE_IESpellPlugin);
|
tinymce-advanced/mce/iespell/images/iespell.gif
ADDED
Binary file
|
tinymce-advanced/mce/iespell/langs/de_de.js
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// DE lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('',{
|
4 |
+
iespell_desc : 'Rechtschreibprüfung',
|
5 |
+
iespell_download : "ieSpell nicht gefunden. Klicken Sie OK, um die Download-Seite aufzurufen."
|
6 |
+
});
|
7 |
+
|
tinymce-advanced/mce/iespell/langs/en.js
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// UK lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('',{
|
4 |
+
iespell_desc : 'Run spell checking',
|
5 |
+
iespell_download : "ieSpell not detected. Click OK to go to download page."
|
6 |
+
});
|
7 |
+
|
tinymce-advanced/mce/iespell/langs/es_es.js
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* ES lang variables
|
3 |
+
*
|
4 |
+
* Authors : Alvaro Velasco,
|
5 |
+
* Adolfo Sanz De Diego (asanzdiego) <asanzdiego@yahoo.es>,
|
6 |
+
* Carlos C Soto (eclipxe) <csoto@sia-solutions.com>
|
7 |
+
* Eneko Castresana Vara
|
8 |
+
* Last Updated : July 14, 2006
|
9 |
+
* TinyMCE Version : 2.0.6.1
|
10 |
+
*/
|
11 |
+
|
12 |
+
tinyMCE.addToLang('',{
|
13 |
+
iespell_desc : 'Ejecutar corrector ortográfico',
|
14 |
+
iespell_download : "Corrector ortográfico no detectado. Pulse OK para ir a la página de descarga."
|
15 |
+
});
|
16 |
+
|
tinymce-advanced/mce/iespell/langs/fr_fr.js
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// FR lang variables
|
2 |
+
// Modified by Motte, last updated 2006-03-23
|
3 |
+
|
4 |
+
tinyMCE.addToLang('',{
|
5 |
+
iespell_desc : 'Lancer le vérificateur d\'orthographe',
|
6 |
+
iespell_download : "Le dictionnaire ieSpell n\'a pas été trouvé.\n\nCliquez sur Ok pour aller au site de téléchargement."
|
7 |
+
});
|
tinymce-advanced/mce/iespell/langs/it_it.js
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* IT lang variables
|
3 |
+
*
|
4 |
+
* Author : Luciano Vernaschi <luciano@virgilio.it>
|
5 |
+
* Last Updated : Oct. 17th, 2006
|
6 |
+
* TinyMCE Version : 2.0.7
|
7 |
+
*/
|
8 |
+
|
9 |
+
tinyMCE.addToLang('',{
|
10 |
+
iespell_desc : 'Esegui controllo ortografico',
|
11 |
+
iespell_download : "ieSpell non trovato. Fai clic su OK per visitare la pagina di download."
|
12 |
+
});
|
13 |
+
|
tinymce-advanced/mce/iespell/langs/pt_br.js
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* pt_br lang variables
|
3 |
+
* Brazilian Portuguese
|
4 |
+
*
|
5 |
+
* Author
|
6 |
+
* Revision and modifications:
|
7 |
+
* Marcio Barbosa (mpg) <mpg@mpg.com.br>
|
8 |
+
* First Release : November 26, 2005 - TinyMCE Version : 2.0RC4
|
9 |
+
* Last Updated : November 20, 2006 - TinyMCE Version : 2.0.8
|
10 |
+
*/
|
11 |
+
tinyMCE.addToLang('',{
|
12 |
+
iespell_desc : 'Executar verifica��o ortogr�fica',
|
13 |
+
iespell_download : "Verificador ieSpell n�o detectado. Clique em \"OK\" para ir � p�gina de download."
|
14 |
+
});
|
tinymce-advanced/mce/iespell/langs/ru_ru.js
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// RU lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('',{
|
4 |
+
iespell_desc : 'Запустить проверку орфографии',
|
5 |
+
iespell_download : 'ieSpell не обнаружен. нажмите OK, чтобы перейти на страницу загрузки.'
|
6 |
+
});
|
7 |
+
|
tinymce-advanced/mce/iespell/langs/zh_cn.js
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// Simplified Chinese lang variables contributed by TinyMCE_China_Team ( tinymce_china {AT} yahoogroups {DOT} com ).
|
2 |
+
// visit our homepage at: http://www.cube316.net/tinymce/ for more information.
|
3 |
+
|
4 |
+
tinyMCE.addToLang('',{
|
5 |
+
iespell_desc : '����ƴд���',
|
6 |
+
iespell_download : "δ�� ieSpell ƴд��飬��� OK ǰ������ҳ�档"
|
7 |
+
});
|
{add_to_tinymce_directory/plugins/layer → tinymce-advanced/mce/iespell}/readme.txt
RENAMED
File without changes
|
add_to_tinymce_directory/plugins/layer/editor_plugin_src.js → tinymce-advanced/mce/layer/editor_plugin.js
RENAMED
@@ -5,6 +5,16 @@
|
|
5 |
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
6 |
*/
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
/* Import plugin specific language pack */
|
9 |
tinyMCE.importPluginLanguagePack('layer');
|
10 |
|
5 |
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
6 |
*/
|
7 |
|
8 |
+
// UK lang variables
|
9 |
+
tadvmce = realTinyMCE;
|
10 |
+
tadvmce.addToLang('layer',{
|
11 |
+
insertlayer_desc : 'Insert new layer',
|
12 |
+
forward_desc : 'Move forward',
|
13 |
+
backward_desc : 'Move backward',
|
14 |
+
absolute_desc : 'Toggle absolute positioning',
|
15 |
+
content : 'New layer...'
|
16 |
+
});
|
17 |
+
|
18 |
/* Import plugin specific language pack */
|
19 |
tinyMCE.importPluginLanguagePack('layer');
|
20 |
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/layer/images/absolute.gif
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/layer/images/backward.gif
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/layer/images/forward.gif
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/layer/images/insert_layer.gif
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/layer/images/insertlayer.gif
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/layer/images/movebackward.gif
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/layer/images/moveforward.gif
RENAMED
File without changes
|
tinymce-advanced/mce/layer/langs/de_de.js
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// DE lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('layer',{
|
4 |
+
insertlayer_desc : 'Neue Ebene einfügen',
|
5 |
+
forward_desc : 'Vorwärts schalten',
|
6 |
+
backward_desc : 'Rückwärts schalten',
|
7 |
+
absolute_desc : 'Absolute Position schalten',
|
8 |
+
content : 'Neue Ebene...'
|
9 |
+
});
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/layer/langs/en.js
RENAMED
File without changes
|
tinymce-advanced/mce/layer/langs/es_es.js
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* ES lang variables
|
3 |
+
*
|
4 |
+
* Authors : Eneko Castresana Vara
|
5 |
+
* Last Updated : July 14, 2006
|
6 |
+
* TinyMCE Version : 2.0.6.1
|
7 |
+
*/
|
8 |
+
|
9 |
+
tinyMCE.addToLang('layer',{
|
10 |
+
insertlayer_desc : 'Insertar nueva capa',
|
11 |
+
forward_desc : 'Adelante',
|
12 |
+
backward_desc : 'Atrás',
|
13 |
+
absolute_desc : 'Posicionamiento absoluto',
|
14 |
+
content : 'Nueva capa...'
|
15 |
+
});
|
tinymce-advanced/mce/layer/langs/fr_fr.js
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// FR lang variables
|
2 |
+
// Modified by shadow walker, last updated 2007-03-16
|
3 |
+
|
4 |
+
tinyMCE.addToLang('layer',{
|
5 |
+
insertlayer_desc : 'Insérer un nouveau calque',
|
6 |
+
forward_desc : 'Avancer',
|
7 |
+
backward_desc : 'Reculer',
|
8 |
+
absolute_desc : 'Passer en positionnement absolu',
|
9 |
+
content : 'Nouveau calque...'
|
10 |
+
});
|
tinymce-advanced/mce/layer/langs/it_it.js
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* IT lang variables
|
3 |
+
*
|
4 |
+
* Author : Luciano Vernaschi <luciano@virgilio.it>
|
5 |
+
* Last Updated : Mar. 1st, 2007
|
6 |
+
* TinyMCE Version : 2.1.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
tinyMCE.addToLang('layer',{
|
10 |
+
insertlayer_desc : 'Inserisci nuovo layer',
|
11 |
+
forward_desc : 'Sposta verso l\'alto',
|
12 |
+
backward_desc : 'Sposta verso il basso',
|
13 |
+
absolute_desc : 'Abilita o disabilita posizionamento assoluto',
|
14 |
+
content : 'Nuovo livello...'
|
15 |
+
});
|
tinymce-advanced/mce/layer/langs/pt_br.js
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* pt_br lang variables
|
3 |
+
* Brazilian Portuguese
|
4 |
+
*
|
5 |
+
* Author
|
6 |
+
* Revision and modifications:
|
7 |
+
* Marcio Barbosa (mpg) <mpg@mpg.com.br>
|
8 |
+
* First Release : November 20, 2006 - TinyMCE Version : 2.0.8
|
9 |
+
*/
|
10 |
+
tinyMCE.addToLang('layer',{
|
11 |
+
insertlayer_desc : 'Inserir novo layer',
|
12 |
+
forward_desc : 'Mover para frente',
|
13 |
+
backward_desc : 'Mover para tr�s',
|
14 |
+
absolute_desc : 'Alterar posi��o absoluta',
|
15 |
+
content : 'Novo layer...'
|
16 |
+
});
|
tinymce-advanced/mce/layer/langs/ru_ru.js
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// RU lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('layer',{
|
4 |
+
insertlayer_desc : 'Вставить новый слой',
|
5 |
+
forward_desc : 'Переместить вперед',
|
6 |
+
backward_desc : 'Переместить назад',
|
7 |
+
absolute_desc : 'Вкл / Выкл абсолютное позиционирование',
|
8 |
+
content : 'Новый слой...'
|
9 |
+
});
|
tinymce-advanced/mce/layer/langs/zh_cn.js
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// UK lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('layer',{
|
4 |
+
insertlayer_desc : 'Insert new layer',
|
5 |
+
forward_desc : 'Move forward',
|
6 |
+
backward_desc : 'Move backward',
|
7 |
+
absolute_desc : 'Toggle absolute positioning',
|
8 |
+
content : 'New layer...'
|
9 |
+
});
|
{add_to_tinymce_directory/plugins/print → tinymce-advanced/mce/layer}/readme.txt
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/media/css/content.css
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/media/css/media.css
RENAMED
File without changes
|
add_to_tinymce_directory/plugins/media/editor_plugin_src.js → tinymce-advanced/mce/media/editor_plugin.js
RENAMED
@@ -1,435 +1,532 @@
|
|
1 |
-
/**
|
2 |
-
* $Id: editor_plugin_src.js 275 2007-05-01 15:35:08Z spocke $
|
3 |
-
*
|
4 |
-
* @author Moxiecode
|
5 |
-
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
6 |
-
*/
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* $Id: editor_plugin_src.js 275 2007-05-01 15:35:08Z spocke $
|
3 |
+
*
|
4 |
+
* @author Moxiecode
|
5 |
+
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
6 |
+
*/
|
7 |
+
|
8 |
+
// UK lang variables
|
9 |
+
tadvmce = realTinyMCE;
|
10 |
+
tadvmce.addToLang('media',{
|
11 |
+
title : 'Insert / edit embedded media',
|
12 |
+
desc : 'Insert / edit embedded media',
|
13 |
+
general : 'General',
|
14 |
+
advanced : 'Advanced',
|
15 |
+
file : 'File/URL',
|
16 |
+
list : 'List',
|
17 |
+
size : 'Dimensions',
|
18 |
+
preview : 'Preview',
|
19 |
+
constrain_proportions : 'Constrain proportions',
|
20 |
+
type : 'Type',
|
21 |
+
id : 'Id',
|
22 |
+
name : 'Name',
|
23 |
+
class_name : 'Class',
|
24 |
+
vspace : 'V-Space',
|
25 |
+
hspace : 'H-Space',
|
26 |
+
play : 'Auto play',
|
27 |
+
loop : 'Loop',
|
28 |
+
menu : 'Show menu',
|
29 |
+
quality : 'Quality',
|
30 |
+
scale : 'Scale',
|
31 |
+
align : 'Align',
|
32 |
+
salign : 'SAlign',
|
33 |
+
wmode : 'WMode',
|
34 |
+
bgcolor : 'Background',
|
35 |
+
base : 'Base',
|
36 |
+
flashvars : 'Flashvars',
|
37 |
+
liveconnect : 'SWLiveConnect',
|
38 |
+
autohref : 'AutoHREF',
|
39 |
+
cache : 'Cache',
|
40 |
+
hidden : 'Hidden',
|
41 |
+
controller : 'Controller',
|
42 |
+
kioskmode : 'Kiosk mode',
|
43 |
+
playeveryframe : 'Play every frame',
|
44 |
+
targetcache : 'Target cache',
|
45 |
+
correction : 'No correction',
|
46 |
+
enablejavascript : 'Enable JavaScript',
|
47 |
+
starttime : 'Start time',
|
48 |
+
endtime : 'End time',
|
49 |
+
href : 'Href',
|
50 |
+
qtsrcchokespeed : 'Choke speed',
|
51 |
+
target : 'Target',
|
52 |
+
volume : 'Volume',
|
53 |
+
autostart : 'Auto start',
|
54 |
+
enabled : 'Enabled',
|
55 |
+
fullscreen : 'Fullscreen',
|
56 |
+
invokeurls : 'Invoke URLs',
|
57 |
+
mute : 'Mute',
|
58 |
+
stretchtofit : 'Stretch to fit',
|
59 |
+
windowlessvideo : 'Windowless video',
|
60 |
+
balance : 'Balance',
|
61 |
+
baseurl : 'Base URL',
|
62 |
+
captioningid : 'Captioning id',
|
63 |
+
currentmarker : 'Current marker',
|
64 |
+
currentposition : 'Current position',
|
65 |
+
defaultframe : 'Default frame',
|
66 |
+
playcount : 'Play count',
|
67 |
+
rate : 'Rate',
|
68 |
+
uimode : 'UI Mode',
|
69 |
+
flash_options : 'Flash options',
|
70 |
+
qt_options : 'Quicktime options',
|
71 |
+
wmp_options : 'Windows media player options',
|
72 |
+
rmp_options : 'Real media player options',
|
73 |
+
shockwave_options : 'Shockwave options',
|
74 |
+
autogotourl : 'Auto goto URL',
|
75 |
+
center : 'Center',
|
76 |
+
imagestatus : 'Image status',
|
77 |
+
maintainaspect : 'Maintain aspect',
|
78 |
+
nojava : 'No java',
|
79 |
+
prefetch : 'Prefetch',
|
80 |
+
shuffle : 'Shuffle',
|
81 |
+
console : 'Console',
|
82 |
+
numloop : 'Num loops',
|
83 |
+
controls : 'Controls',
|
84 |
+
scriptcallbacks : 'Script callbacks',
|
85 |
+
swstretchstyle : 'Stretch style',
|
86 |
+
swstretchhalign : 'Stretch H-Align',
|
87 |
+
swstretchvalign : 'Stretch V-Align',
|
88 |
+
sound : 'Sound',
|
89 |
+
progress : 'Progress',
|
90 |
+
qtsrc : 'QT Src',
|
91 |
+
qt_stream_warn : 'Streamed rtsp resources should be added to the QT Src field under the advanced tab.\nYou should also add a non streamed version to the Src field..',
|
92 |
+
align_top : 'Top',
|
93 |
+
align_right : 'Right',
|
94 |
+
align_bottom : 'Bottom',
|
95 |
+
align_left : 'Left',
|
96 |
+
align_center : 'Center',
|
97 |
+
align_top_left : 'Top left',
|
98 |
+
align_top_right : 'Top right',
|
99 |
+
align_bottom_left : 'Bottom left',
|
100 |
+
align_bottom_right : 'Bottom right'
|
101 |
+
});
|
102 |
+
|
103 |
+
/* Import plugin specific language pack */
|
104 |
+
tinyMCE.importPluginLanguagePack('media');
|
105 |
+
|
106 |
+
var TinyMCE_MediaPlugin = {
|
107 |
+
getInfo : function() {
|
108 |
+
return {
|
109 |
+
longname : 'Media',
|
110 |
+
author : 'Moxiecode Systems AB',
|
111 |
+
authorurl : 'http://tinymce.moxiecode.com',
|
112 |
+
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/media',
|
113 |
+
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
|
114 |
+
};
|
115 |
+
},
|
116 |
+
|
117 |
+
initInstance : function(inst) {
|
118 |
+
// Warn if user has flash plugin and media plugin at the same time
|
119 |
+
if (inst.hasPlugin('flash') && !tinyMCE.flashWarn) {
|
120 |
+
alert('Flash plugin is deprecated and should not be used together with the media plugin.');
|
121 |
+
tinyMCE.flashWarn = true;
|
122 |
+
}
|
123 |
+
|
124 |
+
if (!tinyMCE.settings['media_skip_plugin_css'])
|
125 |
+
tinyMCE.importCSS(inst.getDoc(), tinyMCE.baseURL + "/../../../wp-content/plugins/tinymce-advanced/mce/media/css/content.css");
|
126 |
+
},
|
127 |
+
|
128 |
+
getControlHTML : function(cn) {
|
129 |
+
switch (cn) {
|
130 |
+
case "media":
|
131 |
+
return tinyMCE.getButtonHTML(cn, 'lang_media_desc', '{$pluginurl}/images/media.gif', 'mceMedia');
|
132 |
+
}
|
133 |
+
|
134 |
+
return "";
|
135 |
+
},
|
136 |
+
|
137 |
+
execCommand : function(editor_id, element, command, user_interface, value) {
|
138 |
+
// Handle commands
|
139 |
+
switch (command) {
|
140 |
+
case "mceMedia":
|
141 |
+
tinyMCE.openWindow({
|
142 |
+
file : tinyMCE.baseURL + '/../../../wp-content/plugins/tinymce-advanced/mce/media/media.htm',
|
143 |
+
width : 430 + tinyMCE.getLang('lang_media_delta_width', 0),
|
144 |
+
height : 470 + tinyMCE.getLang('lang_media_delta_height', 0)
|
145 |
+
}, {
|
146 |
+
editor_id : editor_id,
|
147 |
+
inline : "yes"
|
148 |
+
});
|
149 |
+
|
150 |
+
return true;
|
151 |
+
}
|
152 |
+
|
153 |
+
// Pass to next handler in chain
|
154 |
+
return false;
|
155 |
+
},
|
156 |
+
|
157 |
+
cleanup : function(type, content, inst) {
|
158 |
+
var nl, img, i, ne, d, s, ci;
|
159 |
+
|
160 |
+
switch (type) {
|
161 |
+
case "insert_to_editor":
|
162 |
+
img = tinyMCE.getParam("theme_href") + '/images/spacer.gif';
|
163 |
+
content = content.replace(/<script[^>]*>\s*write(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)\(\{([^\)]*)\}\);\s*<\/script>/gi, '<img class="mceItem$1" title="$2" src="' + img + '" />');
|
164 |
+
content = content.replace(/<object([^>]*)>/gi, '<div class="mceItemObject" $1>');
|
165 |
+
content = content.replace(/<embed([^>]*)>/gi, '<div class="mceItemObjectEmbed" $1>');
|
166 |
+
content = content.replace(/<\/(object|embed)([^>]*)>/gi, '</div>');
|
167 |
+
content = content.replace(/<param([^>]*)>/gi, '<div $1 class="mceItemParam"></div>');
|
168 |
+
content = content.replace(new RegExp('\\/ class="mceItemParam"><\\/div>', 'gi'), 'class="mceItemParam"></div>');
|
169 |
+
|
170 |
+
break;
|
171 |
+
|
172 |
+
case "insert_to_editor_dom":
|
173 |
+
d = inst.getDoc();
|
174 |
+
nl = content.getElementsByTagName("img");
|
175 |
+
for (i=0; i<nl.length; i++) {
|
176 |
+
if (/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(nl[i].className)) {
|
177 |
+
nl[i].width = nl[i].title.replace(/.*width:[^0-9]?([0-9]+)%?.*/g, '$1');
|
178 |
+
nl[i].height = nl[i].title.replace(/.*height:[^0-9]?([0-9]+)%?.*/g, '$1');
|
179 |
+
//nl[i].align = nl[i].title.replace(/.*align:([a-z]+).*/gi, '$1');
|
180 |
+
}
|
181 |
+
}
|
182 |
+
|
183 |
+
nl = tinyMCE.selectElements(content, 'DIV', function (n) {return tinyMCE.hasCSSClass(n, 'mceItemObject');});
|
184 |
+
for (i=0; i<nl.length; i++) {
|
185 |
+
ci = tinyMCE.getAttrib(nl[i], "classid").toLowerCase().replace(/\s+/g, '');
|
186 |
+
|
187 |
+
switch (ci) {
|
188 |
+
case 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000':
|
189 |
+
nl[i].parentNode.replaceChild(TinyMCE_MediaPlugin._createImg('mceItemFlash', d, nl[i]), nl[i]);
|
190 |
+
break;
|
191 |
+
|
192 |
+
case 'clsid:166b1bca-3f9c-11cf-8075-444553540000':
|
193 |
+
nl[i].parentNode.replaceChild(TinyMCE_MediaPlugin._createImg('mceItemShockWave', d, nl[i]), nl[i]);
|
194 |
+
break;
|
195 |
+
|
196 |
+
case 'clsid:6bf52a52-394a-11d3-b153-00c04f79faa6':
|
197 |
+
case 'clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95':
|
198 |
+
case 'clsid:05589fa1-c356-11ce-bf01-00aa0055595a':
|
199 |
+
nl[i].parentNode.replaceChild(TinyMCE_MediaPlugin._createImg('mceItemWindowsMedia', d, nl[i]), nl[i]);
|
200 |
+
break;
|
201 |
+
|
202 |
+
case 'clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b':
|
203 |
+
nl[i].parentNode.replaceChild(TinyMCE_MediaPlugin._createImg('mceItemQuickTime', d, nl[i]), nl[i]);
|
204 |
+
break;
|
205 |
+
|
206 |
+
case 'clsid:cfcdaa03-8be4-11cf-b84b-0020afbbccfa':
|
207 |
+
nl[i].parentNode.replaceChild(TinyMCE_MediaPlugin._createImg('mceItemRealMedia', d, nl[i]), nl[i]);
|
208 |
+
break;
|
209 |
+
}
|
210 |
+
}
|
211 |
+
|
212 |
+
// Handle embed (if any)
|
213 |
+
nl = tinyMCE.selectNodes(content, function (n) {return n.className == 'mceItemObjectEmbed';});
|
214 |
+
for (i=0; i<nl.length; i++) {
|
215 |
+
switch (tinyMCE.getAttrib(nl[i], 'type')) {
|
216 |
+
case 'application/x-shockwave-flash':
|
217 |
+
TinyMCE_MediaPlugin._createImgFromEmbed(nl[i], d, 'mceItemFlash');
|
218 |
+
break;
|
219 |
+
|
220 |
+
case 'application/x-director':
|
221 |
+
TinyMCE_MediaPlugin._createImgFromEmbed(nl[i], d, 'mceItemShockWave');
|
222 |
+
break;
|
223 |
+
|
224 |
+
case 'application/x-mplayer2':
|
225 |
+
TinyMCE_MediaPlugin._createImgFromEmbed(nl[i], d, 'mceItemWindowsMedia');
|
226 |
+
break;
|
227 |
+
|
228 |
+
case 'video/quicktime':
|
229 |
+
TinyMCE_MediaPlugin._createImgFromEmbed(nl[i], d, 'mceItemQuickTime');
|
230 |
+
break;
|
231 |
+
|
232 |
+
case 'audio/x-pn-realaudio-plugin':
|
233 |
+
TinyMCE_MediaPlugin._createImgFromEmbed(nl[i], d, 'mceItemRealMedia');
|
234 |
+
break;
|
235 |
+
}
|
236 |
+
}
|
237 |
+
break;
|
238 |
+
|
239 |
+
case "get_from_editor":
|
240 |
+
var startPos = -1, endPos, attribs, chunkBefore, chunkAfter, embedHTML, at, pl, cb, mt, ex;
|
241 |
+
|
242 |
+
while ((startPos = content.indexOf('<img', startPos+1)) != -1) {
|
243 |
+
endPos = content.indexOf('/>', startPos);
|
244 |
+
attribs = TinyMCE_MediaPlugin._parseAttributes(content.substring(startPos + 4, endPos));
|
245 |
+
|
246 |
+
// Is not flash, skip it
|
247 |
+
if (!/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(attribs['class']))
|
248 |
+
continue;
|
249 |
+
|
250 |
+
endPos += 2;
|
251 |
+
|
252 |
+
// Parse attributes
|
253 |
+
at = attribs['title'];
|
254 |
+
if (at) {
|
255 |
+
at = at.replace(/&(#39|apos);/g, "'");
|
256 |
+
at = at.replace(/&#quot;/g, '"');
|
257 |
+
|
258 |
+
try {
|
259 |
+
pl = eval('x={' + at + '};');
|
260 |
+
} catch (ex) {
|
261 |
+
pl = {};
|
262 |
+
}
|
263 |
+
}
|
264 |
+
|
265 |
+
// Use object/embed
|
266 |
+
if (!tinyMCE.getParam('media_use_script', false)) {
|
267 |
+
switch (attribs['class']) {
|
268 |
+
case 'mceItemFlash':
|
269 |
+
ci = 'd27cdb6e-ae6d-11cf-96b8-444553540000';
|
270 |
+
cb = 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0';
|
271 |
+
mt = 'application/x-shockwave-flash';
|
272 |
+
break;
|
273 |
+
|
274 |
+
case 'mceItemShockWave':
|
275 |
+
ci = '166B1BCA-3F9C-11CF-8075-444553540000';
|
276 |
+
cb = 'http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0';
|
277 |
+
mt = 'application/x-director';
|
278 |
+
break;
|
279 |
+
|
280 |
+
case 'mceItemWindowsMedia':
|
281 |
+
ci = tinyMCE.getParam('media_wmp6_compatible') ? '05589FA1-C356-11CE-BF01-00AA0055595A' : '6BF52A52-394A-11D3-B153-00C04F79FAA6';
|
282 |
+
cb = 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701';
|
283 |
+
mt = 'application/x-mplayer2';
|
284 |
+
break;
|
285 |
+
|
286 |
+
case 'mceItemQuickTime':
|
287 |
+
ci = '02BF25D5-8C17-4B23-BC80-D3488ABDDC6B';
|
288 |
+
cb = 'http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0';
|
289 |
+
mt = 'video/quicktime';
|
290 |
+
break;
|
291 |
+
|
292 |
+
case 'mceItemRealMedia':
|
293 |
+
ci = 'CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA';
|
294 |
+
cb = 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0';
|
295 |
+
mt = 'audio/x-pn-realaudio-plugin';
|
296 |
+
break;
|
297 |
+
}
|
298 |
+
|
299 |
+
// Force absolute URL
|
300 |
+
if (!tinyMCE.getParam("relative_urls"))
|
301 |
+
pl.src = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], pl.src);
|
302 |
+
|
303 |
+
embedHTML = TinyMCE_MediaPlugin._getEmbed(ci, cb, mt, pl, attribs);
|
304 |
+
} else {
|
305 |
+
// Use script version
|
306 |
+
switch (attribs['class']) {
|
307 |
+
case 'mceItemFlash':
|
308 |
+
s = 'writeFlash';
|
309 |
+
break;
|
310 |
+
|
311 |
+
case 'mceItemShockWave':
|
312 |
+
s = 'writeShockWave';
|
313 |
+
break;
|
314 |
+
|
315 |
+
case 'mceItemWindowsMedia':
|
316 |
+
s = 'writeWindowsMedia';
|
317 |
+
break;
|
318 |
+
|
319 |
+
case 'mceItemQuickTime':
|
320 |
+
s = 'writeQuickTime';
|
321 |
+
break;
|
322 |
+
|
323 |
+
case 'mceItemRealMedia':
|
324 |
+
s = 'writeRealMedia';
|
325 |
+
break;
|
326 |
+
}
|
327 |
+
|
328 |
+
if (attribs.width)
|
329 |
+
at = at.replace(/width:[^0-9]?[0-9]+%?[^0-9]?/g, "width:'" + attribs.width + "'");
|
330 |
+
|
331 |
+
if (attribs.height)
|
332 |
+
at = at.replace(/height:[^0-9]?[0-9]+%?[^0-9]?/g, "height:'" + attribs.height + "'");
|
333 |
+
|
334 |
+
// Force absolute URL
|
335 |
+
if (!tinyMCE.getParam("relative_urls")) {
|
336 |
+
pl.src = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], pl.src);
|
337 |
+
at = at.replace(new RegExp("src:'[^']*'", "g"), "src:'" + pl.src + "'");
|
338 |
+
}
|
339 |
+
|
340 |
+
embedHTML = '<script type="text/javascript">' + s + '({' + at + '});</script>';
|
341 |
+
}
|
342 |
+
|
343 |
+
// Insert embed/object chunk
|
344 |
+
chunkBefore = content.substring(0, startPos);
|
345 |
+
chunkAfter = content.substring(endPos);
|
346 |
+
content = chunkBefore + embedHTML + chunkAfter;
|
347 |
+
}
|
348 |
+
break;
|
349 |
+
}
|
350 |
+
|
351 |
+
return content;
|
352 |
+
},
|
353 |
+
|
354 |
+
handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) {
|
355 |
+
if (node == null)
|
356 |
+
return;
|
357 |
+
|
358 |
+
do {
|
359 |
+
if (node.nodeName == "IMG" && /mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(tinyMCE.getAttrib(node, 'class'))) {
|
360 |
+
tinyMCE.switchClass(editor_id + '_media', 'mceButtonSelected');
|
361 |
+
return true;
|
362 |
+
}
|
363 |
+
} while ((node = node.parentNode));
|
364 |
+
|
365 |
+
tinyMCE.switchClass(editor_id + '_media', 'mceButtonNormal');
|
366 |
+
|
367 |
+
return true;
|
368 |
+
},
|
369 |
+
|
370 |
+
_createImgFromEmbed : function(n, d, cl) {
|
371 |
+
var ne, at, i, ti = '', an;
|
372 |
+
|
373 |
+
ne = d.createElement('img');
|
374 |
+
ne.src = tinyMCE.getParam("theme_href") + '/images/spacer.gif';
|
375 |
+
ne.width = tinyMCE.getAttrib(n, 'width');
|
376 |
+
ne.height = tinyMCE.getAttrib(n, 'height');
|
377 |
+
ne.className = cl;
|
378 |
+
|
379 |
+
at = n.attributes;
|
380 |
+
for (i=0; i<at.length; i++) {
|
381 |
+
if (at[i].specified && at[i].nodeValue) {
|
382 |
+
an = at[i].nodeName.toLowerCase();
|
383 |
+
|
384 |
+
if (an == 'src')
|
385 |
+
continue;
|
386 |
+
|
387 |
+
if (an == 'mce_src')
|
388 |
+
an = 'src';
|
389 |
+
|
390 |
+
if (an.indexOf('mce_') == -1 && !new RegExp('^(class|type)$').test(an))
|
391 |
+
ti += an.toLowerCase() + ':\'' + at[i].nodeValue + "',";
|
392 |
+
}
|
393 |
+
}
|
394 |
+
|
395 |
+
ti = ti.length > 0 ? ti.substring(0, ti.length - 1) : ti;
|
396 |
+
ne.title = ti;
|
397 |
+
|
398 |
+
n.parentNode.replaceChild(ne, n);
|
399 |
+
},
|
400 |
+
|
401 |
+
_createImg : function(cl, d, n) {
|
402 |
+
var i, nl, ti = "", an, av, al = new Array();
|
403 |
+
|
404 |
+
ne = d.createElement('img');
|
405 |
+
ne.src = tinyMCE.getParam("theme_href") + '/images/spacer.gif';
|
406 |
+
ne.width = tinyMCE.getAttrib(n, 'width');
|
407 |
+
ne.height = tinyMCE.getAttrib(n, 'height');
|
408 |
+
ne.className = cl;
|
409 |
+
|
410 |
+
al.id = tinyMCE.getAttrib(n, 'id');
|
411 |
+
al.name = tinyMCE.getAttrib(n, 'name');
|
412 |
+
al.width = tinyMCE.getAttrib(n, 'width');
|
413 |
+
al.height = tinyMCE.getAttrib(n, 'height');
|
414 |
+
al.bgcolor = tinyMCE.getAttrib(n, 'bgcolor');
|
415 |
+
al.align = tinyMCE.getAttrib(n, 'align');
|
416 |
+
al.class_name = tinyMCE.getAttrib(n, 'mce_class');
|
417 |
+
|
418 |
+
nl = n.getElementsByTagName('div');
|
419 |
+
for (i=0; i<nl.length; i++) {
|
420 |
+
av = tinyMCE.getAttrib(nl[i], 'value');
|
421 |
+
av = av.replace(new RegExp('\\\\', 'g'), '\\\\');
|
422 |
+
av = av.replace(new RegExp('"', 'g'), '\\"');
|
423 |
+
av = av.replace(new RegExp("'", 'g'), "\\'");
|
424 |
+
an = tinyMCE.getAttrib(nl[i], 'name');
|
425 |
+
al[an] = av;
|
426 |
+
}
|
427 |
+
|
428 |
+
if (al.movie) {
|
429 |
+
al.src = al.movie;
|
430 |
+
al.movie = null;
|
431 |
+
}
|
432 |
+
|
433 |
+
for (an in al) {
|
434 |
+
if (al[an] != null && typeof(al[an]) != "function" && al[an] != '')
|
435 |
+
ti += an.toLowerCase() + ':\'' + al[an] + "',";
|
436 |
+
}
|
437 |
+
|
438 |
+
ti = ti.length > 0 ? ti.substring(0, ti.length - 1) : ti;
|
439 |
+
ne.title = ti;
|
440 |
+
|
441 |
+
return ne;
|
442 |
+
},
|
443 |
+
|
444 |
+
_getEmbed : function(cls, cb, mt, p, at) {
|
445 |
+
var h = '', n;
|
446 |
+
|
447 |
+
p.width = at.width ? at.width : p.width;
|
448 |
+
p.height = at.height ? at.height : p.height;
|
449 |
+
|
450 |
+
h += '<object classid="clsid:' + cls + '" codebase="' + cb + '"';
|
451 |
+
h += typeof(p.id) != "undefined" ? ' id="' + p.id + '"' : '';
|
452 |
+
h += typeof(p.name) != "undefined" ? ' name="' + p.name + '"' : '';
|
453 |
+
h += typeof(p.width) != "undefined" ? ' width="' + p.width + '"' : '';
|
454 |
+
h += typeof(p.height) != "undefined" ? ' height="' + p.height + '"' : '';
|
455 |
+
h += typeof(p.align) != "undefined" ? ' align="' + p.align + '"' : '';
|
456 |
+
h += '>';
|
457 |
+
|
458 |
+
for (n in p) {
|
459 |
+
if (typeof(p[n]) != "undefined" && typeof(p[n]) != "function") {
|
460 |
+
h += '<param name="' + n + '" value="' + p[n] + '" />';
|
461 |
+
|
462 |
+
// Add extra url parameter if it's an absolute URL on WMP
|
463 |
+
if (n == 'src' && p[n].indexOf('://') != -1 && mt == 'application/x-mplayer2')
|
464 |
+
h += '<param name="url" value="' + p[n] + '" />';
|
465 |
+
}
|
466 |
+
}
|
467 |
+
|
468 |
+
h += '<embed type="' + mt + '"';
|
469 |
+
|
470 |
+
for (n in p) {
|
471 |
+
if (typeof(p[n]) == "function")
|
472 |
+
continue;
|
473 |
+
|
474 |
+
// Skip url parameter for embed tag on WMP
|
475 |
+
if (!(n == 'url' && mt == 'application/x-mplayer2'))
|
476 |
+
h += ' ' + n + '="' + p[n] + '"';
|
477 |
+
}
|
478 |
+
|
479 |
+
h += '></embed></object><br /><br />';
|
480 |
+
// h += "\n\n";
|
481 |
+
|
482 |
+
return h;
|
483 |
+
},
|
484 |
+
|
485 |
+
_parseAttributes : function(attribute_string) {
|
486 |
+
var attributeName = "", endChr = '"';
|
487 |
+
var attributeValue = "";
|
488 |
+
var withInName;
|
489 |
+
var withInValue;
|
490 |
+
var attributes = new Array();
|
491 |
+
var whiteSpaceRegExp = new RegExp('^[ \n\r\t]+', 'g');
|
492 |
+
|
493 |
+
if (attribute_string == null || attribute_string.length < 2)
|
494 |
+
return null;
|
495 |
+
|
496 |
+
withInName = withInValue = false;
|
497 |
+
|
498 |
+
for (var i=0; i<attribute_string.length; i++) {
|
499 |
+
var chr = attribute_string.charAt(i);
|
500 |
+
|
501 |
+
if ((chr == '"' || chr == "'") && !withInValue) {
|
502 |
+
withInValue = true;
|
503 |
+
endChr = chr;
|
504 |
+
} else if (chr == endChr && withInValue) {
|
505 |
+
withInValue = false;
|
506 |
+
|
507 |
+
var pos = attributeName.lastIndexOf(' ');
|
508 |
+
if (pos != -1)
|
509 |
+
attributeName = attributeName.substring(pos+1);
|
510 |
+
|
511 |
+
attributes[attributeName.toLowerCase()] = attributeValue.substring(1);
|
512 |
+
|
513 |
+
attributeName = "";
|
514 |
+
attributeValue = "";
|
515 |
+
} else if (!whiteSpaceRegExp.test(chr) && !withInName && !withInValue)
|
516 |
+
withInName = true;
|
517 |
+
|
518 |
+
if (chr == '=' && withInName)
|
519 |
+
withInName = false;
|
520 |
+
|
521 |
+
if (withInName)
|
522 |
+
attributeName += chr;
|
523 |
+
|
524 |
+
if (withInValue)
|
525 |
+
attributeValue += chr;
|
526 |
+
}
|
527 |
+
|
528 |
+
return attributes;
|
529 |
+
}
|
530 |
+
};
|
531 |
+
|
532 |
+
tinyMCE.addPlugin("media", TinyMCE_MediaPlugin);
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/media/images/flash.gif
RENAMED
File without changes
|
tinymce-advanced/mce/media/images/media.gif
ADDED
Binary file
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/media/images/quicktime.gif
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/media/images/realmedia.gif
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/media/images/shockwave.gif
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/media/images/windowsmedia.gif
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/media/jscripts/embed.js
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/media/jscripts/media.js
RENAMED
@@ -572,7 +572,7 @@ function generatePreview(c) {
|
|
572 |
h += '<object classid="clsid:' + cls + '" codebase="' + codebase + '" width="' + pl.width + '" height="' + pl.height + '" id="' + pl.id + '" name="' + pl.name + '" align="' + pl.align + '">';
|
573 |
|
574 |
for (n in pl) {
|
575 |
-
h += '<param name="' + n + '" value="' + pl[n] + '"
|
576 |
|
577 |
// Add extra url parameter if it's an absolute URL
|
578 |
if (n == 'src' && pl[n].indexOf('://') != -1)
|
572 |
h += '<object classid="clsid:' + cls + '" codebase="' + codebase + '" width="' + pl.width + '" height="' + pl.height + '" id="' + pl.id + '" name="' + pl.name + '" align="' + pl.align + '">';
|
573 |
|
574 |
for (n in pl) {
|
575 |
+
h += '<param name="' + n + '" value="' + pl[n] + '" />';
|
576 |
|
577 |
// Add extra url parameter if it's an absolute URL
|
578 |
if (n == 'src' && pl[n].indexOf('://') != -1)
|
tinymce-advanced/mce/media/langs/de_de.js
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// DE lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('media',{
|
4 |
+
title : 'Eingebettete Medien einfügen / bearbeiten',
|
5 |
+
desc : 'Eingebettete Medien einfügen / bearbeiten',
|
6 |
+
general : 'Allgemein',
|
7 |
+
advanced : 'Erweitert',
|
8 |
+
file : 'Datei',
|
9 |
+
list : 'Liste',
|
10 |
+
size : 'Abmessung',
|
11 |
+
preview : 'Vorschau',
|
12 |
+
constrain_proportions : 'Größenverhältnis erzwingen',
|
13 |
+
type : 'Typ',
|
14 |
+
id : 'Id',
|
15 |
+
name : 'Name',
|
16 |
+
class_name : 'Klasse',
|
17 |
+
vspace : 'V-Space',
|
18 |
+
hspace : 'H-Space',
|
19 |
+
play : 'Autom. abspielen',
|
20 |
+
loop : 'Wiederholung',
|
21 |
+
menu : 'Menü zeigen',
|
22 |
+
quality : 'Qualität',
|
23 |
+
scale : 'Skalieren',
|
24 |
+
align : 'Ausrichten',
|
25 |
+
salign : 'SAlign',
|
26 |
+
wmode : 'WModus',
|
27 |
+
bgcolor : 'Hintergrund',
|
28 |
+
base : 'Basis',
|
29 |
+
flashvars : 'Flashvars',
|
30 |
+
liveconnect : 'SWLiveConnect',
|
31 |
+
autohref : 'AutoHREF',
|
32 |
+
cache : 'Cache',
|
33 |
+
hidden : 'Versteckt',
|
34 |
+
controller : 'Controller',
|
35 |
+
kioskmode : 'Kiosk Modus',
|
36 |
+
playeveryframe : 'Spiele jeden Frame',
|
37 |
+
targetcache : 'Ziel Cache',
|
38 |
+
correction : 'Keine Korrektur',
|
39 |
+
enablejavascript : 'JavaScript eingeschaltet',
|
40 |
+
starttime : 'Startzeit',
|
41 |
+
endtime : 'Endzeit',
|
42 |
+
href : 'Href',
|
43 |
+
qtsrcchokespeed : 'Choke speed',
|
44 |
+
target : 'Ziel',
|
45 |
+
volume : 'Lautstärke',
|
46 |
+
autostart : 'Autom. Start',
|
47 |
+
enabled : 'Eingeschaltet',
|
48 |
+
fullscreen : 'Vollbildschirm',
|
49 |
+
invokeurls : 'Aufgerufende URLs',
|
50 |
+
mute : 'Stumm',
|
51 |
+
stretchtofit : 'Ausdehnen',
|
52 |
+
windowlessvideo : 'Fensterloses Video',
|
53 |
+
balance : 'Balance',
|
54 |
+
baseurl : 'Base URL',
|
55 |
+
captioningid : 'Untertitel Id',
|
56 |
+
currentmarker : 'Jetziger Marker',
|
57 |
+
currentposition : 'Jetzige Position',
|
58 |
+
defaultframe : 'Standard Bild',
|
59 |
+
playcount : 'Spiel Zähler',
|
60 |
+
rate : 'Rate',
|
61 |
+
uimode : 'UI Modus',
|
62 |
+
flash_options : 'Flash Optionen',
|
63 |
+
qt_options : 'Quicktime Optionen',
|
64 |
+
wmp_options : 'Windows Media Player Optionen',
|
65 |
+
rmp_options : 'Real Media Player Optionen',
|
66 |
+
shockwave_options : 'Shockwave Optionen',
|
67 |
+
autogotourl : 'Autom. geh zu URL',
|
68 |
+
center : 'Zentriert',
|
69 |
+
imagestatus : 'Bildstatus',
|
70 |
+
maintainaspect : 'Verhältnis beibehalten',
|
71 |
+
nojava : 'Kein Java',
|
72 |
+
prefetch : 'Prefetch',
|
73 |
+
shuffle : 'Shuffle',
|
74 |
+
console : 'Konsole',
|
75 |
+
numloop : 'Num Loops',
|
76 |
+
controls : 'Kontrollen',
|
77 |
+
scriptcallbacks : 'Script callbacks',
|
78 |
+
swstretchstyle : 'Style ausdehnen',
|
79 |
+
swstretchhalign : 'H-Align ausdehnen',
|
80 |
+
swstretchvalign : 'V-Align ausdehnen',
|
81 |
+
sound : 'Sound',
|
82 |
+
progress : 'Fortschritt',
|
83 |
+
qtsrc : 'QT Quelle',
|
84 |
+
qt_stream_warn : 'Streamed rtsp Ressourcen sollten unter dem QT Src Feld im Erweitert-Tab hinzugefügt werden.\nSie sollten auch noch eine nicht gestreamete Version im SRC Feld eintragen...'
|
85 |
+
});
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/media/langs/en.js
RENAMED
File without changes
|
tinymce-advanced/mce/media/langs/es_es.js
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// UK lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('media',{
|
4 |
+
title : 'Insert / edit embedded media',
|
5 |
+
desc : 'Insert / edit embedded media',
|
6 |
+
general : 'General',
|
7 |
+
advanced : 'Advanced',
|
8 |
+
file : 'File',
|
9 |
+
list : 'List',
|
10 |
+
size : 'Dimensions',
|
11 |
+
preview : 'Preview',
|
12 |
+
constrain_proportions : 'Constrain proportions',
|
13 |
+
type : 'Type',
|
14 |
+
id : 'Id',
|
15 |
+
name : 'Name',
|
16 |
+
class_name : 'Class',
|
17 |
+
vspace : 'V-Space',
|
18 |
+
hspace : 'H-Space',
|
19 |
+
play : 'Auto play',
|
20 |
+
loop : 'Loop',
|
21 |
+
menu : 'Show menu',
|
22 |
+
quality : 'Quality',
|
23 |
+
scale : 'Scale',
|
24 |
+
align : 'Align',
|
25 |
+
salign : 'SAlign',
|
26 |
+
wmode : 'WMode',
|
27 |
+
bgcolor : 'Background',
|
28 |
+
base : 'Base',
|
29 |
+
flashvars : 'Flashvars',
|
30 |
+
liveconnect : 'SWLiveConnect',
|
31 |
+
autohref : 'AutoHREF',
|
32 |
+
cache : 'Cache',
|
33 |
+
hidden : 'Hidden',
|
34 |
+
controller : 'Controller',
|
35 |
+
kioskmode : 'Kiosk mode',
|
36 |
+
playeveryframe : 'Play every frame',
|
37 |
+
targetcache : 'Target cache',
|
38 |
+
correction : 'No correction',
|
39 |
+
enablejavascript : 'Enable JavaScript',
|
40 |
+
starttime : 'Start time',
|
41 |
+
endtime : 'End time',
|
42 |
+
href : 'Href',
|
43 |
+
qtsrcchokespeed : 'Choke speed',
|
44 |
+
target : 'Target',
|
45 |
+
volume : 'Volume',
|
46 |
+
autostart : 'Auto start',
|
47 |
+
enabled : 'Enabled',
|
48 |
+
fullscreen : 'Fullscreen',
|
49 |
+
invokeurls : 'Invoke URLs',
|
50 |
+
mute : 'Mute',
|
51 |
+
stretchtofit : 'Stretch to fit',
|
52 |
+
windowlessvideo : 'Windowless video',
|
53 |
+
balance : 'Balance',
|
54 |
+
baseurl : 'Base URL',
|
55 |
+
captioningid : 'Captioning id',
|
56 |
+
currentmarker : 'Current marker',
|
57 |
+
currentposition : 'Current position',
|
58 |
+
defaultframe : 'Default frame',
|
59 |
+
playcount : 'Play count',
|
60 |
+
rate : 'Rate',
|
61 |
+
uimode : 'UI Mode',
|
62 |
+
flash_options : 'Flash options',
|
63 |
+
qt_options : 'Quicktime options',
|
64 |
+
wmp_options : 'Windows media player options',
|
65 |
+
rmp_options : 'Real media player options',
|
66 |
+
shockwave_options : 'Shockwave options',
|
67 |
+
autogotourl : 'Auto goto URL',
|
68 |
+
center : 'Center',
|
69 |
+
imagestatus : 'Image status',
|
70 |
+
maintainaspect : 'Maintain aspect',
|
71 |
+
nojava : 'No java',
|
72 |
+
prefetch : 'Prefetch',
|
73 |
+
shuffle : 'Shuffle',
|
74 |
+
console : 'Console',
|
75 |
+
numloop : 'Num loops',
|
76 |
+
controls : 'Controls',
|
77 |
+
scriptcallbacks : 'Script callbacks',
|
78 |
+
swstretchstyle : 'Stretch style',
|
79 |
+
swstretchhalign : 'Stretch H-Align',
|
80 |
+
swstretchvalign : 'Stretch V-Align',
|
81 |
+
sound : 'Sound',
|
82 |
+
progress : 'Progress',
|
83 |
+
qtsrc : 'QT Src',
|
84 |
+
qt_stream_warn : 'Streamed rtsp resources should be added to the QT Src field under the advanced tab.\nYou should also add a non streamed version to the Src field..'
|
85 |
+
});
|
tinymce-advanced/mce/media/langs/fr_fr.js
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// FR lang variables
|
2 |
+
// Modified by shadow walker, last updated 2007-03-16, based on the work of Motte
|
3 |
+
|
4 |
+
tinyMCE.addToLang('media',{
|
5 |
+
title : 'Insérer / Editer des medias',
|
6 |
+
desc : 'Insérer / Editer des medias',
|
7 |
+
general : 'Général',
|
8 |
+
advanced : 'Avancement',
|
9 |
+
file : 'Fichier',
|
10 |
+
list : 'Liste',
|
11 |
+
size : 'Taille',
|
12 |
+
preview : 'Prévisualisation',
|
13 |
+
constrain_proportions : 'Garder les proportions',
|
14 |
+
type : 'Type',
|
15 |
+
id : 'Id',
|
16 |
+
name : 'Nom',
|
17 |
+
class_name : 'Classe',
|
18 |
+
vspace : 'V-Space',
|
19 |
+
hspace : 'H-Space',
|
20 |
+
play : 'Lecture automatique',
|
21 |
+
loop : 'Répéter',
|
22 |
+
menu : 'Menu',
|
23 |
+
quality : 'Qualité',
|
24 |
+
scale : 'Balance',
|
25 |
+
align : 'Aligner',
|
26 |
+
salign : 'SAlign',
|
27 |
+
wmode : 'WMode',
|
28 |
+
bgcolor : 'Arri�e plan',
|
29 |
+
base : 'Base',
|
30 |
+
flashvars : 'Flashvars',
|
31 |
+
liveconnect : 'SWLiveConnect',
|
32 |
+
autohref : 'AutoHREF',
|
33 |
+
cache : 'Cache',
|
34 |
+
hidden : 'Cache',
|
35 |
+
controller : 'Controleur',
|
36 |
+
kioskmode : 'Mode Kioske',
|
37 |
+
playeveryframe : 'Jouer chaque partie',
|
38 |
+
targetcache : 'Cible cachée',
|
39 |
+
correction : 'Pas de corrections',
|
40 |
+
enablejavascript : 'Permettre le JavaScript',
|
41 |
+
starttime : 'Début',
|
42 |
+
endtime : 'Fin',
|
43 |
+
href : 'Href',
|
44 |
+
qtsrcchokespeed : 'Vitesse de déroulement',
|
45 |
+
target : 'Cible',
|
46 |
+
volume : 'Volume',
|
47 |
+
autostart : 'Démarrer automatiquement',
|
48 |
+
enabled : 'Autorisé',
|
49 |
+
fullscreen : 'Plein écran',
|
50 |
+
invokeurls : 'Invoke URLs',
|
51 |
+
mute : 'Muet',
|
52 |
+
stretchtofit : 'Redimensionner',
|
53 |
+
windowlessvideo : 'Vidéo sans fen�re',
|
54 |
+
balance : 'Balance',
|
55 |
+
baseurl : 'URL de base',
|
56 |
+
captioningid : 'Captioning id',
|
57 |
+
currentmarker : 'Markeur actuel',
|
58 |
+
currentposition : 'Position actuelle',
|
59 |
+
defaultframe : 'Par défaut',
|
60 |
+
playcount : 'Nombre delecture',
|
61 |
+
rate : 'Taux',
|
62 |
+
uimode : 'Mode UI',
|
63 |
+
flash_options : 'Options flash',
|
64 |
+
qt_options : 'Options quicktime',
|
65 |
+
wmp_options : 'Options windows media player',
|
66 |
+
rmp_options : 'Options real media player',
|
67 |
+
shockwave_options : 'Options shockwave',
|
68 |
+
autogotourl : 'Auto goto URL',
|
69 |
+
center : 'Centre',
|
70 |
+
imagestatus : 'Statut de l\'image',
|
71 |
+
maintainaspect : 'Maintenir l\'aspect',
|
72 |
+
nojava : 'Pas de java',
|
73 |
+
prefetch : 'Pré-chargement',
|
74 |
+
shuffle : 'Aléatoire',
|
75 |
+
console : 'Console',
|
76 |
+
numloop : 'Nombre de boucles',
|
77 |
+
controls : 'Controles',
|
78 |
+
scriptcallbacks : 'Script callbacks',
|
79 |
+
swstretchstyle : 'Stretch style',
|
80 |
+
swstretchhalign : 'Stretch H-Align',
|
81 |
+
swstretchvalign : 'Stretch V-Align',
|
82 |
+
sound : 'Son',
|
83 |
+
progress : 'Avancement',
|
84 |
+
qtsrc : 'QT Src',
|
85 |
+
qt_stream_warn : 'Les flux rtsp doivent �re ajoutés au champ QT Src dans l\'onglet avancé.\nVous devriez ajouter une version sans flux au champ Src..',
|
86 |
+
align_top : 'Haut',
|
87 |
+
align_right : 'Droite',
|
88 |
+
align_bottom : 'Bas',
|
89 |
+
align_left : 'Gauche',
|
90 |
+
align_center : 'Centrer',
|
91 |
+
align_top_left : 'Haut gauche',
|
92 |
+
align_top_right : 'Haut droit',
|
93 |
+
align_bottom_left : 'Bas gauche',
|
94 |
+
align_bottom_right : 'Bas droite'
|
95 |
+
});
|
tinymce-advanced/mce/media/langs/it_it.js
ADDED
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* IT lang variables
|
3 |
+
*
|
4 |
+
* Author : Luciano Vernaschi <luciano@virgilio.it>
|
5 |
+
* Last Updated : Mar. 1st, 2007
|
6 |
+
* TinyMCE Version : 2.1.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
tinyMCE.addToLang('media',{
|
10 |
+
title : 'Inserisci o modifica file multimediali',
|
11 |
+
desc : 'Inserisci o modifica file multimediali',
|
12 |
+
general : 'Generale',
|
13 |
+
advanced : 'Avanzate',
|
14 |
+
file : 'File',
|
15 |
+
list : 'Lista',
|
16 |
+
size : 'Dimensioni',
|
17 |
+
preview : 'Anteprima',
|
18 |
+
constrain_proportions : 'Mantieni proporzioni',
|
19 |
+
type : 'Tipo',
|
20 |
+
id : 'Id',
|
21 |
+
name : 'Nome',
|
22 |
+
class_name : 'Classe',
|
23 |
+
vspace : 'V-Space',
|
24 |
+
hspace : 'H-Space',
|
25 |
+
play : 'Riproduzione automatica',
|
26 |
+
loop : 'Cicla',
|
27 |
+
menu : 'Mostra menu',
|
28 |
+
quality : 'Qualità',
|
29 |
+
scale : 'Scala',
|
30 |
+
align : 'Allineamento',
|
31 |
+
salign : 'SAlign',
|
32 |
+
wmode : 'WMode',
|
33 |
+
bgcolor : 'Colore di sfondo',
|
34 |
+
base : 'Base',
|
35 |
+
flashvars : 'Flashvars',
|
36 |
+
liveconnect : 'SWLiveConnect',
|
37 |
+
autohref : 'AutoHREF',
|
38 |
+
cache : 'Cache',
|
39 |
+
hidden : 'Nascosto',
|
40 |
+
controller : 'Controller',
|
41 |
+
kioskmode : 'Kiosk mode',
|
42 |
+
playeveryframe : 'Mostra tutti i frame',
|
43 |
+
targetcache : 'Target cache',
|
44 |
+
correction : 'Nessuna correzione',
|
45 |
+
enablejavascript : 'Abilita JavaScript',
|
46 |
+
starttime : 'Tempo iniziale',
|
47 |
+
endtime : 'Tempo finale',
|
48 |
+
href : 'Href',
|
49 |
+
qtsrcchokespeed : 'Choke speed',
|
50 |
+
target : 'Target',
|
51 |
+
volume : 'Volume',
|
52 |
+
autostart : 'Avvio automatico',
|
53 |
+
enabled : 'Abilitato',
|
54 |
+
fullscreen : 'Schermo intero',
|
55 |
+
invokeurls : 'Invoca URL',
|
56 |
+
mute : 'Muto',
|
57 |
+
stretchtofit : 'Riempi',
|
58 |
+
windowlessvideo : 'Video windowless',
|
59 |
+
balance : 'Bilanciamento',
|
60 |
+
baseurl : 'Base URL',
|
61 |
+
captioningid : 'Captioning id',
|
62 |
+
currentmarker : 'Marker corrente',
|
63 |
+
currentposition : 'Posizione corrente',
|
64 |
+
defaultframe : 'Frame di default',
|
65 |
+
playcount : 'Play count',
|
66 |
+
rate : 'Rate',
|
67 |
+
uimode : 'Modo UI',
|
68 |
+
flash_options : 'Opzioni Flash',
|
69 |
+
qt_options : 'Opzioni Quicktime',
|
70 |
+
wmp_options : 'Opzioni Windows Media Player',
|
71 |
+
rmp_options : 'Opzioni Real Media Player',
|
72 |
+
shockwave_options : 'Opzioni Shockwave',
|
73 |
+
autogotourl : 'Auto goto URL',
|
74 |
+
center : 'Centra',
|
75 |
+
imagestatus : 'Image status',
|
76 |
+
maintainaspect : 'Maintieni aspetto',
|
77 |
+
nojava : 'No Java',
|
78 |
+
prefetch : 'Prefetch',
|
79 |
+
shuffle : 'Casuale',
|
80 |
+
console : 'Console',
|
81 |
+
numloop : 'Num. ripetizioni',
|
82 |
+
controls : 'Controlli',
|
83 |
+
scriptcallbacks : 'Script callbacks',
|
84 |
+
swstretchstyle : 'Stretch style',
|
85 |
+
swstretchhalign : 'Stretch H-Align',
|
86 |
+
swstretchvalign : 'Stretch V-Align',
|
87 |
+
sound : 'Suono',
|
88 |
+
progress : 'Progresso',
|
89 |
+
qtsrc : 'QT Src',
|
90 |
+
qt_stream_warn : 'Le risorse "Streamed RTSP" devono essere aggiunte al campo "QT Src" nelle funzioni avanzate.\nÈ meglio aggiungere anche una versione non in streaming nel campo Src.'
|
91 |
+
align_top : 'In Alto',
|
92 |
+
align_right : 'A destra',
|
93 |
+
align_bottom : 'In basso',
|
94 |
+
align_left : 'A sinistra',
|
95 |
+
align_center : 'Al centro',
|
96 |
+
align_top_left : 'In alto a sinistra',
|
97 |
+
align_top_right : 'In alto a destra',
|
98 |
+
align_bottom_left : 'In basso a sinistra',
|
99 |
+
align_bottom_right : 'In basso a destra'
|
100 |
+
});
|
tinymce-advanced/mce/media/langs/pt_br.js
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* pt_br lang variables
|
3 |
+
* Brazilian Portuguese
|
4 |
+
*
|
5 |
+
* Author
|
6 |
+
* Revision and modifications:
|
7 |
+
* Marcio Barbosa (mpg) <mpg@mpg.com.br>
|
8 |
+
* First Release : November 20, 2006 - TinyMCE Version : 2.0.8
|
9 |
+
*/
|
10 |
+
tinyMCE.addToLang('media',{
|
11 |
+
title : 'Inserir/editar m�dia incorporada',
|
12 |
+
desc : 'Inserir/editar m�dia incorporada',
|
13 |
+
general : 'Geral',
|
14 |
+
advanced : 'Avan�ado',
|
15 |
+
file : 'Arquivo',
|
16 |
+
list : 'Lista',
|
17 |
+
size : 'Dimens�es',
|
18 |
+
preview : 'Preview',
|
19 |
+
constrain_proportions : 'Confinar propor��es',
|
20 |
+
type : 'Tipo',
|
21 |
+
id : 'ID',
|
22 |
+
name : 'Nome',
|
23 |
+
class_name : 'Classe',
|
24 |
+
vspace : 'Espa�o-V',
|
25 |
+
hspace : 'Espa�o-H',
|
26 |
+
play : 'Tocar automaticamente',
|
27 |
+
loop : 'Loop',
|
28 |
+
menu : 'Mostrar menu',
|
29 |
+
quality : 'Qualidade',
|
30 |
+
scale : 'Escala',
|
31 |
+
align : 'Alinhamento',
|
32 |
+
salign : 'SAlign',
|
33 |
+
wmode : 'WMode',
|
34 |
+
bgcolor : 'Fundo',
|
35 |
+
base : 'Base',
|
36 |
+
flashvars : 'Flashvars',
|
37 |
+
liveconnect : 'SWLiveConnect',
|
38 |
+
autohref : 'AutoHREF',
|
39 |
+
cache : 'Cache',
|
40 |
+
hidden : 'Escondido',
|
41 |
+
controller : 'Controlador',
|
42 |
+
kioskmode : 'Modo Kiosk',
|
43 |
+
playeveryframe : 'Tocar cada frame',
|
44 |
+
targetcache : 'Destino do cache',
|
45 |
+
correction : 'Sem corre��o',
|
46 |
+
enablejavascript : 'Ativar JavaScript',
|
47 |
+
starttime : 'Tempo de in�cio',
|
48 |
+
endtime : 'Tempo de fim',
|
49 |
+
href : 'Href',
|
50 |
+
qtsrcchokespeed : 'Velocidade do bloqueador',
|
51 |
+
target : 'Destino',
|
52 |
+
volume : 'Volume',
|
53 |
+
autostart : 'In�cio autom�tico',
|
54 |
+
enabled : 'Ativado',
|
55 |
+
fullscreen : 'Tela Cheia',
|
56 |
+
invokeurls : 'Chamar URLs',
|
57 |
+
mute : 'Silencioso',
|
58 |
+
stretchtofit : 'Esticar para caber',
|
59 |
+
windowlessvideo : 'V�deo em janela',
|
60 |
+
balance : 'Balan�o',
|
61 |
+
baseurl : 'URL Base',
|
62 |
+
captioningid : 'ID de identifica��o',
|
63 |
+
currentmarker : 'Marcador atual',
|
64 |
+
currentposition : 'Posi��o atual',
|
65 |
+
defaultframe : 'Frame padr�o',
|
66 |
+
playcount : 'Contador',
|
67 |
+
rate : 'Taxa',
|
68 |
+
uimode : 'Modo UI',
|
69 |
+
flash_options : 'Op��es do Flash',
|
70 |
+
qt_options : 'Op��es do Quicktime',
|
71 |
+
wmp_options : 'Op��es do Windows media player',
|
72 |
+
rmp_options : 'Op��es do Real media player',
|
73 |
+
shockwave_options : 'Op��es do Shockwave',
|
74 |
+
autogotourl : 'Ir automaticamente para URL',
|
75 |
+
center : 'Centro',
|
76 |
+
imagestatus : 'Status da imagem',
|
77 |
+
maintainaspect : 'Manter aspecto',
|
78 |
+
nojava : 'Sem java',
|
79 |
+
prefetch : 'Leitura inicial',
|
80 |
+
shuffle : 'Aleat�rio',
|
81 |
+
console : 'Console',
|
82 |
+
numloop : 'N�mero de loops',
|
83 |
+
controls : 'Controles',
|
84 |
+
scriptcallbacks : 'Script de retorno',
|
85 |
+
swstretchstyle : 'Estilo para o Stretch',
|
86 |
+
swstretchhalign : 'Stretch H-Align',
|
87 |
+
swstretchvalign : 'Stretch V-Align',
|
88 |
+
sound : 'Som',
|
89 |
+
progress : 'Progresso',
|
90 |
+
qtsrc : 'QT Src',
|
91 |
+
qt_stream_warn : 'Os recursos do Streamed rtsp podem ser adicionado ao campo QT Src na aba avan�ada.\nVoc� pode tamb�m adicionar uma vers�o n�o streamer ao comapo Src.',
|
92 |
+
align_top : 'Acima',
|
93 |
+
align_right : 'Direita',
|
94 |
+
align_bottom : 'Abaixo',
|
95 |
+
align_left : 'Esquerda',
|
96 |
+
align_center : 'Centro',
|
97 |
+
align_top_left : 'Acima esquerda',
|
98 |
+
align_top_right : 'Acima direita',
|
99 |
+
align_bottom_left : 'Abaixo esquerda',
|
100 |
+
align_bottom_right : 'Abaixo direita'
|
101 |
+
});
|
tinymce-advanced/mce/media/langs/ru_ru.js
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// RU lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('media',{
|
4 |
+
title : 'Вставить / редактировать медиа',
|
5 |
+
desc : 'Вставить / редактировать медиа',
|
6 |
+
general : 'Основной',
|
7 |
+
advanced : 'Дополнительный',
|
8 |
+
file : 'Файл',
|
9 |
+
list : 'Список',
|
10 |
+
size : 'Размеры',
|
11 |
+
preview : 'Предпросмотр',
|
12 |
+
constrain_proportions : 'Поддерживать пропорции',
|
13 |
+
type : 'Тип',
|
14 |
+
id : 'Id',
|
15 |
+
name : 'Имя',
|
16 |
+
class_name : 'Класс',
|
17 |
+
vspace : 'V-Отступ',
|
18 |
+
hspace : 'H-Отступ',
|
19 |
+
play : 'Авто проигрывание',
|
20 |
+
loop : 'Цикл',
|
21 |
+
menu : 'Показать меню',
|
22 |
+
quality : 'Качество',
|
23 |
+
scale : 'Масштаб',
|
24 |
+
align : 'Выравнивание',
|
25 |
+
salign : 'S-Выравнивание',
|
26 |
+
wmode : 'W-Режим',
|
27 |
+
bgcolor : 'Фон',
|
28 |
+
base : 'База',
|
29 |
+
flashvars : 'Переменные флеш',
|
30 |
+
liveconnect : 'SWLiveConnect',
|
31 |
+
autohref : 'Авто Ссылка',
|
32 |
+
cache : 'Кеш',
|
33 |
+
hidden : 'Скрытый',
|
34 |
+
controller : 'Контроллер',
|
35 |
+
kioskmode : 'Режим Kiosk',
|
36 |
+
playeveryframe : 'Проигрывать каждый кадр',
|
37 |
+
targetcache : 'Целевой кеш',
|
38 |
+
correction : 'No correction',
|
39 |
+
enablejavascript : 'Включить JavaScript',
|
40 |
+
starttime : 'Время начала',
|
41 |
+
endtime : 'Время окончания',
|
42 |
+
href : 'Ссылка',
|
43 |
+
qtsrcchokespeed : 'Уменьшить скорость',
|
44 |
+
target : 'Цель',
|
45 |
+
volume : 'Громкость',
|
46 |
+
autostart : 'Авто запуск',
|
47 |
+
enabled : 'Включено',
|
48 |
+
fullscreen : 'Полный экран',
|
49 |
+
invokeurls : 'Активизировать ссылки',
|
50 |
+
mute : 'Тишина',
|
51 |
+
stretchtofit : 'Растянуть до вхождения',
|
52 |
+
windowlessvideo : 'Безоконное видео',
|
53 |
+
balance : 'Баланс',
|
54 |
+
baseurl : 'Базовая ссылка',
|
55 |
+
captioningid : 'Id ввода субтитров',
|
56 |
+
currentmarker : 'Текущая отметка',
|
57 |
+
currentposition : 'Текущая позиция',
|
58 |
+
defaultframe : 'Кадр по умолчанию',
|
59 |
+
playcount : 'Счетчик',
|
60 |
+
rate : 'Частота',
|
61 |
+
uimode : 'UI режим',
|
62 |
+
flash_options : 'Опции Флеш',
|
63 |
+
qt_options : 'Опции Quicktime',
|
64 |
+
wmp_options : 'Опции проигрывателя Windows media',
|
65 |
+
rmp_options : 'Опции проигрывателя Real media',
|
66 |
+
shockwave_options : 'Опции Shockwave',
|
67 |
+
autogotourl : 'Авто переход по ссылке',
|
68 |
+
center : 'Центр',
|
69 |
+
imagestatus : 'Статус изображения',
|
70 |
+
maintainaspect : 'Поддерживать аспект',
|
71 |
+
nojava : 'Без java',
|
72 |
+
prefetch : 'Упреждение',
|
73 |
+
shuffle : 'Перемешать',
|
74 |
+
console : 'Консоль',
|
75 |
+
numloop : 'Количество циклов',
|
76 |
+
controls : 'Управления',
|
77 |
+
scriptcallbacks : 'Обратный вызов скрипта',
|
78 |
+
swstretchstyle : 'Стиль растяжения',
|
79 |
+
swstretchhalign : 'H-Выравнивание растяжения',
|
80 |
+
swstretchvalign : 'V-Выравнивание растяжения',
|
81 |
+
sound : 'Звук',
|
82 |
+
progress : 'Прогресс',
|
83 |
+
qtsrc : 'QT Исх',
|
84 |
+
qt_stream_warn : 'Потоковые rtsp ресурсы должны быть добавлены в поле QT Исх в дополнительную графу.\nВы также должны добавить не потоковую версию в поле Исх..',
|
85 |
+
align_top : 'Вверх',
|
86 |
+
align_right : 'Вправо',
|
87 |
+
align_bottom : 'Вниз',
|
88 |
+
align_left : 'Влево',
|
89 |
+
align_center : 'В центр',
|
90 |
+
align_top_left : 'Влево - вверх',
|
91 |
+
align_top_right : 'Вправо - вверх',
|
92 |
+
align_bottom_left : 'Влево - вниз',
|
93 |
+
align_bottom_right : 'Вправо - вниз'
|
94 |
+
});
|
tinymce-advanced/mce/media/langs/zh_cn.js
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// UK lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('media',{
|
4 |
+
title : 'Insert / edit embedded media',
|
5 |
+
desc : 'Insert / edit embedded media',
|
6 |
+
general : 'General',
|
7 |
+
advanced : 'Advanced',
|
8 |
+
file : 'File',
|
9 |
+
list : 'List',
|
10 |
+
size : 'Dimensions',
|
11 |
+
preview : 'Preview',
|
12 |
+
constrain_proportions : 'Constrain proportions',
|
13 |
+
type : 'Type',
|
14 |
+
id : 'Id',
|
15 |
+
name : 'Name',
|
16 |
+
class_name : 'Class',
|
17 |
+
vspace : 'V-Space',
|
18 |
+
hspace : 'H-Space',
|
19 |
+
play : 'Auto play',
|
20 |
+
loop : 'Loop',
|
21 |
+
menu : 'Show menu',
|
22 |
+
quality : 'Quality',
|
23 |
+
scale : 'Scale',
|
24 |
+
align : 'Align',
|
25 |
+
salign : 'SAlign',
|
26 |
+
wmode : 'WMode',
|
27 |
+
bgcolor : 'Background',
|
28 |
+
base : 'Base',
|
29 |
+
flashvars : 'Flashvars',
|
30 |
+
liveconnect : 'SWLiveConnect',
|
31 |
+
autohref : 'AutoHREF',
|
32 |
+
cache : 'Cache',
|
33 |
+
hidden : 'Hidden',
|
34 |
+
controller : 'Controller',
|
35 |
+
kioskmode : 'Kiosk mode',
|
36 |
+
playeveryframe : 'Play every frame',
|
37 |
+
targetcache : 'Target cache',
|
38 |
+
correction : 'No correction',
|
39 |
+
enablejavascript : 'Enable JavaScript',
|
40 |
+
starttime : 'Start time',
|
41 |
+
endtime : 'End time',
|
42 |
+
href : 'Href',
|
43 |
+
qtsrcchokespeed : 'Choke speed',
|
44 |
+
target : 'Target',
|
45 |
+
volume : 'Volume',
|
46 |
+
autostart : 'Auto start',
|
47 |
+
enabled : 'Enabled',
|
48 |
+
fullscreen : 'Fullscreen',
|
49 |
+
invokeurls : 'Invoke URLs',
|
50 |
+
mute : 'Mute',
|
51 |
+
stretchtofit : 'Stretch to fit',
|
52 |
+
windowlessvideo : 'Windowless video',
|
53 |
+
balance : 'Balance',
|
54 |
+
baseurl : 'Base URL',
|
55 |
+
captioningid : 'Captioning id',
|
56 |
+
currentmarker : 'Current marker',
|
57 |
+
currentposition : 'Current position',
|
58 |
+
defaultframe : 'Default frame',
|
59 |
+
playcount : 'Play count',
|
60 |
+
rate : 'Rate',
|
61 |
+
uimode : 'UI Mode',
|
62 |
+
flash_options : 'Flash options',
|
63 |
+
qt_options : 'Quicktime options',
|
64 |
+
wmp_options : 'Windows media player options',
|
65 |
+
rmp_options : 'Real media player options',
|
66 |
+
shockwave_options : 'Shockwave options',
|
67 |
+
autogotourl : 'Auto goto URL',
|
68 |
+
center : 'Center',
|
69 |
+
imagestatus : 'Image status',
|
70 |
+
maintainaspect : 'Maintain aspect',
|
71 |
+
nojava : 'No java',
|
72 |
+
prefetch : 'Prefetch',
|
73 |
+
shuffle : 'Shuffle',
|
74 |
+
console : 'Console',
|
75 |
+
numloop : 'Num loops',
|
76 |
+
controls : 'Controls',
|
77 |
+
scriptcallbacks : 'Script callbacks',
|
78 |
+
swstretchstyle : 'Stretch style',
|
79 |
+
swstretchhalign : 'Stretch H-Align',
|
80 |
+
swstretchvalign : 'Stretch V-Align',
|
81 |
+
sound : 'Sound',
|
82 |
+
progress : 'Progress',
|
83 |
+
qtsrc : 'QT Src',
|
84 |
+
qt_stream_warn : 'Streamed rtsp resources should be added to the QT Src field under the advanced tab.\nYou should also add a non streamed version to the Src field..'
|
85 |
+
});
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/media/media.htm
RENAMED
@@ -1,12 +1,12 @@
|
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_media_title}</title>
|
4 |
-
<script language="javascript" type="text/javascript" src="
|
5 |
<script language="javascript" type="text/javascript" src="jscripts/media.js"></script>
|
6 |
-
<script language="javascript" type="text/javascript" src="
|
7 |
-
<script language="javascript" type="text/javascript" src="
|
8 |
-
<script language="javascript" type="text/javascript" src="
|
9 |
-
<script language="javascript" type="text/javascript" src="
|
10 |
<link href="css/media.css" rel="stylesheet" type="text/css" />
|
11 |
<base target="_self" />
|
12 |
</head>
|
@@ -242,7 +242,7 @@
|
|
242 |
<td colspan="2">
|
243 |
<table border="0" cellpadding="0" cellspacing="0">
|
244 |
<tr>
|
245 |
-
<td><input type="checkbox" class="checkbox" id="qt_autoplay" name="qt_autoplay"
|
246 |
<td><label for="qt_autoplay">{$lang_media_play}</label></td>
|
247 |
</tr>
|
248 |
</table>
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_media_title}</title>
|
4 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/tiny_mce_popup.js"></script>
|
5 |
<script language="javascript" type="text/javascript" src="jscripts/media.js"></script>
|
6 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/mctabs.js"></script>
|
7 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/validate.js"></script>
|
8 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/form_utils.js"></script>
|
9 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/editable_selects.js"></script>
|
10 |
<link href="css/media.css" rel="stylesheet" type="text/css" />
|
11 |
<base target="_self" />
|
12 |
</head>
|
242 |
<td colspan="2">
|
243 |
<table border="0" cellpadding="0" cellspacing="0">
|
244 |
<tr>
|
245 |
+
<td><input type="checkbox" class="checkbox" id="qt_autoplay" name="qt_autoplay" onchange="generatePreview();" /></td>
|
246 |
<td><label for="qt_autoplay">{$lang_media_play}</label></td>
|
247 |
</tr>
|
248 |
</table>
|
tinymce-advanced/mce/nonbreaking/editor_plugin.js
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $
|
3 |
+
*
|
4 |
+
* @author Moxiecode
|
5 |
+
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
6 |
+
*/
|
7 |
+
|
8 |
+
// UK lang variables
|
9 |
+
tadvmce = realTinyMCE;
|
10 |
+
tadvmce.addToLang('nonbreaking',{
|
11 |
+
desc : 'Insert non-breaking space character'
|
12 |
+
});
|
13 |
+
|
14 |
+
/* Import plugin specific language pack */
|
15 |
+
//tinyMCE.importPluginLanguagePack('nonbreaking');
|
16 |
+
|
17 |
+
var TinyMCE_NonBreakingPlugin = {
|
18 |
+
getInfo : function() {
|
19 |
+
return {
|
20 |
+
longname : 'Nonbreaking space',
|
21 |
+
author : 'Moxiecode Systems AB',
|
22 |
+
authorurl : 'http://tinymce.moxiecode.com',
|
23 |
+
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/nonbreaking',
|
24 |
+
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
|
25 |
+
};
|
26 |
+
},
|
27 |
+
|
28 |
+
getControlHTML : function(cn) {
|
29 |
+
switch (cn) {
|
30 |
+
case "nonbreaking":
|
31 |
+
return tinyMCE.getButtonHTML(cn, 'lang_nonbreaking_desc', '{$pluginurl}/images/nonbreaking.gif', 'mceNonBreaking', false);
|
32 |
+
}
|
33 |
+
|
34 |
+
return "";
|
35 |
+
},
|
36 |
+
|
37 |
+
|
38 |
+
execCommand : function(editor_id, element, command, user_interface, value) {
|
39 |
+
var inst = tinyMCE.getInstanceById(editor_id), h;
|
40 |
+
|
41 |
+
switch (command) {
|
42 |
+
case "mceNonBreaking":
|
43 |
+
h = (inst.visualChars && inst.visualChars.state) ? '<span class="mceItemHiddenVisualChar">·</span>' : ' ';
|
44 |
+
tinyMCE.execInstanceCommand(editor_id, 'mceInsertContent', false, h);
|
45 |
+
return true;
|
46 |
+
}
|
47 |
+
|
48 |
+
return false;
|
49 |
+
},
|
50 |
+
|
51 |
+
handleEvent : function(e) {
|
52 |
+
var inst, h;
|
53 |
+
|
54 |
+
if (!tinyMCE.isOpera && e.type == 'keydown' && e.keyCode == 9 && tinyMCE.getParam('nonbreaking_force_tab', false)) {
|
55 |
+
inst = tinyMCE.selectedInstance;
|
56 |
+
|
57 |
+
h = (inst.visualChars && inst.visualChars.state) ? '<span class="mceItemHiddenVisualChar">···</span>' : ' ';
|
58 |
+
tinyMCE.execInstanceCommand(inst.editorId, 'mceInsertContent', false, h);
|
59 |
+
|
60 |
+
tinyMCE.cancelEvent(e);
|
61 |
+
return false;
|
62 |
+
}
|
63 |
+
|
64 |
+
return true;
|
65 |
+
}
|
66 |
+
};
|
67 |
+
|
68 |
+
tinyMCE.addPlugin("nonbreaking", TinyMCE_NonBreakingPlugin);
|
tinymce-advanced/mce/nonbreaking/images/nonbreaking.gif
ADDED
Binary file
|
tinymce-advanced/mce/nonbreaking/langs/en.js
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// UK lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('nonbreaking',{
|
4 |
+
desc : 'Insert non-breaking space character'
|
5 |
+
});
|
add_to_tinymce_directory/plugins/print/editor_plugin_src.js → tinymce-advanced/mce/print/editor_plugin.js
RENAMED
@@ -5,6 +5,12 @@
|
|
5 |
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
6 |
*/
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
/* Import theme specific language pack */
|
9 |
tinyMCE.importPluginLanguagePack('print');
|
10 |
|
5 |
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
6 |
*/
|
7 |
|
8 |
+
// UK lang variables
|
9 |
+
tadvmce = realTinyMCE;
|
10 |
+
tadvmce.addToLang('',{
|
11 |
+
print_desc : 'Print'
|
12 |
+
});
|
13 |
+
|
14 |
/* Import theme specific language pack */
|
15 |
tinyMCE.importPluginLanguagePack('print');
|
16 |
|
tinymce-advanced/mce/print/images/print.gif
ADDED
Binary file
|
tinymce-advanced/mce/print/langs/de_de.js
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// DE lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('',{
|
4 |
+
print_desc : 'Drucken'
|
5 |
+
});
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/print/langs/en.js
RENAMED
File without changes
|
tinymce-advanced/mce/print/langs/es_es.js
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// ES lang variables by Alvaro Velasco and Adolfo Sanz De Diego (asanzdiego) <asanzdiego@yahoo.es>
|
2 |
+
// Last Updated : October 2005
|
3 |
+
// TinyMCE Version : 2.0RC3
|
4 |
+
|
5 |
+
tinyMCE.addToLang('',{
|
6 |
+
print_desc : 'Imprimir'
|
7 |
+
});
|
tinymce-advanced/mce/print/langs/fr_fr.js
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// FR lang variables
|
2 |
+
// Modified by Motte, last updated 2006-03-23
|
3 |
+
|
4 |
+
tinyMCE.addToLang('',{
|
5 |
+
print_desc : 'Imprimer'
|
6 |
+
});
|
tinymce-advanced/mce/print/langs/it_it.js
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* IT lang variables
|
3 |
+
*
|
4 |
+
* Author : Luciano Vernaschi <luciano@virgilio.it>
|
5 |
+
* Last Updated : Mar. 1st, 2007
|
6 |
+
* TinyMCE Version : 2.1.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
tinyMCE.addToLang('',{
|
10 |
+
print_desc : 'Stampa'
|
11 |
+
});
|
tinymce-advanced/mce/print/langs/pt_br.js
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* pt_br lang variables
|
3 |
+
* Brazilian Portuguese
|
4 |
+
*
|
5 |
+
* Author
|
6 |
+
* Revision and modifications:
|
7 |
+
* Marcio Barbosa (mpg) <mpg@mpg.com.br>
|
8 |
+
* First Release : November 26, 2005 - TinyMCE Version : 2.0RC4
|
9 |
+
* Last Updated : November 20, 2006 - TinyMCE Version : 2.0.8
|
10 |
+
*/
|
11 |
+
tinyMCE.addToLang('',{
|
12 |
+
print_desc : 'Imprimir'
|
13 |
+
});
|
tinymce-advanced/mce/print/langs/ru_ru.js
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// RU lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('',{
|
4 |
+
print_desc : 'Распечатать'
|
5 |
+
});
|
tinymce-advanced/mce/print/langs/zh_cn.js
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// Simplified Chinese lang variables contributed by TinyMCE_China_Team ( tinymce_china {AT} yahoogroups {DOT} com ).
|
2 |
+
// visit our homepage at: http://www.cube316.net/tinymce/ for more information.
|
3 |
+
|
4 |
+
tinyMCE.addToLang('',{
|
5 |
+
print_desc : '��ӡ'
|
6 |
+
});
|
{add_to_tinymce_directory/plugins/searchreplace → tinymce-advanced/mce/print}/readme.txt
RENAMED
File without changes
|
tinymce-advanced/mce/searchreplace/css/searchreplace.css
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* stylesheet for advsearchreplace plugin*/
|
2 |
+
|
3 |
+
.panel_wrapper { height: 85px; }
|
4 |
+
.panel_wrapper div.current { height: 85px; }
|
5 |
+
|
6 |
+
/* MS IE only styles */
|
7 |
+
* html .panel_wrapper { height: 100px; }
|
8 |
+
* html .panel_wrapper div.current { height: 100px; }
|
9 |
+
|
10 |
+
#replaceBtn, #replaceAllBtn {
|
11 |
+
font: 11px Verdana, Arial, Helvetica, sans-serif;
|
12 |
+
height: auto;
|
13 |
+
width: auto;
|
14 |
+
background-color: transparent;
|
15 |
+
background-image: url(../images/fade-butt.png);
|
16 |
+
background-repeat: repeat;
|
17 |
+
border: 3px double;
|
18 |
+
border-right-color: rgb(153, 153, 153);
|
19 |
+
border-bottom-color: rgb(153, 153, 153);
|
20 |
+
border-left-color: rgb(204, 204, 204);
|
21 |
+
border-top-color: rgb(204, 204, 204);
|
22 |
+
color: rgb(51, 51, 51);
|
23 |
+
padding: 0.1em 0.5em 2px;
|
24 |
+
}
|
add_to_tinymce_directory/plugins/searchreplace/editor_plugin_src.js → tinymce-advanced/mce/searchreplace/editor_plugin.js
RENAMED
@@ -1,10 +1,32 @@
|
|
1 |
/**
|
2 |
-
* $Id: editor_plugin_src.js
|
3 |
*
|
4 |
* @author Moxiecode
|
5 |
-
* @copyright Copyright � 2004-
|
6 |
*/
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
tinyMCE.importPluginLanguagePack('searchreplace');
|
9 |
|
10 |
var TinyMCE_SearchReplacePlugin = {
|
@@ -13,7 +35,7 @@ var TinyMCE_SearchReplacePlugin = {
|
|
13 |
longname : 'Search/Replace',
|
14 |
author : 'Moxiecode Systems AB',
|
15 |
authorurl : 'http://tinymce.moxiecode.com',
|
16 |
-
infourl : 'http://
|
17 |
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
|
18 |
};
|
19 |
},
|
@@ -43,7 +65,12 @@ var TinyMCE_SearchReplacePlugin = {
|
|
43 |
}
|
44 |
|
45 |
function replaceSel(search_str, str, back) {
|
46 |
-
inst.
|
|
|
|
|
|
|
|
|
|
|
47 |
}
|
48 |
|
49 |
if (!value)
|
@@ -61,48 +88,41 @@ var TinyMCE_SearchReplacePlugin = {
|
|
61 |
defValue("resizable", "no");
|
62 |
|
63 |
switch (command) {
|
64 |
-
case "mceResetSearch" :
|
65 |
-
tinyMCE.lastSearchRng = null;
|
66 |
-
return true;
|
67 |
-
|
68 |
case "mceSearch" :
|
69 |
if (user_interface) {
|
70 |
var template = new Array();
|
71 |
|
72 |
-
template['file'] = '
|
73 |
template['width'] = 380;
|
74 |
template['height'] = 155 + (tinyMCE.isNS7 ? 20 : 0) + (tinyMCE.isMSIE ? 15 : 0);
|
75 |
template['width'] += tinyMCE.getLang('lang_searchreplace_delta_width', 0);
|
76 |
template['height'] += tinyMCE.getLang('lang_searchreplace_delta_height', 0);
|
77 |
|
78 |
-
inst.
|
79 |
-
|
80 |
-
if (tinyMCE.isMSIE) {
|
81 |
-
var r = inst.selection.getRng();
|
82 |
-
r.collapse(true);
|
83 |
-
r.select();
|
84 |
-
} else
|
85 |
-
inst.selection.getSel().collapseToStart();
|
86 |
|
87 |
tinyMCE.openWindow(template, value);
|
88 |
} else {
|
89 |
var win = tinyMCE.getInstanceById(editor_id).contentWindow;
|
90 |
var doc = tinyMCE.getInstanceById(editor_id).contentWindow.document;
|
91 |
var body = tinyMCE.getInstanceById(editor_id).contentWindow.document.body;
|
|
|
|
|
92 |
if (body.innerHTML == "") {
|
93 |
-
alert(tinyMCE.getLang('lang_searchreplace_notfound'));
|
94 |
return true;
|
95 |
}
|
96 |
|
97 |
if (value['replacemode'] == "current") {
|
98 |
replaceSel(value['string'], value['replacestring'], value['backwards']);
|
99 |
value['replacemode'] = "none";
|
100 |
-
tinyMCE.execInstanceCommand(editor_id, 'mceSearch', user_interface, value
|
101 |
-
return true;
|
102 |
}
|
103 |
|
|
|
|
|
104 |
if (tinyMCE.isMSIE) {
|
105 |
-
var rng =
|
106 |
var flags = 0;
|
107 |
if (value['wholeword'])
|
108 |
flags = flags | 2;
|
@@ -111,41 +131,52 @@ var TinyMCE_SearchReplacePlugin = {
|
|
111 |
flags = flags | 4;
|
112 |
|
113 |
if (!rng.findText) {
|
114 |
-
alert('This operation is currently not supported by this browser.');
|
115 |
return true;
|
116 |
}
|
117 |
|
118 |
if (value['replacemode'] == "all") {
|
|
|
|
|
119 |
while (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) {
|
|
|
120 |
rng.scrollIntoView();
|
121 |
rng.select();
|
122 |
-
rng.collapse(false);
|
123 |
replaceSel(value['string'], value['replacestring'], value['backwards']);
|
124 |
}
|
125 |
|
126 |
-
|
|
|
|
|
|
|
|
|
127 |
return true;
|
128 |
}
|
129 |
|
130 |
if (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) {
|
131 |
rng.scrollIntoView();
|
132 |
rng.select();
|
133 |
-
rng.collapse(value['backwards']);
|
134 |
-
tinyMCE.lastSearchRng = rng;
|
135 |
} else
|
136 |
-
alert(tinyMCE.getLang('lang_searchreplace_notfound'));
|
137 |
-
|
138 |
} else {
|
139 |
if (value['replacemode'] == "all") {
|
140 |
-
|
|
|
|
|
|
|
141 |
replaceSel(value['string'], value['replacestring'], value['backwards']);
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
|
143 |
-
alert(tinyMCE.getLang('lang_searchreplace_allreplaced'));
|
144 |
return true;
|
145 |
}
|
146 |
|
147 |
if (!win.find(value['string'], value['casesensitive'], value['backwards'], value['wrap'], value['wholeword'], false, false))
|
148 |
-
alert(tinyMCE.getLang('lang_searchreplace_notfound'));
|
149 |
}
|
150 |
}
|
151 |
|
@@ -161,4 +192,4 @@ var TinyMCE_SearchReplacePlugin = {
|
|
161 |
}
|
162 |
};
|
163 |
|
164 |
-
tinyMCE.addPlugin("searchreplace", TinyMCE_SearchReplacePlugin);
|
1 |
/**
|
2 |
+
* $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z spocke $
|
3 |
*
|
4 |
* @author Moxiecode
|
5 |
+
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
6 |
*/
|
7 |
|
8 |
+
// UK lang variables
|
9 |
+
tadvmce = realTinyMCE;
|
10 |
+
tadvmce.addToLang('',{
|
11 |
+
searchreplace_search_desc : 'Find',
|
12 |
+
searchreplace_searchnext_desc : 'Find again',
|
13 |
+
searchreplace_replace_desc : 'Find/Replace',
|
14 |
+
searchreplace_notfound : 'The search has been completed. The search string could not be found.',
|
15 |
+
searchreplace_search_title : 'Find',
|
16 |
+
searchreplace_replace_title : 'Find/Replace',
|
17 |
+
searchreplace_allreplaced : 'All occurrences of the search string were replaced.',
|
18 |
+
searchreplace_findwhat : 'Find what',
|
19 |
+
searchreplace_replacewith : 'Replace with',
|
20 |
+
searchreplace_direction : 'Direction',
|
21 |
+
searchreplace_up : 'Up',
|
22 |
+
searchreplace_down : 'Down',
|
23 |
+
searchreplace_case : 'Match case',
|
24 |
+
searchreplace_findnext : 'Find next',
|
25 |
+
searchreplace_replace : 'Replace',
|
26 |
+
searchreplace_replaceall : 'Replace all',
|
27 |
+
searchreplace_cancel : 'Cancel'
|
28 |
+
});
|
29 |
+
|
30 |
tinyMCE.importPluginLanguagePack('searchreplace');
|
31 |
|
32 |
var TinyMCE_SearchReplacePlugin = {
|
35 |
longname : 'Search/Replace',
|
36 |
author : 'Moxiecode Systems AB',
|
37 |
authorurl : 'http://tinymce.moxiecode.com',
|
38 |
+
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/searchreplace',
|
39 |
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
|
40 |
};
|
41 |
},
|
65 |
}
|
66 |
|
67 |
function replaceSel(search_str, str, back) {
|
68 |
+
if (!inst.selection.isCollapsed()) {
|
69 |
+
if (tinyMCE.isRealIE)
|
70 |
+
inst.selection.getRng().duplicate().pasteHTML(str); // Needs to be duplicated due to selection bug in IE
|
71 |
+
else
|
72 |
+
inst.execCommand('mceInsertContent', false, str);
|
73 |
+
}
|
74 |
}
|
75 |
|
76 |
if (!value)
|
88 |
defValue("resizable", "no");
|
89 |
|
90 |
switch (command) {
|
|
|
|
|
|
|
|
|
91 |
case "mceSearch" :
|
92 |
if (user_interface) {
|
93 |
var template = new Array();
|
94 |
|
95 |
+
template['file'] = tinyMCE.baseURL + '/../../../wp-content/plugins/tinymce-advanced/mce/searchreplace/searchreplace.htm';
|
96 |
template['width'] = 380;
|
97 |
template['height'] = 155 + (tinyMCE.isNS7 ? 20 : 0) + (tinyMCE.isMSIE ? 15 : 0);
|
98 |
template['width'] += tinyMCE.getLang('lang_searchreplace_delta_width', 0);
|
99 |
template['height'] += tinyMCE.getLang('lang_searchreplace_delta_height', 0);
|
100 |
|
101 |
+
inst.selection.collapse(true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
|
103 |
tinyMCE.openWindow(template, value);
|
104 |
} else {
|
105 |
var win = tinyMCE.getInstanceById(editor_id).contentWindow;
|
106 |
var doc = tinyMCE.getInstanceById(editor_id).contentWindow.document;
|
107 |
var body = tinyMCE.getInstanceById(editor_id).contentWindow.document.body;
|
108 |
+
var awin = value.win, found;
|
109 |
+
|
110 |
if (body.innerHTML == "") {
|
111 |
+
awin.alert(tinyMCE.getLang('lang_searchreplace_notfound'));
|
112 |
return true;
|
113 |
}
|
114 |
|
115 |
if (value['replacemode'] == "current") {
|
116 |
replaceSel(value['string'], value['replacestring'], value['backwards']);
|
117 |
value['replacemode'] = "none";
|
118 |
+
//tinyMCE.execInstanceCommand(editor_id, 'mceSearch', user_interface, value);
|
119 |
+
//return true;
|
120 |
}
|
121 |
|
122 |
+
inst.selection.collapse(value['backwards']);
|
123 |
+
|
124 |
if (tinyMCE.isMSIE) {
|
125 |
+
var rng = inst.selection.getRng();
|
126 |
var flags = 0;
|
127 |
if (value['wholeword'])
|
128 |
flags = flags | 2;
|
131 |
flags = flags | 4;
|
132 |
|
133 |
if (!rng.findText) {
|
134 |
+
awin.alert('This operation is currently not supported by this browser.');
|
135 |
return true;
|
136 |
}
|
137 |
|
138 |
if (value['replacemode'] == "all") {
|
139 |
+
found = false;
|
140 |
+
|
141 |
while (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) {
|
142 |
+
found = true;
|
143 |
rng.scrollIntoView();
|
144 |
rng.select();
|
|
|
145 |
replaceSel(value['string'], value['replacestring'], value['backwards']);
|
146 |
}
|
147 |
|
148 |
+
if (found)
|
149 |
+
awin.alert(tinyMCE.getLang('lang_searchreplace_allreplaced'));
|
150 |
+
else
|
151 |
+
awin.alert(tinyMCE.getLang('lang_searchreplace_notfound'));
|
152 |
+
|
153 |
return true;
|
154 |
}
|
155 |
|
156 |
if (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) {
|
157 |
rng.scrollIntoView();
|
158 |
rng.select();
|
|
|
|
|
159 |
} else
|
160 |
+
awin.alert(tinyMCE.getLang('lang_searchreplace_notfound'));
|
|
|
161 |
} else {
|
162 |
if (value['replacemode'] == "all") {
|
163 |
+
found = false;
|
164 |
+
|
165 |
+
while (win.find(value['string'], value['casesensitive'], value['backwards'], value['wrap'], value['wholeword'], false, false)) {
|
166 |
+
found = true;
|
167 |
replaceSel(value['string'], value['replacestring'], value['backwards']);
|
168 |
+
}
|
169 |
+
|
170 |
+
if (found)
|
171 |
+
awin.alert(tinyMCE.getLang('lang_searchreplace_allreplaced'));
|
172 |
+
else
|
173 |
+
awin.alert(tinyMCE.getLang('lang_searchreplace_notfound'));
|
174 |
|
|
|
175 |
return true;
|
176 |
}
|
177 |
|
178 |
if (!win.find(value['string'], value['casesensitive'], value['backwards'], value['wrap'], value['wholeword'], false, false))
|
179 |
+
awin.alert(tinyMCE.getLang('lang_searchreplace_notfound'));
|
180 |
}
|
181 |
}
|
182 |
|
192 |
}
|
193 |
};
|
194 |
|
195 |
+
tinyMCE.addPlugin("searchreplace", TinyMCE_SearchReplacePlugin);
|
tinymce-advanced/mce/searchreplace/images/fade-butt.png
ADDED
Binary file
|
tinymce-advanced/mce/searchreplace/images/replace.gif
ADDED
Binary file
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/searchreplace/images/replace_all_button_bg.gif
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/searchreplace/images/replace_button_bg.gif
RENAMED
File without changes
|
tinymce-advanced/mce/searchreplace/images/search.gif
ADDED
Binary file
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/searchreplace/jscripts/searchreplace.js
RENAMED
@@ -13,8 +13,6 @@ function init() {
|
|
13 |
formObj[task + "_panel_casesensitivebox"].checked = tinyMCE.getWindowArg("casesensitive");
|
14 |
formObj[task + "_panel_backwardsu"].checked = tinyMCE.getWindowArg("backwards");
|
15 |
formObj[task + "_panel_backwardsd"].checked = !tinyMCE.getWindowArg("backwards");
|
16 |
-
|
17 |
-
tinyMCEPopup.execCommand("mceResetSearch", false, {dummy : ""}, false);
|
18 |
}
|
19 |
|
20 |
function searchNext(replacemode) {
|
@@ -26,7 +24,7 @@ function searchNext(replacemode) {
|
|
26 |
if (task == "replace") {
|
27 |
// Whats the point?
|
28 |
if (formObj[task + "_panel_searchstring"].value == "" || formObj[task + "_panel_searchstring"].value == formObj[task + "_panel_replacestring"].value)
|
29 |
-
return;
|
30 |
}
|
31 |
|
32 |
// Do search
|
@@ -35,10 +33,13 @@ function searchNext(replacemode) {
|
|
35 |
replacestring : formObj["replace_panel_replacestring"].value,
|
36 |
replacemode : replacemode,
|
37 |
casesensitive : formObj[task + "_panel_casesensitivebox"].checked,
|
38 |
-
backwards :
|
|
|
39 |
}, false);
|
40 |
|
41 |
window.focus();
|
|
|
|
|
42 |
}
|
43 |
|
44 |
function cancelAction() {
|
13 |
formObj[task + "_panel_casesensitivebox"].checked = tinyMCE.getWindowArg("casesensitive");
|
14 |
formObj[task + "_panel_backwardsu"].checked = tinyMCE.getWindowArg("backwards");
|
15 |
formObj[task + "_panel_backwardsd"].checked = !tinyMCE.getWindowArg("backwards");
|
|
|
|
|
16 |
}
|
17 |
|
18 |
function searchNext(replacemode) {
|
24 |
if (task == "replace") {
|
25 |
// Whats the point?
|
26 |
if (formObj[task + "_panel_searchstring"].value == "" || formObj[task + "_panel_searchstring"].value == formObj[task + "_panel_replacestring"].value)
|
27 |
+
return false;
|
28 |
}
|
29 |
|
30 |
// Do search
|
33 |
replacestring : formObj["replace_panel_replacestring"].value,
|
34 |
replacemode : replacemode,
|
35 |
casesensitive : formObj[task + "_panel_casesensitivebox"].checked,
|
36 |
+
backwards : formObj[task + "_panel_backwardsu"].checked,
|
37 |
+
win : window
|
38 |
}, false);
|
39 |
|
40 |
window.focus();
|
41 |
+
|
42 |
+
return false;
|
43 |
}
|
44 |
|
45 |
function cancelAction() {
|
tinymce-advanced/mce/searchreplace/langs/de_de.js
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// DE lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('',{
|
4 |
+
searchreplace_search_desc : 'Suchen',
|
5 |
+
searchreplace_searchnext_desc : 'Erneut suchen',
|
6 |
+
searchreplace_replace_desc : 'Suchen/Ersetzen',
|
7 |
+
searchreplace_notfound : 'Die Suche wurde abgeschlossen. Das Suchwort wurde nicht gefunden.',
|
8 |
+
searchreplace_search_title : 'Suchen',
|
9 |
+
searchreplace_replace_title : 'Suchen/Ersetzen',
|
10 |
+
searchreplace_allreplaced : 'Die Suche wurde abgeschlossen. Alle Vorkommen wurden ersetzt.',
|
11 |
+
searchreplace_findwhat : 'Suchen nach',
|
12 |
+
searchreplace_replacewith : 'Ersetzen durch',
|
13 |
+
searchreplace_direction : 'Suchrichtung',
|
14 |
+
searchreplace_up : 'Rückwärts',
|
15 |
+
searchreplace_down : 'Vorwärts',
|
16 |
+
searchreplace_case : 'Groß-/Kleinschreibung beachten',
|
17 |
+
searchreplace_findnext : 'Weitersuchen',
|
18 |
+
searchreplace_replace : 'Ersetzen',
|
19 |
+
searchreplace_replaceall : 'Alle ersetzen',
|
20 |
+
searchreplace_cancel : 'Abbrechen',
|
21 |
+
searchreplace_replace_delta_width : 50
|
22 |
+
});
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/searchreplace/langs/en.js
RENAMED
File without changes
|
tinymce-advanced/mce/searchreplace/langs/es_es.js
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* ES lang variables
|
3 |
+
*
|
4 |
+
* Authors : Alvaro Velasco,
|
5 |
+
* Adolfo Sanz De Diego (asanzdiego) <asanzdiego@yahoo.es>,
|
6 |
+
* Carlos C Soto (eclipxe) <csoto@sia-solutions.com>
|
7 |
+
* Eneko Castresana Vara
|
8 |
+
* Last Updated : July 14, 2006
|
9 |
+
* TinyMCE Version : 2.0.6.1
|
10 |
+
*/
|
11 |
+
|
12 |
+
tinyMCE.addToLang('',{
|
13 |
+
searchreplace_search_desc : 'Buscar',
|
14 |
+
searchreplace_searchnext_desc : 'Buscar de nuevo',
|
15 |
+
searchreplace_replace_desc : 'Buscar/Replazar',
|
16 |
+
searchreplace_notfound : 'La búsqueda ha terminado. No se ha encontrado el elemento buscado.',
|
17 |
+
searchreplace_search_title : 'Buscar',
|
18 |
+
searchreplace_replace_title : 'Buscar/Replazar',
|
19 |
+
searchreplace_allreplaced : 'Todas las ocurrencias del elemento buscado han sido remplazadas.',
|
20 |
+
searchreplace_findwhat : 'Buscar',
|
21 |
+
searchreplace_replacewith : 'Replazar con',
|
22 |
+
searchreplace_direction : 'Dirección',
|
23 |
+
searchreplace_up : 'Arriba',
|
24 |
+
searchreplace_down : 'Abajo',
|
25 |
+
searchreplace_case : 'Búsqueda exacta (mayúsculas y minúsculas)',
|
26 |
+
searchreplace_findnext : 'Buscar siguiente',
|
27 |
+
searchreplace_replace : 'Replazar',
|
28 |
+
searchreplace_replaceall : 'Replazar todo',
|
29 |
+
searchreplace_cancel : 'Cancelar',
|
30 |
+
searchreplace_replace_delta_width : 70
|
31 |
+
});
|
tinymce-advanced/mce/searchreplace/langs/fr_fr.js
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// FR lang variables
|
2 |
+
// Modified by keyko-web.net, last updated 2007-03-08, based on the work of Motte
|
3 |
+
|
4 |
+
tinyMCE.addToLang('',{
|
5 |
+
searchreplace_search_desc : 'Rechercher',
|
6 |
+
searchreplace_searchnext_desc : 'Rechercher suivant',
|
7 |
+
searchreplace_replace_desc : 'Rechercher/Remplacer',
|
8 |
+
searchreplace_notfound : 'Recherche complétée. La fin du document a été atteinte.',
|
9 |
+
searchreplace_search_title : 'Rechercher',
|
10 |
+
searchreplace_replace_title : 'Rechercher/Remplacer',
|
11 |
+
searchreplace_allreplaced : 'Action terminée avec succès. Les remplacements\nont été faits dans l\'ensemble du document.',
|
12 |
+
searchreplace_findwhat : 'Trouver le mot',
|
13 |
+
searchreplace_replacewith : 'Remplacer par',
|
14 |
+
searchreplace_direction : 'Direction',
|
15 |
+
searchreplace_up : 'Vers le haut',
|
16 |
+
searchreplace_down : 'Vers le bas',
|
17 |
+
searchreplace_case : 'Respecter la casse',
|
18 |
+
searchreplace_findnext : 'Suivant',
|
19 |
+
searchreplace_replace : 'Remplacer',
|
20 |
+
searchreplace_replaceall : 'Remplacer tout',
|
21 |
+
searchreplace_cancel : 'Annuler'
|
22 |
+
});
|
tinymce-advanced/mce/searchreplace/langs/it_it.js
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* IT lang variables
|
3 |
+
*
|
4 |
+
* Author : Luciano Vernaschi <luciano@virgilio.it>
|
5 |
+
* Last Updated : Mar. 1st, 2007
|
6 |
+
* TinyMCE Version : 2.1.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
tinyMCE.addToLang('',{
|
10 |
+
searchreplace_search_desc : 'Cerca',
|
11 |
+
searchreplace_searchnext_desc : 'Trova successivo',
|
12 |
+
searchreplace_replace_desc : 'Cerca e sostituisci',
|
13 |
+
searchreplace_notfound : 'La ricerca è stata completata. Il testo cercato non è stato trovato',
|
14 |
+
searchreplace_search_title : 'Cerca',
|
15 |
+
searchreplace_replace_title : 'Cerca e sostituisci',
|
16 |
+
searchreplace_allreplaced : 'Tutte le occorrenze trovate sono state sostituite',
|
17 |
+
searchreplace_findwhat : 'Cosa cercare',
|
18 |
+
searchreplace_replacewith : 'Sostituire con',
|
19 |
+
searchreplace_direction : 'Direzione',
|
20 |
+
searchreplace_up : 'Su',
|
21 |
+
searchreplace_down : 'Giù',
|
22 |
+
searchreplace_case : 'Maiuscole/minuscole',
|
23 |
+
searchreplace_findnext : 'Cerca successivo',
|
24 |
+
searchreplace_replace : 'Sostituisci',
|
25 |
+
searchreplace_replaceall : 'Sostituisci tutto',
|
26 |
+
searchreplace_cancel : 'Annulla'
|
27 |
+
});
|
tinymce-advanced/mce/searchreplace/langs/pt_br.js
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* pt_br lang variables
|
3 |
+
* Brazilian Portuguese
|
4 |
+
*
|
5 |
+
* Author
|
6 |
+
* Revision and modifications:
|
7 |
+
* Marcio Barbosa (mpg) <mpg@mpg.com.br>
|
8 |
+
* First Release : November 26, 2005 - TinyMCE Version : 2.0RC4
|
9 |
+
* Last Updated : November 20, 2006 - TinyMCE Version : 2.0.8
|
10 |
+
*/
|
11 |
+
tinyMCE.addToLang('',{
|
12 |
+
searchreplace_search_desc : 'Procurar',
|
13 |
+
searchreplace_searchnext_desc : 'Procurar novamente',
|
14 |
+
searchreplace_replace_desc : 'Procurar/substituir',
|
15 |
+
searchreplace_notfound : 'A procura foi conclu�da. A express�o procurada n�o foi encontrada.',
|
16 |
+
searchreplace_search_title : 'Procurar',
|
17 |
+
searchreplace_replace_title : 'Procurar/substituir',
|
18 |
+
searchreplace_allreplaced : 'Todas as ocorr�ncias encontradas foram substitu�das.',
|
19 |
+
searchreplace_findwhat : 'Procurar por',
|
20 |
+
searchreplace_replacewith : 'Substituir com',
|
21 |
+
searchreplace_direction : 'Dire��o',
|
22 |
+
searchreplace_up : 'Acima',
|
23 |
+
searchreplace_down : 'Abaixo',
|
24 |
+
searchreplace_case : 'Procurar exatamente',
|
25 |
+
searchreplace_findnext : 'Procurar/pr�x',
|
26 |
+
searchreplace_replace : 'Substituir',
|
27 |
+
searchreplace_replaceall : 'Subst tudo',
|
28 |
+
searchreplace_cancel : 'Cancelar'
|
29 |
+
});
|
tinymce-advanced/mce/searchreplace/langs/ru_ru.js
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// RU lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('',{
|
4 |
+
searchreplace_search_desc : 'Найти',
|
5 |
+
searchreplace_searchnext_desc : 'Найти опять',
|
6 |
+
searchreplace_replace_desc : 'Найти / Заменить',
|
7 |
+
searchreplace_notfound : 'Поиск завершён. Искомое выражение не найдено.',
|
8 |
+
searchreplace_search_title : 'Найти',
|
9 |
+
searchreplace_replace_title : 'Найти / Заменить',
|
10 |
+
searchreplace_allreplaced : 'Замена была выполнена во всех случаях совпадения искомого выражения.',
|
11 |
+
searchreplace_findwhat : 'Найти что',
|
12 |
+
searchreplace_replacewith : 'Заменить чем',
|
13 |
+
searchreplace_direction : 'Направление',
|
14 |
+
searchreplace_up : 'Вверх',
|
15 |
+
searchreplace_down : 'Вниз',
|
16 |
+
searchreplace_case : 'С учётом регистра',
|
17 |
+
searchreplace_findnext : 'Найти следующее',
|
18 |
+
searchreplace_replace : 'Заменить',
|
19 |
+
searchreplace_replaceall : 'Заменить везде',
|
20 |
+
searchreplace_cancel : 'Отменить'
|
21 |
+
});
|
tinymce-advanced/mce/searchreplace/langs/zh_cn.js
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// Simplified Chinese lang variables contributed by TinyMCE_China_Team ( tinymce_china {AT} yahoogroups {DOT} com ).
|
2 |
+
// visit our homepage at: http://www.cube316.net/tinymce/ for more information.
|
3 |
+
|
4 |
+
tinyMCE.addToLang('',{
|
5 |
+
searchreplace_search_desc : '����',
|
6 |
+
searchreplace_searchnext_desc : '�ٴβ���',
|
7 |
+
searchreplace_replace_desc : '����/�滻',
|
8 |
+
searchreplace_notfound : '������ϣ�û���ҵ�Ҫ���ҵ��ַ�����',
|
9 |
+
searchreplace_search_title : '����',
|
10 |
+
searchreplace_replace_title : '����/�滻',
|
11 |
+
searchreplace_allreplaced : '���з����������ַ������滻��ϡ�',
|
12 |
+
searchreplace_findwhat : '����',
|
13 |
+
searchreplace_replacewith : '�滻Ϊ',
|
14 |
+
searchreplace_direction : '����',
|
15 |
+
searchreplace_up : '����',
|
16 |
+
searchreplace_down : '����',
|
17 |
+
searchreplace_case : 'ƥ���Сд',
|
18 |
+
searchreplace_findnext : '������һ��',
|
19 |
+
searchreplace_replace : '�滻',
|
20 |
+
searchreplace_replaceall : 'ȫ���滻',
|
21 |
+
searchreplace_cancel : 'ȡ��'
|
22 |
+
});
|
{add_to_tinymce_directory/plugins/table → tinymce-advanced/mce/searchreplace}/readme.txt
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/searchreplace/searchreplace.htm
RENAMED
@@ -1,9 +1,9 @@
|
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_searchreplace_replace_title}</title>
|
4 |
-
<script language="javascript" type="text/javascript" src="
|
5 |
-
<script language="javascript" type="text/javascript" src="
|
6 |
-
<script language="javascript" type="text/javascript" src="
|
7 |
<script language="javascript" type="text/javascript" src="jscripts/searchreplace.js"></script>
|
8 |
<link rel="stylesheet" type="text/css" href="css/searchreplace.css" />
|
9 |
<base target="_self" />
|
@@ -90,12 +90,15 @@
|
|
90 |
</div>
|
91 |
|
92 |
<div class="mceActionPanel">
|
93 |
-
<div style="
|
94 |
<input type="button" id="insert" name="insert" value="{$lang_searchreplace_findnext}" onclick="searchNext('none');" />
|
95 |
<span id="replace_buttons">
|
96 |
<input type="button" id="replaceBtn" name="replaceBtn" value="{$lang_searchreplace_replace}" onclick="searchNext('current');" />
|
97 |
<input type="button" id="replaceAllBtn" name="replaceAllBtn" value="{$lang_searchreplace_replaceall}" onclick="searchNext('all');;" />
|
98 |
</span>
|
|
|
|
|
|
|
99 |
<input type="button" id="cancel" name="cancel" value="{$lang_searchreplace_cancel}" onclick="tinyMCEPopup.close();" />
|
100 |
</div>
|
101 |
</div>
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_searchreplace_replace_title}</title>
|
4 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/tiny_mce_popup.js"></script>
|
5 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/mctabs.js"></script>
|
6 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/form_utils.js"></script>
|
7 |
<script language="javascript" type="text/javascript" src="jscripts/searchreplace.js"></script>
|
8 |
<link rel="stylesheet" type="text/css" href="css/searchreplace.css" />
|
9 |
<base target="_self" />
|
90 |
</div>
|
91 |
|
92 |
<div class="mceActionPanel">
|
93 |
+
<div style="float: left">
|
94 |
<input type="button" id="insert" name="insert" value="{$lang_searchreplace_findnext}" onclick="searchNext('none');" />
|
95 |
<span id="replace_buttons">
|
96 |
<input type="button" id="replaceBtn" name="replaceBtn" value="{$lang_searchreplace_replace}" onclick="searchNext('current');" />
|
97 |
<input type="button" id="replaceAllBtn" name="replaceAllBtn" value="{$lang_searchreplace_replaceall}" onclick="searchNext('all');;" />
|
98 |
</span>
|
99 |
+
</div>
|
100 |
+
|
101 |
+
<div style="float: right">
|
102 |
<input type="button" id="cancel" name="cancel" value="{$lang_searchreplace_cancel}" onclick="tinyMCEPopup.close();" />
|
103 |
</div>
|
104 |
</div>
|
tinymce-advanced/mce/style/css/props.css
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#text_font {
|
2 |
+
width: 250px;
|
3 |
+
}
|
4 |
+
|
5 |
+
#text_size {
|
6 |
+
width: 70px;
|
7 |
+
}
|
8 |
+
|
9 |
+
.mceAddSelectValue {
|
10 |
+
background-color: #DDDDDD;
|
11 |
+
}
|
12 |
+
|
13 |
+
select, #block_text_indent, #box_width, #box_height, #box_padding_top, #box_padding_right, #box_padding_bottom, #box_padding_left {
|
14 |
+
width: 70px;
|
15 |
+
}
|
16 |
+
|
17 |
+
#box_margin_top, #box_margin_right, #box_margin_bottom, #box_margin_left, #positioning_width, #positioning_height, #positioning_zindex {
|
18 |
+
width: 70px;
|
19 |
+
}
|
20 |
+
|
21 |
+
#positioning_placement_top, #positioning_placement_right, #positioning_placement_bottom, #positioning_placement_left {
|
22 |
+
width: 70px;
|
23 |
+
}
|
24 |
+
|
25 |
+
#positioning_clip_top, #positioning_clip_right, #positioning_clip_bottom, #positioning_clip_left {
|
26 |
+
width: 70px;
|
27 |
+
}
|
28 |
+
|
29 |
+
.panel_wrapper div.current {
|
30 |
+
padding-top: 10px;
|
31 |
+
height: 230px;
|
32 |
+
}
|
33 |
+
|
34 |
+
.delim {
|
35 |
+
border-left: 1px solid gray;
|
36 |
+
}
|
37 |
+
|
38 |
+
.tdelim {
|
39 |
+
border-bottom: 1px solid gray;
|
40 |
+
}
|
41 |
+
|
42 |
+
#block_display {
|
43 |
+
width: 145px;
|
44 |
+
}
|
45 |
+
|
46 |
+
#list_type {
|
47 |
+
width: 115px;
|
48 |
+
}
|
49 |
+
|
50 |
+
.disabled {
|
51 |
+
background-color: #EEEEEE;
|
52 |
+
}
|
53 |
+
|
54 |
+
#apply {
|
55 |
+
font: 11px Verdana, Arial, Helvetica, sans-serif;
|
56 |
+
height: auto;
|
57 |
+
width: auto;
|
58 |
+
background-color: transparent;
|
59 |
+
background-image: url(../images/fade-butt.png);
|
60 |
+
background-repeat: repeat;
|
61 |
+
border: 3px double;
|
62 |
+
border-right-color: rgb(153, 153, 153);
|
63 |
+
border-bottom-color: rgb(153, 153, 153);
|
64 |
+
border-left-color: rgb(204, 204, 204);
|
65 |
+
border-top-color: rgb(204, 204, 204);
|
66 |
+
color: rgb(51, 51, 51);
|
67 |
+
padding: 0.1em 0.5em 2px;
|
68 |
+
}
|
69 |
+
|
tinymce-advanced/mce/style/editor_plugin.js
ADDED
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z spocke $
|
3 |
+
*
|
4 |
+
* @author Moxiecode
|
5 |
+
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
6 |
+
*/
|
7 |
+
|
8 |
+
// UK lang variables
|
9 |
+
tadvmce = realTinyMCE;
|
10 |
+
tadvmce.addToLang('style',{
|
11 |
+
title : 'Edit CSS Style',
|
12 |
+
styleinfo_desc : 'Edit CSS Style',
|
13 |
+
apply : 'Apply',
|
14 |
+
text_tab : 'Text',
|
15 |
+
background_tab : 'Background',
|
16 |
+
block_tab : 'Block',
|
17 |
+
box_tab : 'Box',
|
18 |
+
border_tab : 'Border',
|
19 |
+
list_tab : 'List',
|
20 |
+
positioning_tab : 'Positioning',
|
21 |
+
text_props : 'Text',
|
22 |
+
text_font : 'Font',
|
23 |
+
text_size : 'Size',
|
24 |
+
text_weight : 'Weight',
|
25 |
+
text_style : 'Style',
|
26 |
+
text_variant : 'Variant',
|
27 |
+
text_lineheight : 'Line height',
|
28 |
+
text_case : 'Case',
|
29 |
+
text_color : 'Color',
|
30 |
+
text_decoration : 'Decoration',
|
31 |
+
text_overline : 'overline',
|
32 |
+
text_underline : 'underline',
|
33 |
+
text_striketrough : 'strikethrough',
|
34 |
+
text_blink : 'blink',
|
35 |
+
text_none : 'none',
|
36 |
+
background_color : 'Background color',
|
37 |
+
background_image : 'Background image',
|
38 |
+
background_repeat : 'Repeat',
|
39 |
+
background_attachment : 'Attachment',
|
40 |
+
background_hpos : 'Horizontal position',
|
41 |
+
background_vpos : 'Vertical position',
|
42 |
+
block_wordspacing : 'Word spacing',
|
43 |
+
block_letterspacing : 'Letter spacing',
|
44 |
+
block_vertical_alignment : 'Vertical alignment',
|
45 |
+
block_text_align : 'Text align',
|
46 |
+
block_text_indent : 'Text indent',
|
47 |
+
block_whitespace : 'Whitespace',
|
48 |
+
block_display : 'Display',
|
49 |
+
box_width : 'Width',
|
50 |
+
box_height : 'Height',
|
51 |
+
box_float : 'Float',
|
52 |
+
box_clear : 'Clear',
|
53 |
+
padding : 'Padding',
|
54 |
+
same : 'Same for all',
|
55 |
+
top : 'Top',
|
56 |
+
right : 'Right',
|
57 |
+
bottom : 'Bottom',
|
58 |
+
left : 'Left',
|
59 |
+
margin : 'Margin',
|
60 |
+
style : 'Style',
|
61 |
+
width : 'Width',
|
62 |
+
height : 'Height',
|
63 |
+
color : 'Color',
|
64 |
+
list_type : 'Type',
|
65 |
+
bullet_image : 'Bullet image',
|
66 |
+
position : 'Position',
|
67 |
+
positioning_type : 'Type',
|
68 |
+
visibility : 'Visibility',
|
69 |
+
zindex : 'Z-index',
|
70 |
+
overflow : 'Overflow',
|
71 |
+
placement : 'Placement',
|
72 |
+
clip : 'Clip'
|
73 |
+
});
|
74 |
+
|
75 |
+
/* Import plugin specific language pack */
|
76 |
+
tinyMCE.importPluginLanguagePack('style');
|
77 |
+
|
78 |
+
var TinyMCE_StylePlugin = {
|
79 |
+
getInfo : function() {
|
80 |
+
return {
|
81 |
+
longname : 'Style',
|
82 |
+
author : 'Moxiecode Systems AB',
|
83 |
+
authorurl : 'http://tinymce.moxiecode.com',
|
84 |
+
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/style',
|
85 |
+
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
|
86 |
+
};
|
87 |
+
},
|
88 |
+
|
89 |
+
getControlHTML : function(cn) {
|
90 |
+
switch (cn) {
|
91 |
+
case "styleprops":
|
92 |
+
return tinyMCE.getButtonHTML(cn, 'lang_style_styleinfo_desc', '{$pluginurl}/images/styleprops.gif', 'mceStyleProps', true);
|
93 |
+
}
|
94 |
+
|
95 |
+
return "";
|
96 |
+
},
|
97 |
+
|
98 |
+
execCommand : function(editor_id, element, command, user_interface, value) {
|
99 |
+
var e, inst;
|
100 |
+
|
101 |
+
// Handle commands
|
102 |
+
switch (command) {
|
103 |
+
case "mceStyleProps":
|
104 |
+
TinyMCE_StylePlugin._styleProps();
|
105 |
+
return true;
|
106 |
+
|
107 |
+
case "mceSetElementStyle":
|
108 |
+
inst = tinyMCE.getInstanceById(editor_id);
|
109 |
+
e = inst.selection.getFocusElement();
|
110 |
+
|
111 |
+
if (e) {
|
112 |
+
e.style.cssText = value;
|
113 |
+
inst.repaint();
|
114 |
+
}
|
115 |
+
|
116 |
+
return true;
|
117 |
+
}
|
118 |
+
|
119 |
+
// Pass to next handler in chain
|
120 |
+
return false;
|
121 |
+
},
|
122 |
+
|
123 |
+
handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) {
|
124 |
+
if (node.nodeName == 'BODY')
|
125 |
+
tinyMCE.switchClass(editor_id + '_styleprops', 'mceButtonDisabled');
|
126 |
+
else
|
127 |
+
tinyMCE.switchClass(editor_id + '_styleprops', 'mceButtonNormal');
|
128 |
+
},
|
129 |
+
|
130 |
+
// Private plugin specific methods
|
131 |
+
|
132 |
+
_styleProps : function() {
|
133 |
+
var e = tinyMCE.selectedInstance.selection.getFocusElement();
|
134 |
+
|
135 |
+
if (!e || e.nodeName == 'BODY')
|
136 |
+
return;
|
137 |
+
|
138 |
+
tinyMCE.openWindow({
|
139 |
+
file : tinyMCE.baseURL + '/../../../wp-content/plugins/tinymce-advanced/mce/style/props.htm',
|
140 |
+
width : 480 + tinyMCE.getLang('lang_style_props_delta_width', 0),
|
141 |
+
height : 320 + tinyMCE.getLang('lang_style_props_delta_height', 0)
|
142 |
+
}, {
|
143 |
+
editor_id : tinyMCE.selectedInstance.editorId,
|
144 |
+
inline : "yes",
|
145 |
+
style_text : e.style.cssText
|
146 |
+
});
|
147 |
+
}
|
148 |
+
};
|
149 |
+
|
150 |
+
tinyMCE.addPlugin("style", TinyMCE_StylePlugin);
|
tinymce-advanced/mce/style/images/apply_button_bg.gif
ADDED
Binary file
|
tinymce-advanced/mce/style/images/fade-butt.png
ADDED
Binary file
|
tinymce-advanced/mce/style/images/style_info.gif
ADDED
Binary file
|
tinymce-advanced/mce/style/images/styleprops.gif
ADDED
Binary file
|
tinymce-advanced/mce/style/jscripts/props.js
ADDED
@@ -0,0 +1,633 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
var defaultFonts = "" +
|
2 |
+
"Arial, Helvetica, sans-serif=Arial, Helvetica, sans-serif;" +
|
3 |
+
"Times New Roman, Times, serif=Times New Roman, Times, serif;" +
|
4 |
+
"Courier New, Courier, mono=Courier New, Courier, mono;" +
|
5 |
+
"Times New Roman, Times, serif=Times New Roman, Times, serif;" +
|
6 |
+
"Georgia, Times New Roman, Times, serif=Georgia, Times New Roman, Times, serif;" +
|
7 |
+
"Verdana, Arial, Helvetica, sans-serif=Verdana, Arial, Helvetica, sans-serif;" +
|
8 |
+
"Geneva, Arial, Helvetica, sans-serif=Geneva, Arial, Helvetica, sans-serif";
|
9 |
+
|
10 |
+
var defaultSizes = "9;10;12;14;16;18;24;xx-small;x-small;small;medium;large;x-large;xx-large;smaller;larger";
|
11 |
+
var defaultMeasurement = "+pixels=px;points=pt;in;cm;mm;picas;ems;exs;%";
|
12 |
+
var defaultSpacingMeasurement = "pixels=px;points=pt;in;cm;mm;picas;+ems;exs;%";
|
13 |
+
var defaultIndentMeasurement = "pixels=px;+points=pt;in;cm;mm;picas;ems;exs;%";
|
14 |
+
var defaultWeight = "normal;bold;bolder;lighter;100;200;300;400;500;600;700;800;900";
|
15 |
+
var defaultTextStyle = "normal;italic;oblique";
|
16 |
+
var defaultVariant = "normal;small-caps";
|
17 |
+
var defaultLineHeight = "normal";
|
18 |
+
var defaultAttachment = "fixed;scroll";
|
19 |
+
var defaultRepeat = "no-repeat;repeat;repeat-x;repeat-y";
|
20 |
+
var defaultPosH = "left;center;right";
|
21 |
+
var defaultPosV = "top;center;bottom";
|
22 |
+
var defaultVAlign = "baseline;sub;super;top;text-top;middle;bottom;text-bottom";
|
23 |
+
var defaultDisplay = "inline;block;list-item;run-in;compact;marker;table;inline-table;table-row-group;table-header-group;table-footer-group;table-row;table-column-group;table-column;table-cell;table-caption;none";
|
24 |
+
var defaultBorderStyle = "none;solid;dashed;dotted;double;groove;ridge;inset;outset";
|
25 |
+
var defaultBorderWidth = "thin;medium;thick";
|
26 |
+
var defaultListType = "disc;circle;square;decimal;lower-roman;upper-roman;lower-alpha;upper-alpha;none";
|
27 |
+
|
28 |
+
function init() {
|
29 |
+
var ce = document.getElementById('container'), h;
|
30 |
+
|
31 |
+
ce.style.cssText = tinyMCEPopup.getWindowArg('style_text');
|
32 |
+
|
33 |
+
h = getBrowserHTML('background_image_browser','background_image','image','advimage');
|
34 |
+
document.getElementById("background_image_browser").innerHTML = h;
|
35 |
+
|
36 |
+
tinyMCEPopup.resizeToInnerSize();
|
37 |
+
|
38 |
+
document.getElementById('text_color_pickcontainer').innerHTML = getColorPickerHTML('text_color_pick','text_color');
|
39 |
+
document.getElementById('background_color_pickcontainer').innerHTML = getColorPickerHTML('background_color_pick','background_color');
|
40 |
+
document.getElementById('border_color_top_pickcontainer').innerHTML = getColorPickerHTML('border_color_top_pick','border_color_top');
|
41 |
+
document.getElementById('border_color_right_pickcontainer').innerHTML = getColorPickerHTML('border_color_right_pick','border_color_right');
|
42 |
+
document.getElementById('border_color_bottom_pickcontainer').innerHTML = getColorPickerHTML('border_color_bottom_pick','border_color_bottom');
|
43 |
+
document.getElementById('border_color_left_pickcontainer').innerHTML = getColorPickerHTML('border_color_left_pick','border_color_left');
|
44 |
+
|
45 |
+
fillSelect(0, 'text_font', 'style_font', defaultFonts, ';', true);
|
46 |
+
fillSelect(0, 'text_size', 'style_font_size', defaultSizes, ';', true);
|
47 |
+
fillSelect(0, 'text_size_measurement', 'style_font_size_measurement', defaultMeasurement, ';', true);
|
48 |
+
fillSelect(0, 'text_case', 'style_text_case', "capitalize;uppercase;lowercase", ';', true);
|
49 |
+
fillSelect(0, 'text_weight', 'style_font_weight', defaultWeight, ';', true);
|
50 |
+
fillSelect(0, 'text_style', 'style_font_style', defaultTextStyle, ';', true);
|
51 |
+
fillSelect(0, 'text_variant', 'style_font_variant', defaultVariant, ';', true);
|
52 |
+
fillSelect(0, 'text_lineheight', 'style_font_line_height', defaultLineHeight, ';', true);
|
53 |
+
fillSelect(0, 'text_lineheight_measurement', 'style_font_line_height_measurement', defaultMeasurement, ';', true);
|
54 |
+
|
55 |
+
fillSelect(0, 'background_attachment', 'style_background_attachment', defaultAttachment, ';', true);
|
56 |
+
fillSelect(0, 'background_repeat', 'style_background_repeat', defaultRepeat, ';', true);
|
57 |
+
|
58 |
+
fillSelect(0, 'background_hpos_measurement', 'style_background_hpos_measurement', defaultMeasurement, ';', true);
|
59 |
+
fillSelect(0, 'background_vpos_measurement', 'style_background_vpos_measurement', defaultMeasurement, ';', true);
|
60 |
+
|
61 |
+
fillSelect(0, 'background_hpos', 'style_background_hpos', defaultPosH, ';', true);
|
62 |
+
fillSelect(0, 'background_vpos', 'style_background_vpos', defaultPosV, ';', true);
|
63 |
+
|
64 |
+
fillSelect(0, 'block_wordspacing', 'style_wordspacing', 'normal', ';', true);
|
65 |
+
fillSelect(0, 'block_wordspacing_measurement', 'style_wordspacing_measurement', defaultSpacingMeasurement, ';', true);
|
66 |
+
fillSelect(0, 'block_letterspacing', 'style_letterspacing', 'normal', ';', true);
|
67 |
+
fillSelect(0, 'block_letterspacing_measurement', 'style_letterspacing_measurement', defaultSpacingMeasurement, ';', true);
|
68 |
+
fillSelect(0, 'block_vertical_alignment', 'style_vertical_alignment', defaultVAlign, ';', true);
|
69 |
+
fillSelect(0, 'block_text_align', 'style_text_align', "left;right;center;justify", ';', true);
|
70 |
+
fillSelect(0, 'block_whitespace', 'style_whitespace', "normal;pre;nowrap", ';', true);
|
71 |
+
fillSelect(0, 'block_display', 'style_display', defaultDisplay, ';', true);
|
72 |
+
fillSelect(0, 'block_text_indent_measurement', 'style_text_indent_measurement', defaultIndentMeasurement, ';', true);
|
73 |
+
|
74 |
+
fillSelect(0, 'box_width_measurement', 'style_box_width_measurement', defaultMeasurement, ';', true);
|
75 |
+
fillSelect(0, 'box_height_measurement', 'style_box_height_measurement', defaultMeasurement, ';', true);
|
76 |
+
fillSelect(0, 'box_float', 'style_float', 'left;right;none', ';', true);
|
77 |
+
fillSelect(0, 'box_clear', 'style_clear', 'left;right;both;none', ';', true);
|
78 |
+
fillSelect(0, 'box_padding_left_measurement', 'style_padding_left_measurement', defaultMeasurement, ';', true);
|
79 |
+
fillSelect(0, 'box_padding_top_measurement', 'style_padding_top_measurement', defaultMeasurement, ';', true);
|
80 |
+
fillSelect(0, 'box_padding_bottom_measurement', 'style_padding_bottom_measurement', defaultMeasurement, ';', true);
|
81 |
+
fillSelect(0, 'box_padding_right_measurement', 'style_padding_right_measurement', defaultMeasurement, ';', true);
|
82 |
+
fillSelect(0, 'box_margin_left_measurement', 'style_margin_left_measurement', defaultMeasurement, ';', true);
|
83 |
+
fillSelect(0, 'box_margin_top_measurement', 'style_margin_top_measurement', defaultMeasurement, ';', true);
|
84 |
+
fillSelect(0, 'box_margin_bottom_measurement', 'style_margin_bottom_measurement', defaultMeasurement, ';', true);
|
85 |
+
fillSelect(0, 'box_margin_right_measurement', 'style_margin_right_measurement', defaultMeasurement, ';', true);
|
86 |
+
|
87 |
+
fillSelect(0, 'border_style_top', 'style_border_style_top', defaultBorderStyle, ';', true);
|
88 |
+
fillSelect(0, 'border_style_right', 'style_border_style_right', defaultBorderStyle, ';', true);
|
89 |
+
fillSelect(0, 'border_style_bottom', 'style_border_style_bottom', defaultBorderStyle, ';', true);
|
90 |
+
fillSelect(0, 'border_style_left', 'style_border_style_left', defaultBorderStyle, ';', true);
|
91 |
+
|
92 |
+
fillSelect(0, 'border_width_top', 'style_border_width_top', defaultBorderWidth, ';', true);
|
93 |
+
fillSelect(0, 'border_width_right', 'style_border_width_right', defaultBorderWidth, ';', true);
|
94 |
+
fillSelect(0, 'border_width_bottom', 'style_border_width_bottom', defaultBorderWidth, ';', true);
|
95 |
+
fillSelect(0, 'border_width_left', 'style_border_width_left', defaultBorderWidth, ';', true);
|
96 |
+
|
97 |
+
fillSelect(0, 'border_width_top_measurement', 'style_border_width_top_measurement', defaultMeasurement, ';', true);
|
98 |
+
fillSelect(0, 'border_width_right_measurement', 'style_border_width_right_measurement', defaultMeasurement, ';', true);
|
99 |
+
fillSelect(0, 'border_width_bottom_measurement', 'style_border_width_bottom_measurement', defaultMeasurement, ';', true);
|
100 |
+
fillSelect(0, 'border_width_left_measurement', 'style_border_width_left_measurement', defaultMeasurement, ';', true);
|
101 |
+
|
102 |
+
fillSelect(0, 'list_type', 'style_list_type', defaultListType, ';', true);
|
103 |
+
fillSelect(0, 'list_position', 'style_list_position', "inside;outside", ';', true);
|
104 |
+
|
105 |
+
fillSelect(0, 'positioning_type', 'style_positioning_type', "absolute;relative;static", ';', true);
|
106 |
+
fillSelect(0, 'positioning_visibility', 'style_positioning_visibility', "inherit;visible;hidden", ';', true);
|
107 |
+
|
108 |
+
fillSelect(0, 'positioning_width_measurement', 'style_positioning_width_measurement', defaultMeasurement, ';', true);
|
109 |
+
fillSelect(0, 'positioning_height_measurement', 'style_positioning_height_measurement', defaultMeasurement, ';', true);
|
110 |
+
fillSelect(0, 'positioning_overflow', 'style_positioning_overflow', "visible;hidden;scroll;auto", ';', true);
|
111 |
+
|
112 |
+
fillSelect(0, 'positioning_placement_top_measurement', 'style_positioning_placement_top_measurement', defaultMeasurement, ';', true);
|
113 |
+
fillSelect(0, 'positioning_placement_right_measurement', 'style_positioning_placement_right_measurement', defaultMeasurement, ';', true);
|
114 |
+
fillSelect(0, 'positioning_placement_bottom_measurement', 'style_positioning_placement_bottom_measurement', defaultMeasurement, ';', true);
|
115 |
+
fillSelect(0, 'positioning_placement_left_measurement', 'style_positioning_placement_left_measurement', defaultMeasurement, ';', true);
|
116 |
+
|
117 |
+
fillSelect(0, 'positioning_clip_top_measurement', 'style_positioning_clip_top_measurement', defaultMeasurement, ';', true);
|
118 |
+
fillSelect(0, 'positioning_clip_right_measurement', 'style_positioning_clip_right_measurement', defaultMeasurement, ';', true);
|
119 |
+
fillSelect(0, 'positioning_clip_bottom_measurement', 'style_positioning_clip_bottom_measurement', defaultMeasurement, ';', true);
|
120 |
+
fillSelect(0, 'positioning_clip_left_measurement', 'style_positioning_clip_left_measurement', defaultMeasurement, ';', true);
|
121 |
+
|
122 |
+
TinyMCE_EditableSelects.init();
|
123 |
+
setupFormData();
|
124 |
+
showDisabledControls();
|
125 |
+
}
|
126 |
+
|
127 |
+
function setupFormData() {
|
128 |
+
var ce = document.getElementById('container'), f = document.forms[0], s, b, i;
|
129 |
+
|
130 |
+
// Setup text fields
|
131 |
+
|
132 |
+
selectByValue(f, 'text_font', ce.style.fontFamily, true, true);
|
133 |
+
selectByValue(f, 'text_size', getNum(ce.style.fontSize), true, true);
|
134 |
+
selectByValue(f, 'text_size_measurement', getMeasurement(ce.style.fontSize));
|
135 |
+
selectByValue(f, 'text_weight', ce.style.fontWeight, true, true);
|
136 |
+
selectByValue(f, 'text_style', ce.style.fontStyle, true, true);
|
137 |
+
selectByValue(f, 'text_lineheight', getNum(ce.style.lineHeight), true, true);
|
138 |
+
selectByValue(f, 'text_lineheight_measurement', getMeasurement(ce.style.lineHeight));
|
139 |
+
selectByValue(f, 'text_case', ce.style.textTransform, true, true);
|
140 |
+
selectByValue(f, 'text_variant', ce.style.fontVariant, true, true);
|
141 |
+
f.text_color.value = ce.style.color;
|
142 |
+
updateColor('text_color_pick', 'text_color');
|
143 |
+
f.text_underline.checked = inStr(ce.style.textDecoration, 'underline');
|
144 |
+
f.text_overline.checked = inStr(ce.style.textDecoration, 'overline');
|
145 |
+
f.text_linethrough.checked = inStr(ce.style.textDecoration, 'line-through');
|
146 |
+
f.text_blink.checked = inStr(ce.style.textDecoration, 'blink');
|
147 |
+
|
148 |
+
// Setup background fields
|
149 |
+
|
150 |
+
f.background_color.value = ce.style.backgroundColor;
|
151 |
+
updateColor('background_color_pick', 'background_color');
|
152 |
+
f.background_image.value = ce.style.backgroundImage.replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1");
|
153 |
+
selectByValue(f, 'background_repeat', ce.style.backgroundRepeat, true, true);
|
154 |
+
selectByValue(f, 'background_attachment', ce.style.backgroundAttachment, true, true);
|
155 |
+
selectByValue(f, 'background_hpos', getNum(getVal(ce.style.backgroundPosition, 0)), true, true);
|
156 |
+
selectByValue(f, 'background_hpos_measurement', getMeasurement(getVal(ce.style.backgroundPosition, 0)));
|
157 |
+
selectByValue(f, 'background_vpos', getNum(getVal(ce.style.backgroundPosition, 1)), true, true);
|
158 |
+
selectByValue(f, 'background_vpos_measurement', getMeasurement(getVal(ce.style.backgroundPosition, 1)));
|
159 |
+
|
160 |
+
// Setup block fields
|
161 |
+
|
162 |
+
selectByValue(f, 'block_wordspacing', getNum(ce.style.wordSpacing), true, true);
|
163 |
+
selectByValue(f, 'block_wordspacing_measurement', getMeasurement(ce.style.wordSpacing));
|
164 |
+
selectByValue(f, 'block_letterspacing', getNum(ce.style.letterSpacing), true, true);
|
165 |
+
selectByValue(f, 'block_letterspacing_measurement', getMeasurement(ce.style.letterSpacing));
|
166 |
+
selectByValue(f, 'block_vertical_alignment', ce.style.verticalAlign, true, true);
|
167 |
+
selectByValue(f, 'block_text_align', ce.style.textAlign, true, true);
|
168 |
+
f.block_text_indent.value = getNum(ce.style.textIndent);
|
169 |
+
selectByValue(f, 'block_text_indent_measurement', getMeasurement(ce.style.textIndent));
|
170 |
+
selectByValue(f, 'block_whitespace', ce.style.whiteSpace, true, true);
|
171 |
+
selectByValue(f, 'block_display', ce.style.display, true, true);
|
172 |
+
|
173 |
+
// Setup box fields
|
174 |
+
|
175 |
+
f.box_width.value = getNum(ce.style.width);
|
176 |
+
selectByValue(f, 'box_width_measurement', getMeasurement(ce.style.width));
|
177 |
+
|
178 |
+
f.box_height.value = getNum(ce.style.height);
|
179 |
+
selectByValue(f, 'box_height_measurement', getMeasurement(ce.style.height));
|
180 |
+
|
181 |
+
if (tinyMCE.isGecko)
|
182 |
+
selectByValue(f, 'box_float', ce.style.cssFloat, true, true);
|
183 |
+
else
|
184 |
+
selectByValue(f, 'box_float', ce.style.styleFloat, true, true);
|
185 |
+
|
186 |
+
selectByValue(f, 'box_clear', ce.style.clear, true, true);
|
187 |
+
|
188 |
+
setupBox(f, ce, 'box_padding', 'padding', '');
|
189 |
+
setupBox(f, ce, 'box_margin', 'margin', '');
|
190 |
+
|
191 |
+
// Setup border fields
|
192 |
+
|
193 |
+
setupBox(f, ce, 'border_style', 'border', 'Style');
|
194 |
+
setupBox(f, ce, 'border_width', 'border', 'Width');
|
195 |
+
setupBox(f, ce, 'border_color', 'border', 'Color');
|
196 |
+
|
197 |
+
updateColor('border_color_top_pick', 'border_color_top');
|
198 |
+
updateColor('border_color_right_pick', 'border_color_right');
|
199 |
+
updateColor('border_color_bottom_pick', 'border_color_bottom');
|
200 |
+
updateColor('border_color_left_pick', 'border_color_left');
|
201 |
+
|
202 |
+
// Setup list fields
|
203 |
+
|
204 |
+
selectByValue(f, 'list_type', ce.style.listStyleType, true, true);
|
205 |
+
selectByValue(f, 'list_position', ce.style.listStylePosition, true, true);
|
206 |
+
f.list_bullet_image.value = ce.style.listStyleImage.replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1");
|
207 |
+
|
208 |
+
// Setup box fields
|
209 |
+
|
210 |
+
selectByValue(f, 'positioning_type', ce.style.position, true, true);
|
211 |
+
selectByValue(f, 'positioning_visibility', ce.style.visibility, true, true);
|
212 |
+
selectByValue(f, 'positioning_overflow', ce.style.overflow, true, true);
|
213 |
+
f.positioning_zindex.value = ce.style.zIndex ? ce.style.zIndex : "";
|
214 |
+
|
215 |
+
f.positioning_width.value = getNum(ce.style.width);
|
216 |
+
selectByValue(f, 'positioning_width_measurement', getMeasurement(ce.style.width));
|
217 |
+
|
218 |
+
f.positioning_height.value = getNum(ce.style.height);
|
219 |
+
selectByValue(f, 'positioning_height_measurement', getMeasurement(ce.style.height));
|
220 |
+
|
221 |
+
setupBox(f, ce, 'positioning_placement', '', '', new Array('top', 'right', 'bottom', 'left'));
|
222 |
+
|
223 |
+
s = ce.style.clip.replace(new RegExp("rect\\('?([^']*)'?\\)", 'gi'), "$1");
|
224 |
+
s = s.replace(/,/g, ' ');
|
225 |
+
|
226 |
+
if (!hasEqualValues(new Array(getVal(s, 0), getVal(s, 1), getVal(s, 2), getVal(s, 3)))) {
|
227 |
+
f.positioning_clip_top.value = getNum(getVal(s, 0));
|
228 |
+
selectByValue(f, 'positioning_clip_top_measurement', getMeasurement(getVal(s, 0)));
|
229 |
+
f.positioning_clip_right.value = getNum(getVal(s, 1));
|
230 |
+
selectByValue(f, 'positioning_clip_right_measurement', getMeasurement(getVal(s, 1)));
|
231 |
+
f.positioning_clip_bottom.value = getNum(getVal(s, 2));
|
232 |
+
selectByValue(f, 'positioning_clip_bottom_measurement', getMeasurement(getVal(s, 2)));
|
233 |
+
f.positioning_clip_left.value = getNum(getVal(s, 3));
|
234 |
+
selectByValue(f, 'positioning_clip_left_measurement', getMeasurement(getVal(s, 3)));
|
235 |
+
} else {
|
236 |
+
f.positioning_clip_top.value = getNum(getVal(s, 0));
|
237 |
+
selectByValue(f, 'positioning_clip_top_measurement', getMeasurement(getVal(s, 0)));
|
238 |
+
f.positioning_clip_right.value = f.positioning_clip_bottom.value = f.positioning_clip_left.value;
|
239 |
+
}
|
240 |
+
|
241 |
+
// setupBox(f, ce, '', 'border', 'Color');
|
242 |
+
}
|
243 |
+
|
244 |
+
function getMeasurement(s) {
|
245 |
+
return s.replace(/^([0-9]+)(.*)$/, "$2");
|
246 |
+
}
|
247 |
+
|
248 |
+
function getNum(s) {
|
249 |
+
if (new RegExp('^[0-9]+[a-z%]+$', 'gi').test(s))
|
250 |
+
return s.replace(/[^0-9]/g, '');
|
251 |
+
|
252 |
+
return s;
|
253 |
+
}
|
254 |
+
|
255 |
+
function inStr(s, n) {
|
256 |
+
return new RegExp(n, 'gi').test(s);
|
257 |
+
}
|
258 |
+
|
259 |
+
function getVal(s, i) {
|
260 |
+
var a = tinyMCE.explode(' ', s);
|
261 |
+
|
262 |
+
if (a.length > 1)
|
263 |
+
return a[i];
|
264 |
+
|
265 |
+
return "";
|
266 |
+
}
|
267 |
+
|
268 |
+
function setValue(f, n, v) {
|
269 |
+
if (f.elements[n].type == "text")
|
270 |
+
f.elements[n].value = v;
|
271 |
+
else
|
272 |
+
selectByValue(f, n, v, true, true);
|
273 |
+
}
|
274 |
+
|
275 |
+
function setupBox(f, ce, fp, pr, sf, b) {
|
276 |
+
if (typeof(b) == "undefined")
|
277 |
+
b = new Array('Top', 'Right', 'Bottom', 'Left');
|
278 |
+
|
279 |
+
if (isSame(ce, pr, sf, b)) {
|
280 |
+
f.elements[fp + "_same"].checked = true;
|
281 |
+
|
282 |
+
setValue(f, fp + "_top", getNum(ce.style[pr + b[0] + sf]));
|
283 |
+
f.elements[fp + "_top"].disabled = false;
|
284 |
+
|
285 |
+
f.elements[fp + "_right"].value = "";
|
286 |
+
f.elements[fp + "_right"].disabled = true;
|
287 |
+
f.elements[fp + "_bottom"].value = "";
|
288 |
+
f.elements[fp + "_bottom"].disabled = true;
|
289 |
+
f.elements[fp + "_left"].value = "";
|
290 |
+
f.elements[fp + "_left"].disabled = true;
|
291 |
+
|
292 |
+
if (f.elements[fp + "_top_measurement"]) {
|
293 |
+
selectByValue(f, fp + '_top_measurement', getMeasurement(ce.style[pr + b[0] + sf]));
|
294 |
+
f.elements[fp + "_left_measurement"].disabled = true;
|
295 |
+
f.elements[fp + "_bottom_measurement"].disabled = true;
|
296 |
+
f.elements[fp + "_right_measurement"].disabled = true;
|
297 |
+
}
|
298 |
+
} else {
|
299 |
+
f.elements[fp + "_same"].checked = false;
|
300 |
+
|
301 |
+
setValue(f, fp + "_top", getNum(ce.style[pr + b[0] + sf]));
|
302 |
+
f.elements[fp + "_top"].disabled = false;
|
303 |
+
|
304 |
+
setValue(f, fp + "_right", getNum(ce.style[pr + b[1] + sf]));
|
305 |
+
f.elements[fp + "_right"].disabled = false;
|
306 |
+
|
307 |
+
setValue(f, fp + "_bottom", getNum(ce.style[pr + b[2] + sf]));
|
308 |
+
f.elements[fp + "_bottom"].disabled = false;
|
309 |
+
|
310 |
+
setValue(f, fp + "_left", getNum(ce.style[pr + b[3] + sf]));
|
311 |
+
f.elements[fp + "_left"].disabled = false;
|
312 |
+
|
313 |
+
if (f.elements[fp + "_top_measurement"]) {
|
314 |
+
selectByValue(f, fp + '_top_measurement', getMeasurement(ce.style[pr + b[0] + sf]));
|
315 |
+
selectByValue(f, fp + '_right_measurement', getMeasurement(ce.style[pr + b[1] + sf]));
|
316 |
+
selectByValue(f, fp + '_bottom_measurement', getMeasurement(ce.style[pr + b[2] + sf]));
|
317 |
+
selectByValue(f, fp + '_left_measurement', getMeasurement(ce.style[pr + b[3] + sf]));
|
318 |
+
f.elements[fp + "_left_measurement"].disabled = false;
|
319 |
+
f.elements[fp + "_bottom_measurement"].disabled = false;
|
320 |
+
f.elements[fp + "_right_measurement"].disabled = false;
|
321 |
+
}
|
322 |
+
}
|
323 |
+
}
|
324 |
+
|
325 |
+
function isSame(e, pr, sf, b) {
|
326 |
+
var a = new Array(), i, x;
|
327 |
+
|
328 |
+
if (typeof(b) == "undefined")
|
329 |
+
b = new Array('Top', 'Right', 'Bottom', 'Left');
|
330 |
+
|
331 |
+
if (typeof(sf) == "undefined" || sf == null)
|
332 |
+
sf = "";
|
333 |
+
|
334 |
+
a[0] = e.style[pr + b[0] + sf];
|
335 |
+
a[1] = e.style[pr + b[1] + sf];
|
336 |
+
a[2] = e.style[pr + b[2] + sf];
|
337 |
+
a[3] = e.style[pr + b[3] + sf];
|
338 |
+
|
339 |
+
for (i=0; i<a.length; i++) {
|
340 |
+
if (a[i] == null)
|
341 |
+
return false;
|
342 |
+
|
343 |
+
for (x=0; x<a.length; x++) {
|
344 |
+
if (a[x] != a[i])
|
345 |
+
return false;
|
346 |
+
}
|
347 |
+
}
|
348 |
+
|
349 |
+
return true;
|
350 |
+
};
|
351 |
+
|
352 |
+
function hasEqualValues(a) {
|
353 |
+
var i, x;
|
354 |
+
|
355 |
+
for (i=0; i<a.length; i++) {
|
356 |
+
if (a[i] == null)
|
357 |
+
return false;
|
358 |
+
|
359 |
+
for (x=0; x<a.length; x++) {
|
360 |
+
if (a[x] != a[i])
|
361 |
+
return false;
|
362 |
+
}
|
363 |
+
}
|
364 |
+
|
365 |
+
return true;
|
366 |
+
}
|
367 |
+
|
368 |
+
function applyAction() {
|
369 |
+
var ce = document.getElementById('container');
|
370 |
+
|
371 |
+
generateCSS();
|
372 |
+
|
373 |
+
tinyMCEPopup.execCommand('mceSetElementStyle', false, tinyMCE.serializeStyle(tinyMCE.parseStyle(ce.style.cssText)));
|
374 |
+
}
|
375 |
+
|
376 |
+
function updateAction() {
|
377 |
+
applyAction();
|
378 |
+
tinyMCEPopup.close();
|
379 |
+
}
|
380 |
+
|
381 |
+
function generateCSS() {
|
382 |
+
var ce = document.getElementById('container'), f = document.forms[0], num = new RegExp('[0-9]+', 'g'), s, t;
|
383 |
+
|
384 |
+
ce.style.cssText = "";
|
385 |
+
|
386 |
+
// Build text styles
|
387 |
+
ce.style.fontFamily = f.text_font.value;
|
388 |
+
ce.style.fontSize = f.text_size.value + (isNum(f.text_size.value) ? f.text_size_measurement.value : "");
|
389 |
+
ce.style.fontStyle = f.text_style.value;
|
390 |
+
ce.style.lineHeight = f.text_lineheight.value + (isNum(f.text_lineheight.value) ? f.text_lineheight_measurement.value : "");
|
391 |
+
ce.style.textTransform = f.text_case.value;
|
392 |
+
ce.style.fontWeight = f.text_weight.value;
|
393 |
+
ce.style.fontVariant = f.text_variant.value;
|
394 |
+
ce.style.color = f.text_color.value;
|
395 |
+
|
396 |
+
s = "";
|
397 |
+
s += f.text_underline.checked ? " underline" : "";
|
398 |
+
s += f.text_overline.checked ? " overline" : "";
|
399 |
+
s += f.text_linethrough.checked ? " line-through" : "";
|
400 |
+
s += f.text_blink.checked ? " blink" : "";
|
401 |
+
s = s.length > 0 ? s.substring(1) : s;
|
402 |
+
|
403 |
+
if (f.text_none.checked)
|
404 |
+
s = "none";
|
405 |
+
|
406 |
+
ce.style.textDecoration = s;
|
407 |
+
|
408 |
+
// Build background styles
|
409 |
+
|
410 |
+
ce.style.backgroundColor = f.background_color.value;
|
411 |
+
ce.style.backgroundImage = f.background_image.value != "" ? "url(" + f.background_image.value + ")" : "";
|
412 |
+
ce.style.backgroundRepeat = f.background_repeat.value;
|
413 |
+
ce.style.backgroundAttachment = f.background_attachment.value;
|
414 |
+
|
415 |
+
if (f.background_hpos.value != "") {
|
416 |
+
s = "";
|
417 |
+
s += f.background_hpos.value + (isNum(f.background_hpos.value) ? f.background_hpos_measurement.value : "") + " ";
|
418 |
+
s += f.background_vpos.value + (isNum(f.background_vpos.value) ? f.background_vpos_measurement.value : "");
|
419 |
+
ce.style.backgroundPosition = s;
|
420 |
+
}
|
421 |
+
|
422 |
+
// Build block styles
|
423 |
+
|
424 |
+
ce.style.wordSpacing = f.block_wordspacing.value + (isNum(f.block_wordspacing.value) ? f.block_wordspacing_measurement.value : "");
|
425 |
+
ce.style.letterSpacing = f.block_letterspacing.value + (isNum(f.block_letterspacing.value) ? f.block_letterspacing_measurement.value : "");
|
426 |
+
ce.style.verticalAlign = f.block_vertical_alignment.value;
|
427 |
+
ce.style.textAlign = f.block_text_align.value;
|
428 |
+
ce.style.textIndent = f.block_text_indent.value + (isNum(f.block_text_indent.value) ? f.block_text_indent_measurement.value : "");
|
429 |
+
ce.style.whiteSpace = f.block_whitespace.value;
|
430 |
+
ce.style.display = f.block_display.value;
|
431 |
+
|
432 |
+
// Build box styles
|
433 |
+
|
434 |
+
ce.style.width = f.box_width.value + (isNum(f.box_width.value) ? f.box_width_measurement.value : "");
|
435 |
+
ce.style.height = f.box_height.value + (isNum(f.box_height.value) ? f.box_height_measurement.value : "");
|
436 |
+
ce.style.styleFloat = f.box_float.value;
|
437 |
+
|
438 |
+
if (tinyMCE.isGecko)
|
439 |
+
ce.style.cssFloat = f.box_float.value;
|
440 |
+
|
441 |
+
ce.style.clear = f.box_clear.value;
|
442 |
+
|
443 |
+
if (!f.box_padding_same.checked) {
|
444 |
+
ce.style.paddingTop = f.box_padding_top.value + (isNum(f.box_padding_top.value) ? f.box_padding_top_measurement.value : "");
|
445 |
+
ce.style.paddingRight = f.box_padding_right.value + (isNum(f.box_padding_right.value) ? f.box_padding_right_measurement.value : "");
|
446 |
+
ce.style.paddingBottom = f.box_padding_bottom.value + (isNum(f.box_padding_bottom.value) ? f.box_padding_bottom_measurement.value : "");
|
447 |
+
ce.style.paddingLeft = f.box_padding_left.value + (isNum(f.box_padding_left.value) ? f.box_padding_left_measurement.value : "");
|
448 |
+
} else
|
449 |
+
ce.style.padding = f.box_padding_top.value + (isNum(f.box_padding_top.value) ? f.box_padding_top_measurement.value : "");
|
450 |
+
|
451 |
+
if (!f.box_margin_same.checked) {
|
452 |
+
ce.style.marginTop = f.box_margin_top.value + (isNum(f.box_margin_top.value) ? f.box_margin_top_measurement.value : "");
|
453 |
+
ce.style.marginRight = f.box_margin_right.value + (isNum(f.box_margin_right.value) ? f.box_margin_right_measurement.value : "");
|
454 |
+
ce.style.marginBottom = f.box_margin_bottom.value + (isNum(f.box_margin_bottom.value) ? f.box_margin_bottom_measurement.value : "");
|
455 |
+
ce.style.marginLeft = f.box_margin_left.value + (isNum(f.box_margin_left.value) ? f.box_margin_left_measurement.value : "");
|
456 |
+
} else
|
457 |
+
ce.style.margin = f.box_margin_top.value + (isNum(f.box_margin_top.value) ? f.box_margin_top_measurement.value : "");
|
458 |
+
|
459 |
+
// Build border styles
|
460 |
+
|
461 |
+
if (!f.border_style_same.checked) {
|
462 |
+
ce.style.borderTopStyle = f.border_style_top.value;
|
463 |
+
ce.style.borderRightStyle = f.border_style_right.value;
|
464 |
+
ce.style.borderBottomStyle = f.border_style_bottom.value;
|
465 |
+
ce.style.borderLeftStyle = f.border_style_left.value;
|
466 |
+
} else
|
467 |
+
ce.style.borderStyle = f.border_style_top.value;
|
468 |
+
|
469 |
+
if (!f.border_width_same.checked) {
|
470 |
+
ce.style.borderTopWidth = f.border_width_top.value + (isNum(f.border_width_top.value) ? f.border_width_top_measurement.value : "");
|
471 |
+
ce.style.borderRightWidth = f.border_width_right.value + (isNum(f.border_width_right.value) ? f.border_width_right_measurement.value : "");
|
472 |
+
ce.style.borderBottomWidth = f.border_width_bottom.value + (isNum(f.border_width_bottom.value) ? f.border_width_bottom_measurement.value : "");
|
473 |
+
ce.style.borderLeftWidth = f.border_width_left.value + (isNum(f.border_width_left.value) ? f.border_width_left_measurement.value : "");
|
474 |
+
} else
|
475 |
+
ce.style.borderWidth = f.border_width_top.value;
|
476 |
+
|
477 |
+
if (!f.border_color_same.checked) {
|
478 |
+
ce.style.borderTopColor = f.border_color_top.value;
|
479 |
+
ce.style.borderRightColor = f.border_color_right.value;
|
480 |
+
ce.style.borderBottomColor = f.border_color_bottom.value;
|
481 |
+
ce.style.borderLeftColor = f.border_color_left.value;
|
482 |
+
} else
|
483 |
+
ce.style.borderColor = f.border_color_top.value;
|
484 |
+
|
485 |
+
// Build list styles
|
486 |
+
|
487 |
+
ce.style.listStyleType = f.list_type.value;
|
488 |
+
ce.style.listStylePosition = f.list_position.value;
|
489 |
+
ce.style.listStyleImage = f.list_bullet_image.value != "" ? "url(" + f.list_bullet_image.value + ")" : "";
|
490 |
+
|
491 |
+
// Build positioning styles
|
492 |
+
|
493 |
+
ce.style.position = f.positioning_type.value;
|
494 |
+
ce.style.visibility = f.positioning_visibility.value;
|
495 |
+
|
496 |
+
if (ce.style.width == "")
|
497 |
+
ce.style.width = f.positioning_width.value + (isNum(f.positioning_width.value) ? f.positioning_width_measurement.value : "");
|
498 |
+
|
499 |
+
if (ce.style.height == "")
|
500 |
+
ce.style.height = f.positioning_height.value + (isNum(f.positioning_height.value) ? f.positioning_height_measurement.value : "");
|
501 |
+
|
502 |
+
ce.style.zIndex = f.positioning_zindex.value;
|
503 |
+
ce.style.overflow = f.positioning_overflow.value;
|
504 |
+
|
505 |
+
if (!f.positioning_placement_same.checked) {
|
506 |
+
ce.style.top = f.positioning_placement_top.value + (isNum(f.positioning_placement_top.value) ? f.positioning_placement_top_measurement.value : "");
|
507 |
+
ce.style.right = f.positioning_placement_right.value + (isNum(f.positioning_placement_right.value) ? f.positioning_placement_right_measurement.value : "");
|
508 |
+
ce.style.bottom = f.positioning_placement_bottom.value + (isNum(f.positioning_placement_bottom.value) ? f.positioning_placement_bottom_measurement.value : "");
|
509 |
+
ce.style.left = f.positioning_placement_left.value + (isNum(f.positioning_placement_left.value) ? f.positioning_placement_left_measurement.value : "");
|
510 |
+
} else {
|
511 |
+
s = f.positioning_placement_top.value + (isNum(f.positioning_placement_top.value) ? f.positioning_placement_top_measurement.value : "");
|
512 |
+
ce.style.top = s;
|
513 |
+
ce.style.right = s;
|
514 |
+
ce.style.bottom = s;
|
515 |
+
ce.style.left = s;
|
516 |
+
}
|
517 |
+
|
518 |
+
if (!f.positioning_clip_same.checked) {
|
519 |
+
s = "rect(";
|
520 |
+
s += (isNum(f.positioning_clip_top.value) ? f.positioning_clip_top.value + f.positioning_clip_top_measurement.value : "auto") + " ";
|
521 |
+
s += (isNum(f.positioning_clip_right.value) ? f.positioning_clip_right.value + f.positioning_clip_right_measurement.value : "auto") + " ";
|
522 |
+
s += (isNum(f.positioning_clip_bottom.value) ? f.positioning_clip_bottom.value + f.positioning_clip_bottom_measurement.value : "auto") + " ";
|
523 |
+
s += (isNum(f.positioning_clip_left.value) ? f.positioning_clip_left.value + f.positioning_clip_left_measurement.value : "auto");
|
524 |
+
s += ")";
|
525 |
+
|
526 |
+
if (s != "rect(auto auto auto auto)")
|
527 |
+
ce.style.clip = s;
|
528 |
+
} else {
|
529 |
+
s = "rect(";
|
530 |
+
t = isNum(f.positioning_clip_top.value) ? f.positioning_clip_top.value + f.positioning_clip_top_measurement.value : "auto";
|
531 |
+
s += t + " ";
|
532 |
+
s += t + " ";
|
533 |
+
s += t + " ";
|
534 |
+
s += t + ")";
|
535 |
+
|
536 |
+
if (s != "rect(auto auto auto auto)")
|
537 |
+
ce.style.clip = s;
|
538 |
+
}
|
539 |
+
|
540 |
+
ce.style.cssText = tinyMCE.serializeStyle(tinyMCE.parseStyle(ce.style.cssText));
|
541 |
+
}
|
542 |
+
|
543 |
+
function isNum(s) {
|
544 |
+
return new RegExp('[0-9]+', 'g').test(s);
|
545 |
+
}
|
546 |
+
|
547 |
+
function showDisabledControls() {
|
548 |
+
var f = document.forms, i, a;
|
549 |
+
|
550 |
+
for (i=0; i<f.length; i++) {
|
551 |
+
for (a=0; a<f[i].elements.length; a++) {
|
552 |
+
if (f[i].elements[a].disabled)
|
553 |
+
tinyMCE.addCSSClass(f[i].elements[a], "disabled");
|
554 |
+
else
|
555 |
+
tinyMCE.removeCSSClass(f[i].elements[a], "disabled");
|
556 |
+
}
|
557 |
+
}
|
558 |
+
}
|
559 |
+
|
560 |
+
function fillSelect(f, s, param, dval, sep, em) {
|
561 |
+
var i, ar, p, se;
|
562 |
+
|
563 |
+
f = document.forms[f];
|
564 |
+
sep = typeof(sep) == "undefined" ? ";" : sep;
|
565 |
+
|
566 |
+
if (em)
|
567 |
+
addSelectValue(f, s, "", "");
|
568 |
+
|
569 |
+
ar = tinyMCE.getParam(param, dval).split(sep);
|
570 |
+
for (i=0; i<ar.length; i++) {
|
571 |
+
se = false;
|
572 |
+
|
573 |
+
if (ar[i].charAt(0) == '+') {
|
574 |
+
ar[i] = ar[i].substring(1);
|
575 |
+
se = true;
|
576 |
+
}
|
577 |
+
|
578 |
+
p = ar[i].split('=');
|
579 |
+
|
580 |
+
if (p.length > 1) {
|
581 |
+
addSelectValue(f, s, p[0], p[1]);
|
582 |
+
|
583 |
+
if (se)
|
584 |
+
selectByValue(f, s, p[1]);
|
585 |
+
} else {
|
586 |
+
addSelectValue(f, s, p[0], p[0]);
|
587 |
+
|
588 |
+
if (se)
|
589 |
+
selectByValue(f, s, p[0]);
|
590 |
+
}
|
591 |
+
}
|
592 |
+
}
|
593 |
+
|
594 |
+
function toggleSame(ce, pre) {
|
595 |
+
var el = document.forms[0].elements, i;
|
596 |
+
|
597 |
+
if (ce.checked) {
|
598 |
+
el[pre + "_top"].disabled = false;
|
599 |
+
el[pre + "_right"].disabled = true;
|
600 |
+
el[pre + "_bottom"].disabled = true;
|
601 |
+
el[pre + "_left"].disabled = true;
|
602 |
+
|
603 |
+
if (el[pre + "_top_measurement"]) {
|
604 |
+
el[pre + "_top_measurement"].disabled = false;
|
605 |
+
el[pre + "_right_measurement"].disabled = true;
|
606 |
+
el[pre + "_bottom_measurement"].disabled = true;
|
607 |
+
el[pre + "_left_measurement"].disabled = true;
|
608 |
+
}
|
609 |
+
} else {
|
610 |
+
el[pre + "_top"].disabled = false;
|
611 |
+
el[pre + "_right"].disabled = false;
|
612 |
+
el[pre + "_bottom"].disabled = false;
|
613 |
+
el[pre + "_left"].disabled = false;
|
614 |
+
|
615 |
+
if (el[pre + "_top_measurement"]) {
|
616 |
+
el[pre + "_top_measurement"].disabled = false;
|
617 |
+
el[pre + "_right_measurement"].disabled = false;
|
618 |
+
el[pre + "_bottom_measurement"].disabled = false;
|
619 |
+
el[pre + "_left_measurement"].disabled = false;
|
620 |
+
}
|
621 |
+
}
|
622 |
+
|
623 |
+
showDisabledControls();
|
624 |
+
}
|
625 |
+
|
626 |
+
function synch(fr, to) {
|
627 |
+
var f = document.forms[0];
|
628 |
+
|
629 |
+
f.elements[to].value = f.elements[fr].value;
|
630 |
+
|
631 |
+
if (f.elements[fr + "_measurement"])
|
632 |
+
selectByValue(f, to + "_measurement", f.elements[fr + "_measurement"].value);
|
633 |
+
}
|
tinymce-advanced/mce/style/langs/de_de.js
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// DE lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('style',{
|
4 |
+
title : 'CSS Stil bearbeiten',
|
5 |
+
styleinfo_desc : 'CSS Stil bearbeiten',
|
6 |
+
apply : 'Anwenden',
|
7 |
+
text_tab : 'Text',
|
8 |
+
background_tab : 'Hintergrund',
|
9 |
+
block_tab : 'Block',
|
10 |
+
box_tab : 'Box',
|
11 |
+
border_tab : 'Rahmen',
|
12 |
+
list_tab : 'Liste',
|
13 |
+
positioning_tab : 'Positionierung',
|
14 |
+
text_props : 'Text',
|
15 |
+
text_font : 'Schriftart',
|
16 |
+
text_size : 'Größe',
|
17 |
+
text_weight : 'Dicke',
|
18 |
+
text_style : 'Stil',
|
19 |
+
text_variant : 'Variante',
|
20 |
+
text_lineheight : 'Linienhöhe',
|
21 |
+
text_case : 'Groß-/Kleinbuchstaben',
|
22 |
+
text_color : 'Farbe',
|
23 |
+
text_decoration : 'Dekoration',
|
24 |
+
text_overline : 'Oberlinie',
|
25 |
+
text_underline : 'Unterstrichen',
|
26 |
+
text_striketrough : 'Durchgestrichen',
|
27 |
+
text_blink : 'blinken',
|
28 |
+
text_none : 'nichts',
|
29 |
+
background_color : 'Hintergrundfarbe',
|
30 |
+
background_image : 'Hintergrundfoto',
|
31 |
+
background_repeat : 'Wiederholen',
|
32 |
+
background_attachment : 'Anhang',
|
33 |
+
background_hpos : 'Horizontale Position',
|
34 |
+
background_vpos : 'Vertikale Position',
|
35 |
+
block_wordspacing : 'Wortabstand',
|
36 |
+
block_letterspacing : 'Zeichenabstand',
|
37 |
+
block_vertical_alignment : 'Vertikale Ausrichtung',
|
38 |
+
block_text_align : 'Horizontale Ausrichtung',
|
39 |
+
block_text_indent : 'Texteinrückung',
|
40 |
+
block_whitespace : 'Textumbruch',
|
41 |
+
block_display : 'Anzeigeart',
|
42 |
+
box_width : 'Breite',
|
43 |
+
box_height : 'Höhe',
|
44 |
+
box_float : 'Text umfließen',
|
45 |
+
box_clear : 'Text umfließen beenden',
|
46 |
+
padding : 'Innenabstand',
|
47 |
+
same : 'Das gleiche für alle',
|
48 |
+
top : 'Oben',
|
49 |
+
right : 'Rechts',
|
50 |
+
bottom : 'Unten',
|
51 |
+
left : 'Links',
|
52 |
+
margin : 'Aussenabstand',
|
53 |
+
style : 'Stil',
|
54 |
+
width : 'Breite',
|
55 |
+
height : 'Höhe',
|
56 |
+
color : 'Farbe',
|
57 |
+
list_type : 'Listentyp',
|
58 |
+
bullet_image : 'Grafik',
|
59 |
+
position : 'Position',
|
60 |
+
positioning_type : 'Typ',
|
61 |
+
visibility : 'Sichtbarkeit',
|
62 |
+
zindex : 'Z-index',
|
63 |
+
overflow : 'Überfluss',
|
64 |
+
placement : 'Plazierung',
|
65 |
+
clip : 'Abschneiden'
|
66 |
+
});
|
tinymce-advanced/mce/style/langs/en.js
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// UK lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('style',{
|
4 |
+
title : 'Edit CSS Style',
|
5 |
+
styleinfo_desc : 'Edit CSS Style',
|
6 |
+
apply : 'Apply',
|
7 |
+
text_tab : 'Text',
|
8 |
+
background_tab : 'Background',
|
9 |
+
block_tab : 'Block',
|
10 |
+
box_tab : 'Box',
|
11 |
+
border_tab : 'Border',
|
12 |
+
list_tab : 'List',
|
13 |
+
positioning_tab : 'Positioning',
|
14 |
+
text_props : 'Text',
|
15 |
+
text_font : 'Font',
|
16 |
+
text_size : 'Size',
|
17 |
+
text_weight : 'Weight',
|
18 |
+
text_style : 'Style',
|
19 |
+
text_variant : 'Variant',
|
20 |
+
text_lineheight : 'Line height',
|
21 |
+
text_case : 'Case',
|
22 |
+
text_color : 'Color',
|
23 |
+
text_decoration : 'Decoration',
|
24 |
+
text_overline : 'overline',
|
25 |
+
text_underline : 'underline',
|
26 |
+
text_striketrough : 'strikethrough',
|
27 |
+
text_blink : 'blink',
|
28 |
+
text_none : 'none',
|
29 |
+
background_color : 'Background color',
|
30 |
+
background_image : 'Background image',
|
31 |
+
background_repeat : 'Repeat',
|
32 |
+
background_attachment : 'Attachment',
|
33 |
+
background_hpos : 'Horizontal position',
|
34 |
+
background_vpos : 'Vertical position',
|
35 |
+
block_wordspacing : 'Word spacing',
|
36 |
+
block_letterspacing : 'Letter spacing',
|
37 |
+
block_vertical_alignment : 'Vertical alignment',
|
38 |
+
block_text_align : 'Text align',
|
39 |
+
block_text_indent : 'Text indent',
|
40 |
+
block_whitespace : 'Whitespace',
|
41 |
+
block_display : 'Display',
|
42 |
+
box_width : 'Width',
|
43 |
+
box_height : 'Height',
|
44 |
+
box_float : 'Float',
|
45 |
+
box_clear : 'Clear',
|
46 |
+
padding : 'Padding',
|
47 |
+
same : 'Same for all',
|
48 |
+
top : 'Top',
|
49 |
+
right : 'Right',
|
50 |
+
bottom : 'Bottom',
|
51 |
+
left : 'Left',
|
52 |
+
margin : 'Margin',
|
53 |
+
style : 'Style',
|
54 |
+
width : 'Width',
|
55 |
+
height : 'Height',
|
56 |
+
color : 'Color',
|
57 |
+
list_type : 'Type',
|
58 |
+
bullet_image : 'Bullet image',
|
59 |
+
position : 'Position',
|
60 |
+
positioning_type : 'Type',
|
61 |
+
visibility : 'Visibility',
|
62 |
+
zindex : 'Z-index',
|
63 |
+
overflow : 'Overflow',
|
64 |
+
placement : 'Placement',
|
65 |
+
clip : 'Clip'
|
66 |
+
});
|
tinymce-advanced/mce/style/langs/es_es.js
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* ES lang variables
|
3 |
+
*
|
4 |
+
* Authors : Eneko Castresana Vara
|
5 |
+
* Last Updated : July 14, 2006
|
6 |
+
* TinyMCE Version : 2.0.6.1
|
7 |
+
*/
|
8 |
+
|
9 |
+
tinyMCE.addToLang('style',{
|
10 |
+
title : 'Editar estilo CSS',
|
11 |
+
styleinfo_desc : 'Editar estilo CSS',
|
12 |
+
text_tab : 'Texto',
|
13 |
+
background_tab : 'Fondo',
|
14 |
+
block_tab : 'Bloque',
|
15 |
+
box_tab : 'Cuadro',
|
16 |
+
border_tab : 'Borde',
|
17 |
+
list_tab : 'Lista',
|
18 |
+
positioning_tab : 'Posicionamiento',
|
19 |
+
text_props : 'Texto',
|
20 |
+
text_font : 'Fuente',
|
21 |
+
text_size : 'Tamaño',
|
22 |
+
text_weight : 'Peso',
|
23 |
+
text_style : 'Estilo',
|
24 |
+
text_variant : 'Variante',
|
25 |
+
text_lineheight : 'Altura de línea',
|
26 |
+
text_case : 'Caso',
|
27 |
+
text_color : 'Color',
|
28 |
+
text_decoration : 'Decoración',
|
29 |
+
background_color : 'Color de fondo',
|
30 |
+
background_image : 'Imagen de fondo',
|
31 |
+
background_repeat : 'Repetir',
|
32 |
+
background_attachment : 'Agregado',
|
33 |
+
background_hpos : 'Posición horizontal',
|
34 |
+
background_vpos : 'Posición vertical',
|
35 |
+
block_wordspacing : 'Espaciado de palabras',
|
36 |
+
block_letterspacing : 'Espaciado de letras',
|
37 |
+
block_vertical_alignment : 'Alineación vertical',
|
38 |
+
block_text_align : 'Alineación del texto',
|
39 |
+
block_text_indent : 'Indentación del texto',
|
40 |
+
block_whitespace : 'Espacio',
|
41 |
+
block_display : 'Mostrar',
|
42 |
+
box_width : 'Ancho',
|
43 |
+
box_height : 'Alto',
|
44 |
+
box_float : 'Flotante',
|
45 |
+
box_clear : 'Borrar',
|
46 |
+
padding : 'Espaciado',
|
47 |
+
same : 'Igual para todo',
|
48 |
+
top : 'Arriba',
|
49 |
+
right : 'Derecha',
|
50 |
+
bottom : 'Abajo',
|
51 |
+
left : 'Izquierda',
|
52 |
+
margin : 'Margen',
|
53 |
+
style : 'Estilo',
|
54 |
+
width : 'Ancho',
|
55 |
+
height : 'Alto',
|
56 |
+
color : 'Color',
|
57 |
+
list_type : 'Tipo',
|
58 |
+
bullet_image : 'Imagen de viñeta',
|
59 |
+
position : 'Posición',
|
60 |
+
positioning_type : 'Tipo',
|
61 |
+
visibility : 'Visibilidad',
|
62 |
+
zindex : 'Z-index',
|
63 |
+
overflow : 'Desbordamiento',
|
64 |
+
placement : 'Emplazamiento',
|
65 |
+
clip : 'Recortar'
|
66 |
+
});
|
tinymce-advanced/mce/style/langs/fr_fr.js
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// FR lang variables
|
2 |
+
// Modified by keyko-web.net, last updated 2007-03-08
|
3 |
+
|
4 |
+
tinyMCE.addToLang('style',{
|
5 |
+
title : 'Edtiteur de style CSS',
|
6 |
+
styleinfo_desc : 'Edtiteur de style CSS',
|
7 |
+
apply : 'Appliquer',
|
8 |
+
text_tab : 'Texte',
|
9 |
+
background_tab : 'Arrière-plan',
|
10 |
+
block_tab : 'Bloc',
|
11 |
+
box_tab : 'Boite',
|
12 |
+
border_tab : 'Bord',
|
13 |
+
list_tab : 'Liste',
|
14 |
+
positioning_tab : 'Positionnement',
|
15 |
+
text_props : 'Texte',
|
16 |
+
text_font : 'Police',
|
17 |
+
text_size : 'Taille',
|
18 |
+
text_weight : 'Poids',
|
19 |
+
text_style : 'Style',
|
20 |
+
text_variant : 'Variant',
|
21 |
+
text_lineheight : 'Hauteur de ligne',
|
22 |
+
text_case : 'Casse',
|
23 |
+
text_color : 'Couleur',
|
24 |
+
text_decoration : 'Décoration',
|
25 |
+
text_overline : 'surligné',
|
26 |
+
text_underline : 'souligné',
|
27 |
+
text_striketrough : 'barré',
|
28 |
+
text_blink : 'clignotant',
|
29 |
+
text_none : 'aucun',
|
30 |
+
background_color : 'Couleur d\'arrière-plan',
|
31 |
+
background_image : 'Image d\'arrière-plan',
|
32 |
+
background_repeat : 'Répéter',
|
33 |
+
background_attachment : 'Attacher',
|
34 |
+
background_hpos : 'Position horizontale',
|
35 |
+
background_vpos : 'Position verticale',
|
36 |
+
block_wordspacing : 'Espace entre les mots',
|
37 |
+
block_letterspacing : 'Espace entre les lettres',
|
38 |
+
block_vertical_alignment : 'Aligenement vertical',
|
39 |
+
block_text_align : 'Aligement du texte',
|
40 |
+
block_text_indent : 'Indentation du texte',
|
41 |
+
block_whitespace : 'Espace',
|
42 |
+
block_display : 'Afficher',
|
43 |
+
box_width : 'Largeur',
|
44 |
+
box_height : 'Hauteur',
|
45 |
+
box_float : 'Float',
|
46 |
+
box_clear : 'Effacer',
|
47 |
+
padding : 'Padding',
|
48 |
+
same : 'Identique pour tous',
|
49 |
+
top : 'Haut',
|
50 |
+
right : 'Droite',
|
51 |
+
bottom : 'Bas',
|
52 |
+
left : 'Gauche',
|
53 |
+
margin : 'Marge',
|
54 |
+
style : 'Style',
|
55 |
+
width : 'Largeur',
|
56 |
+
height : 'Hauteur',
|
57 |
+
color : 'Couleur',
|
58 |
+
list_type : 'Type',
|
59 |
+
bullet_image : 'Bullet image',
|
60 |
+
position : 'Position',
|
61 |
+
positioning_type : 'Type',
|
62 |
+
visibility : 'Visibilité',
|
63 |
+
zindex : 'Z-index',
|
64 |
+
overflow : 'Overflow',
|
65 |
+
placement : 'Placement',
|
66 |
+
clip : 'Clip'
|
67 |
+
});
|
tinymce-advanced/mce/style/langs/it_it.js
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* IT lang variables
|
3 |
+
*
|
4 |
+
* Author : Luciano Vernaschi <luciano@virgilio.it>
|
5 |
+
* Last Updated : Mar. 1st, 2007
|
6 |
+
* TinyMCE Version : 2.1.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
tinyMCE.addToLang('style',{
|
10 |
+
title : 'Modifica stile CSS',
|
11 |
+
styleinfo_desc : 'Modifica stile CSS',
|
12 |
+
apply : 'Applica',
|
13 |
+
text_tab : 'Testo',
|
14 |
+
background_tab : 'Sfondo',
|
15 |
+
block_tab : 'Blocco',
|
16 |
+
box_tab : 'Box',
|
17 |
+
border_tab : 'Bordo',
|
18 |
+
list_tab : 'Lista',
|
19 |
+
positioning_tab : 'Posizionamento',
|
20 |
+
text_props : 'Testo',
|
21 |
+
text_font : 'Font',
|
22 |
+
text_size : 'Dimensione',
|
23 |
+
text_weight : 'Peso',
|
24 |
+
text_style : 'Stile',
|
25 |
+
text_variant : 'Variante',
|
26 |
+
text_lineheight : 'Altezza linea',
|
27 |
+
text_case : 'Caso',
|
28 |
+
text_color : 'Colore',
|
29 |
+
text_decoration : 'Decorazione',
|
30 |
+
text_overline : 'Linea sopra',
|
31 |
+
text_underline : 'Sottolinea',
|
32 |
+
text_striketrough : 'Linea sovrapposta',
|
33 |
+
text_blink : 'Lampeggia',
|
34 |
+
text_none : 'Nessuno',
|
35 |
+
background_color : 'Colore di sfondo',
|
36 |
+
background_image : 'Immagine di sfondo',
|
37 |
+
background_repeat : 'Ripeti',
|
38 |
+
background_attachment : 'Ancoraggio',
|
39 |
+
background_hpos : 'Posizione orizzontale',
|
40 |
+
background_vpos : 'Posizione verticale',
|
41 |
+
block_wordspacing : 'Spaziatura parole',
|
42 |
+
block_letterspacing : 'Spaziatura lettere',
|
43 |
+
block_vertical_alignment : 'Allineamento verticale',
|
44 |
+
block_text_align : 'Allineamento del testo',
|
45 |
+
block_text_indent : 'Indentazione del testo',
|
46 |
+
block_whitespace : 'Whitespace',
|
47 |
+
block_display : 'Display',
|
48 |
+
box_width : 'Larghezza',
|
49 |
+
box_height : 'Altezza',
|
50 |
+
box_float : 'Float',
|
51 |
+
box_clear : 'Clear',
|
52 |
+
padding : 'Spaziatura interna',
|
53 |
+
same : 'Uguale per tutti',
|
54 |
+
top : 'Alto',
|
55 |
+
right : 'Destra',
|
56 |
+
bottom : 'Basso',
|
57 |
+
left : 'Sinistra',
|
58 |
+
margin : 'Margine esterno',
|
59 |
+
style : 'Stile',
|
60 |
+
width : 'Larghezza',
|
61 |
+
height : 'Altezza',
|
62 |
+
color : 'Colore',
|
63 |
+
list_type : 'Tipo',
|
64 |
+
bullet_image : 'Immagine punto elenco',
|
65 |
+
position : 'Posizionamento',
|
66 |
+
positioning_type : 'Tipo',
|
67 |
+
visibility : 'Visibilità',
|
68 |
+
zindex : 'Z-index',
|
69 |
+
overflow : 'Overflow',
|
70 |
+
placement : 'Piazzamento',
|
71 |
+
clip : 'Clip'
|
72 |
+
});
|
tinymce-advanced/mce/style/langs/pt_br.js
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* pt_br lang variables
|
3 |
+
* Brazilian Portuguese
|
4 |
+
*
|
5 |
+
* Author
|
6 |
+
* Revision and modifications:
|
7 |
+
* Marcio Barbosa (mpg) <mpg@mpg.com.br>
|
8 |
+
* First Release : November 20, 2006 - TinyMCE Version : 2.0.8
|
9 |
+
*/
|
10 |
+
tinyMCE.addToLang('style',{
|
11 |
+
title : 'Editar folha de estilo CSS',
|
12 |
+
styleinfo_desc : 'Editar estilo CSS',
|
13 |
+
apply : 'Aplicar',
|
14 |
+
text_tab : 'Texto',
|
15 |
+
background_tab : 'Fundo',
|
16 |
+
block_tab : 'Bloco',
|
17 |
+
box_tab : 'Caixa',
|
18 |
+
border_tab : 'Borda',
|
19 |
+
list_tab : 'Lista',
|
20 |
+
positioning_tab : 'Posicionamento',
|
21 |
+
text_props : 'Texto',
|
22 |
+
text_font : 'Fonte',
|
23 |
+
text_size : 'Tamanho',
|
24 |
+
text_weight : 'Largura',
|
25 |
+
text_style : 'Estilo',
|
26 |
+
text_variant : 'Varia��o',
|
27 |
+
text_lineheight : 'Altura da linha',
|
28 |
+
text_case : 'Caso',
|
29 |
+
text_color : 'Cor',
|
30 |
+
text_decoration : 'Decora��o',
|
31 |
+
text_overline : 'Sobrescrito',
|
32 |
+
text_underline : 'Subscrito',
|
33 |
+
text_striketrough : 'Tachado',
|
34 |
+
text_blink : 'Piscante',
|
35 |
+
text_none : 'nenhum',
|
36 |
+
background_color : 'Cor do fundo',
|
37 |
+
background_image : 'Fundo da imagem',
|
38 |
+
background_repeat : 'Repetir',
|
39 |
+
background_attachment : 'Anexo',
|
40 |
+
background_hpos : 'Posi��o horizontal',
|
41 |
+
background_vpos : 'Posi��o vertical',
|
42 |
+
block_wordspacing : 'Espa�amento de palavras',
|
43 |
+
block_letterspacing : 'Espa�amento de letras',
|
44 |
+
block_vertical_alignment : 'Alinhamento vertical',
|
45 |
+
block_text_align : 'Alinhamento do texto',
|
46 |
+
block_text_indent : 'Identa��o do texto',
|
47 |
+
block_whitespace : 'Espa�os em branco',
|
48 |
+
block_display : 'Visualiza��o',
|
49 |
+
box_width : 'Largura',
|
50 |
+
box_height : 'Altura',
|
51 |
+
box_float : 'Flutuante',
|
52 |
+
box_clear : 'Limpar',
|
53 |
+
padding : 'Espa�amento',
|
54 |
+
same : 'Igual para todos',
|
55 |
+
top : 'Superior',
|
56 |
+
right : 'Direita',
|
57 |
+
bottom : 'Inferior',
|
58 |
+
left : 'Esquerda',
|
59 |
+
margin : 'Margem',
|
60 |
+
style : 'Estilo',
|
61 |
+
width : 'Largura',
|
62 |
+
height : 'Altura',
|
63 |
+
color : 'Cor',
|
64 |
+
list_type : 'Tipo',
|
65 |
+
bullet_image : 'Imagem tipo Bullet',
|
66 |
+
position : 'Posicionamento',
|
67 |
+
positioning_type : 'Tipo',
|
68 |
+
visibility : 'Visibilidade',
|
69 |
+
zindex : 'Z-index',
|
70 |
+
overflow : 'Sobrescrever',
|
71 |
+
placement : 'Localiza��o',
|
72 |
+
clip : 'Clip'
|
73 |
+
});
|
tinymce-advanced/mce/style/langs/ru_ru.js
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// RU lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('style',{
|
4 |
+
title : 'Редактировать CSS Стиль',
|
5 |
+
styleinfo_desc : 'Редактировать CSS Стиль',
|
6 |
+
apply : 'Принять',
|
7 |
+
text_tab : 'Текст',
|
8 |
+
background_tab : 'Фон',
|
9 |
+
block_tab : 'Блок',
|
10 |
+
box_tab : 'Бокс',
|
11 |
+
border_tab : 'Граница',
|
12 |
+
list_tab : 'Список',
|
13 |
+
positioning_tab : 'Позиционирование',
|
14 |
+
text_props : 'Текст',
|
15 |
+
text_font : 'Шрифт',
|
16 |
+
text_size : 'Размер',
|
17 |
+
text_weight : 'Ширина',
|
18 |
+
text_style : 'Стиль',
|
19 |
+
text_variant : 'Вариант',
|
20 |
+
text_lineheight : 'Высота строки',
|
21 |
+
text_case : 'Регистр',
|
22 |
+
text_color : 'Цвет',
|
23 |
+
text_decoration : 'Оформление',
|
24 |
+
text_overline : 'Надчеркивание',
|
25 |
+
text_underline : 'Подчеркивание',
|
26 |
+
text_striketrough : 'Зачеркивание',
|
27 |
+
text_blink : 'Мерцание',
|
28 |
+
text_none : 'нет',
|
29 |
+
background_color : 'Цвет фона',
|
30 |
+
background_image : 'Фоновое изображение',
|
31 |
+
background_repeat : 'Повторить',
|
32 |
+
background_attachment : 'Прокрутка фонового изображения',
|
33 |
+
background_hpos : 'Горизонтальная позиция',
|
34 |
+
background_vpos : 'Вертикальная позиция',
|
35 |
+
block_wordspacing : 'Расстояние между словами',
|
36 |
+
block_letterspacing : 'Расстояние между буквами',
|
37 |
+
block_vertical_alignment : 'Выравнивание по вертикали',
|
38 |
+
block_text_align : 'Выравнивание текста',
|
39 |
+
block_text_indent : 'Отступ первой строки',
|
40 |
+
block_whitespace : 'Пробелы',
|
41 |
+
block_display : 'Отображение',
|
42 |
+
box_width : 'Ширина',
|
43 |
+
box_height : 'Высота',
|
44 |
+
box_float : 'Выравнивание с обтеканием',
|
45 |
+
box_clear : 'Запрет обтекания',
|
46 |
+
padding : 'Поля',
|
47 |
+
same : 'Тоже для остальных',
|
48 |
+
top : 'Верх',
|
49 |
+
right : 'Право',
|
50 |
+
bottom : 'Низ',
|
51 |
+
left : 'Лево',
|
52 |
+
margin : 'Отступ',
|
53 |
+
style : 'Стиль',
|
54 |
+
width : 'Ширина',
|
55 |
+
height : 'Высота',
|
56 |
+
color : 'Цвет',
|
57 |
+
list_type : 'Тип',
|
58 |
+
bullet_image : 'Маркер абзаца',
|
59 |
+
position : 'Позиция',
|
60 |
+
positioning_type : 'Тип',
|
61 |
+
visibility : 'Видимость',
|
62 |
+
zindex : 'Наложение',
|
63 |
+
overflow : 'Переполнение',
|
64 |
+
placement : 'Размещение',
|
65 |
+
clip : 'Позиционирование'
|
66 |
+
});
|
tinymce-advanced/mce/style/langs/zh_cn.js
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// UK lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('style',{
|
4 |
+
title : 'Edit CSS Style',
|
5 |
+
styleinfo_desc : 'Edit CSS Style',
|
6 |
+
apply : 'Apply',
|
7 |
+
text_tab : 'Text',
|
8 |
+
background_tab : 'Background',
|
9 |
+
block_tab : 'Block',
|
10 |
+
box_tab : 'Box',
|
11 |
+
border_tab : 'Border',
|
12 |
+
list_tab : 'List',
|
13 |
+
positioning_tab : 'Positioning',
|
14 |
+
text_props : 'Text',
|
15 |
+
text_font : 'Font',
|
16 |
+
text_size : 'Size',
|
17 |
+
text_weight : 'Weight',
|
18 |
+
text_style : 'Style',
|
19 |
+
text_variant : 'Variant',
|
20 |
+
text_lineheight : 'Line height',
|
21 |
+
text_case : 'Case',
|
22 |
+
text_color : 'Color',
|
23 |
+
text_decoration : 'Decoration',
|
24 |
+
text_overline : 'overline',
|
25 |
+
text_underline : 'underline',
|
26 |
+
text_striketrough : 'strikethrough',
|
27 |
+
text_blink : 'blink',
|
28 |
+
text_none : 'none',
|
29 |
+
background_color : 'Background color',
|
30 |
+
background_image : 'Background image',
|
31 |
+
background_repeat : 'Repeat',
|
32 |
+
background_attachment : 'Attachment',
|
33 |
+
background_hpos : 'Horizontal position',
|
34 |
+
background_vpos : 'Vertical position',
|
35 |
+
block_wordspacing : 'Word spacing',
|
36 |
+
block_letterspacing : 'Letter spacing',
|
37 |
+
block_vertical_alignment : 'Vertical alignment',
|
38 |
+
block_text_align : 'Text align',
|
39 |
+
block_text_indent : 'Text indent',
|
40 |
+
block_whitespace : 'Whitespace',
|
41 |
+
block_display : 'Display',
|
42 |
+
box_width : 'Width',
|
43 |
+
box_height : 'Height',
|
44 |
+
box_float : 'Float',
|
45 |
+
box_clear : 'Clear',
|
46 |
+
padding : 'Padding',
|
47 |
+
same : 'Same for all',
|
48 |
+
top : 'Top',
|
49 |
+
right : 'Right',
|
50 |
+
bottom : 'Bottom',
|
51 |
+
left : 'Left',
|
52 |
+
margin : 'Margin',
|
53 |
+
style : 'Style',
|
54 |
+
width : 'Width',
|
55 |
+
height : 'Height',
|
56 |
+
color : 'Color',
|
57 |
+
list_type : 'Type',
|
58 |
+
bullet_image : 'Bullet image',
|
59 |
+
position : 'Position',
|
60 |
+
positioning_type : 'Type',
|
61 |
+
visibility : 'Visibility',
|
62 |
+
zindex : 'Z-index',
|
63 |
+
overflow : 'Overflow',
|
64 |
+
placement : 'Placement',
|
65 |
+
clip : 'Clip'
|
66 |
+
});
|
tinymce-advanced/mce/style/props.htm
ADDED
@@ -0,0 +1,729 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
+
<head>
|
3 |
+
<title>{$lang_style_title}</title>
|
4 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/tiny_mce_popup.js"></script>
|
5 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/mctabs.js"></script>
|
6 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/editable_selects.js"></script>
|
7 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/form_utils.js"></script>
|
8 |
+
<script language="javascript" type="text/javascript" src="jscripts/props.js"></script>
|
9 |
+
<link href="css/props.css" rel="stylesheet" type="text/css" />
|
10 |
+
<base target="_self" />
|
11 |
+
</head>
|
12 |
+
|
13 |
+
<body id="styleprops" onLoad="tinyMCEPopup.executeOnLoad('init();');" style="display: none">
|
14 |
+
<form onSubmit="updateAction();return false;" action="#">
|
15 |
+
<div class="tabs">
|
16 |
+
<ul>
|
17 |
+
<li id="text_tab" class="current"><span><a href="javascript:mcTabs.displayTab('text_tab','text_panel');" onMouseDown="return false;">{$lang_style_text_tab}</a></span></li>
|
18 |
+
<li id="background_tab"><span><a href="javascript:mcTabs.displayTab('background_tab','background_panel');" onMouseDown="return false;">{$lang_style_background_tab}</a></span></li>
|
19 |
+
<li id="block_tab"><span><a href="javascript:mcTabs.displayTab('block_tab','block_panel');" onMouseDown="return false;">{$lang_style_block_tab}</a></span></li>
|
20 |
+
<li id="box_tab"><span><a href="javascript:mcTabs.displayTab('box_tab','box_panel');" onMouseDown="return false;">{$lang_style_box_tab}</a></span></li>
|
21 |
+
<li id="border_tab"><span><a href="javascript:mcTabs.displayTab('border_tab','border_panel');" onMouseDown="return false;">{$lang_style_border_tab}</a></span></li>
|
22 |
+
<li id="list_tab"><span><a href="javascript:mcTabs.displayTab('list_tab','list_panel');" onMouseDown="return false;">{$lang_style_list_tab}</a></span></li>
|
23 |
+
<li id="positioning_tab"><span><a href="javascript:mcTabs.displayTab('positioning_tab','positioning_panel');" onMouseDown="return false;">{$lang_style_positioning_tab}</a></span></li>
|
24 |
+
</ul>
|
25 |
+
</div>
|
26 |
+
|
27 |
+
<div class="panel_wrapper">
|
28 |
+
<div id="text_panel" class="panel current">
|
29 |
+
<table border="0" width="100%">
|
30 |
+
<tr>
|
31 |
+
<td><label for="text_font">{$lang_style_text_font}</label></td>
|
32 |
+
<td colspan="3">
|
33 |
+
<select id="text_font" name="text_font" class="mceEditableSelect" onChange="alert(this.options[this.selectedIndex].value);"></select>
|
34 |
+
</td>
|
35 |
+
</tr>
|
36 |
+
<tr>
|
37 |
+
<td><label for="text_size">{$lang_style_text_size}</label></td>
|
38 |
+
<td>
|
39 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
40 |
+
<tr>
|
41 |
+
<td><select id="text_size" name="text_size" class="mceEditableSelect"></select></td>
|
42 |
+
<td> </td>
|
43 |
+
<td><select id="text_size_measurement" name="text_size_measurement"></select></td>
|
44 |
+
</tr>
|
45 |
+
</table>
|
46 |
+
</td>
|
47 |
+
<td><label for="text_weight">{$lang_style_text_weight}</label></td>
|
48 |
+
<td>
|
49 |
+
<select id="text_weight" name="text_weight"></select>
|
50 |
+
</td>
|
51 |
+
</tr>
|
52 |
+
<tr>
|
53 |
+
<td><label for="text_style">{$lang_style_text_style}</label></td>
|
54 |
+
<td>
|
55 |
+
<select id="text_style" name="text_style" class="mceEditableSelect"></select>
|
56 |
+
</td>
|
57 |
+
<td><label for="text_variant">{$lang_style_text_variant}</label></td>
|
58 |
+
<td>
|
59 |
+
<select id="text_variant" name="text_variant"></select>
|
60 |
+
</td>
|
61 |
+
</tr>
|
62 |
+
<tr>
|
63 |
+
<td><label for="text_lineheight">{$lang_style_text_lineheight}</label></td>
|
64 |
+
<td>
|
65 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
66 |
+
<tr>
|
67 |
+
<td>
|
68 |
+
<select id="text_lineheight" name="text_lineheight" class="mceEditableSelect"></select>
|
69 |
+
</td>
|
70 |
+
<td> </td>
|
71 |
+
<td><select id="text_lineheight_measurement" name="text_lineheight_measurement"></select></td>
|
72 |
+
</tr>
|
73 |
+
</table>
|
74 |
+
</td>
|
75 |
+
<td><label for="text_case">{$lang_style_text_case}</label></td>
|
76 |
+
<td>
|
77 |
+
<select id="text_case" name="text_case"></select>
|
78 |
+
</td>
|
79 |
+
</tr>
|
80 |
+
<tr>
|
81 |
+
<td><label for="text_color">{$lang_style_text_color}</label></td>
|
82 |
+
<td colspan="2">
|
83 |
+
<table border="0" cellpadding="0" cellspacing="0">
|
84 |
+
<tr>
|
85 |
+
<td><input id="text_color" name="text_color" type="text" value="" size="9" onChange="updateColor('text_color_pick','text_color');" /></td>
|
86 |
+
<td id="text_color_pickcontainer"> </td>
|
87 |
+
</tr>
|
88 |
+
</table>
|
89 |
+
</td>
|
90 |
+
</tr>
|
91 |
+
<tr>
|
92 |
+
<td valign="top" style="vertical-align: top; padding-top: 3px;">{$lang_style_text_decoration}</td>
|
93 |
+
<td colspan="2">
|
94 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
95 |
+
<tr>
|
96 |
+
<td><input id="text_underline" name="text_underline" class="checkbox" type="checkbox" /></td>
|
97 |
+
<td><label for="text_underline">{$lang_style_text_underline}</label></td>
|
98 |
+
</tr>
|
99 |
+
<tr>
|
100 |
+
<td><input id="text_overline" name="text_overline" class="checkbox" type="checkbox" /></td>
|
101 |
+
<td><label for="text_overline">{$lang_style_text_overline}</label></td>
|
102 |
+
</tr>
|
103 |
+
<tr>
|
104 |
+
<td><input id="text_linethrough" name="text_linethrough" class="checkbox" type="checkbox" /></td>
|
105 |
+
<td><label for="text_linethrough">{$lang_style_text_striketrough}</label></td>
|
106 |
+
</tr>
|
107 |
+
<tr>
|
108 |
+
<td><input id="text_blink" name="text_blink" class="checkbox" type="checkbox" /></td>
|
109 |
+
<td><label for="text_blink">{$lang_style_text_blink}</label></td>
|
110 |
+
</tr>
|
111 |
+
<tr>
|
112 |
+
<td><input id="text_none" name="text_none" class="checkbox" type="checkbox" /></td>
|
113 |
+
<td><label for="text_none">{$lang_style_text_none}</label></td>
|
114 |
+
</tr>
|
115 |
+
</table>
|
116 |
+
</td>
|
117 |
+
</tr>
|
118 |
+
</table>
|
119 |
+
</div>
|
120 |
+
|
121 |
+
<div id="background_panel" class="panel">
|
122 |
+
<table border="0">
|
123 |
+
<tr>
|
124 |
+
<td><label for="background_color">{$lang_style_background_color}</label></td>
|
125 |
+
<td>
|
126 |
+
<table border="0" cellpadding="0" cellspacing="0">
|
127 |
+
<tr>
|
128 |
+
<td><input id="background_color" name="background_color" type="text" value="" size="9" onChange="updateColor('background_color_pick','background_color');" /></td>
|
129 |
+
<td id="background_color_pickcontainer"> </td>
|
130 |
+
</tr>
|
131 |
+
</table>
|
132 |
+
</td>
|
133 |
+
</tr>
|
134 |
+
|
135 |
+
<tr>
|
136 |
+
<td><label for="background_image">{$lang_style_background_image}</label></td>
|
137 |
+
<td><table border="0" cellspacing="0" cellpadding="0">
|
138 |
+
<tr>
|
139 |
+
<td><input id="background_image" name="background_image" type="text" /></td>
|
140 |
+
<td id="background_image_browser"> </td>
|
141 |
+
</tr>
|
142 |
+
</table>
|
143 |
+
</td>
|
144 |
+
</tr>
|
145 |
+
|
146 |
+
<tr>
|
147 |
+
<td><label for="background_repeat">{$lang_style_background_repeat}</label></td>
|
148 |
+
<td><select id="background_repeat" name="background_repeat" class="mceEditableSelect"></select></td>
|
149 |
+
</tr>
|
150 |
+
|
151 |
+
<tr>
|
152 |
+
<td><label for="background_attachment">{$lang_style_background_attachment}</label></td>
|
153 |
+
<td><select id="background_attachment" name="background_attachment" class="mceEditableSelect"></select></td>
|
154 |
+
</tr>
|
155 |
+
|
156 |
+
<tr>
|
157 |
+
<td><label for="background_hpos">{$lang_style_background_hpos}</label></td>
|
158 |
+
<td>
|
159 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
160 |
+
<tr>
|
161 |
+
<td><select id="background_hpos" name="background_hpos" class="mceEditableSelect"></select></td>
|
162 |
+
<td> </td>
|
163 |
+
<td><select id="background_hpos_measurement" name="background_hpos_measurement"></select></td>
|
164 |
+
</tr>
|
165 |
+
</table>
|
166 |
+
</td>
|
167 |
+
</tr>
|
168 |
+
|
169 |
+
<tr>
|
170 |
+
<td><label for="background_vpos">{$lang_style_background_vpos}</label></td>
|
171 |
+
<td>
|
172 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
173 |
+
<tr>
|
174 |
+
<td><select id="background_vpos" name="background_vpos" class="mceEditableSelect"></select></td>
|
175 |
+
<td> </td>
|
176 |
+
<td><select id="background_vpos_measurement" name="background_vpos_measurement"></select></td>
|
177 |
+
</tr>
|
178 |
+
</table>
|
179 |
+
</td>
|
180 |
+
</tr>
|
181 |
+
</table>
|
182 |
+
</div>
|
183 |
+
|
184 |
+
<div id="block_panel" class="panel">
|
185 |
+
<table border="0">
|
186 |
+
<tr>
|
187 |
+
<td><label for="block_wordspacing">{$lang_style_block_wordspacing}</label></td>
|
188 |
+
<td>
|
189 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
190 |
+
<tr>
|
191 |
+
<td><select id="block_wordspacing" name="block_wordspacing" class="mceEditableSelect"></select></td>
|
192 |
+
<td> </td>
|
193 |
+
<td><select id="block_wordspacing_measurement" name="block_wordspacing_measurement"></select></td>
|
194 |
+
</tr>
|
195 |
+
</table>
|
196 |
+
</td>
|
197 |
+
</tr>
|
198 |
+
|
199 |
+
<tr>
|
200 |
+
<td><label for="block_letterspacing">{$lang_style_block_letterspacing}</label></td>
|
201 |
+
<td>
|
202 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
203 |
+
<tr>
|
204 |
+
<td><select id="block_letterspacing" name="block_letterspacing" class="mceEditableSelect"></select></td>
|
205 |
+
<td> </td>
|
206 |
+
<td><select id="block_letterspacing_measurement" name="block_letterspacing_measurement"></select></td>
|
207 |
+
</tr>
|
208 |
+
</table>
|
209 |
+
</td>
|
210 |
+
</tr>
|
211 |
+
|
212 |
+
<tr>
|
213 |
+
<td><label for="block_vertical_alignment">{$lang_style_block_vertical_alignment}</label></td>
|
214 |
+
<td><select id="block_vertical_alignment" name="block_vertical_alignment" class="mceEditableSelect"></select></td>
|
215 |
+
</tr>
|
216 |
+
|
217 |
+
<tr>
|
218 |
+
<td><label for="block_text_align">{$lang_style_block_text_align}</label></td>
|
219 |
+
<td><select id="block_text_align" name="block_text_align" class="mceEditableSelect"></select></td>
|
220 |
+
</tr>
|
221 |
+
|
222 |
+
<tr>
|
223 |
+
<td><label for="block_text_indent">{$lang_style_block_text_indent}</label></td>
|
224 |
+
<td>
|
225 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
226 |
+
<tr>
|
227 |
+
<td><input type="text" id="block_text_indent" name="block_text_indent" /></td>
|
228 |
+
<td> </td>
|
229 |
+
<td><select id="block_text_indent_measurement" name="block_text_indent_measurement"></select></td>
|
230 |
+
</tr>
|
231 |
+
</table>
|
232 |
+
</td>
|
233 |
+
</tr>
|
234 |
+
|
235 |
+
<tr>
|
236 |
+
<td><label for="block_whitespace">{$lang_style_block_whitespace}</label></td>
|
237 |
+
<td><select id="block_whitespace" name="block_whitespace" class="mceEditableSelect"></select></td>
|
238 |
+
</tr>
|
239 |
+
|
240 |
+
<tr>
|
241 |
+
<td><label for="block_display">{$lang_style_block_display}</label></td>
|
242 |
+
<td><select id="block_display" name="block_display" class="mceEditableSelect"></select></td>
|
243 |
+
</tr>
|
244 |
+
</table>
|
245 |
+
</div>
|
246 |
+
|
247 |
+
<div id="box_panel" class="panel">
|
248 |
+
<table border="0">
|
249 |
+
<tr>
|
250 |
+
<td><label for="box_width">{$lang_style_box_width}</label></td>
|
251 |
+
<td>
|
252 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
253 |
+
<tr>
|
254 |
+
<td><input type="text" id="box_width" name="box_width" class="mceEditableSelect" onChange="synch('box_width','positioning_width');" /></td>
|
255 |
+
<td> </td>
|
256 |
+
<td><select id="box_width_measurement" name="box_width_measurement"></select></td>
|
257 |
+
</tr>
|
258 |
+
</table>
|
259 |
+
</td>
|
260 |
+
<td> <label for="box_float">{$lang_style_box_float}</label></td>
|
261 |
+
<td><select id="box_float" name="box_float" class="mceEditableSelect"></select></td>
|
262 |
+
</tr>
|
263 |
+
|
264 |
+
<tr>
|
265 |
+
<td><label for="box_height">{$lang_style_box_height}</label></td>
|
266 |
+
<td>
|
267 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
268 |
+
<tr>
|
269 |
+
<td><input type="text" id="box_height" name="box_height" class="mceEditableSelect" onChange="synch('box_height','positioning_height');" /></td>
|
270 |
+
<td> </td>
|
271 |
+
<td><select id="box_height_measurement" name="box_height_measurement"></select></td>
|
272 |
+
</tr>
|
273 |
+
</table>
|
274 |
+
</td>
|
275 |
+
<td> <label for="box_clear">{$lang_style_box_clear}</label></td>
|
276 |
+
<td><select id="box_clear" name="box_clear" class="mceEditableSelect"></select></td>
|
277 |
+
</tr>
|
278 |
+
</table>
|
279 |
+
<div style="float: left; width: 49%">
|
280 |
+
<fieldset>
|
281 |
+
<legend>{$lang_style_padding}</legend>
|
282 |
+
|
283 |
+
<table border="0">
|
284 |
+
<tr>
|
285 |
+
<td> </td>
|
286 |
+
<td><input type="checkbox" id="box_padding_same" name="box_padding_same" class="checkbox" checked="checked" onClick="toggleSame(this,'box_padding');" /> <label for="box_padding_same">{$lang_style_same}</label></td>
|
287 |
+
</tr>
|
288 |
+
<tr>
|
289 |
+
<td><label for="box_padding_top">{$lang_style_top}</label></td>
|
290 |
+
<td>
|
291 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
292 |
+
<tr>
|
293 |
+
<td><input type="text" id="box_padding_top" name="box_padding_top" class="mceEditableSelect" /></td>
|
294 |
+
<td> </td>
|
295 |
+
<td><select id="box_padding_top_measurement" name="box_padding_top_measurement"></select></td>
|
296 |
+
</tr>
|
297 |
+
</table>
|
298 |
+
</td>
|
299 |
+
</tr>
|
300 |
+
<tr>
|
301 |
+
<td><label for="box_padding_right">{$lang_style_right}</label></td>
|
302 |
+
<td>
|
303 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
304 |
+
<tr>
|
305 |
+
<td><input type="text" id="box_padding_right" name="box_padding_right" class="mceEditableSelect" disabled="disabled" /></td>
|
306 |
+
<td> </td>
|
307 |
+
<td><select id="box_padding_right_measurement" name="box_padding_right_measurement" disabled="disabled"></select></td>
|
308 |
+
</tr>
|
309 |
+
</table>
|
310 |
+
</td>
|
311 |
+
</tr>
|
312 |
+
<tr>
|
313 |
+
<td><label for="box_padding_bottom">{$lang_style_bottom}</label></td>
|
314 |
+
<td>
|
315 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
316 |
+
<tr>
|
317 |
+
<td><input type="text" id="box_padding_bottom" name="box_padding_bottom" class="mceEditableSelect" disabled="disabled" /></td>
|
318 |
+
<td> </td>
|
319 |
+
<td><select id="box_padding_bottom_measurement" name="box_padding_bottom_measurement" disabled="disabled"></select></td>
|
320 |
+
</tr>
|
321 |
+
</table>
|
322 |
+
</td>
|
323 |
+
</tr>
|
324 |
+
<tr>
|
325 |
+
<td><label for="box_padding_left">{$lang_style_left}</label></td>
|
326 |
+
<td>
|
327 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
328 |
+
<tr>
|
329 |
+
<td><input type="text" id="box_padding_left" name="box_padding_left" class="mceEditableSelect" disabled="disabled" /></td>
|
330 |
+
<td> </td>
|
331 |
+
<td><select id="box_padding_left_measurement" name="box_padding_left_measurement" disabled="disabled"></select></td>
|
332 |
+
</tr>
|
333 |
+
</table>
|
334 |
+
</td>
|
335 |
+
</tr>
|
336 |
+
</table>
|
337 |
+
</fieldset>
|
338 |
+
</div>
|
339 |
+
|
340 |
+
<div style="float: right; width: 49%">
|
341 |
+
<fieldset>
|
342 |
+
<legend>{$lang_style_margin}</legend>
|
343 |
+
|
344 |
+
<table border="0">
|
345 |
+
<tr>
|
346 |
+
<td> </td>
|
347 |
+
<td><input type="checkbox" id="box_margin_same" name="box_margin_same" class="checkbox" checked="checked" onClick="toggleSame(this,'box_margin');" /> <label for="box_margin_same">{$lang_style_same}</label></td>
|
348 |
+
</tr>
|
349 |
+
<tr>
|
350 |
+
<td><label for="box_margin_top">{$lang_style_top}</label></td>
|
351 |
+
<td>
|
352 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
353 |
+
<tr>
|
354 |
+
<td><input type="text" id="box_margin_top" name="box_margin_top" class="mceEditableSelect" /></td>
|
355 |
+
<td> </td>
|
356 |
+
<td><select id="box_margin_top_measurement" name="box_margin_top_measurement"></select></td>
|
357 |
+
</tr>
|
358 |
+
</table>
|
359 |
+
</td>
|
360 |
+
</tr>
|
361 |
+
<tr>
|
362 |
+
<td><label for="box_margin_right">{$lang_style_right}</label></td>
|
363 |
+
<td>
|
364 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
365 |
+
<tr>
|
366 |
+
<td><input type="text" id="box_margin_right" name="box_margin_right" class="mceEditableSelect" disabled="disabled" /></td>
|
367 |
+
<td> </td>
|
368 |
+
<td><select id="box_margin_right_measurement" name="box_margin_right_measurement" disabled="disabled"></select></td>
|
369 |
+
</tr>
|
370 |
+
</table>
|
371 |
+
</td>
|
372 |
+
</tr>
|
373 |
+
<tr>
|
374 |
+
<td><label for="box_margin_bottom">{$lang_style_bottom}</label></td>
|
375 |
+
<td>
|
376 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
377 |
+
<tr>
|
378 |
+
<td><input type="text" id="box_margin_bottom" name="box_margin_bottom" class="mceEditableSelect" disabled="disabled" /></td>
|
379 |
+
<td> </td>
|
380 |
+
<td><select id="box_margin_bottom_measurement" name="box_margin_bottom_measurement" disabled="disabled"></select></td>
|
381 |
+
</tr>
|
382 |
+
</table>
|
383 |
+
</td>
|
384 |
+
</tr>
|
385 |
+
<tr>
|
386 |
+
<td><label for="box_margin_left">{$lang_style_left}</label></td>
|
387 |
+
<td>
|
388 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
389 |
+
<tr>
|
390 |
+
<td><input type="text" id="box_margin_left" name="box_margin_left" class="mceEditableSelect" disabled="disabled" /></td>
|
391 |
+
<td> </td>
|
392 |
+
<td><select id="box_margin_left_measurement" name="box_margin_left_measurement" disabled="disabled"></select></td>
|
393 |
+
</tr>
|
394 |
+
</table>
|
395 |
+
</td>
|
396 |
+
</tr>
|
397 |
+
</table>
|
398 |
+
</fieldset>
|
399 |
+
</div>
|
400 |
+
<br style="clear: both" />
|
401 |
+
</div>
|
402 |
+
|
403 |
+
<div id="border_panel" class="panel">
|
404 |
+
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
405 |
+
<tr>
|
406 |
+
<td class="tdelim"> </td>
|
407 |
+
<td class="tdelim delim"> </td>
|
408 |
+
<td class="tdelim">{$lang_style_style}</td>
|
409 |
+
<td class="tdelim delim"> </td>
|
410 |
+
<td class="tdelim">{$lang_style_width}</td>
|
411 |
+
<td class="tdelim delim"> </td>
|
412 |
+
<td class="tdelim">{$lang_style_color}</td>
|
413 |
+
</tr>
|
414 |
+
|
415 |
+
<tr>
|
416 |
+
<td> </td>
|
417 |
+
<td class="delim"> </td>
|
418 |
+
<td><input type="checkbox" id="border_style_same" name="border_style_same" class="checkbox" checked="checked" onClick="toggleSame(this,'border_style');" /> <label for="border_style_same">{$lang_style_same}</label></td>
|
419 |
+
<td class="delim"> </td>
|
420 |
+
<td><input type="checkbox" id="border_width_same" name="border_width_same" class="checkbox" checked="checked" onClick="toggleSame(this,'border_width');" /> <label for="border_width_same">{$lang_style_same}</label></td>
|
421 |
+
<td class="delim"> </td>
|
422 |
+
<td><input type="checkbox" id="border_color_same" name="border_color_same" class="checkbox" checked="checked" onClick="toggleSame(this,'border_color');" /> <label for="border_color_same">{$lang_style_same}</label></td>
|
423 |
+
</tr>
|
424 |
+
|
425 |
+
<tr>
|
426 |
+
<td>{$lang_style_top}</td>
|
427 |
+
<td class="delim"> </td>
|
428 |
+
<td><select id="border_style_top" name="border_style_top" class="mceEditableSelect"></select></td>
|
429 |
+
<td class="delim"> </td>
|
430 |
+
<td>
|
431 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
432 |
+
<tr>
|
433 |
+
<td><select id="border_width_top" name="border_width_top" class="mceEditableSelect"></select></td>
|
434 |
+
<td> </td>
|
435 |
+
<td><select id="border_width_top_measurement" name="border_width_top_measurement"></select></td>
|
436 |
+
</tr>
|
437 |
+
</table>
|
438 |
+
</td>
|
439 |
+
<td class="delim"> </td>
|
440 |
+
<td>
|
441 |
+
<table border="0" cellpadding="0" cellspacing="0">
|
442 |
+
<tr>
|
443 |
+
<td><input id="border_color_top" name="border_color_top" type="text" value="" size="9" onChange="updateColor('border_color_top_pick','border_color_top');" /></td>
|
444 |
+
<td id="border_color_top_pickcontainer"> </td>
|
445 |
+
</tr>
|
446 |
+
</table>
|
447 |
+
</td>
|
448 |
+
</tr>
|
449 |
+
|
450 |
+
<tr>
|
451 |
+
<td>{$lang_style_right}</td>
|
452 |
+
<td class="delim"> </td>
|
453 |
+
<td><select id="border_style_right" name="border_style_right" class="mceEditableSelect" disabled="disabled"></select></td>
|
454 |
+
<td class="delim"> </td>
|
455 |
+
<td>
|
456 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
457 |
+
<tr>
|
458 |
+
<td><select id="border_width_right" name="border_width_right" class="mceEditableSelect" disabled="disabled"></select></td>
|
459 |
+
<td> </td>
|
460 |
+
<td><select id="border_width_right_measurement" name="border_width_right_measurement" disabled="disabled"></select></td>
|
461 |
+
</tr>
|
462 |
+
</table>
|
463 |
+
</td>
|
464 |
+
<td class="delim"> </td>
|
465 |
+
<td>
|
466 |
+
<table border="0" cellpadding="0" cellspacing="0">
|
467 |
+
<tr>
|
468 |
+
<td><input id="border_color_right" name="border_color_right" type="text" value="" size="9" onChange="updateColor('border_color_right_pick','border_color_right');" disabled="disabled" /></td>
|
469 |
+
<td id="border_color_right_pickcontainer"> </td>
|
470 |
+
</tr>
|
471 |
+
</table>
|
472 |
+
</td>
|
473 |
+
</tr>
|
474 |
+
|
475 |
+
<tr>
|
476 |
+
<td>{$lang_style_bottom}</td>
|
477 |
+
<td class="delim"> </td>
|
478 |
+
<td><select id="border_style_bottom" name="border_style_bottom" class="mceEditableSelect" disabled="disabled"></select></td>
|
479 |
+
<td class="delim"> </td>
|
480 |
+
<td>
|
481 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
482 |
+
<tr>
|
483 |
+
<td><select id="border_width_bottom" name="border_width_bottom" class="mceEditableSelect" disabled="disabled"></select></td>
|
484 |
+
<td> </td>
|
485 |
+
<td><select id="border_width_bottom_measurement" name="border_width_bottom_measurement" disabled="disabled"></select></td>
|
486 |
+
</tr>
|
487 |
+
</table>
|
488 |
+
</td>
|
489 |
+
<td class="delim"> </td>
|
490 |
+
<td>
|
491 |
+
<table border="0" cellpadding="0" cellspacing="0">
|
492 |
+
<tr>
|
493 |
+
<td><input id="border_color_bottom" name="border_color_bottom" type="text" value="" size="9" onChange="updateColor('border_color_bottom_pick','border_color_bottom');" disabled="disabled" /></td>
|
494 |
+
<td id="border_color_bottom_pickcontainer"> </td>
|
495 |
+
</tr>
|
496 |
+
</table>
|
497 |
+
</td>
|
498 |
+
</tr>
|
499 |
+
|
500 |
+
<tr>
|
501 |
+
<td>{$lang_style_left}</td>
|
502 |
+
<td class="delim"> </td>
|
503 |
+
<td><select id="border_style_left" name="border_style_left" class="mceEditableSelect" disabled="disabled"></select></td>
|
504 |
+
<td class="delim"> </td>
|
505 |
+
<td>
|
506 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
507 |
+
<tr>
|
508 |
+
<td><select id="border_width_left" name="border_width_left" class="mceEditableSelect" disabled="disabled"></select></td>
|
509 |
+
<td> </td>
|
510 |
+
<td><select id="border_width_left_measurement" name="border_width_left_measurement" disabled="disabled"></select></td>
|
511 |
+
</tr>
|
512 |
+
</table>
|
513 |
+
</td>
|
514 |
+
<td class="delim"> </td>
|
515 |
+
<td>
|
516 |
+
<table border="0" cellpadding="0" cellspacing="0">
|
517 |
+
<tr>
|
518 |
+
<td><input id="border_color_left" name="border_color_left" type="text" value="" size="9" onChange="updateColor('border_color_left_pick','border_color_left');" disabled="disabled" /></td>
|
519 |
+
<td id="border_color_left_pickcontainer"> </td>
|
520 |
+
</tr>
|
521 |
+
</table>
|
522 |
+
</td>
|
523 |
+
</tr>
|
524 |
+
</table>
|
525 |
+
</div>
|
526 |
+
|
527 |
+
<div id="list_panel" class="panel">
|
528 |
+
<table border="0">
|
529 |
+
<tr>
|
530 |
+
<td><label for="list_type">{$lang_style_list_type}</label></td>
|
531 |
+
<td><select id="list_type" name="list_type" class="mceEditableSelect"></select></td>
|
532 |
+
</tr>
|
533 |
+
|
534 |
+
<tr>
|
535 |
+
<td><label for="list_bullet_image">{$lang_style_bullet_image}</label></td>
|
536 |
+
<td><input id="list_bullet_image" name="list_bullet_image" type="text" /></td>
|
537 |
+
</tr>
|
538 |
+
|
539 |
+
<tr>
|
540 |
+
<td><label for="list_position">{$lang_style_position}</label></td>
|
541 |
+
<td><select id="list_position" name="list_position" class="mceEditableSelect"></select></td>
|
542 |
+
</tr>
|
543 |
+
</table>
|
544 |
+
</div>
|
545 |
+
|
546 |
+
<div id="positioning_panel" class="panel">
|
547 |
+
<table border="0">
|
548 |
+
<tr>
|
549 |
+
<td><label for="positioning_type">{$lang_style_positioning_type}</label></td>
|
550 |
+
<td><select id="positioning_type" name="positioning_type" class="mceEditableSelect"></select></td>
|
551 |
+
<td> <label for="positioning_visibility">{$lang_style_visibility}</label></td>
|
552 |
+
<td><select id="positioning_visibility" name="positioning_visibility" class="mceEditableSelect"></select></td>
|
553 |
+
</tr>
|
554 |
+
|
555 |
+
<tr>
|
556 |
+
<td><label for="positioning_width">{$lang_style_width}</label></td>
|
557 |
+
<td>
|
558 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
559 |
+
<tr>
|
560 |
+
<td><input type="text" id="positioning_width" name="positioning_width" onChange="synch('positioning_width','box_width');" /></td>
|
561 |
+
<td> </td>
|
562 |
+
<td><select id="positioning_width_measurement" name="positioning_width_measurement"></select></td>
|
563 |
+
</tr>
|
564 |
+
</table>
|
565 |
+
</td>
|
566 |
+
<td> <label for="positioning_zindex">{$lang_style_zindex}</label></td>
|
567 |
+
<td><input type="text" id="positioning_zindex" name="positioning_zindex" /></td>
|
568 |
+
</tr>
|
569 |
+
|
570 |
+
<tr>
|
571 |
+
<td><label for="positioning_height">{$lang_style_height}</label></td>
|
572 |
+
<td>
|
573 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
574 |
+
<tr>
|
575 |
+
<td><input type="text" id="positioning_height" name="positioning_height" onChange="synch('positioning_height','box_height');" /></td>
|
576 |
+
<td> </td>
|
577 |
+
<td><select id="positioning_height_measurement" name="positioning_height_measurement"></select></td>
|
578 |
+
</tr>
|
579 |
+
</table>
|
580 |
+
</td>
|
581 |
+
<td> <label for="positioning_overflow">{$lang_style_overflow}</label></td>
|
582 |
+
<td><select id="positioning_overflow" name="positioning_overflow" class="mceEditableSelect"></select></td>
|
583 |
+
</tr>
|
584 |
+
</table>
|
585 |
+
|
586 |
+
<div style="float: left; width: 49%">
|
587 |
+
<fieldset>
|
588 |
+
<legend>{$lang_style_placement}</legend>
|
589 |
+
|
590 |
+
<table border="0">
|
591 |
+
<tr>
|
592 |
+
<td> </td>
|
593 |
+
<td><input type="checkbox" id="positioning_placement_same" name="positioning_placement_same" class="checkbox" checked="checked" onClick="toggleSame(this,'positioning_placement');" /> <label for="positioning_placement_same">{$lang_style_same}</label></td>
|
594 |
+
</tr>
|
595 |
+
<tr>
|
596 |
+
<td>{$lang_style_top}</td>
|
597 |
+
<td>
|
598 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
599 |
+
<tr>
|
600 |
+
<td><input type="text" id="positioning_placement_top" name="positioning_placement_top" /></td>
|
601 |
+
<td> </td>
|
602 |
+
<td><select id="positioning_placement_top_measurement" name="positioning_placement_top_measurement"></select></td>
|
603 |
+
</tr>
|
604 |
+
</table>
|
605 |
+
</td>
|
606 |
+
</tr>
|
607 |
+
<tr>
|
608 |
+
<td>{$lang_style_right}</td>
|
609 |
+
<td>
|
610 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
611 |
+
<tr>
|
612 |
+
<td><input type="text" id="positioning_placement_right" name="positioning_placement_right" disabled="disabled" /></td>
|
613 |
+
<td> </td>
|
614 |
+
<td><select id="positioning_placement_right_measurement" name="positioning_placement_right_measurement" disabled="disabled"></select></td>
|
615 |
+
</tr>
|
616 |
+
</table>
|
617 |
+
</td>
|
618 |
+
</tr>
|
619 |
+
<tr>
|
620 |
+
<td>{$lang_style_bottom}</td>
|
621 |
+
<td>
|
622 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
623 |
+
<tr>
|
624 |
+
<td><input type="text" id="positioning_placement_bottom" name="positioning_placement_bottom" disabled="disabled" /></td>
|
625 |
+
<td> </td>
|
626 |
+
<td><select id="positioning_placement_bottom_measurement" name="positioning_placement_bottom_measurement" disabled="disabled"></select></td>
|
627 |
+
</tr>
|
628 |
+
</table>
|
629 |
+
</td>
|
630 |
+
</tr>
|
631 |
+
<tr>
|
632 |
+
<td>{$lang_style_left}</td>
|
633 |
+
<td>
|
634 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
635 |
+
<tr>
|
636 |
+
<td><input type="text" id="positioning_placement_left" name="positioning_placement_left" disabled="disabled" /></td>
|
637 |
+
<td> </td>
|
638 |
+
<td><select id="positioning_placement_left_measurement" name="positioning_placement_left_measurement" disabled="disabled"></select></td>
|
639 |
+
</tr>
|
640 |
+
</table>
|
641 |
+
</td>
|
642 |
+
</tr>
|
643 |
+
</table>
|
644 |
+
</fieldset>
|
645 |
+
</div>
|
646 |
+
|
647 |
+
<div style="float: right; width: 49%">
|
648 |
+
<fieldset>
|
649 |
+
<legend>{$lang_style_clip}</legend>
|
650 |
+
|
651 |
+
<table border="0">
|
652 |
+
<tr>
|
653 |
+
<td> </td>
|
654 |
+
<td><input type="checkbox" id="positioning_clip_same" name="positioning_clip_same" class="checkbox" checked="checked" onClick="toggleSame(this,'positioning_clip');" /> <label for="positioning_clip_same">{$lang_style_same}</label></td>
|
655 |
+
</tr>
|
656 |
+
<tr>
|
657 |
+
<td>{$lang_style_top}</td>
|
658 |
+
<td>
|
659 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
660 |
+
<tr>
|
661 |
+
<td><input type="text" id="positioning_clip_top" name="positioning_clip_top" /></td>
|
662 |
+
<td> </td>
|
663 |
+
<td><select id="positioning_clip_top_measurement" name="positioning_clip_top_measurement"></select></td>
|
664 |
+
</tr>
|
665 |
+
</table>
|
666 |
+
</td>
|
667 |
+
</tr>
|
668 |
+
<tr>
|
669 |
+
<td>{$lang_style_right}</td>
|
670 |
+
<td>
|
671 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
672 |
+
<tr>
|
673 |
+
<td><input type="text" id="positioning_clip_right" name="positioning_clip_right" disabled="disabled" /></td>
|
674 |
+
<td> </td>
|
675 |
+
<td><select id="positioning_clip_right_measurement" name="positioning_clip_right_measurement" disabled="disabled"></select></td>
|
676 |
+
</tr>
|
677 |
+
</table>
|
678 |
+
</td>
|
679 |
+
</tr>
|
680 |
+
<tr>
|
681 |
+
<td>{$lang_style_bottom}</td>
|
682 |
+
<td>
|
683 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
684 |
+
<tr>
|
685 |
+
<td><input type="text" id="positioning_clip_bottom" name="positioning_clip_bottom" disabled="disabled" /></td>
|
686 |
+
<td> </td>
|
687 |
+
<td><select id="positioning_clip_bottom_measurement" name="positioning_clip_bottom_measurement" disabled="disabled"></select></td>
|
688 |
+
</tr>
|
689 |
+
</table>
|
690 |
+
</td>
|
691 |
+
</tr>
|
692 |
+
<tr>
|
693 |
+
<td>{$lang_style_left}</td>
|
694 |
+
<td>
|
695 |
+
<table border="0" cellspacing="0" cellpadding="0">
|
696 |
+
<tr>
|
697 |
+
<td><input type="text" id="positioning_clip_left" name="positioning_clip_left" disabled="disabled" /></td>
|
698 |
+
<td> </td>
|
699 |
+
<td><select id="positioning_clip_left_measurement" name="positioning_clip_left_measurement" disabled="disabled"></select></td>
|
700 |
+
</tr>
|
701 |
+
</table>
|
702 |
+
</td>
|
703 |
+
</tr>
|
704 |
+
</table>
|
705 |
+
</fieldset>
|
706 |
+
</div>
|
707 |
+
<br style="clear: both" />
|
708 |
+
</div>
|
709 |
+
</div>
|
710 |
+
|
711 |
+
<div class="mceActionPanel">
|
712 |
+
<div style="float: left">
|
713 |
+
<div style="float: left"><input type="button" id="insert" name="insert" value="{$lang_update}" onClick="updateAction();" /></div>
|
714 |
+
|
715 |
+
<div style="float: left"> <input type="button" id="apply" name="apply" value="{$lang_style_apply}" onClick="applyAction();" class="updateButton" /></div>
|
716 |
+
<br style="clear: both" />
|
717 |
+
</div>
|
718 |
+
|
719 |
+
<div style="float: right">
|
720 |
+
<input type="button" id="cancel" name="cancel" value="{$lang_cancel}" onClick="tinyMCEPopup.close();" />
|
721 |
+
</div>
|
722 |
+
</div>
|
723 |
+
</form>
|
724 |
+
|
725 |
+
<div style="display: none">
|
726 |
+
<div id="container"></div>
|
727 |
+
</div>
|
728 |
+
</body>
|
729 |
+
</html>
|
tinymce-advanced/mce/style/readme.txt
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
Check the TinyMCE documentation for details on this plugin.
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/cell.htm
RENAMED
@@ -1,9 +1,9 @@
|
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_table_cell_title}</title>
|
4 |
-
<script language="javascript" type="text/javascript" src="
|
5 |
-
<script language="javascript" type="text/javascript" src="
|
6 |
-
<script language="javascript" type="text/javascript" src="
|
7 |
<script language="javascript" type="text/javascript" src="jscripts/cell.js"></script>
|
8 |
<link href="css/cell.css" rel="stylesheet" type="text/css" />
|
9 |
<base target="_self" />
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_table_cell_title}</title>
|
4 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/tiny_mce_popup.js"></script>
|
5 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/mctabs.js"></script>
|
6 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/form_utils.js"></script>
|
7 |
<script language="javascript" type="text/javascript" src="jscripts/cell.js"></script>
|
8 |
<link href="css/cell.css" rel="stylesheet" type="text/css" />
|
9 |
<base target="_self" />
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/css/cell.css
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/css/row.css
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/css/table.css
RENAMED
File without changes
|
add_to_tinymce_directory/plugins/table/editor_plugin_src.js → tinymce-advanced/mce/table/editor_plugin.js
RENAMED
@@ -5,6 +5,86 @@
|
|
5 |
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
6 |
*/
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
/* Import plugin specific language pack */
|
9 |
tinyMCE.importPluginLanguagePack('table');
|
10 |
|
@@ -419,7 +499,7 @@ var TinyMCE_TablePlugin = {
|
|
419 |
// Setup template
|
420 |
var template = new Array();
|
421 |
|
422 |
-
template['file'] = '
|
423 |
template['width'] = 380;
|
424 |
template['height'] = 295;
|
425 |
|
@@ -441,7 +521,7 @@ var TinyMCE_TablePlugin = {
|
|
441 |
// Setup template
|
442 |
var template = new Array();
|
443 |
|
444 |
-
template['file'] = '
|
445 |
template['width'] = 380;
|
446 |
template['height'] = 295;
|
447 |
|
@@ -460,7 +540,7 @@ var TinyMCE_TablePlugin = {
|
|
460 |
// Setup template
|
461 |
var template = new Array();
|
462 |
|
463 |
-
template['file'] = '
|
464 |
template['width'] = 380;
|
465 |
template['height'] = 295;
|
466 |
|
@@ -837,7 +917,7 @@ var TinyMCE_TablePlugin = {
|
|
837 |
var template = new Array();
|
838 |
var sp = getColRowSpan(tdElm);
|
839 |
|
840 |
-
template['file'] = '
|
841 |
template['width'] = 250;
|
842 |
template['height'] = 105 + (tinyMCE.isNS7 ? 25 : 0);
|
843 |
|
5 |
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
6 |
*/
|
7 |
|
8 |
+
// UK lang variables
|
9 |
+
tadvmce = realTinyMCE;
|
10 |
+
tadvmce.addToLang('table',{
|
11 |
+
general_tab : 'General',
|
12 |
+
advanced_tab : 'Advanced',
|
13 |
+
general_props : 'General properties',
|
14 |
+
advanced_props : 'Advanced properties',
|
15 |
+
desc : 'Inserts a new table',
|
16 |
+
row_before_desc : 'Insert row before',
|
17 |
+
row_after_desc : 'Insert row after',
|
18 |
+
delete_row_desc : 'Delete row',
|
19 |
+
col_before_desc : 'Insert column before',
|
20 |
+
col_after_desc : 'Insert column after',
|
21 |
+
delete_col_desc : 'Remove column',
|
22 |
+
rowtype : 'Row in table part',
|
23 |
+
title : 'Insert/Modify table',
|
24 |
+
width : 'Width',
|
25 |
+
height : 'Height',
|
26 |
+
cols : 'Columns',
|
27 |
+
rows : 'Rows',
|
28 |
+
cellspacing : 'Cellspacing',
|
29 |
+
cellpadding : 'Cellpadding',
|
30 |
+
border : 'Border',
|
31 |
+
align : 'Alignment',
|
32 |
+
align_default : 'Default',
|
33 |
+
align_left : 'Left',
|
34 |
+
align_right : 'Right',
|
35 |
+
align_middle : 'Center',
|
36 |
+
row_title : 'Table row properties',
|
37 |
+
cell_title : 'Table cell properties',
|
38 |
+
cell_type : 'Cell type',
|
39 |
+
row_desc : 'Table row properties',
|
40 |
+
cell_desc : 'Table cell properties',
|
41 |
+
valign : 'Vertical alignment',
|
42 |
+
align_top : 'Top',
|
43 |
+
align_bottom : 'Bottom',
|
44 |
+
props_desc : 'Table properties',
|
45 |
+
bordercolor : 'Border color',
|
46 |
+
bgcolor : 'Background color',
|
47 |
+
merge_cells_title : 'Merge table cells',
|
48 |
+
split_cells_desc : 'Split table cells',
|
49 |
+
merge_cells_desc : 'Merge table cells',
|
50 |
+
cut_row_desc : 'Cut table row',
|
51 |
+
copy_row_desc : 'Copy table row',
|
52 |
+
paste_row_before_desc : 'Paste table row before',
|
53 |
+
paste_row_after_desc : 'Paste table row after',
|
54 |
+
id : 'Id',
|
55 |
+
style: 'Style',
|
56 |
+
langdir : 'Language direction',
|
57 |
+
langcode : 'Language code',
|
58 |
+
mime : 'Target MIME type',
|
59 |
+
ltr : 'Left to right',
|
60 |
+
rtl : 'Right to left',
|
61 |
+
bgimage : 'Background image',
|
62 |
+
summary : 'Summary',
|
63 |
+
td : "Data",
|
64 |
+
th : "Header",
|
65 |
+
cell_cell : 'Update current cell',
|
66 |
+
cell_row : 'Update all cells in row',
|
67 |
+
cell_all : 'Update all cells in table',
|
68 |
+
row_row : 'Update current row',
|
69 |
+
row_odd : 'Update odd rows in table',
|
70 |
+
row_even : 'Update even rows in table',
|
71 |
+
row_all : 'Update all rows in table',
|
72 |
+
thead : 'Table Head',
|
73 |
+
tbody : 'Table Body',
|
74 |
+
tfoot : 'Table Foot',
|
75 |
+
del : 'Delete table',
|
76 |
+
scope : 'Scope',
|
77 |
+
row : 'Row',
|
78 |
+
col : 'Col',
|
79 |
+
rowgroup : 'Row Group',
|
80 |
+
colgroup : 'Col Group',
|
81 |
+
col_limit : 'You\'ve exceeded the maximum number of columns of {$cols}.',
|
82 |
+
row_limit : 'You\'ve exceeded the maximum number of rows of {$rows}.',
|
83 |
+
cell_limit : 'You\'ve exceeded the maximum number of cells of {$cells}.',
|
84 |
+
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.',
|
85 |
+
caption : 'Table caption'
|
86 |
+
});
|
87 |
+
|
88 |
/* Import plugin specific language pack */
|
89 |
tinyMCE.importPluginLanguagePack('table');
|
90 |
|
499 |
// Setup template
|
500 |
var template = new Array();
|
501 |
|
502 |
+
template['file'] = tinyMCE.baseURL + '/../../../wp-content/plugins/tinymce-advanced/mce/table/row.htm';
|
503 |
template['width'] = 380;
|
504 |
template['height'] = 295;
|
505 |
|
521 |
// Setup template
|
522 |
var template = new Array();
|
523 |
|
524 |
+
template['file'] = tinyMCE.baseURL + '/../../../wp-content/plugins/tinymce-advanced/mce/table/cell.htm';
|
525 |
template['width'] = 380;
|
526 |
template['height'] = 295;
|
527 |
|
540 |
// Setup template
|
541 |
var template = new Array();
|
542 |
|
543 |
+
template['file'] = tinyMCE.baseURL + '/../../../wp-content/plugins/tinymce-advanced/mce/table/table.htm';
|
544 |
template['width'] = 380;
|
545 |
template['height'] = 295;
|
546 |
|
917 |
var template = new Array();
|
918 |
var sp = getColRowSpan(tdElm);
|
919 |
|
920 |
+
template['file'] = tinyMCE.baseURL + '/../../../wp-content/plugins/tinymce-advanced/mce/table/merge_cells.htm';
|
921 |
template['width'] = 250;
|
922 |
template['height'] = 105 + (tinyMCE.isNS7 ? 25 : 0);
|
923 |
|
tinymce-advanced/mce/table/images/buttons.gif
ADDED
Binary file
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/images/table.gif
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/images/table_cell_props.gif
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/images/table_delete.gif
RENAMED
File without changes
|
tinymce-advanced/mce/table/images/table_delete_col.gif
ADDED
Binary file
|
tinymce-advanced/mce/table/images/table_delete_row.gif
ADDED
Binary file
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/images/table_insert_col_after.gif
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/images/table_insert_col_before.gif
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/images/table_insert_row_after.gif
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/images/table_insert_row_before.gif
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/images/table_merge_cells.gif
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/images/table_row_props.gif
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/images/table_split_cells.gif
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/jscripts/cell.js
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/jscripts/merge_cells.js
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/jscripts/row.js
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/jscripts/table.js
RENAMED
File without changes
|
tinymce-advanced/mce/table/langs/de_de.js
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// DE lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('table',{
|
4 |
+
general_tab : 'Allgemein',
|
5 |
+
advanced_tab : 'Erweitert',
|
6 |
+
general_props : 'Allgemeine Eigenschaften',
|
7 |
+
advanced_props : 'Erweiterte Eigenschaften',
|
8 |
+
desc : 'Neue Tabelle einfügen',
|
9 |
+
row_before_desc : 'Zeile oberhalb einfügen',
|
10 |
+
row_after_desc : 'Zeile unterhalb einfügen',
|
11 |
+
delete_row_desc : 'Zeile löschen',
|
12 |
+
col_before_desc : 'Spalte nach links einfügen',
|
13 |
+
col_after_desc : 'Spalte nach rechts einfügen',
|
14 |
+
delete_col_desc : 'Spalte löschen',
|
15 |
+
rowtype : 'Zeile in Tabellen-Teil',
|
16 |
+
title : 'Tabelle hinzufügen/bearbeiten',
|
17 |
+
width : 'Breite',
|
18 |
+
height : 'Höhe',
|
19 |
+
cols : 'Spalten',
|
20 |
+
rows : 'Zeilen',
|
21 |
+
cellspacing : 'Zellenabstand',
|
22 |
+
cellpadding : 'Zellenausfüllung',
|
23 |
+
border : 'Rahmen',
|
24 |
+
align : 'Ausrichtung',
|
25 |
+
align_default : 'Standard',
|
26 |
+
align_left : 'Links',
|
27 |
+
align_right : 'Rechts',
|
28 |
+
align_middle : 'Zentriert',
|
29 |
+
row_title : 'Zeileneigenschaften',
|
30 |
+
cell_title : 'Zelleneigenschaften',
|
31 |
+
cell_type : 'Zellentyp',
|
32 |
+
row_desc : 'Zeileneigenschaften',
|
33 |
+
cell_desc : 'Zelleneigenschaften',
|
34 |
+
valign : 'Vertikale Ausrichtung',
|
35 |
+
align_top : 'Oben',
|
36 |
+
align_bottom : 'Unten',
|
37 |
+
props_desc : 'Tabelleneigenschaften',
|
38 |
+
bordercolor : 'Rahmenfarbe',
|
39 |
+
bgcolor : 'Hintergrundfarbe',
|
40 |
+
merge_cells_title : 'Zellen zusammenfügen',
|
41 |
+
split_cells_desc : 'Zelle teilen',
|
42 |
+
merge_cells_desc : 'Zellen zusammenfügen',
|
43 |
+
cut_row_desc : 'Zeile ausschneiden',
|
44 |
+
copy_row_desc : 'Zeile kopieren',
|
45 |
+
paste_row_before_desc : 'Zeile oberhalb einfügen',
|
46 |
+
paste_row_after_desc : 'Zeile unterhalb einfügen',
|
47 |
+
id : 'ID',
|
48 |
+
style: 'CSS-Stil',
|
49 |
+
langdir : 'Textfluss',
|
50 |
+
langcode : 'Sprachcode',
|
51 |
+
mime : 'MIME-Typ',
|
52 |
+
ltr : 'Von links nach rechts',
|
53 |
+
rtl : 'Von rechts nach links',
|
54 |
+
bgimage : 'Hintergrundfarbe',
|
55 |
+
summary : 'Zusammenfassung',
|
56 |
+
td : "Daten",
|
57 |
+
th : "Kopfzeile",
|
58 |
+
cell_cell : 'Diese Zelle aktualisieren',
|
59 |
+
cell_row : 'Alle Zellen in dieser Zeile aktualisieren',
|
60 |
+
cell_all : 'Alle Zellen in dieser Tabelle aktualisieren',
|
61 |
+
row_row : 'Diese Zeile aktualisieren',
|
62 |
+
row_odd : 'Ungerade Zeilen aktualisieren',
|
63 |
+
row_even : 'Gerade Zeilen aktualisieren',
|
64 |
+
row_all : 'Alle Zeilen in dieser Tabelle aktualisieren',
|
65 |
+
thead : 'Tabellenkopf',
|
66 |
+
tbody : 'Tabellenkörper',
|
67 |
+
tfoot : 'Tabellenfuß',
|
68 |
+
del : 'Tabelle löschen',
|
69 |
+
scope : 'Umfang',
|
70 |
+
row : 'Reihe',
|
71 |
+
col : 'Col',
|
72 |
+
rowgroup : 'Reihe Gruppe',
|
73 |
+
colgroup : 'Spalte Gruppe',
|
74 |
+
col_limit : 'Sie haben die maximale Spaltenanzahl von {$cols} überschritten.',
|
75 |
+
row_limit : 'Sie haben die maximale Reihenanzahl von {$rows} übersschritten.',
|
76 |
+
cell_limit : 'Sie haben die maximale Zellenanzahl von {$cells} übersschritten.',
|
77 |
+
missing_scope: 'Sind Sie sicher, dass die fortfahren möchten ohne einen genauen Bereich für die Kopfzelle der Tabelle eingegeben zu haben? Ohne diese Eingabe, könnten Besucher mit Behinderungen eventuell den Inhalt der Tabelle nicht richtig verstehen.',
|
78 |
+
table_delta_width : 45
|
79 |
+
});
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/langs/en.js
RENAMED
@@ -38,7 +38,7 @@ props_desc : 'Table properties',
|
|
38 |
bordercolor : 'Border color',
|
39 |
bgcolor : 'Background color',
|
40 |
merge_cells_title : 'Merge table cells',
|
41 |
-
split_cells_desc : 'Split
|
42 |
merge_cells_desc : 'Merge table cells',
|
43 |
cut_row_desc : 'Cut table row',
|
44 |
copy_row_desc : 'Copy table row',
|
38 |
bordercolor : 'Border color',
|
39 |
bgcolor : 'Background color',
|
40 |
merge_cells_title : 'Merge table cells',
|
41 |
+
split_cells_desc : 'Split table cells',
|
42 |
merge_cells_desc : 'Merge table cells',
|
43 |
cut_row_desc : 'Cut table row',
|
44 |
copy_row_desc : 'Copy table row',
|
tinymce-advanced/mce/table/langs/es_es.js
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* ES lang variables
|
3 |
+
*
|
4 |
+
* Authors : Alvaro Velasco,
|
5 |
+
* Adolfo Sanz De Diego (asanzdiego) <asanzdiego@yahoo.es>,
|
6 |
+
* Carlos C Soto (eclipxe) <csoto@sia-solutions.com>
|
7 |
+
* Eneko Castresana Vara
|
8 |
+
* Last Updated : July 14, 2006
|
9 |
+
* TinyMCE Version : 2.0.6.1
|
10 |
+
*/
|
11 |
+
|
12 |
+
tinyMCE.addToLang('table',{
|
13 |
+
general_tab : 'General',
|
14 |
+
advanced_tab : 'Avanzado',
|
15 |
+
general_props : 'Propiedades generales',
|
16 |
+
advanced_props : 'Propiedades avanzadas',
|
17 |
+
desc : 'Insertar/Modificar tabla',
|
18 |
+
row_before_desc : 'Insertar una fila antes',
|
19 |
+
row_after_desc : 'Insert una fila después',
|
20 |
+
delete_row_desc : 'Eliminar fila',
|
21 |
+
col_before_desc : 'Insertar una columna antes',
|
22 |
+
col_after_desc : 'Insertar una columna después',
|
23 |
+
delete_col_desc : 'Eliminar columna',
|
24 |
+
rowtype : 'File en parte de tabla',
|
25 |
+
title : 'Insertar/Modificar tabla',
|
26 |
+
width : 'Ancho',
|
27 |
+
height : 'ALto',
|
28 |
+
cols : 'Columnas',
|
29 |
+
rows : 'Filas',
|
30 |
+
cellspacing : 'Espacio entre celdas',
|
31 |
+
cellpadding : 'Borde interior de las celdas',
|
32 |
+
border : 'Borde',
|
33 |
+
align : 'Alineación horizontal',
|
34 |
+
align_default : 'Defecto',
|
35 |
+
align_left : 'Izquierda',
|
36 |
+
align_right : 'Derecha',
|
37 |
+
align_middle : 'Centrado',
|
38 |
+
row_title : 'Propiedades de la fila',
|
39 |
+
cell_title : 'Propiedades de la celda',
|
40 |
+
cell_type : 'Tipo de celda',
|
41 |
+
row_desc : 'Propiedades de la fila',
|
42 |
+
cell_desc : 'Propiedades de la celda',
|
43 |
+
valign : 'Alineación vertical',
|
44 |
+
align_top : 'Arriba',
|
45 |
+
align_bottom : 'Abajo',
|
46 |
+
props_desc : 'Propiedades de la tabla',
|
47 |
+
bordercolor : 'Color del borde',
|
48 |
+
bgcolor : 'Color del fondo',
|
49 |
+
merge_cells_title : 'Combinar celdas',
|
50 |
+
split_cells_desc : 'Dividir celdas',
|
51 |
+
merge_cells_desc : 'Combinar celdas',
|
52 |
+
cut_row_desc : 'Cortar fila',
|
53 |
+
copy_row_desc : 'Copiar fila',
|
54 |
+
paste_row_before_desc : 'Pegar fila antes',
|
55 |
+
paste_row_after_desc : 'Pegar fila después',
|
56 |
+
id : 'Id',
|
57 |
+
style: 'Estilo',
|
58 |
+
langdir : 'Dirección del texto',
|
59 |
+
langcode : 'Código del idioma',
|
60 |
+
mime : 'Tipo MIME del target',
|
61 |
+
ltr : 'De izquierda a derecha',
|
62 |
+
rtl : 'De derecha a izquierda',
|
63 |
+
bgimage : 'Imagen de fondo',
|
64 |
+
summary : 'Resumen',
|
65 |
+
td : "Datos",
|
66 |
+
th : "Cabecera",
|
67 |
+
cell_cell : 'Actualizar la celda actual',
|
68 |
+
cell_row : 'Actualizar todas las celdas de la fila',
|
69 |
+
cell_all : 'Actualizar todas las celdas de la tabla',
|
70 |
+
row_row : 'Actualizar la fila actual',
|
71 |
+
row_odd : 'Actualizar las filas impares de la tabla',
|
72 |
+
row_even : 'Actualizar las filas pares de la tabla',
|
73 |
+
row_all : 'Actualizar todas las filas de la tabla',
|
74 |
+
thead : 'Cabecera de la tabla',
|
75 |
+
tbody : 'Cuerpo de la tabla',
|
76 |
+
tfoot : 'Pie de la tabla',
|
77 |
+
del : 'Eliminar tabla',
|
78 |
+
scope : 'Alcance',
|
79 |
+
row : 'Fila',
|
80 |
+
col : 'Columna',
|
81 |
+
rowgroup : 'Grupo de filas',
|
82 |
+
colgroup : 'Grupo de columnas',
|
83 |
+
missing_scope: '¿Estás seguro que quieres continuar sin especificar el alcance para esta celda de tipo cabecera? Sin ello, puede dificultar a algunos usuarios con discapacidades el poder entender el contenido o los datos mostrados en la tabla.',
|
84 |
+
cellprops_delta_width : 55
|
85 |
+
});
|
tinymce-advanced/mce/table/langs/fr_fr.js
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// FR lang variables
|
2 |
+
// Modified by shadow walker, last updated 2007-03-16, based on the work of Motte
|
3 |
+
|
4 |
+
tinyMCE.addToLang('table',{
|
5 |
+
general_tab : 'Général',
|
6 |
+
advanced_tab : 'Avancé',
|
7 |
+
general_props : 'Propriétés générales',
|
8 |
+
advanced_props : 'Propriétés avancées',
|
9 |
+
desc : 'Insérer/Modifier un tableau',
|
10 |
+
row_before_desc : 'Insérer une rangée avant',
|
11 |
+
row_after_desc : 'Insérer une rangée après',
|
12 |
+
delete_row_desc : 'Effacer la rangée',
|
13 |
+
col_before_desc : 'Insérer une colonne avant',
|
14 |
+
col_after_desc : 'Insérer une colonne après',
|
15 |
+
delete_col_desc : 'Effacer la colonne',
|
16 |
+
rowtype : 'Type de rangée',
|
17 |
+
title : 'Gestionnaire de tableau',
|
18 |
+
width : 'Largeur',
|
19 |
+
height : 'Hauteur',
|
20 |
+
cols : 'Colonnes',
|
21 |
+
rows : 'Rangées',
|
22 |
+
cellspacing : 'Entre les cellules',
|
23 |
+
cellpadding : 'Marges intérieures',
|
24 |
+
border : 'Bordures',
|
25 |
+
align : 'Alignement horizontal',
|
26 |
+
align_default : 'Par défault',
|
27 |
+
align_left : 'A gauche',
|
28 |
+
align_right : 'A droite',
|
29 |
+
align_middle : 'Centré',
|
30 |
+
row_title : 'Propriétés des rangées',
|
31 |
+
cell_title : 'Propriétés des cellules',
|
32 |
+
cell_type : 'Type',
|
33 |
+
row_desc : 'Propriétés des rangées',
|
34 |
+
cell_desc : 'Propriétés des cellules',
|
35 |
+
valign : 'Alignement vertical',
|
36 |
+
align_top : 'Haut',
|
37 |
+
align_bottom : 'Bas',
|
38 |
+
props_desc : 'Propriétés du tableau',
|
39 |
+
bordercolor : 'Couleur des bordures',
|
40 |
+
bgcolor : 'Couleur d\'arrière-plan',
|
41 |
+
merge_cells_title : 'Fusionner les cellules',
|
42 |
+
split_cells_desc : 'Scinder les cellules',
|
43 |
+
merge_cells_desc : 'Fusionner les cellules',
|
44 |
+
cut_row_desc : 'Eliminer la rangée',
|
45 |
+
copy_row_desc : 'Copier la rangée',
|
46 |
+
paste_row_before_desc : 'Coller la rangée avant',
|
47 |
+
paste_row_after_desc : 'Coller la rangée après',
|
48 |
+
id : 'Id',
|
49 |
+
style: 'Style en ligne',
|
50 |
+
langdir : 'Sens d\'écriture',
|
51 |
+
langcode : 'Code de langue',
|
52 |
+
mime : 'Type MIME de la cible',
|
53 |
+
ltr : 'Vers la droite',
|
54 |
+
rtl : 'Vers la gauche',
|
55 |
+
bgimage : 'Image d\'arrière-plan',
|
56 |
+
summary : 'Descriptif',
|
57 |
+
td : "Donnée",
|
58 |
+
th : "En-tête",
|
59 |
+
cell_cell : 'Appliquer à la cellule',
|
60 |
+
cell_row : 'Appliquer à toute la rangée',
|
61 |
+
cell_all : 'Appliquer à tout le tableau',
|
62 |
+
row_row : 'Appliquer à la rangée',
|
63 |
+
row_odd : 'Appliquer aux rangées pair',
|
64 |
+
row_even : 'Appliquer aux rangées impair',
|
65 |
+
row_all : 'Appliquer à toutes les rangées',
|
66 |
+
thead : 'En-tête',
|
67 |
+
tbody : 'Corps',
|
68 |
+
tfoot : 'Pied',
|
69 |
+
del : 'Effacer le tableau',
|
70 |
+
scope : 'Attribut scope',
|
71 |
+
row : 'Rangée',
|
72 |
+
col : 'Colonne',
|
73 |
+
rowgroup : 'Groupe de rangées',
|
74 |
+
colgroup : 'Groupe de colonnes',
|
75 |
+
col_limit : 'Limite de colonnes atteintes {$cols}.',
|
76 |
+
row_limit : 'Limite de rangées atteintes {$rows}.',
|
77 |
+
cell_limit : 'Limite de cellules atteintes {$cells}.',
|
78 |
+
missing_scope: 'Les attributs scope rendraient votre tableau de données plus\naccessible à certains groupes d\'utilisateurs.\n\nEtes-vous sûr de ne pas vouloir spécifier\nd\'attribut scope aux cellules d\'en-tête ?\n\n',
|
79 |
+
caption : 'Libellé du tableau',
|
80 |
+
cellprops_delta_width : 50
|
81 |
+
});
|
tinymce-advanced/mce/table/langs/it_it.js
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* IT lang variables
|
3 |
+
*
|
4 |
+
* Author : Luciano Vernaschi <luciano@virgilio.it>
|
5 |
+
* Last Updated : Mar. 1st, 2007
|
6 |
+
* TinyMCE Version : 2.1.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
tinyMCE.addToLang('table',{
|
10 |
+
general_tab : 'Generale',
|
11 |
+
advanced_tab : 'Avanzate',
|
12 |
+
general_props : 'Proprietà generali',
|
13 |
+
advanced_props : 'Proprietà avanzate',
|
14 |
+
desc : 'Inserisci una nuova tabella',
|
15 |
+
row_before_desc : 'Inserisci una riga prima',
|
16 |
+
row_after_desc : 'Inserisci una riga dopo',
|
17 |
+
delete_row_desc : 'Cancella riga',
|
18 |
+
col_before_desc : 'Inserisci una colonna prima',
|
19 |
+
col_after_desc : 'Inserisci una colonna dopo',
|
20 |
+
delete_col_desc : 'Cancella colonna',
|
21 |
+
rowtype : 'Tipo di riga',
|
22 |
+
title : 'Inserisci o modifica tabella',
|
23 |
+
width : 'Larghezza',
|
24 |
+
height : 'Altezza',
|
25 |
+
cols : 'Colonne',
|
26 |
+
rows : 'Righe',
|
27 |
+
cellspacing : 'Spaziatura tra celle',
|
28 |
+
cellpadding : 'Margine interno celle',
|
29 |
+
border : 'Bordo',
|
30 |
+
align : 'Allineamento',
|
31 |
+
align_default : 'Predefinito',
|
32 |
+
align_left : 'A sinistra',
|
33 |
+
align_right : 'A destra',
|
34 |
+
align_middle : 'Al centro',
|
35 |
+
row_title : 'Proprietà di riga',
|
36 |
+
cell_title : 'Proprietà di cella',
|
37 |
+
cell_type : 'Tipo di cella',
|
38 |
+
row_desc : 'Proprietà di riga',
|
39 |
+
cell_desc : 'Proprietà di cella',
|
40 |
+
valign : 'Allineamento verticale',
|
41 |
+
align_top : 'In alto',
|
42 |
+
align_bottom : 'In basso',
|
43 |
+
props_desc : 'Proprietà di tabella',
|
44 |
+
bordercolor : 'Colore del bordo',
|
45 |
+
bgcolor : 'Colore di sfondo',
|
46 |
+
merge_cells_title : 'Unisci celle',
|
47 |
+
split_cells_desc : 'Dividi celle',
|
48 |
+
merge_cells_desc : 'Unisci celle',
|
49 |
+
cut_row_desc : 'Taglia riga',
|
50 |
+
copy_row_desc : 'Copia riga',
|
51 |
+
paste_row_before_desc : 'Incolla riga prima',
|
52 |
+
paste_row_after_desc : 'Incolla riga dopo',
|
53 |
+
id : 'Id',
|
54 |
+
style: 'Stile',
|
55 |
+
langdir : 'Direzione del testo',
|
56 |
+
langcode : 'Codifica lingua',
|
57 |
+
mime : 'Tipo MIME destinazione',
|
58 |
+
ltr : 'Da sinistra a destra',
|
59 |
+
rtl : 'Da destra a sinistra',
|
60 |
+
bgimage : 'Immagine di sfondo',
|
61 |
+
summary : 'Riassunto',
|
62 |
+
td : "Normale",
|
63 |
+
th : "Intestazione",
|
64 |
+
cell_cell : 'Aggiorna cella corrente',
|
65 |
+
cell_row : 'Aggiorna tutte le celle della riga',
|
66 |
+
cell_all : 'Aggiorna tutte le celle della tabella',
|
67 |
+
row_row : 'Aggiorna riga corrente',
|
68 |
+
row_odd : 'Aggiorna righe dispari della tabella',
|
69 |
+
row_even : 'Aggiorna righe pari della tabella',
|
70 |
+
row_all : 'Aggiorna tutte le righe della tabella',
|
71 |
+
thead : 'Intestazione',
|
72 |
+
tbody : 'Corpo',
|
73 |
+
tfoot : 'Footer',
|
74 |
+
del : 'Elimina tabella',
|
75 |
+
scope : 'Ambito',
|
76 |
+
row : 'Riga',
|
77 |
+
col : 'Colonna',
|
78 |
+
rowgroup : 'Gruppo di righe',
|
79 |
+
colgroup : 'Gruppo di colonne',
|
80 |
+
col_limit : 'Hai superato il massimo numero di colonne di {$cols}.',
|
81 |
+
row_limit : 'Hai superato il massimo numero di righe di {$rows}.',
|
82 |
+
cell_limit : 'Hai superato il massimo numero di celle di {$cells}.',
|
83 |
+
missing_scope: 'Sei sicuro di voler omettere un ambito per questa cella di intestazione? L\'ambito è utile alle persone con disabilità per interpretare i contenuti della tabella.',
|
84 |
+
caption : 'Intestazione tabella',
|
85 |
+
cellprops_delta_width : 150
|
86 |
+
});
|
tinymce-advanced/mce/table/langs/pt_br.js
ADDED
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* pt_br lang variables
|
3 |
+
* Brazilian Portuguese
|
4 |
+
*
|
5 |
+
* Author
|
6 |
+
* Revision and modifications:
|
7 |
+
* Marcio Barbosa (mpg) <mpg@mpg.com.br>
|
8 |
+
* First Release : November 26, 2005 - TinyMCE Version : 2.0RC4
|
9 |
+
* Last Updated : November 20, 2006 - TinyMCE Version : 2.0.8
|
10 |
+
*/
|
11 |
+
tinyMCE.addToLang('table',{
|
12 |
+
general_tab : 'Geral',
|
13 |
+
advanced_tab : 'Avan�ado',
|
14 |
+
general_props : 'Propriedades gerais',
|
15 |
+
advanced_props : 'Propriedades avan�adas',
|
16 |
+
desc : 'Inserir uma nova tabela',
|
17 |
+
row_before_desc : 'Inserir uma linha antes',
|
18 |
+
row_after_desc : 'Inserir uma linha depois',
|
19 |
+
delete_row_desc : 'Apagar linha',
|
20 |
+
col_before_desc : 'Inserir uma coluna antes',
|
21 |
+
col_after_desc : 'Inserir uma coluna depois',
|
22 |
+
delete_col_desc : 'Remover coluna',
|
23 |
+
rowtype : 'Linhas na tabela parcial',
|
24 |
+
title : 'Inserir/modificar tabela',
|
25 |
+
width : 'Largura',
|
26 |
+
height : 'Altura',
|
27 |
+
cols : 'Colunas',
|
28 |
+
rows : 'Linhas',
|
29 |
+
cellspacing : 'Espa�amento das c�lulas',
|
30 |
+
cellpadding : 'Margem interna',
|
31 |
+
border : 'Borda',
|
32 |
+
align : 'Alinhamento',
|
33 |
+
align_default : 'Padr�o',
|
34 |
+
align_left : 'Esquerda',
|
35 |
+
align_right : 'Direita',
|
36 |
+
align_middle : 'Centrado',
|
37 |
+
row_title : 'Propriedades das linha',
|
38 |
+
cell_title : 'Propriedades da c�lula',
|
39 |
+
cell_type : 'Tipo de c�lula',
|
40 |
+
row_desc : 'Propriedades das linhas',
|
41 |
+
cell_desc : 'Propriedades da c�lula',
|
42 |
+
valign : 'Alinhamento vertical',
|
43 |
+
align_top : 'Superior',
|
44 |
+
align_bottom : 'Inferior',
|
45 |
+
props_desc : 'Propriedades da tabela',
|
46 |
+
bordercolor : 'Cor da borda',
|
47 |
+
bgcolor : 'Cor do fundo',
|
48 |
+
merge_cells_title : 'Juntar c�lulas',
|
49 |
+
split_cells_desc : 'Separar c�lulas da tabela',
|
50 |
+
merge_cells_desc : 'Juntar c�lulas da tabela',
|
51 |
+
cut_row_desc : 'Recortar linha',
|
52 |
+
copy_row_desc : 'Copiar linha',
|
53 |
+
paste_row_before_desc : 'Colar linha antes',
|
54 |
+
paste_row_after_desc : 'Colar linha depois',
|
55 |
+
id : 'Id',
|
56 |
+
style: 'Estilo',
|
57 |
+
langdir : 'Dire��o do texto',
|
58 |
+
langcode : 'C�digo do idioma',
|
59 |
+
mime : 'Tipo de MIME do objeto',
|
60 |
+
ltr : 'Esquerda para direita',
|
61 |
+
rtl : 'Direita para esquerda',
|
62 |
+
bgimage : 'Imagem de fundo',
|
63 |
+
summary : 'Sum�rio',
|
64 |
+
td : 'Dados',
|
65 |
+
th : 'Cabe�alho',
|
66 |
+
cell_cell : 'Atulizar c�lula atual',
|
67 |
+
cell_row : 'Atualizar todas as c�lulas na linha',
|
68 |
+
cell_all : 'Atualizar todas as c�lulas da tabela',
|
69 |
+
row_row : 'Atualizar linha atual',
|
70 |
+
row_odd : 'Atualizar linhas �mpares na tabela',
|
71 |
+
row_even : 'Atualizar linhas pares na tabela',
|
72 |
+
row_all : 'Atualizar todas as linhas na tabela',
|
73 |
+
thead : 'Cabe�alho da tabela',
|
74 |
+
tbody : 'Corpo da tabela',
|
75 |
+
tfoot : 'Rodap� da tabela',
|
76 |
+
del : 'Apagar tabela',
|
77 |
+
scope : 'Escopo',
|
78 |
+
row : 'Linha',
|
79 |
+
col : 'Coluna',
|
80 |
+
rowgroup : 'Grupo de linhas',
|
81 |
+
colgroup : 'Grupo de colunas',
|
82 |
+
col_limit : 'Voc� excedeu o n�mero m�ximo de colunas ({$cols}).',
|
83 |
+
row_limit : 'Voc� excedeu o n�mero m�ximo de linhas ({$rows}).',
|
84 |
+
cell_limit : 'Voc� excedeu o n�mero m�ximo de c�lulas ({$cells}).',
|
85 |
+
missing_scope: 'Tem certeza que deseja continuar sem especificar um escopo para esta c�lula de cabe�alho? Sem isso talvez seja dif�cil para alguns usu�rios com necessidades especiais entenderem o conte�do ou visualizarem a tabela.',
|
86 |
+
caption : 'T�tulo da tabela',
|
87 |
+
cellprops_delta_width : 55
|
88 |
+
});
|
tinymce-advanced/mce/table/langs/ru_ru.js
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// RU lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('table',{
|
4 |
+
general_tab : 'Основные',
|
5 |
+
advanced_tab : 'Расширенные',
|
6 |
+
general_props : 'Основные свойства',
|
7 |
+
advanced_props : 'Расширенные свойства',
|
8 |
+
desc : 'Вставить новую таблицу',
|
9 |
+
row_before_desc : 'Вставить строку перед',
|
10 |
+
row_after_desc : 'Вставить строку после',
|
11 |
+
delete_row_desc : 'Удалить строку',
|
12 |
+
col_before_desc : 'Вставить колонку перед',
|
13 |
+
col_after_desc : 'Вставить колонку после',
|
14 |
+
delete_col_desc : 'Удалить колонку',
|
15 |
+
rowtype : 'Строка в части таблицы',
|
16 |
+
title : 'Вставить/Изменить таблицу',
|
17 |
+
width : 'Ширина',
|
18 |
+
height : 'Высота',
|
19 |
+
cols : 'Колонки',
|
20 |
+
rows : 'Строки',
|
21 |
+
cellspacing : 'Расстояние между ячейками',
|
22 |
+
cellpadding : 'Отступ в ячейках',
|
23 |
+
border : 'Граница',
|
24 |
+
align : 'Выравнивание',
|
25 |
+
align_default : 'По умолчанию',
|
26 |
+
align_left : 'Всево',
|
27 |
+
align_right : 'Вправо',
|
28 |
+
align_middle : 'По центру',
|
29 |
+
row_title : 'Свойства строки таблицы',
|
30 |
+
cell_title : 'Свойства ячейки таблицы',
|
31 |
+
cell_type : 'Тип ячейки',
|
32 |
+
row_desc : 'Свойства строки таблицы',
|
33 |
+
cell_desc : 'Свойства ячейки таблицы',
|
34 |
+
valign : 'Вертикальное выравнивание',
|
35 |
+
align_top : 'По верху',
|
36 |
+
align_bottom : 'По низу',
|
37 |
+
props_desc : 'Свойства таблицы',
|
38 |
+
bordercolor : 'Цвет рамки',
|
39 |
+
bgcolor : 'Цвет фона',
|
40 |
+
merge_cells_title : 'Объединить ячейки таблицы',
|
41 |
+
split_cells_desc : 'Разделить ячейки таблицы',
|
42 |
+
merge_cells_desc : 'Объединить ячейки таблицы',
|
43 |
+
cut_row_desc : 'Вылезать строку таблицы',
|
44 |
+
copy_row_desc : 'Скопировать строку таблицы',
|
45 |
+
paste_row_before_desc : 'Вставить строку таблицы перед',
|
46 |
+
paste_row_after_desc : 'Вставить строку таблицы после',
|
47 |
+
id : 'Id',
|
48 |
+
style: 'Стиль',
|
49 |
+
langdir : 'Описание языка',
|
50 |
+
langcode : 'Код языка',
|
51 |
+
mime : 'Целевой MIME тип',
|
52 |
+
ltr : 'Слева направо',
|
53 |
+
rtl : 'Справа налево',
|
54 |
+
bgimage : 'Фоновое изображение',
|
55 |
+
summary : 'Краткое описание',
|
56 |
+
td : "Тело",
|
57 |
+
th : "Заголовок",
|
58 |
+
cell_cell : 'Обновить текущую ячейку',
|
59 |
+
cell_row : 'Обновить текущую строку',
|
60 |
+
cell_all : 'Обновить все ячейки в таблице',
|
61 |
+
row_row : 'Обновить текущую строку',
|
62 |
+
row_odd : 'Обновить нечетные строки в таблице',
|
63 |
+
row_even : 'Обновить четные строки в таблице',
|
64 |
+
row_all : 'Обновить все строки в таблице',
|
65 |
+
thead : 'Заголовок таблицы',
|
66 |
+
tbody : 'Тело таблицы',
|
67 |
+
tfoot : 'Подвал таблицы',
|
68 |
+
del : 'Удалить таблицу',
|
69 |
+
scope : 'Границы',
|
70 |
+
row : 'Строка',
|
71 |
+
col : 'Колонка',
|
72 |
+
rowgroup : 'Группа строк',
|
73 |
+
colgroup : 'Группа колонок',
|
74 |
+
col_limit : 'Вы превысили максимально допустимое количество колонок - {$cols}.',
|
75 |
+
row_limit : 'Вы превысили максимально допустимое количество строк - {$rows}.',
|
76 |
+
cell_limit : 'Вы превысили максимально допустимое количество ячеек - {$cells}.',
|
77 |
+
missing_scope: 'Вы уверены, что хотите продолжать не обозначив границы ячеек шапки таблицы? Без этого, возможно, некоторым пользователям будет затруднительно понять, что за данные находятся в таблице.',
|
78 |
+
caption : 'Название таблицы'
|
79 |
+
});
|
tinymce-advanced/mce/table/langs/zh_cn.js
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// Simplified Chinese lang variables contributed by TinyMCE_China_Team ( tinymce_china {AT} yahoogroups {DOT} com ).
|
2 |
+
// visit our homepage at: http://www.cube316.net/tinymce/ for more information.
|
3 |
+
|
4 |
+
tinyMCE.addToLang('table',{
|
5 |
+
general_tab : 'һ��',
|
6 |
+
advanced_tab : '��',
|
7 |
+
general_props : 'һ������',
|
8 |
+
advanced_props : '������',
|
9 |
+
desc : '����һ���±�',
|
10 |
+
row_before_desc : '��ǰ����һ��',
|
11 |
+
row_after_desc : '������һ��',
|
12 |
+
delete_row_desc : 'ɾ����',
|
13 |
+
col_before_desc : '�������һ��',
|
14 |
+
col_after_desc : '���Ҳ���һ��',
|
15 |
+
delete_col_desc : 'ɾ����',
|
16 |
+
rowtype : '������',
|
17 |
+
title : '����/�� ��',
|
18 |
+
width : '��',
|
19 |
+
height : '��',
|
20 |
+
cols : '����',
|
21 |
+
rows : '����',
|
22 |
+
cellspacing : '��Ԫ��ռ�',
|
23 |
+
cellpadding : '��Ԫ�����',
|
24 |
+
border : '�߿�',
|
25 |
+
align : '����',
|
26 |
+
align_default : 'Ĭ��',
|
27 |
+
align_left : '����',
|
28 |
+
align_right : '����',
|
29 |
+
align_middle : '����',
|
30 |
+
row_title : '���',
|
31 |
+
cell_title : '��Ԫ�����',
|
32 |
+
cell_type : '��Ԫ������',
|
33 |
+
row_desc : '������',
|
34 |
+
cell_desc : '��Ԫ������',
|
35 |
+
valign : '��ֱ����',
|
36 |
+
align_top : '����',
|
37 |
+
align_bottom : '��',
|
38 |
+
props_desc : '������',
|
39 |
+
bordercolor : '�߿���ɫ',
|
40 |
+
bgcolor : '������ɫ',
|
41 |
+
merge_cells_title : '�ϲ����е�Ԫ�����',
|
42 |
+
split_cells_desc : '������е�Ԫ������',
|
43 |
+
merge_cells_desc : '�ϲ����е�Ԫ������',
|
44 |
+
cut_row_desc : '������',
|
45 |
+
copy_row_desc : '������',
|
46 |
+
paste_row_before_desc : '��ǰճ��һ��',
|
47 |
+
paste_row_after_desc : '���ճ��һ��',
|
48 |
+
id : '��ʶ',
|
49 |
+
style: '��ʽ',
|
50 |
+
langdir : '�����',
|
51 |
+
langcode : '���Ա���',
|
52 |
+
mime : 'Ŀ�� MIME ����',
|
53 |
+
ltr : '������',
|
54 |
+
rtl : '���ҵ���',
|
55 |
+
bgimage : '����ͼƬ',
|
56 |
+
summary : '��',
|
57 |
+
td : "����",
|
58 |
+
th : "ҳü",
|
59 |
+
cell_cell : '���µ�ǰ��Ԫ��',
|
60 |
+
cell_row : '�����������е�Ԫ��',
|
61 |
+
cell_all : '���±������е�Ԫ��',
|
62 |
+
row_row : '���µ�ǰ��',
|
63 |
+
row_odd : '����������',
|
64 |
+
row_even : '����ż����',
|
65 |
+
row_all : '���±���������',
|
66 |
+
thead : '��ͷ',
|
67 |
+
tbody : '����',
|
68 |
+
tfoot : '��β',
|
69 |
+
del : 'ɾ����',
|
70 |
+
scope : '����',
|
71 |
+
row : '��',
|
72 |
+
col : '��',
|
73 |
+
rowgroup : '���',
|
74 |
+
colgroup : '���',
|
75 |
+
missing_scope: '��ȷ��Ҫ��û�������༭����ʱ������û�������༭����ʹ�Ķ��߿������ܷ�����'
|
76 |
+
});
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/merge_cells.htm
RENAMED
@@ -1,9 +1,9 @@
|
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_table_merge_cells_title}</title>
|
4 |
-
<script language="javascript" type="text/javascript" src="
|
5 |
-
<script language="javascript" type="text/javascript" src="
|
6 |
-
<script language="javascript" type="text/javascript" src="
|
7 |
<script language="javascript" type="text/javascript" src="jscripts/merge_cells.js"></script>
|
8 |
<base target="_self" />
|
9 |
</head>
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_table_merge_cells_title}</title>
|
4 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/tiny_mce_popup.js"></script>
|
5 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/mctabs.js"></script>
|
6 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/validate.js"></script>
|
7 |
<script language="javascript" type="text/javascript" src="jscripts/merge_cells.js"></script>
|
8 |
<base target="_self" />
|
9 |
</head>
|
tinymce-advanced/mce/table/readme.txt
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
Check the TinyMCE documentation for details on this plugin.
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/row.htm
RENAMED
@@ -1,9 +1,9 @@
|
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_table_row_title}</title>
|
4 |
-
<script language="javascript" type="text/javascript" src="
|
5 |
-
<script language="javascript" type="text/javascript" src="
|
6 |
-
<script language="javascript" type="text/javascript" src="
|
7 |
<script language="javascript" type="text/javascript" src="jscripts/row.js"></script>
|
8 |
<link href="css/row.css" rel="stylesheet" type="text/css" />
|
9 |
<base target="_self" />
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_table_row_title}</title>
|
4 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/tiny_mce_popup.js"></script>
|
5 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/mctabs.js"></script>
|
6 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/form_utils.js"></script>
|
7 |
<script language="javascript" type="text/javascript" src="jscripts/row.js"></script>
|
8 |
<link href="css/row.css" rel="stylesheet" type="text/css" />
|
9 |
<base target="_self" />
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/table/table.htm
RENAMED
@@ -1,10 +1,10 @@
|
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_table_title}</title>
|
4 |
-
<script language="javascript" type="text/javascript" src="
|
5 |
-
<script language="javascript" type="text/javascript" src="
|
6 |
-
<script language="javascript" type="text/javascript" src="
|
7 |
-
<script language="javascript" type="text/javascript" src="
|
8 |
<script language="javascript" type="text/javascript" src="jscripts/table.js"></script>
|
9 |
<link href="css/table.css" rel="stylesheet" type="text/css" />
|
10 |
<base target="_self" />
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_table_title}</title>
|
4 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/tiny_mce_popup.js"></script>
|
5 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/mctabs.js"></script>
|
6 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/form_utils.js"></script>
|
7 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/validate.js"></script>
|
8 |
<script language="javascript" type="text/javascript" src="jscripts/table.js"></script>
|
9 |
<link href="css/table.css" rel="stylesheet" type="text/css" />
|
10 |
<base target="_self" />
|
add_to_tinymce_directory/plugins/visualchars/editor_plugin_src.js → tinymce-advanced/mce/visualchars/editor_plugin.js
RENAMED
@@ -5,8 +5,14 @@
|
|
5 |
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
6 |
*/
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
/* Import plugin specific language pack */
|
9 |
-
tinyMCE.importPluginLanguagePack('visualchars');
|
10 |
|
11 |
var TinyMCE_VisualCharsPlugin = {
|
12 |
getInfo : function() {
|
5 |
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
6 |
*/
|
7 |
|
8 |
+
// EN lang variables
|
9 |
+
tadvmce = realTinyMCE;
|
10 |
+
tadvmce.addToLang('visualchars',{
|
11 |
+
desc : 'Visual control characters on/off.'
|
12 |
+
});
|
13 |
+
|
14 |
/* Import plugin specific language pack */
|
15 |
+
//tinyMCE.importPluginLanguagePack('visualchars');
|
16 |
|
17 |
var TinyMCE_VisualCharsPlugin = {
|
18 |
getInfo : function() {
|
tinymce-advanced/mce/visualchars/images/visualchars.gif
ADDED
Binary file
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/visualchars/langs/en.js
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/abbr.htm
RENAMED
@@ -1,12 +1,13 @@
|
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_xhtmlxtras_title_abbr_element}</title>
|
4 |
-
<script language="javascript" type="text/javascript" src="
|
5 |
-
<script language="javascript" type="text/javascript" src="
|
6 |
-
<script language="javascript" type="text/javascript" src="
|
7 |
-
<script language="javascript" type="text/javascript" src="
|
8 |
<script language="javascript" type="text/javascript" src="jscripts/element_common.js"></script>
|
9 |
<script language="javascript" type="text/javascript" src="jscripts/abbr.js"></script>
|
|
|
10 |
<link rel="stylesheet" type="text/css" href="css/popup.css" />
|
11 |
<base target="_self" />
|
12 |
</head>
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_xhtmlxtras_title_abbr_element}</title>
|
4 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/tiny_mce_popup.js"></script>
|
5 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/mctabs.js"></script>
|
6 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/form_utils.js"></script>
|
7 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/editable_selects.js"></script>
|
8 |
<script language="javascript" type="text/javascript" src="jscripts/element_common.js"></script>
|
9 |
<script language="javascript" type="text/javascript" src="jscripts/abbr.js"></script>
|
10 |
+
|
11 |
<link rel="stylesheet" type="text/css" href="css/popup.css" />
|
12 |
<base target="_self" />
|
13 |
</head>
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/acronym.htm
RENAMED
@@ -1,10 +1,10 @@
|
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_xhtmlxtras_title_acronym_element}</title>
|
4 |
-
<script language="javascript" type="text/javascript" src="
|
5 |
-
<script language="javascript" type="text/javascript" src="
|
6 |
-
<script language="javascript" type="text/javascript" src="
|
7 |
-
<script language="javascript" type="text/javascript" src="
|
8 |
<script language="javascript" type="text/javascript" src="jscripts/element_common.js"></script>
|
9 |
<script language="javascript" type="text/javascript" src="jscripts/acronym.js"></script>
|
10 |
<link rel="stylesheet" type="text/css" href="css/popup.css" />
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_xhtmlxtras_title_acronym_element}</title>
|
4 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/tiny_mce_popup.js"></script>
|
5 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/mctabs.js"></script>
|
6 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/form_utils.js"></script>
|
7 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/editable_selects.js"></script>
|
8 |
<script language="javascript" type="text/javascript" src="jscripts/element_common.js"></script>
|
9 |
<script language="javascript" type="text/javascript" src="jscripts/acronym.js"></script>
|
10 |
<link rel="stylesheet" type="text/css" href="css/popup.css" />
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/attributes.htm
RENAMED
@@ -1,10 +1,10 @@
|
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_xhtmlxtras_attribs_title}</title>
|
4 |
-
<script language="javascript" type="text/javascript" src="
|
5 |
-
<script language="javascript" type="text/javascript" src="
|
6 |
-
<script language="javascript" type="text/javascript" src="
|
7 |
-
<script language="javascript" type="text/javascript" src="
|
8 |
<script language="javascript" type="text/javascript" src="jscripts/attributes.js"></script>
|
9 |
<link rel="stylesheet" type="text/css" href="css/attributes.css" />
|
10 |
<base target="_self" />
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_xhtmlxtras_attribs_title}</title>
|
4 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/tiny_mce_popup.js"></script>
|
5 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/mctabs.js"></script>
|
6 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/editable_selects.js"></script>
|
7 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/form_utils.js"></script>
|
8 |
<script language="javascript" type="text/javascript" src="jscripts/attributes.js"></script>
|
9 |
<link rel="stylesheet" type="text/css" href="css/attributes.css" />
|
10 |
<base target="_self" />
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/cite.htm
RENAMED
@@ -1,10 +1,10 @@
|
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_xhtmlxtras_title_cite_element}</title>
|
4 |
-
<script language="javascript" type="text/javascript" src="
|
5 |
-
<script language="javascript" type="text/javascript" src="
|
6 |
-
<script language="javascript" type="text/javascript" src="
|
7 |
-
<script language="javascript" type="text/javascript" src="
|
8 |
<script language="javascript" type="text/javascript" src="jscripts/element_common.js"></script>
|
9 |
<script language="javascript" type="text/javascript" src="jscripts/cite.js"></script>
|
10 |
<link rel="stylesheet" type="text/css" href="css/popup.css" />
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_xhtmlxtras_title_cite_element}</title>
|
4 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/tiny_mce_popup.js"></script>
|
5 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/mctabs.js"></script>
|
6 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/form_utils.js"></script>
|
7 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/editable_selects.js"></script>
|
8 |
<script language="javascript" type="text/javascript" src="jscripts/element_common.js"></script>
|
9 |
<script language="javascript" type="text/javascript" src="jscripts/cite.js"></script>
|
10 |
<link rel="stylesheet" type="text/css" href="css/popup.css" />
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/css/attributes.css
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/css/popup.css
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/css/xhtmlxtras.css
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/del.htm
RENAMED
@@ -1,10 +1,10 @@
|
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_xhtmlxtras_title_del_element}</title>
|
4 |
-
<script language="javascript" type="text/javascript" src="
|
5 |
-
<script language="javascript" type="text/javascript" src="
|
6 |
-
<script language="javascript" type="text/javascript" src="
|
7 |
-
<script language="javascript" type="text/javascript" src="
|
8 |
<script language="javascript" type="text/javascript" src="jscripts/element_common.js"></script>
|
9 |
<script language="javascript" type="text/javascript" src="jscripts/del.js"></script>
|
10 |
<link rel="stylesheet" type="text/css" href="css/popup.css" />
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_xhtmlxtras_title_del_element}</title>
|
4 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/tiny_mce_popup.js"></script>
|
5 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/mctabs.js"></script>
|
6 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/form_utils.js"></script>
|
7 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/editable_selects.js"></script>
|
8 |
<script language="javascript" type="text/javascript" src="jscripts/element_common.js"></script>
|
9 |
<script language="javascript" type="text/javascript" src="jscripts/del.js"></script>
|
10 |
<link rel="stylesheet" type="text/css" href="css/popup.css" />
|
add_to_tinymce_directory/plugins/xhtmlxtras/editor_plugin_src.js → tinymce-advanced/mce/xhtmlxtras/editor_plugin.js
RENAMED
@@ -5,6 +5,49 @@
|
|
5 |
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
6 |
*/
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
/* Import plugin specific language pack */
|
9 |
tinyMCE.importPluginLanguagePack('xhtmlxtras');
|
10 |
|
@@ -20,7 +63,7 @@ var TinyMCE_XHTMLXtrasPlugin = {
|
|
20 |
},
|
21 |
|
22 |
initInstance : function(inst) {
|
23 |
-
tinyMCE.importCSS(inst.getDoc(), tinyMCE.baseURL + "/plugins/xhtmlxtras/css/xhtmlxtras.css");
|
24 |
},
|
25 |
|
26 |
getControlHTML : function(cn) {
|
@@ -56,7 +99,7 @@ var TinyMCE_XHTMLXtrasPlugin = {
|
|
56 |
return true;
|
57 |
|
58 |
template = new Array();
|
59 |
-
template['file'] = '
|
60 |
template['width'] = 350;
|
61 |
template['height'] = 250;
|
62 |
tinyMCE.openWindow(template, {editor_id : editor_id});
|
@@ -67,7 +110,7 @@ var TinyMCE_XHTMLXtrasPlugin = {
|
|
67 |
return true;
|
68 |
|
69 |
template = new Array();
|
70 |
-
template['file'] = '
|
71 |
template['width'] = 350;
|
72 |
template['height'] = 250;
|
73 |
tinyMCE.openWindow(template, {editor_id : editor_id});
|
@@ -78,7 +121,7 @@ var TinyMCE_XHTMLXtrasPlugin = {
|
|
78 |
return true;
|
79 |
|
80 |
template = new Array();
|
81 |
-
template['file'] = '
|
82 |
template['width'] = 350;
|
83 |
template['height'] = 250;
|
84 |
tinyMCE.openWindow(template, {editor_id : editor_id});
|
@@ -89,7 +132,7 @@ var TinyMCE_XHTMLXtrasPlugin = {
|
|
89 |
return true;
|
90 |
|
91 |
template = new Array();
|
92 |
-
template['file'] = '
|
93 |
template['width'] = 350;
|
94 |
template['height'] = 310;
|
95 |
tinyMCE.openWindow(template, {editor_id : editor_id});
|
@@ -100,7 +143,7 @@ var TinyMCE_XHTMLXtrasPlugin = {
|
|
100 |
return true;
|
101 |
|
102 |
template = new Array();
|
103 |
-
template['file'] = '
|
104 |
template['width'] = 350;
|
105 |
template['height'] = 310;
|
106 |
tinyMCE.openWindow(template, {editor_id : editor_id});
|
@@ -112,7 +155,7 @@ var TinyMCE_XHTMLXtrasPlugin = {
|
|
112 |
|
113 |
if (elm && elm.nodeName !== 'BODY' && elm.className.indexOf('mceItem') == -1) {
|
114 |
tinyMCE.openWindow({
|
115 |
-
file : '
|
116 |
width : 380,
|
117 |
height : 370
|
118 |
}, {editor_id : editor_id});
|
5 |
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
|
6 |
*/
|
7 |
|
8 |
+
// UK lang variables
|
9 |
+
tadvmce = realTinyMCE;
|
10 |
+
tadvmce.addToLang('xhtmlxtras',{
|
11 |
+
cite_desc : 'Citation',
|
12 |
+
abbr_desc : 'Abbreviation',
|
13 |
+
acronym_desc : 'Acronym',
|
14 |
+
del_desc : 'Deletion',
|
15 |
+
ins_desc : 'Insertion',
|
16 |
+
attribute_label_title : 'Title',
|
17 |
+
attribute_label_id : 'ID',
|
18 |
+
attribute_label_class : 'Class',
|
19 |
+
attribute_label_style : 'Style',
|
20 |
+
attribute_label_cite : 'Cite',
|
21 |
+
attribute_label_datetime : 'Date/Time',
|
22 |
+
attribute_label_langdir : 'Text Direction',
|
23 |
+
attribute_option_ltr : 'Left to right',
|
24 |
+
attribute_option_rtl : 'Right to left',
|
25 |
+
attribute_label_langcode : 'Language',
|
26 |
+
attribute_label_tabindex : 'TabIndex',
|
27 |
+
attribute_label_accesskey : 'AccessKey',
|
28 |
+
attribute_label_cite : 'Cite',
|
29 |
+
attribute_events_tab : 'Events',
|
30 |
+
attribute_attrib_tab : 'Attributes',
|
31 |
+
general_tab : 'General',
|
32 |
+
attrib_tab : 'Attributes',
|
33 |
+
events_tab : 'Events',
|
34 |
+
fieldset_general_tab : 'General Settings',
|
35 |
+
fieldset_attrib_tab : 'Element Attributes',
|
36 |
+
fieldset_events_tab : 'Element Events',
|
37 |
+
title_ins_element : 'Insertion Element',
|
38 |
+
title_del_element : 'Deletion Element',
|
39 |
+
title_acronym_element : 'Acronym Element',
|
40 |
+
title_abbr_element : 'Abbreviation Element',
|
41 |
+
title_cite_element : 'Citation Element',
|
42 |
+
remove : 'Remove',
|
43 |
+
not_set : '--not set--',
|
44 |
+
insert_date : 'Insert current date/time',
|
45 |
+
option_ltr : 'Left to right',
|
46 |
+
option_rtl : 'Right to left',
|
47 |
+
attribs_desc : 'Insert/Edit Attributes',
|
48 |
+
attribs_title : 'Insert/Edit Attributes'
|
49 |
+
});
|
50 |
+
|
51 |
/* Import plugin specific language pack */
|
52 |
tinyMCE.importPluginLanguagePack('xhtmlxtras');
|
53 |
|
63 |
},
|
64 |
|
65 |
initInstance : function(inst) {
|
66 |
+
tinyMCE.importCSS(inst.getDoc(), tinyMCE.baseURL + "/../../../wp-content/plugins/tinymce-advanced/mce/xhtmlxtras/css/xhtmlxtras.css");
|
67 |
},
|
68 |
|
69 |
getControlHTML : function(cn) {
|
99 |
return true;
|
100 |
|
101 |
template = new Array();
|
102 |
+
template['file'] = tinyMCE.baseURL + '/../../../wp-content/plugins/tinymce-advanced/mce/xhtmlxtras/cite.htm';
|
103 |
template['width'] = 350;
|
104 |
template['height'] = 250;
|
105 |
tinyMCE.openWindow(template, {editor_id : editor_id});
|
110 |
return true;
|
111 |
|
112 |
template = new Array();
|
113 |
+
template['file'] = tinyMCE.baseURL + '/../../../wp-content/plugins/tinymce-advanced/mce/xhtmlxtras/acronym.htm';
|
114 |
template['width'] = 350;
|
115 |
template['height'] = 250;
|
116 |
tinyMCE.openWindow(template, {editor_id : editor_id});
|
121 |
return true;
|
122 |
|
123 |
template = new Array();
|
124 |
+
template['file'] = tinyMCE.baseURL + '/../../../wp-content/plugins/tinymce-advanced/mce/xhtmlxtras/abbr.htm';
|
125 |
template['width'] = 350;
|
126 |
template['height'] = 250;
|
127 |
tinyMCE.openWindow(template, {editor_id : editor_id});
|
132 |
return true;
|
133 |
|
134 |
template = new Array();
|
135 |
+
template['file'] = tinyMCE.baseURL + '/../../../wp-content/plugins/tinymce-advanced/mce/xhtmlxtras/ins.htm';
|
136 |
template['width'] = 350;
|
137 |
template['height'] = 310;
|
138 |
tinyMCE.openWindow(template, {editor_id : editor_id});
|
143 |
return true;
|
144 |
|
145 |
template = new Array();
|
146 |
+
template['file'] = tinyMCE.baseURL + '/../../../wp-content/plugins/tinymce-advanced/mce/xhtmlxtras/del.htm';
|
147 |
template['width'] = 350;
|
148 |
template['height'] = 310;
|
149 |
tinyMCE.openWindow(template, {editor_id : editor_id});
|
155 |
|
156 |
if (elm && elm.nodeName !== 'BODY' && elm.className.indexOf('mceItem') == -1) {
|
157 |
tinyMCE.openWindow({
|
158 |
+
file : tinyMCE.baseURL + '/../../../wp-content/plugins/tinymce-advanced/mce/xhtmlxtras/attributes.htm',
|
159 |
width : 380,
|
160 |
height : 370
|
161 |
}, {editor_id : editor_id});
|
tinymce-advanced/mce/xhtmlxtras/images/abbr.gif
ADDED
Binary file
|
tinymce-advanced/mce/xhtmlxtras/images/acronym.gif
ADDED
Binary file
|
tinymce-advanced/mce/xhtmlxtras/images/attribs.gif
ADDED
Binary file
|
tinymce-advanced/mce/xhtmlxtras/images/cite.gif
ADDED
Binary file
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/images/date_time.gif
RENAMED
File without changes
|
tinymce-advanced/mce/xhtmlxtras/images/del.gif
ADDED
Binary file
|
tinymce-advanced/mce/xhtmlxtras/images/ins.gif
ADDED
Binary file
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/images/remove_button_bg.gif
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/ins.htm
RENAMED
@@ -1,10 +1,10 @@
|
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_xhtmlxtras_title_ins_element}</title>
|
4 |
-
<script language="javascript" type="text/javascript" src="
|
5 |
-
<script language="javascript" type="text/javascript" src="
|
6 |
-
<script language="javascript" type="text/javascript" src="
|
7 |
-
<script language="javascript" type="text/javascript" src="
|
8 |
<script language="javascript" type="text/javascript" src="jscripts/element_common.js"></script>
|
9 |
<script language="javascript" type="text/javascript" src="jscripts/ins.js"></script>
|
10 |
<link rel="stylesheet" type="text/css" href="css/popup.css" />
|
1 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
2 |
<head>
|
3 |
<title>{$lang_xhtmlxtras_title_ins_element}</title>
|
4 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/tiny_mce_popup.js"></script>
|
5 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/mctabs.js"></script>
|
6 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/form_utils.js"></script>
|
7 |
+
<script language="javascript" type="text/javascript" src="../../../../../wp-includes/js/tinymce/utils/editable_selects.js"></script>
|
8 |
<script language="javascript" type="text/javascript" src="jscripts/element_common.js"></script>
|
9 |
<script language="javascript" type="text/javascript" src="jscripts/ins.js"></script>
|
10 |
<link rel="stylesheet" type="text/css" href="css/popup.css" />
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/jscripts/abbr.js
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/jscripts/acronym.js
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/jscripts/attributes.js
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/jscripts/cite.js
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/jscripts/del.js
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/jscripts/element_common.js
RENAMED
File without changes
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/jscripts/ins.js
RENAMED
File without changes
|
tinymce-advanced/mce/xhtmlxtras/langs/de_de.js
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// DE lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('xhtmlxtras',{
|
4 |
+
cite_desc : 'Zitieren',
|
5 |
+
abbr_desc : 'Abkürzung',
|
6 |
+
acronym_desc : 'Acronym',
|
7 |
+
del_desc : 'Löschung',
|
8 |
+
ins_desc : 'Einfügung',
|
9 |
+
attribute_label_title : 'Titel',
|
10 |
+
attribute_label_id : 'ID',
|
11 |
+
attribute_label_class : 'Klasse',
|
12 |
+
attribute_label_style : 'Style',
|
13 |
+
attribute_label_cite : 'Zitieren',
|
14 |
+
attribute_label_datetime : 'Datum/Zeit',
|
15 |
+
attribute_label_langdir : 'Text Richtung',
|
16 |
+
attribute_option_ltr : 'Links nach rechts',
|
17 |
+
attribute_option_rtl : 'Rechts nach links',
|
18 |
+
attribute_label_langcode : 'Sprache',
|
19 |
+
general_tab : 'Allgemein',
|
20 |
+
attrib_tab : 'Attribute',
|
21 |
+
events_tab : 'Event',
|
22 |
+
fieldset_general_tab : 'Allgemeine Einstellungen',
|
23 |
+
fieldset_attrib_tab : 'Element Attribute',
|
24 |
+
fieldset_events_tab : 'Element Events',
|
25 |
+
title_ins_element : 'Einfüge-Element',
|
26 |
+
title_del_element : 'Löschung-Element',
|
27 |
+
title_acronym_element : 'Akronym Element',
|
28 |
+
title_abbr_element : 'Abkürzung Element',
|
29 |
+
title_cite_element : 'Zitieren Element',
|
30 |
+
remove : 'Entfernen',
|
31 |
+
not_set : '- Nicht gesetzt -',
|
32 |
+
insert_date : 'Heutiges Datum/Zeit einfügen'
|
33 |
+
});
|
{add_to_tinymce_directory/plugins → tinymce-advanced/mce}/xhtmlxtras/langs/en.js
RENAMED
File without changes
|
tinymce-advanced/mce/xhtmlxtras/langs/es_es.js
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// ES lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('xhtmlxtras',{
|
4 |
+
cite_desc : 'Citación',
|
5 |
+
abbr_desc : 'Abreviatura',
|
6 |
+
acronym_desc : 'Acrónimo',
|
7 |
+
del_desc : 'Borrado',
|
8 |
+
ins_desc : 'Inserción',
|
9 |
+
attribute_label_title : 'Título',
|
10 |
+
attribute_label_id : 'ID',
|
11 |
+
attribute_label_class : 'Clase',
|
12 |
+
attribute_label_style : 'Estilo',
|
13 |
+
attribute_label_cite : 'Cita',
|
14 |
+
attribute_label_datetime : 'Fecha/Hora',
|
15 |
+
attribute_label_langdir : 'Dirección del texto',
|
16 |
+
attribute_option_ltr : 'De izquierda a derecha',
|
17 |
+
attribute_option_rtl : 'De derecha a izquierda',
|
18 |
+
attribute_label_langcode : 'Idioma',
|
19 |
+
attribute_label_tabindex : 'TabIndex',
|
20 |
+
attribute_label_accesskey : 'AccessKey',
|
21 |
+
attribute_label_cite : 'Cita',
|
22 |
+
attribute_events_tab : 'Eventos',
|
23 |
+
attribute_attrib_tab : 'Atributos',
|
24 |
+
general_tab : 'General',
|
25 |
+
attrib_tab : 'Atributos',
|
26 |
+
events_tab : 'Eventos',
|
27 |
+
fieldset_general_tab : 'Configuración General',
|
28 |
+
fieldset_attrib_tab : 'Atributos de Elemento',
|
29 |
+
fieldset_events_tab : 'Eventos de Elemento',
|
30 |
+
title_ins_element : 'Inserción de Elemento',
|
31 |
+
title_del_element : 'Borrado de Elemento',
|
32 |
+
title_acronym_element : 'Elemento Acrónimo',
|
33 |
+
title_abbr_element : 'Elemento Abreviatura',
|
34 |
+
title_cite_element : 'Elemento Cita',
|
35 |
+
remove : 'Eliminar',
|
36 |
+
not_set : '--no establecido--',
|
37 |
+
insert_date : 'Insertar fecha/hora actual',
|
38 |
+
option_ltr : 'De izquierda a derecha',
|
39 |
+
option_rtl : 'De derecha a izquierda',
|
40 |
+
attribs_desc : 'Insertar/Editar Atributos',
|
41 |
+
attribs_title : 'Insertar/Editar Atributos'
|
42 |
+
});
|
tinymce-advanced/mce/xhtmlxtras/langs/fr_fr.js
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// FR lang variables
|
2 |
+
// Modified by shadow walker, last updated 2007-03-16
|
3 |
+
|
4 |
+
tinyMCE.addToLang('xhtmlxtras',{
|
5 |
+
cite_desc : 'Citation',
|
6 |
+
abbr_desc : 'Abréviation',
|
7 |
+
acronym_desc : 'Acronyme',
|
8 |
+
del_desc : 'Effacer',
|
9 |
+
ins_desc : 'Insertion',
|
10 |
+
attribute_label_title : 'Titre',
|
11 |
+
attribute_label_id : 'ID',
|
12 |
+
attribute_label_class : 'Classe',
|
13 |
+
attribute_label_style : 'Style',
|
14 |
+
attribute_label_cite : 'Cite',
|
15 |
+
attribute_label_datetime : 'Date/Heure',
|
16 |
+
attribute_label_langdir : 'Text Direction',
|
17 |
+
attribute_option_ltr : 'De gauche à droite',
|
18 |
+
attribute_option_rtl : 'De droite à gauche',
|
19 |
+
attribute_label_langcode : 'Langues',
|
20 |
+
attribute_label_tabindex : 'TabIndex',
|
21 |
+
attribute_label_accesskey : 'AccessKey',
|
22 |
+
attribute_label_cite : 'Cite',
|
23 |
+
attribute_events_tab : 'Evenement',
|
24 |
+
attribute_attrib_tab : 'Attribus',
|
25 |
+
general_tab : 'Générale',
|
26 |
+
attrib_tab : 'Attribus',
|
27 |
+
events_tab : 'Evenement',
|
28 |
+
fieldset_general_tab : 'General Settings',
|
29 |
+
fieldset_attrib_tab : 'Attributs de l\'élément',
|
30 |
+
fieldset_events_tab : 'Element Events',
|
31 |
+
title_ins_element : 'Insertion de l\'élément',
|
32 |
+
title_del_element : 'Effacement de l\'élément',
|
33 |
+
title_acronym_element : 'Acronyme de l\'élément',
|
34 |
+
title_abbr_element : 'Abréviation de l\'élément',
|
35 |
+
title_cite_element : 'Citation Element',
|
36 |
+
remove : 'Enlever',
|
37 |
+
not_set : '--Non définit--',
|
38 |
+
insert_date : 'Insérer la date/heure actuelle',
|
39 |
+
option_ltr : 'De gauche à droite',
|
40 |
+
option_rtl : 'De droite à gauche',
|
41 |
+
attribs_desc : 'Insérer/Editer un attribut',
|
42 |
+
attribs_title : 'Insérer/Editer un attribut'
|
43 |
+
});
|
tinymce-advanced/mce/xhtmlxtras/langs/it_it.js
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* IT lang variables
|
3 |
+
*
|
4 |
+
* Author : Luciano Vernaschi <luciano@virgilio.it>
|
5 |
+
* Last Updated : Mar. 1st, 2007
|
6 |
+
* TinyMCE Version : 2.1.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
tinyMCE.addToLang('xhtmlxtras',{
|
10 |
+
cite_desc : 'Citazione',
|
11 |
+
abbr_desc : 'Abbreviazione',
|
12 |
+
acronym_desc : 'Acronimo',
|
13 |
+
del_desc : 'Cancellazione',
|
14 |
+
ins_desc : 'Inserimento',
|
15 |
+
attribute_label_title : 'Titolo',
|
16 |
+
attribute_label_id : 'ID',
|
17 |
+
attribute_label_class : 'Classe',
|
18 |
+
attribute_label_style : 'Stile',
|
19 |
+
attribute_label_cite : 'Cita',
|
20 |
+
attribute_label_datetime : 'Data/ora',
|
21 |
+
attribute_label_langdir : 'Direzione del testo',
|
22 |
+
attribute_option_ltr : 'Da sinistra a destra',
|
23 |
+
attribute_option_rtl : 'Da destra a sinistra',
|
24 |
+
attribute_label_langcode : 'Lingua',
|
25 |
+
general_tab : 'Generale',
|
26 |
+
attrib_tab : 'Attributi',
|
27 |
+
events_tab : 'Eventi',
|
28 |
+
fieldset_general_tab : 'Impostazioni generali',
|
29 |
+
fieldset_attrib_tab : 'Attributi dell\'elemento',
|
30 |
+
fieldset_events_tab : 'Eventi dell\'elemento',
|
31 |
+
title_ins_element : 'Inserimento di un elemento',
|
32 |
+
title_del_element : 'Cancellazione di un elemento',
|
33 |
+
title_acronym_element : 'Elemento acronimo',
|
34 |
+
title_abbr_element : 'Elemento abbreviazione',
|
35 |
+
title_cite_element : 'Elemento citazione',
|
36 |
+
remove : 'Rimuovi ',
|
37 |
+
not_set : '--non impostato--',
|
38 |
+
insert_date : 'Inserisci data e ora correnti',
|
39 |
+
option_ltr : 'Da sinistra a destra',
|
40 |
+
option_rtl : 'Da destra a sinistra',
|
41 |
+
attribs_desc : 'Inserisci o modifica attributi',
|
42 |
+
attribs_title : 'Inserisci o modifica attributi'
|
43 |
+
});
|
tinymce-advanced/mce/xhtmlxtras/langs/pt_br.js
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* pt_br lang variables
|
3 |
+
* Brazilian Portuguese
|
4 |
+
*
|
5 |
+
* Author
|
6 |
+
* Revision and modifications:
|
7 |
+
* Marcio Barbosa (mpg) <mpg@mpg.com.br>
|
8 |
+
* First Release : November 20, 2006 - TinyMCE Version : 2.0.8
|
9 |
+
*/
|
10 |
+
tinyMCE.addToLang('xhtmlxtras',{
|
11 |
+
cite_desc : 'Cita��o',
|
12 |
+
abbr_desc : 'Abrevia��o',
|
13 |
+
acronym_desc : 'Acr�nimo',
|
14 |
+
del_desc : 'Remo��o',
|
15 |
+
ins_desc : 'Inser��o',
|
16 |
+
attribute_label_title : 'T�tulo',
|
17 |
+
attribute_label_id : 'ID',
|
18 |
+
attribute_label_class : 'Classe',
|
19 |
+
attribute_label_style : 'Estilo',
|
20 |
+
attribute_label_cite : 'Cite',
|
21 |
+
attribute_label_datetime : 'Data/hora',
|
22 |
+
attribute_label_langdir : 'Escrita',
|
23 |
+
attribute_option_ltr : 'da esquerda para direita',
|
24 |
+
attribute_option_rtl : 'da direita para esquerda',
|
25 |
+
attribute_label_langcode : 'Idioma',
|
26 |
+
attribute_label_tabindex : 'TabIndex',
|
27 |
+
attribute_label_accesskey : 'Tecla de atalho',
|
28 |
+
attribute_label_cite : 'Cita��o',
|
29 |
+
attribute_events_tab : 'Eventos',
|
30 |
+
attribute_attrib_tab : 'Atributos',
|
31 |
+
general_tab : 'Geral',
|
32 |
+
attrib_tab : 'Atributos',
|
33 |
+
events_tab : 'Eventos',
|
34 |
+
fieldset_general_tab : 'Configura��o geral',
|
35 |
+
fieldset_attrib_tab : 'Atributo',
|
36 |
+
fieldset_events_tab : 'Evento',
|
37 |
+
title_ins_element : 'Inser��o',
|
38 |
+
title_del_element : 'Remo��o',
|
39 |
+
title_acronym_element : 'Acr�nimo',
|
40 |
+
title_abbr_element : 'Abrevia��o',
|
41 |
+
title_cite_element : 'Cita��o',
|
42 |
+
remove : 'Remover',
|
43 |
+
not_set : '--n�o definido--',
|
44 |
+
insert_date : 'Inserir data/hora atual',
|
45 |
+
option_ltr : 'Esquerda para direita',
|
46 |
+
option_rtl : 'Direita para esquerda',
|
47 |
+
attribs_desc : 'Inserir/editar atributos',
|
48 |
+
attribs_title : 'Inserir/editar atributos'
|
49 |
+
});
|
tinymce-advanced/mce/xhtmlxtras/langs/ru_ru.js
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// RU lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('xhtmlxtras',{
|
4 |
+
cite_desc : 'Цитирование',
|
5 |
+
abbr_desc : 'Аббревиатура',
|
6 |
+
acronym_desc : 'Акроним',
|
7 |
+
del_desc : 'Стирание',
|
8 |
+
ins_desc : 'Вставка',
|
9 |
+
attribute_label_title : 'Заголовок',
|
10 |
+
attribute_label_id : 'ID',
|
11 |
+
attribute_label_class : 'Класс',
|
12 |
+
attribute_label_style : 'Стиль',
|
13 |
+
attribute_label_cite : 'Цитировать',
|
14 |
+
attribute_label_datetime : 'Дата/Время',
|
15 |
+
attribute_label_langdir : 'Направление Текста',
|
16 |
+
attribute_option_ltr : 'Слева направо',
|
17 |
+
attribute_option_rtl : 'Справа налево',
|
18 |
+
attribute_label_langcode : 'Язык',
|
19 |
+
attribute_label_tabindex : 'Порядковый Номер',
|
20 |
+
attribute_label_accesskey : 'Горячая Клавиша',
|
21 |
+
attribute_label_cite : 'Цитировать',
|
22 |
+
attribute_events_tab : 'События',
|
23 |
+
attribute_attrib_tab : 'Атрибуты',
|
24 |
+
general_tab : 'Основной',
|
25 |
+
attrib_tab : 'Атрибуты',
|
26 |
+
events_tab : 'События',
|
27 |
+
fieldset_general_tab : 'Основные Установки',
|
28 |
+
fieldset_attrib_tab : 'Элемент Атрибуты',
|
29 |
+
fieldset_events_tab : 'Элемент События',
|
30 |
+
title_ins_element : 'Элемент Вставка',
|
31 |
+
title_del_element : 'Элемент События',
|
32 |
+
title_acronym_element : 'Элемент Акроним',
|
33 |
+
title_abbr_element : 'Элемент Аббревиатура',
|
34 |
+
title_cite_element : 'Элемент Цитирование',
|
35 |
+
remove : 'Убрать',
|
36 |
+
not_set : '--не установлен--',
|
37 |
+
insert_date : 'Вставить текущие дату/время',
|
38 |
+
option_ltr : 'Слева направо',
|
39 |
+
option_rtl : 'Справа налево',
|
40 |
+
attribs_desc : 'Вставить/Изменить Атрибуты',
|
41 |
+
attribs_title : 'Вставить/Изменить Атрибуты'
|
42 |
+
});
|
tinymce-advanced/mce/xhtmlxtras/langs/zh_cn.js
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// UK lang variables
|
2 |
+
|
3 |
+
tinyMCE.addToLang('xhtmlxtras',{
|
4 |
+
cite_desc : 'Citation',
|
5 |
+
abbr_desc : 'Abbreviation',
|
6 |
+
acronym_desc : 'Acronym',
|
7 |
+
del_desc : 'Deletion',
|
8 |
+
ins_desc : 'Insertion',
|
9 |
+
attribute_label_title : 'Title',
|
10 |
+
attribute_label_id : 'ID',
|
11 |
+
attribute_label_class : 'Class',
|
12 |
+
attribute_label_style : 'Style',
|
13 |
+
attribute_label_cite : 'Cite',
|
14 |
+
attribute_label_datetime : 'Date/Time',
|
15 |
+
attribute_label_langdir : 'Text Direction',
|
16 |
+
attribute_option_ltr : 'Left to right',
|
17 |
+
attribute_option_rtl : 'Right to left',
|
18 |
+
attribute_label_langcode : 'Language',
|
19 |
+
general_tab : 'General',
|
20 |
+
attrib_tab : 'Attributes',
|
21 |
+
events_tab : 'Events',
|
22 |
+
fieldset_general_tab : 'General Settings',
|
23 |
+
fieldset_attrib_tab : 'Element Attributes',
|
24 |
+
fieldset_events_tab : 'Element Events',
|
25 |
+
title_ins_element : 'Insertion Element',
|
26 |
+
title_del_element : 'Deletion Element',
|
27 |
+
title_acronym_element : 'Acronym Element',
|
28 |
+
title_abbr_element : 'Abbreviation Element',
|
29 |
+
title_cite_element : 'Citation Element',
|
30 |
+
remove : 'Remove',
|
31 |
+
not_set : '--not set--',
|
32 |
+
insert_date : 'Insert current date/time'
|
33 |
+
});
|
tinymce-advanced/tinymce-advanced.php
CHANGED
@@ -1,74 +1,630 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
Plugin Name: TinyMCE Advanced
|
4 |
-
Plugin URI: http://www.laptoptips.ca/projects/tinymce-advanced/
|
5 |
-
Description: Enables advanced features and plugins in TinyMCE.
|
6 |
-
Version:
|
7 |
-
Author: Andrew Ozz
|
8 |
-
Author URI: http://www.laptoptips.ca/
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
function
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
}
|
42 |
-
|
43 |
-
function
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: TinyMCE Advanced
|
4 |
+
Plugin URI: http://www.laptoptips.ca/projects/tinymce-advanced/
|
5 |
+
Description: Enables advanced features and plugins in TinyMCE.
|
6 |
+
Version: 2.0
|
7 |
+
Author: Andrew Ozz
|
8 |
+
Author URI: http://www.laptoptips.ca/
|
9 |
+
|
10 |
+
Some code and ideas from WordPress(http://www.wordpress.org/). The options page for this plugin uses Prototype.js by Sam Stephenson(http://prototype.conio.net/) and Scriptaculous by Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us). The Javascript files have been compressed and concatenated for faster loading.
|
11 |
+
|
12 |
+
Released under the GPL, http://www.gnu.org/copyleft/gpl.html
|
13 |
+
|
14 |
+
This program is distributed in the hope that it will be useful,
|
15 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17 |
+
GNU General Public License for more details.
|
18 |
+
*/
|
19 |
+
|
20 |
+
if ('tinymce-advanced.php' == basename($_SERVER['SCRIPT_FILENAME']))
|
21 |
+
exit;
|
22 |
+
|
23 |
+
if( ! function_exists(tadv_admin_head) ) {
|
24 |
+
function tadv_admin_head() {
|
25 |
+
global $is_winIE;
|
26 |
+
?>
|
27 |
+
<script type="text/javascript" src="<?php bloginfo( 'wpurl' ); ?>/wp-content/plugins/tinymce-advanced/js/tadv-all.js?ver=1.7.0-2.0"></script>
|
28 |
+
<link rel="stylesheet" href="<?php bloginfo( 'wpurl' ); ?>/wp-content/plugins/tinymce-advanced/css/tadv-styles.css?ver=2.0" type="text/css" />
|
29 |
+
<script type="text/javascript">
|
30 |
+
// <![CDATA[
|
31 |
+
var mceToolbars = ['toolbar-1', 'toolbar-2', 'toolbar-3'];
|
32 |
+
function initTadv() {
|
33 |
+
$A(Draggables.drags).map(function(o){o.startDrag(null);o.finishDrag(null);});
|
34 |
+
tadvResetHeight();
|
35 |
+
}
|
36 |
+
function tadvResetHeight() {
|
37 |
+
var pd = $('tadvpalette');
|
38 |
+
if( pd.childNodes.length > 6 ) {
|
39 |
+
var last = pd.lastChild.previousSibling;
|
40 |
+
pd.style.height = last.offsetTop + last.offsetHeight + 30 + "px";
|
41 |
+
} else { pd.style.height = "60px"; }
|
42 |
+
}
|
43 |
+
function tadvSerializeAll() {
|
44 |
+
$('toolbar-1order').value = Sortable.serialize('toolbar-1');
|
45 |
+
$('toolbar-2order').value = Sortable.serialize('toolbar-2');
|
46 |
+
$('toolbar-3order').value = Sortable.serialize('toolbar-3');
|
47 |
+
}
|
48 |
+
function tadvUpdateAll() {
|
49 |
+
tadvResetHeight();
|
50 |
+
$('tadvWarnmsg').innerHTML = '';
|
51 |
+
mceToolbars.map(function(o){
|
52 |
+
var kids = $(o).childNodes;
|
53 |
+
var tbwidth = $(o).clientWidth;
|
54 |
+
var kidswidth = 0;
|
55 |
+
for( i=0; i<kids.length; i++ ) {
|
56 |
+
kidswidth += kids[i].clientWidth;
|
57 |
+
}
|
58 |
+
if( kidswidth > tbwidth ) {
|
59 |
+
$('tadvWarnmsg').innerHTML = 'Adding too many buttons will make the toolbar too long and will not display correctly in TinyMCE!';
|
60 |
+
}
|
61 |
+
});
|
62 |
+
|
63 |
+
if( $('toolbar-3').childNodes.length > 0 ) {
|
64 |
+
if( $('tadvWpadv') == null ) {
|
65 |
+
tadvWpadv = document.createElement('li');
|
66 |
+
tadvWpadv.setAttribute('id','tadvWpadv');
|
67 |
+
tadvWpadv.innerHTML = '<img alt="Toolbars" title="Toolbars" src="<?php bloginfo( 'wpurl' ); ?>/wp-content/plugins/tinymce-advanced/images/toolbars.gif" />';
|
68 |
+
} else { tadvWpadv = $('tadvWpadv'); }
|
69 |
+
if( $('toolbar-2').childNodes.length > 0 && $('toolbar-2').childNodes[0].id != 'tadvWpadv' ) {
|
70 |
+
$('toolbar-2').appendChild(tadvWpadv);
|
71 |
+
} else if( $('toolbar-1').childNodes.length > 0 && $('toolbar-1').childNodes[0].id != 'tadvWpadv' ) {
|
72 |
+
$('toolbar-1').appendChild(tadvWpadv);
|
73 |
+
} else {
|
74 |
+
if( tadvWpadv.parentNode != null )
|
75 |
+
tadvWpadv.parentNode.removeChild(tadvWpadv);
|
76 |
+
}
|
77 |
+
} else {
|
78 |
+
if( $('tadvWpadv') != null ) {
|
79 |
+
tadvWpadv = $('tadvWpadv');
|
80 |
+
if( tadvWpadv.parentNode != null )
|
81 |
+
tadvWpadv.parentNode.removeChild(tadvWpadv);
|
82 |
+
}
|
83 |
+
}
|
84 |
+
}
|
85 |
+
addLoadEvent(initTadv);
|
86 |
+
addLoadEvent(tadvUpdateAll);
|
87 |
+
Event.observe(window, 'resize', tadvUpdateAll);
|
88 |
+
// ]]>
|
89 |
+
</script>
|
90 |
+
<?php
|
91 |
+
} } // end tadv_admin_head
|
92 |
+
|
93 |
+
if( ! function_exists(tadv_page) ) {
|
94 |
+
function tadv_page() {
|
95 |
+
global $is_winIE;
|
96 |
+
|
97 |
+
if ( ! current_user_can('edit_themes') )
|
98 |
+
wp_die( __( 'Cheatin’ uh?' ));
|
99 |
+
|
100 |
+
$tadv_toolbars = get_option('tadv_toolbars');
|
101 |
+
$tadv_options = get_option('tadv_options');
|
102 |
+
$imgpath = get_bloginfo( 'wpurl' ) . '/wp-content/plugins/tinymce-advanced/images/';
|
103 |
+
|
104 |
+
if( isset( $_POST['save'] ) ) {
|
105 |
+
check_admin_referer( 'tadv-save-buttons-order' );
|
106 |
+
|
107 |
+
parse_str( $_POST['toolbar-1order'], $tb1 );
|
108 |
+
parse_str( $_POST['toolbar-2order'], $tb2 );
|
109 |
+
parse_str( $_POST['toolbar-3order'], $tb3 );
|
110 |
+
$tadv_toolbars = $tb1 + $tb2 + $tb3;
|
111 |
+
update_option( 'tadv_toolbars', $tadv_toolbars );
|
112 |
+
|
113 |
+
$tadv_options['advlink'] = $_POST['advlink'] ? '1' : '';
|
114 |
+
$tadv_options['advimage'] = $_POST['advimage'] ? '1' : '';
|
115 |
+
$tadv_options['contextmenu'] = $_POST['contextmenu'] ? '1' : '';
|
116 |
+
$tadv_options['importcss'] = $_POST['importcss'] ? '1' : '';
|
117 |
+
update_option( 'tadv_options', $tadv_options );
|
118 |
+
}
|
119 |
+
|
120 |
+
if( isset( $_POST['reset'] ) ) {
|
121 |
+
check_admin_referer( 'tadv-save-buttons-order' );
|
122 |
+
$tadv_toolbars = false;
|
123 |
+
$tadv_options = '';
|
124 |
+
}
|
125 |
+
|
126 |
+
if( ! $tadv_toolbars ) {
|
127 |
+
$tb1 = array( 'bold', 'italic', 'strikethrough', 'underline', 'separator1', 'bullist', 'numlist', 'outdent', 'indent', 'separator2', 'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'separator3', 'link', 'unlink', 'separator4', 'image', 'styleprops', 'separator12', 'wp_more', 'wp_page', 'separator5', 'spellchecker', 'search', 'separator6', 'wp_help', 'fullscreen' );
|
128 |
+
|
129 |
+
$tb2 = '';
|
130 |
+
|
131 |
+
$tb3 = array( 'styleselect', 'formatselect', 'paste', 'pastetext', 'pasteword', 'separator7', 'cleanup', 'separator8', 'charmap', 'print', 'separator9', 'emotions', 'separator10', 'sup', 'sub', 'separator11', 'undo', 'redo', 'attribs' );
|
132 |
+
|
133 |
+
$tadv_toolbars = array( 'toolbar-1' => $tb1, 'toolbar-2' => $tb2, 'toolbar-3' => $tb3 );
|
134 |
+
$tadv_options = array( 'advlink' => '1', 'advimage' => '1', 'importcss' => '1', 'refresh' => '1' );
|
135 |
+
|
136 |
+
update_option( 'tadv_toolbars', $tadv_toolbars );
|
137 |
+
update_option( 'tadv_options', $tadv_options );
|
138 |
+
}
|
139 |
+
|
140 |
+
if( is_array($tadv_toolbars['toolbar-1']) ) {
|
141 |
+
$btns1 = $tadv_toolbars['toolbar-1'];
|
142 |
+
|
143 |
+
foreach( $btns1 as $k => $v ) {
|
144 |
+
if( strpos($v, 'separator') !== false ) $btns1[$k] = 'separator';
|
145 |
+
if( $v == 'layer' ) $l = $k;
|
146 |
+
if( empty($v) ) unset($btns1[$k]);
|
147 |
+
}
|
148 |
+
if( $l ) array_splice( $btns1, $l, 1, array('insertlayer', 'moveforward', 'movebackward', 'absolute') );
|
149 |
+
}
|
150 |
+
|
151 |
+
if( is_array($tadv_toolbars['toolbar-2']) ) {
|
152 |
+
$btns2 = $tadv_toolbars['toolbar-2'];
|
153 |
+
|
154 |
+
foreach( $btns2 as $k => $v ) {
|
155 |
+
if( strpos($v, 'separator') !== false ) $btns2[$k] = 'separator';
|
156 |
+
if( $v == 'layer' ) $l = $k;
|
157 |
+
if( empty($v) ) unset($btns2[$k]);
|
158 |
+
}
|
159 |
+
if( $l ) array_splice( $btns2, $l, 1, array('insertlayer', 'moveforward', 'movebackward', 'absolute') );
|
160 |
+
if( empty($btns1) ) {
|
161 |
+
$btns1 = $btns2;
|
162 |
+
$btns2 = array();
|
163 |
+
}
|
164 |
+
}
|
165 |
+
|
166 |
+
if( is_array($tadv_toolbars['toolbar-3']) ) {
|
167 |
+
$btns3 = $tadv_toolbars['toolbar-3'];
|
168 |
+
foreach( $btns3 as $k => $v ) {
|
169 |
+
if( strpos($v, 'separator') !== false ) $btns3[$k] = 'separator';
|
170 |
+
if( $v == 'layer' ) $l = $k;
|
171 |
+
}
|
172 |
+
if( $l ) array_splice( $btns3, $l, 1, array('insertlayer', 'moveforward', 'movebackward', 'absolute') );
|
173 |
+
if( is_array($btns2) && ! empty($btns2) ) {
|
174 |
+
$btns2[] = 'wp_adv';
|
175 |
+
$btns2[] = 'wp_adv_start';
|
176 |
+
$btns3[] = 'wp_adv_end';
|
177 |
+
$btns2 = array_merge( $btns2, $btns3 );
|
178 |
+
} elseif ( is_array($btns1) && ! empty($btns1) ) {
|
179 |
+
$btns1[] = 'wp_adv';
|
180 |
+
$btns1[] = 'wp_adv_start';
|
181 |
+
$btns3[] = 'wp_adv_end';
|
182 |
+
$btns1 = array_merge( $btns1, $btns3 );
|
183 |
+
} else {
|
184 |
+
$btns1 = $btns3;
|
185 |
+
$btns3 = '';
|
186 |
+
}
|
187 |
+
}
|
188 |
+
|
189 |
+
if( empty($btns1) && empty($btns2) ) {
|
190 |
+
$allbtns = array();
|
191 |
+
?><div class="error" id="message"><p>All toolbars are empty!</p></div><?php
|
192 |
+
} else {
|
193 |
+
$allbtns = array_merge( (array) $btns1, (array) $btns2 );
|
194 |
+
}
|
195 |
+
|
196 |
+
if( in_array('advhr', $allbtns) ) $plugins[] = 'advhr';
|
197 |
+
if( in_array('fullscreen', $allbtns) ) $plugins[] = 'fullscreen';
|
198 |
+
if( in_array('insertlayer', $allbtns) ) $plugins[] = 'layer';
|
199 |
+
if( in_array('visualchars', $allbtns) ) $plugins[] = 'visualchars';
|
200 |
+
|
201 |
+
if( in_array('iespell', $allbtns) ) $plugins[] = 'iespell';
|
202 |
+
if( in_array('nonbreaking', $allbtns) ) $plugins[] = 'nonbreaking';
|
203 |
+
if( in_array('styleprops', $allbtns) ) $plugins[] = 'style';
|
204 |
+
if( in_array('emotions', $allbtns) ) $plugins[] = 'emotions';
|
205 |
+
|
206 |
+
if( in_array('print', $allbtns) ) $plugins[] = 'print';
|
207 |
+
if( in_array('search', $allbtns) ||
|
208 |
+
in_array('replace', $allbtns) ) $plugins[] = 'searchreplace';
|
209 |
+
|
210 |
+
if( in_array('cite', $allbtns) ||
|
211 |
+
in_array('ins', $allbtns) ||
|
212 |
+
in_array('del', $allbtns) ||
|
213 |
+
in_array('abbr', $allbtns) ||
|
214 |
+
in_array('acronym', $allbtns) ||
|
215 |
+
in_array('attribs', $allbtns) ) $plugins[] = 'xhtmlxtras';
|
216 |
+
|
217 |
+
if ( $tadv_options['advlink'] == '1' ) $plugins[] = 'advlink';
|
218 |
+
if ( $tadv_options['advimage'] == '1' ) $plugins[] = 'advimage';
|
219 |
+
if ( $tadv_options['contextmenu'] == '1' ) $plugins[] = 'contextmenu';
|
220 |
+
$plugins = array_merge( array( 'table', 'media' ), (array) $plugins );
|
221 |
+
|
222 |
+
if( get_option('tadv_plugins') != $plugins ) update_option( 'tadv_plugins', $plugins );
|
223 |
+
if( get_option('tadv_btns1') != $btns1 ) update_option( 'tadv_btns1', $btns1 );
|
224 |
+
if( get_option('tadv_btns2') != $btns2 ) update_option( 'tadv_btns2', $btns2 );
|
225 |
+
|
226 |
+
$buttons = array( 'Bold' => 'bold', 'Italic' => 'italic', 'Strikethrough' => 'strikethrough', 'Underline' => 'underline', 'Bullet List' => 'bullist', 'Numbered List' => 'numlist', 'Outdent' => 'outdent', 'Indent' => 'indent', 'Allign Left' => 'justifyleft', 'Center' => 'justifycenter', 'Alligh Right' => 'justifyright', 'Justify' => 'justifyfull', 'Cut' => 'cut', 'Copy' => 'copy', 'Paste' => 'paste', 'Link' => 'link', 'Remove Link' => 'unlink', 'Insert Image' => 'image', 'More Tag' => 'wp_more', 'Split Page' => 'wp_page', 'Search' => 'search', 'Replace' => 'replace', 'Select Font' => 'fontselect', 'Help' => 'wp_help', 'Full Screen' => 'fullscreen', 'CSS Styles' => 'styleselect', 'Format' => 'formatselect', 'Text Color' => 'forecolor', 'Paste as Text' => 'pastetext', 'Paste from Word' => 'pasteword', 'Remove Format' => 'removeformat', 'Clean Code' => 'cleanup', 'Check Spelling' => 'spellchecker', 'IE Spell' => 'iespell', 'Character Map' => 'charmap', 'Print' => 'print', 'Undo' => 'undo', 'Redo' => 'redo', 'Table' => 'tablecontrols', 'Citation' => 'cite', 'Inserted Text' => 'ins', 'Deleted Text' => 'del', 'Abbreviation' => 'abbr', 'Acronym' => 'acronym', 'XHTML Attribs' => 'attribs', 'Layer' => 'layer', 'Advanced HR' => 'advhr', 'View HTML' => 'code', 'Hidden Chars' => 'visualchars', 'NB Space' => 'nonbreaking', 'Sub' => 'sub', 'Sup' => 'sup', 'Visual Aids' => 'visualaid', 'Anchor' => 'anchor', 'Style' => 'styleprops', 'Smilies' => 'emotions' );
|
227 |
+
|
228 |
+
if( ! $is_winIE ) $buttons['Insert Movie'] = 'media';
|
229 |
+
|
230 |
+
$active_plugins = get_settings('active_plugins');
|
231 |
+
$add = array();
|
232 |
+
foreach( $active_plugins as $plug ) {
|
233 |
+
if( strpos( $plug, 'wpg2' ) !== false ) $add['Gallery 2'] = 'g2image';
|
234 |
+
if( strpos( $plug, 'nextgen-gallery' ) !== false ) $add['Nextgen Gallery'] = 'NextGEN';
|
235 |
+
if( strpos( $plug, 'vipers-video' ) !== false ) $add["Viper's Video"] = 'vipersvideoquicktags';
|
236 |
+
if( strpos( $plug, 'embedded-video' ) !== false ) $add['EmbeddedVideo'] = 'embeddedvideo';
|
237 |
+
if( strpos( $plug, 'imagemanager' ) !== false ) $add['Image Manager'] = 'ps_imagemanager_tinymceplugin';
|
238 |
+
}
|
239 |
+
|
240 |
+
if( ! empty($add) ) $buttons += $add;
|
241 |
+
|
242 |
+
$separators = array( 's1' => 'separator1', 's2' => 'separator2', 's3' => 'separator3', 's4' => 'separator4', 's5' => 'separator5', 's6' => 'separator6', 's7' => 'separator7', 's8' => 'separator8', 's9' => 'separator9', 's10' => 'separator10', 's11' => 'separator11', 's12' => 'separator12', 's13' => 'separator13', 's14' => 'separator14', 's15' => 'separator15', 's16' => 'separator16', 's17' => 'separator17', 's18' => 'separator18', 's19' => 'separator19', 's20' => 'separator20' );
|
243 |
+
|
244 |
+
$buttons += $separators;
|
245 |
+
|
246 |
+
if ( isset( $_POST['tadv'] ) ) {
|
247 |
+
if( isset($_POST['save']) ) { ?><div class="updated" id="message"><p>Options saved</p></div><?php }
|
248 |
+
if( isset($_POST['reset']) ) { ?><div class="updated" id="message"><p>Defaults loaded</p></div><?php }
|
249 |
+
|
250 |
+
$tadv_options['refresh'] = '1';
|
251 |
+
update_option( 'tadv_options', $tadv_options );
|
252 |
+
} ?>
|
253 |
+
|
254 |
+
<div class="wrap">
|
255 |
+
<h2>TinyMCE Buttons Arrangement</h2>
|
256 |
+
|
257 |
+
<form id="tadvadmin" method="post" onsubmit="tadvSerializeAll();">
|
258 |
+
<p>Drag and drop buttons onto the toolbars below.</p>
|
259 |
+
|
260 |
+
<input id="toolbar-1order" name="toolbar-1order" value="" type="hidden" />
|
261 |
+
<input id="toolbar-2order" name="toolbar-2order" value="" type="hidden" />
|
262 |
+
<input id="toolbar-3order" name="toolbar-3order" value="" type="hidden" />
|
263 |
+
<input name="tadv" value="1" type="hidden" />
|
264 |
+
<div id="tadvzones">
|
265 |
+
|
266 |
+
<div class="tadvdropzone">
|
267 |
+
<ul style="position: relative;" id="toolbar-1">
|
268 |
+
<?php
|
269 |
+
if( is_array($tadv_toolbars['toolbar-1']) ) {
|
270 |
+
$tb1 = array();
|
271 |
+
foreach( $tadv_toolbars['toolbar-1'] as $k ) {
|
272 |
+
$t = array_intersect( $buttons, (array) $k );
|
273 |
+
$tb1 = $tb1 + $t;
|
274 |
+
}
|
275 |
+
|
276 |
+
foreach( $tb1 as $name => $btn ) {
|
277 |
+
if( strpos( $btn, 'eparator' ) ) { ?>
|
278 |
+
|
279 |
+
<li style="position: relative; top: 0px; left: 0px; z-index: 0; opacity: 0.999999;" class="separator" id="pre_<?php echo $btn; ?>">
|
280 |
+
<div class="tadvitem"><img src="<?php echo $imgpath . 'separator.gif'; ?>" alt="Separator" title="Separator" /></div></li>
|
281 |
+
<?php
|
282 |
+
} else { ?>
|
283 |
+
|
284 |
+
<li style="position: relative; top: 0px; left: 0px; z-index: 0; opacity: 0.999999;" class="tadvmodule" id="pre_<?php echo $btn; ?>">
|
285 |
+
<div class="tadvitem"><img src="<?php echo $imgpath . $btn . '.gif'; ?>" alt="<?php echo $name; ?>" title="<?php echo $name; ?>" />
|
286 |
+
<span class="descr"> <?php echo $name; ?></span></div></li>
|
287 |
+
<?php }
|
288 |
+
}
|
289 |
+
$buttons = array_diff( $buttons, $tb1 );
|
290 |
+
} ?>
|
291 |
+
|
292 |
+
</ul></div>
|
293 |
+
<br class="clear" />
|
294 |
+
|
295 |
+
<div class="tadvdropzone">
|
296 |
+
<ul style="position: relative;" id="toolbar-2">
|
297 |
+
<?php
|
298 |
+
if( is_array($tadv_toolbars['toolbar-2']) ) {
|
299 |
+
$tb2 = array();
|
300 |
+
foreach( $tadv_toolbars['toolbar-2'] as $k ) {
|
301 |
+
$t = array_intersect( $buttons, (array) $k );
|
302 |
+
$tb2 = $tb2 + $t;
|
303 |
+
}
|
304 |
+
foreach( $tb2 as $name => $btn ) {
|
305 |
+
if( strpos( $btn, 'eparator' ) ) { ?>
|
306 |
+
|
307 |
+
<li style="position: relative; top: 0px; left: 0px; z-index: 0; opacity: 0.999999;" class="separator" id="pre_<?php echo $btn; ?>">
|
308 |
+
<div class="tadvitem"><img src="<?php echo $imgpath . 'separator.gif'; ?>" alt="Separator" title="Separator" /></div></li>
|
309 |
+
<?php
|
310 |
+
} else { ?>
|
311 |
+
|
312 |
+
<li style="position: relative; top: 0px; left: 0px; z-index: 0; opacity: 0.999999;" class="tadvmodule" id="pre_<?php echo $btn; ?>">
|
313 |
+
<div class="tadvitem"><img src="<?php echo $imgpath . $btn . '.gif'; ?>" alt="<?php echo $name; ?>" title="<?php echo $name; ?>" />
|
314 |
+
<span class="descr"> <?php echo $name; ?></span></div></li>
|
315 |
+
<?php }
|
316 |
+
}
|
317 |
+
$buttons = array_diff( $buttons, $tb2 );
|
318 |
+
} ?>
|
319 |
+
|
320 |
+
</ul></div>
|
321 |
+
<br class="clear" />
|
322 |
+
|
323 |
+
<div class="tadvdropzone">
|
324 |
+
<ul style="position: relative;" id="toolbar-3">
|
325 |
+
<?php
|
326 |
+
if( is_array($tadv_toolbars['toolbar-3']) ) {
|
327 |
+
$tb3 = array();
|
328 |
+
foreach( $tadv_toolbars['toolbar-3'] as $k ) {
|
329 |
+
$t = array_intersect( $buttons, (array) $k );
|
330 |
+
$tb3 = $tb3 + $t;
|
331 |
+
}
|
332 |
+
foreach( $tb3 as $name => $btn ) {
|
333 |
+
if( strpos( $btn, 'eparator' ) ) { ?>
|
334 |
+
|
335 |
+
<li style="position: relative; top: 0px; left: 0px; z-index: 0; opacity: 0.999999;" class="separator" id="pre_<?php echo $btn; ?>">
|
336 |
+
<div class="tadvitem"><img src="<?php echo $imgpath . 'separator.gif'; ?>" alt="Separator" title="Separator" /></div></li>
|
337 |
+
<?php
|
338 |
+
} else { ?>
|
339 |
+
|
340 |
+
<li style="position: relative; top: 0px; left: 0px; z-index: 0; opacity: 0.999999;" class="tadvmodule" id="pre_<?php echo $btn; ?>">
|
341 |
+
<div class="tadvitem"><img src="<?php echo $imgpath . $btn . '.gif'; ?>" alt="<?php echo $name; ?>" title="<?php echo $name; ?>" />
|
342 |
+
<span class="descr"> <?php echo $name; ?></span></div></li>
|
343 |
+
<?php }
|
344 |
+
}
|
345 |
+
$buttons = array_diff( $buttons, $tb3 );
|
346 |
+
}
|
347 |
+
|
348 |
+
$tadv_btns4 = is_array($buttons) ? array_values($buttons) : array();
|
349 |
+
if( get_option('tadv_btns4') != $tadv_btns4 ) update_option( 'tadv_btns4', $tadv_btns4 ); ?>
|
350 |
+
|
351 |
+
</ul></div>
|
352 |
+
<br class="clear" />
|
353 |
+
</div>
|
354 |
+
|
355 |
+
<div id="tadvWarnmsg" ></div>
|
356 |
+
|
357 |
+
<div id="tadvpalettediv">
|
358 |
+
<ul style="position: relative;" id="tadvpalette">
|
359 |
+
<?php
|
360 |
+
if( is_array($buttons) ) {
|
361 |
+
foreach( $buttons as $name => $btn ) {
|
362 |
+
if( strpos( $btn, 'eparator' ) ) { ?>
|
363 |
+
|
364 |
+
<li style="position: relative; top: 0px; left: 0px; z-index: 0; opacity: 0.999999;" class="separator" id="pre_<?php echo $btn; ?>">
|
365 |
+
<div class="tadvitem"><img src="<?php echo $imgpath . 'separator.gif'; ?>" alt="Separator" title="Separator" /></div></li>
|
366 |
+
<?php
|
367 |
+
} else { ?>
|
368 |
+
|
369 |
+
<li style="position: relative; top: 0px; left: 0px; z-index: 0; opacity: 0.999999;" class="tadvmodule" id="pre_<?php echo $btn; ?>">
|
370 |
+
<div class="tadvitem"><img src="<?php echo $imgpath . $btn . '.gif'; ?>" alt="<?php echo $name; ?>" title="<?php echo $name; ?>" />
|
371 |
+
<span class="descr"> <?php echo $name; ?></span></div></li>
|
372 |
+
<?php }
|
373 |
+
}
|
374 |
+
} ?>
|
375 |
+
</ul>
|
376 |
+
</div>
|
377 |
+
|
378 |
+
<table class="clear" style="margin:10px 0"><tr><td style="padding:2px 12px 8px;">
|
379 |
+
Enable the
|
380 |
+
<label for="advlink" class="tadv-box">Advanced Link
|
381 |
+
<input type="checkbox" class="tadv-chk" name="advlink" id="advlink" <?php if ( $tadv_options['advlink'] == '1' ) echo ' checked="checked"'; ?> /></label> •
|
382 |
+
|
383 |
+
<label for="advimage" class="tadv-box">Advanced Image
|
384 |
+
<input type="checkbox" class="tadv-chk" name="advimage" id="advimage" <?php if ( $tadv_options['advimage'] == '1' ) echo ' checked="checked"'; ?> /></label> •
|
385 |
+
|
386 |
+
<label for="contextmenu" class="tadv-box">Context Menu
|
387 |
+
<input type="checkbox" class="tadv-chk" name="contextmenu" id="contextmenu" <?php if ( $tadv_options['contextmenu'] == '1' ) echo ' checked="checked"'; ?> /></label>
|
388 |
+
TinyMCE plugins.
|
389 |
+
</td></tr>
|
390 |
+
|
391 |
+
<tr><td style="border:1px solid #CD0000;padding:2px 12px 8px;">
|
392 |
+
<span style="font-weight:bold;color:#CD0000;">Advanced:</span> Import the names of the current theme's
|
393 |
+
<label for="importcss" class="tadv-box">CSS classes
|
394 |
+
<input type="checkbox" class="tadv-chk" name="importcss" id="importcss" <?php if ( $tadv_options['importcss'] == '1' ) echo ' checked="checked"'; ?> /></label>
|
395 |
+
or <a href="<?php echo bloginfo('wpurl'); ?>/wp-admin/templates.php?file=wp-content/plugins/tinymce-advanced/css/tadv-tinymce.css" >add the names of CSS classes</a> that are defined in your theme and you want them to appear in the "Styles" drop-down menu. You don't need to copy the whole CSS classes, just add their names, like: <code>.my-class{}</code>, <code>.my-other-class{}</code>, etc. (add each name on a new line).
|
396 |
+
</td></tr></table>
|
397 |
+
|
398 |
+
<script type="text/javascript">
|
399 |
+
// <![CDATA[
|
400 |
+
Sortable.create("toolbar-1", {
|
401 |
+
dropOnEmpty: true,
|
402 |
+
containment: ["tadvpalette","toolbar-1","toolbar-2","toolbar-3"],
|
403 |
+
starteffect: function(element){new Effect.Opacity(element, {duration:0, from:1.0, to:0.7}); },
|
404 |
+
endeffect: function(element){new Effect.Opacity(element, {duration:0, from:0.7, to:1.0}); },
|
405 |
+
overlap: 'horizontal',
|
406 |
+
constraint: false, onUpdate: tadvUpdateAll,
|
407 |
+
format: /^pre_(.*)$/
|
408 |
+
});
|
409 |
+
Sortable.create("toolbar-2", {
|
410 |
+
dropOnEmpty: true,
|
411 |
+
containment: ["tadvpalette","toolbar-1","toolbar-2","toolbar-3"],
|
412 |
+
starteffect: function(element){new Effect.Opacity(element, {duration:0, from:1.0, to:0.7}); },
|
413 |
+
endeffect: function(element){new Effect.Opacity(element, {duration:0, from:0.7, to:1.0}); },
|
414 |
+
overlap: 'horizontal',
|
415 |
+
constraint: false, onUpdate: tadvUpdateAll,
|
416 |
+
format: /^pre_(.*)$/
|
417 |
+
});
|
418 |
+
Sortable.create("toolbar-3", {
|
419 |
+
dropOnEmpty: true,
|
420 |
+
containment: ["tadvpalette","toolbar-1","toolbar-2","toolbar-3"],
|
421 |
+
starteffect: function(element){new Effect.Opacity(element, {duration:0, from:1.0, to:0.7}); },
|
422 |
+
endeffect: function(element){new Effect.Opacity(element, {duration:0, from:0.7, to:1.0}); },
|
423 |
+
overlap: 'horizontal',
|
424 |
+
constraint: false, onUpdate: tadvUpdateAll,
|
425 |
+
format: /^pre_(.*)$/
|
426 |
+
});
|
427 |
+
Sortable.create("tadvpalette", {
|
428 |
+
dropOnEmpty: true,
|
429 |
+
containment: ["tadvpalette","toolbar-1","toolbar-2","toolbar-3"],
|
430 |
+
starteffect: function(element){new Effect.Opacity(element, {duration:0, from:1.0, to:0.7}); },
|
431 |
+
endeffect: function(element){new Effect.Opacity(element, {duration:0, from:0.7, to:1.0}); },
|
432 |
+
overlap: 'horizontal',
|
433 |
+
constraint: false, onUpdate: tadvUpdateAll,
|
434 |
+
format: /^pre_(.*)$/
|
435 |
+
});
|
436 |
+
// ]]>
|
437 |
+
</script>
|
438 |
+
|
439 |
+
<p class="submit">
|
440 |
+
<?php wp_nonce_field( 'tadv-save-buttons-order' ); ?>
|
441 |
+
<input type="submit" name="reset" id="reset" value="<?php _e( 'Load Defaults' ); ?>" />
|
442 |
+
<input type="submit" name="save" id="save" value="<?php _e( 'Save Changes' ); ?>" />
|
443 |
+
</p>
|
444 |
+
</form>
|
445 |
+
|
446 |
+
<br class="clear" />
|
447 |
+
</div>
|
448 |
+
<?php
|
449 |
+
} } // end tadv_page
|
450 |
+
|
451 |
+
if( ! class_exists(tadv_mceClass) ) {
|
452 |
+
class tadv_mceClass {
|
453 |
+
var $extra_btns = array();
|
454 |
+
|
455 |
+
function tadv_mceClass() {
|
456 |
+
if( 'plugins.php' == basename($_SERVER['SCRIPT_FILENAME']) && $_GET['action'] == 'deactivate' && $_GET['plugin'] == 'tinymce-advanced/tinymce-advanced.php') $this->tadv_deactivate();
|
457 |
+
}
|
458 |
+
|
459 |
+
function tadv_mce_opt() {
|
460 |
+
?>
|
461 |
+
valid_child_elements : "table[thead|tbody|tfoot|tr|td|th],object[param|embed|%itrans|#text]",
|
462 |
+
extended_valid_elements : "object[*],param[name|value],embed[*]",
|
463 |
+
fix_table_elements : true,
|
464 |
+
convert_fonts_to_spans : true,
|
465 |
+
paste_auto_cleanup_on_paste : true,
|
466 |
+
<?php
|
467 |
+
$mce_locale = ( '' == get_locale() ) ? 'en' : strtolower(get_locale());
|
468 |
+
|
469 |
+
if ( $mce_locale != 'en' ) {
|
470 |
+
$p = get_option('tadv_plugins');
|
471 |
+
$plug = $p[0];
|
472 |
+
if( ! file_exists(ABSPATH . PLUGINDIR . '/tinymce-advanced/mce/' . $plug . '/langs/' . $mce_locale . '.js') ) {
|
473 |
+
if( file_exists(ABSPATH . PLUGINDIR . '/tinymce-advanced/mce/' . $plug . '/langs/' . substr($mce_locale, 0, 2) . '.js') )
|
474 |
+
$lang = substr($mce_locale, 0, 2);
|
475 |
+
else $lang = 'en';
|
476 |
+
}
|
477 |
+
}
|
478 |
+
if( isset($lang) ) echo 'language : "' . $lang . '",' . "\n";
|
479 |
+
}
|
480 |
+
|
481 |
+
function tdav_css($de) {
|
482 |
+
$tadv_options = get_option('tadv_options');
|
483 |
+
$dee = '';
|
484 |
+
|
485 |
+
if( $tadv_options['importcss'] == '1' )
|
486 |
+
$dee = get_bloginfo( 'stylesheet_url' ) . ', ';
|
487 |
+
|
488 |
+
$dee .= get_bloginfo( 'wpurl' ) . '/wp-content/plugins/tinymce-advanced/css/tadv-tinymce.css?r=' . $tadv_options['refresh'] . ', ' . $de;
|
489 |
+
|
490 |
+
return $dee;
|
491 |
+
}
|
492 |
+
|
493 |
+
function tadv_mce_plugins($plug) {
|
494 |
+
|
495 |
+
$tadv_plugins = (array) get_option('tadv_plugins');
|
496 |
+
return array_merge($plug, $tadv_plugins);
|
497 |
+
}
|
498 |
+
|
499 |
+
function tadv_mce_btns($orig) {
|
500 |
+
global $is_winIE;
|
501 |
+
|
502 |
+
$tadv_btns1 = (array) get_option('tadv_btns1');
|
503 |
+
|
504 |
+
$this->extra_btns = array_merge( (array) $this->extra_btns, (array) $orig );
|
505 |
+
$this->extra_btns = array_diff( $this->extra_btns, $tadv_btns1 );
|
506 |
+
|
507 |
+
if( $is_winIE ) $tadv_btns1 = array_diff( $tadv_btns1, array('media') );
|
508 |
+
|
509 |
+
return $tadv_btns1;
|
510 |
+
}
|
511 |
+
|
512 |
+
function tadv_mce_btns2($orig) {
|
513 |
+
global $is_winIE;
|
514 |
+
|
515 |
+
$tadv_btns2 = (array) get_option('tadv_btns2');
|
516 |
+
$tadv_btns4 = (array) get_option('tadv_btns4');
|
517 |
+
|
518 |
+
$orig = array_merge( (array) $this->extra_btns, (array) $orig );
|
519 |
+
$orig = array_diff( $orig, $tadv_btns2, $tadv_btns4, array('wp_adv_start', 'wp_adv', 'wp_adv_end', 'separator') );
|
520 |
+
|
521 |
+
if( ! empty($orig) )
|
522 |
+
$tadv_btns2 = array_merge($orig, $tadv_btns2);
|
523 |
+
|
524 |
+
if( $is_winIE ) $tadv_btns2 = array_diff( $tadv_btns2, array('media') );
|
525 |
+
|
526 |
+
return $tadv_btns2;
|
527 |
+
}
|
528 |
+
|
529 |
+
function tadv_mce_btns3($orig) {
|
530 |
+
|
531 |
+
if( is_array($orig) && ! empty($orig) )
|
532 |
+
$this->extra_btns = $orig;
|
533 |
+
|
534 |
+
return array();
|
535 |
+
}
|
536 |
+
|
537 |
+
function tadv_load_plugins() {
|
538 |
+
$tadv_plugins = (array) get_option('tadv_plugins');
|
539 |
+
$plugpath = get_bloginfo( 'wpurl' ) . '/wp-content/plugins/tinymce-advanced/mce/';
|
540 |
+
|
541 |
+
foreach( $tadv_plugins as $plug )
|
542 |
+
echo 'tinyMCE.loadPlugin( "' . $plug . '", "' . $plugpath . $plug . '" );' . "\n";
|
543 |
+
}
|
544 |
+
|
545 |
+
function tadv_refresh_mceconfig($loc) {
|
546 |
+
$tadv_options = get_option('tadv_options');
|
547 |
+
|
548 |
+
if( $tadv_options['refresh'] == '1' ) {
|
549 |
+
$tadv_options['refresh'] = rand(1000, 9999);
|
550 |
+
update_option( 'tadv_options', $tadv_options );
|
551 |
+
}
|
552 |
+
|
553 |
+
return $loc . '?r=' . $tadv_options['refresh'];
|
554 |
+
}
|
555 |
+
|
556 |
+
function tadv_activate() {
|
557 |
+
|
558 |
+
$tb1 = array( 'bold', 'italic', 'strikethrough', 'underline', 'separator1', 'bullist', 'numlist', 'outdent', 'indent', 'separator2', 'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'separator3', 'link', 'unlink', 'separator4', 'image', 'styleprops', 'separator12', 'wp_more', 'wp_page', 'separator5', 'spellchecker', 'search', 'separator6', 'wp_help', 'fullscreen' );
|
559 |
+
|
560 |
+
$tb2 = '';
|
561 |
+
|
562 |
+
$tb3 = array( 'styleselect', 'formatselect', 'paste', 'pastetext', 'pasteword', 'separator7', 'cleanup', 'separator8', 'charmap', 'print', 'separator9', 'emotions', 'separator10', 'sup', 'sub', 'separator11', 'undo', 'redo', 'attribs' );
|
563 |
+
|
564 |
+
$tadv_toolbars = array( 'toolbar-1' => $tb1, 'toolbar-2' => $tb2, 'toolbar-3' => $tb3 );
|
565 |
+
$tadv_options = array( 'advlink' => '1', 'advimage' => '1', 'importcss' => '1', 'refresh' => '1' );
|
566 |
+
$tadv_plugins = array( 'table', 'media', 'fullscreen', 'style', 'emotions', 'print', 'searchreplace', 'xhtmlxtras', 'advlink', 'advimage' );
|
567 |
+
$btns1 = array( 'bold', 'italic', 'strikethrough', 'underline', 'separator', 'bullist', 'numlist', 'outdent', 'indent', 'separator', 'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'separator', 'link', 'unlink', 'separator', 'image', 'styleprops', 'separator', 'wp_more', 'wp_page', 'separator', 'spellchecker', 'search', 'separator', 'wp_help', 'fullscreen', 'wp_adv', 'wp_adv_start', 'styleselect', 'formatselect', 'paste', 'pastetext', 'pasteword', 'separator', 'cleanup', 'separator', 'charmap', 'print', 'separator', 'emotions', 'separator', 'sup', 'sub', 'separator', 'undo', 'redo', 'attribs', 'wp_adv_end' );
|
568 |
+
|
569 |
+
add_option( 'tadv_toolbars', $tadv_toolbars, 'TinyMCE Advanced' );
|
570 |
+
add_option( 'tadv_options', $tadv_options, 'TinyMCE Advanced' );
|
571 |
+
add_option( 'tadv_plugins', $tadv_plugins, 'TinyMCE Advanced' );
|
572 |
+
add_option( 'tadv_btns1', $btns1, 'TinyMCE Advanced' );
|
573 |
+
add_option( 'tadv_btns2', array(), 'TinyMCE Advanced' );
|
574 |
+
add_option( 'tadv_btns4', array( 'forecolor', 'removeformat' ), 'TinyMCE Advanced' );
|
575 |
+
}
|
576 |
+
|
577 |
+
function tadv_deactivate() {
|
578 |
+
|
579 |
+
switch ($_GET['tadv_remove']) {
|
580 |
+
case 'all':
|
581 |
+
delete_option('tadv_options');
|
582 |
+
delete_option('tadv_toolbars');
|
583 |
+
delete_option('tadv_plugins');
|
584 |
+
delete_option('tadv_btns1');
|
585 |
+
delete_option('tadv_btns2');
|
586 |
+
delete_option('tadv_btns4');
|
587 |
+
break;
|
588 |
+
case 'none':
|
589 |
+
break;
|
590 |
+
default:
|
591 |
+
?>
|
592 |
+
<script language="JavaScript" type="text/javascript">
|
593 |
+
// <![CDATA[
|
594 |
+
var remove_options = confirm('Remove the TinyMCE Advanced toolbar buttons arrangement and options from the database?');
|
595 |
+
if (remove_options) {
|
596 |
+
window.location = "plugins.php?action=deactivate&plugin=tinymce-advanced/tinymce-advanced.php&tadv_remove=all&_wpnonce=<?php echo $_GET['_wpnonce']; ?>";
|
597 |
+
} else if (!remove_options) {
|
598 |
+
window.location = "plugins.php?action=deactivate&plugin=tinymce-advanced/tinymce-advanced.php&tadv_remove=none&_wpnonce=<?php echo $_GET['_wpnonce']; ?>";
|
599 |
+
}
|
600 |
+
// ]]>
|
601 |
+
</script>
|
602 |
+
<?php
|
603 |
+
exit;
|
604 |
+
}
|
605 |
+
}
|
606 |
+
|
607 |
+
} } //end tadv_mceClass
|
608 |
+
|
609 |
+
function tadv_menu() {
|
610 |
+
if( function_exists('add_management_page') )
|
611 |
+
$page = add_management_page( 'TinyMCE Advanced', 'TinyMCE Advanced', 10, __FILE__, 'tadv_page' );
|
612 |
+
add_action("admin_print_scripts-$page", 'tadv_admin_head');
|
613 |
+
}
|
614 |
+
|
615 |
+
if ( class_exists("tadv_mceClass") ) {
|
616 |
+
$tadv_mce = new tadv_mceClass();
|
617 |
+
|
618 |
+
add_action( 'tinymce_before_init', array(&$tadv_mce, 'tadv_load_plugins') );
|
619 |
+
add_filter( 'mce_css', array(&$tadv_mce, 'tdav_css') );
|
620 |
+
add_filter( 'tiny_mce_config_url', array(&$tadv_mce, 'tadv_refresh_mceconfig') );
|
621 |
+
add_action( 'mce_options', array(&$tadv_mce, 'tadv_mce_opt') );
|
622 |
+
add_filter( 'mce_plugins', array(&$tadv_mce, 'tadv_mce_plugins'), 99 );
|
623 |
+
add_filter( 'mce_buttons_3', array(&$tadv_mce, 'tadv_mce_btns3'), 99 );
|
624 |
+
add_filter( 'mce_buttons', array(&$tadv_mce, 'tadv_mce_btns'), 99 );
|
625 |
+
add_filter( 'mce_buttons_2', array(&$tadv_mce, 'tadv_mce_btns2'), 99 );
|
626 |
+
add_action( 'activate_tinymce-advanced/tinymce-advanced.php', array(&$tadv_mce, 'tadv_activate') );
|
627 |
+
// add_action( 'deactivate_tinymce-advanced/tinymce-advanced.php', array(&$tadv_mce, 'tadv_deactivate') );
|
628 |
+
}
|
629 |
+
add_action( 'admin_menu', 'tadv_menu' );
|
630 |
+
?>
|
tinymce-advanced/tinymce.css
DELETED
@@ -1,23 +0,0 @@
|
|
1 |
-
|
2 |
-
body {
|
3 |
-
color: #000000;
|
4 |
-
}
|
5 |
-
p {
|
6 |
-
text-align: left;
|
7 |
-
}
|
8 |
-
a {
|
9 |
-
color: blue;
|
10 |
-
}
|
11 |
-
ul, ol {
|
12 |
-
margin : 10px 0 10px 20px;
|
13 |
-
}
|
14 |
-
ul li {
|
15 |
-
list-style : disc;
|
16 |
-
}
|
17 |
-
ol li {
|
18 |
-
list-style : decimal;
|
19 |
-
}
|
20 |
-
ul li, ol li {
|
21 |
-
margin : 0.5em 0;
|
22 |
-
}
|
23 |
-
.shutter {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|