From 00d46f6148fcb5d7bff229f0d927bc2982985739 Mon Sep 17 00:00:00 2001
From: JT Smith
Date: Sat, 15 Apr 2006 20:03:31 +0000
Subject: [PATCH] upgrading tinymce to 2.0.5.1
---
www/extras/tinymce2/changelog | 153 +
www/extras/tinymce2/docs/about.html | 4 +-
.../tinymce2/docs/compatiblity_chart.html | 2 +-
www/extras/tinymce2/docs/credits.html | 3 +-
www/extras/tinymce2/docs/css/screen.css | 47 +-
.../docs/customization_language_packs.html | 10 +-
.../tinymce2/docs/customization_plugins.html | 409 +-
.../tinymce2/docs/customization_themes.html | 561 +-
www/extras/tinymce2/docs/faq.html | 112 +-
www/extras/tinymce2/docs/index.html | 2 +-
.../docs/installation_example_00.html | 2 +-
.../docs/installation_example_01.html | 2 +-
.../docs/installation_example_02.html | 2 +-
.../docs/installation_example_03.html | 2 +-
www/extras/tinymce2/docs/installing.html | 2 +-
www/extras/tinymce2/docs/license.html | 2 +-
.../docs/option_accessibility_warnings.html | 2 +-
.../docs/option_add_form_submit_trigger.html | 2 +-
.../docs/option_add_unload_trigger.html | 2 +-
.../docs/option_apply_source_formatting.html | 2 +-
www/extras/tinymce2/docs/option_ask.html | 2 +-
.../tinymce2/docs/option_auto_focus.html | 2 +-
.../docs/option_auto_reset_designmode.html | 2 +-
.../tinymce2/docs/option_auto_resize.html | 2 +-
www/extras/tinymce2/docs/option_browsers.html | 2 +-
.../tinymce2/docs/option_button_tile_map.html | 2 +-
www/extras/tinymce2/docs/option_cleanup.html | 4 +-
.../docs/option_cleanup_callback.html | 2 +-
.../docs/option_cleanup_on_startup.html | 2 +-
.../tinymce2/docs/option_content_css.html | 4 +-
.../docs/option_convert_fonts_to_spans.html | 2 +-
.../docs/option_convert_newlines_to_brs.html | 2 +-
.../tinymce2/docs/option_convert_urls.html | 4 +-
.../docs/option_custom_undo_redo.html | 2 +-
...n_custom_undo_redo_keyboard_shortcuts.html | 2 +-
.../docs/option_custom_undo_redo_levels.html | 2 +-
www/extras/tinymce2/docs/option_debug.html | 2 +-
.../tinymce2/docs/option_dialog_type.html | 2 +-
.../tinymce2/docs/option_directionality.html | 2 +-
.../tinymce2/docs/option_docs_language.html | 2 +-
www/extras/tinymce2/docs/option_doctype.html | 2 +-
.../docs/option_document_base_url.html | 2 +-
.../tinymce2/docs/option_editor_css.html | 2 +-
.../docs/option_editor_deselector.html | 2 +-
.../tinymce2/docs/option_editor_selector.html | 2 +-
www/extras/tinymce2/docs/option_elements.html | 2 +-
www/extras/tinymce2/docs/option_encoding.html | 2 +-
www/extras/tinymce2/docs/option_entities.html | 2 +-
.../tinymce2/docs/option_entity_encoding.html | 2 +-
.../tinymce2/docs/option_event_elements.html | 2 +-
.../docs/option_extended_valid_elements.html | 2 +-
.../docs/option_external_image_list_url.html | 2 +-
.../docs/option_external_link_list_url.html | 2 +-
.../docs/option_file_browser_callback.html | 2 +-
.../docs/option_fix_content_duplication.html | 2 +-
.../tinymce2/docs/option_focus_alert.html | 2 +-
.../docs/option_font_size_classes.html | 2 +-
.../docs/option_font_size_style_values.html | 2 +-
.../docs/option_force_br_newlines.html | 4 +-
.../docs/option_force_hex_style_colors.html | 2 +-
.../docs/option_force_p_newlines.html | 2 +-
www/extras/tinymce2/docs/option_height.html | 2 +-
.../docs/option_init_instance_callback.html | 2 +-
.../tinymce2/docs/option_inline_styles.html | 2 +-
.../docs/option_insertimage_callback.html | 9 +-
.../docs/option_insertlink_callback.html | 9 +-
.../docs/option_invalid_elements.html | 2 +-
www/extras/tinymce2/docs/option_language.html | 2 +-
.../option_merge_styles_invalid_parents.html | 2 +-
www/extras/tinymce2/docs/option_mode.html | 2 +-
www/extras/tinymce2/docs/option_nowrap.html | 2 +-
.../tinymce2/docs/option_object_resizing.html | 2 +-
.../docs/option_onchange_callback.html | 2 +-
www/extras/tinymce2/docs/option_oninit.html | 2 +-
www/extras/tinymce2/docs/option_plugins.html | 7 +-
.../tinymce2/docs/option_popups_css.html | 2 +-
.../tinymce2/docs/option_preformatted.html | 2 +-
.../tinymce2/docs/option_relative_urls.html | 2 +-
.../docs/option_remove_linebreaks.html | 2 +-
.../docs/option_remove_script_host.html | 2 +-
.../tinymce2/docs/option_save_callback.html | 4 +-
.../docs/option_setupcontent_callback.html | 2 +-
.../tinymce2/docs/option_submit_patch.html | 2 +-
.../docs/option_table_inline_editing.html | 2 +-
.../docs/option_textarea_trigger.html | 2 +-
www/extras/tinymce2/docs/option_theme.html | 4 +-
.../option_theme_advanced_blockformats.html | 6 +-
.../docs/option_theme_advanced_buttons_n.html | 4 +-
.../option_theme_advanced_buttons_n_add.html | 4 +-
...n_theme_advanced_buttons_n_add_before.html | 4 +-
.../docs/option_theme_advanced_container.html | 2 +-
...option_theme_advanced_container_align.html | 2 +-
...option_theme_advanced_container_class.html | 2 +-
.../option_theme_advanced_containers.html | 2 +-
...eme_advanced_containers_default_align.html | 2 +-
...eme_advanced_containers_default_class.html | 2 +-
.../option_theme_advanced_custom_layout.html | 2 +-
.../docs/option_theme_advanced_disable.html | 2 +-
.../docs/option_theme_advanced_fonts.html | 2 +-
.../option_theme_advanced_layout_manager.html | 2 +-
.../option_theme_advanced_link_targets.html | 2 +-
.../docs/option_theme_advanced_path.html | 2 +-
.../option_theme_advanced_path_location.html | 2 +-
...tion_theme_advanced_resize_horizontal.html | 2 +-
.../docs/option_theme_advanced_resizing.html | 2 +-
...on_theme_advanced_resizing_use_cookie.html | 2 +-
...n_theme_advanced_source_editor_height.html | 2 +-
...on_theme_advanced_source_editor_width.html | 2 +-
...ion_theme_advanced_statusbar_location.html | 2 +-
.../docs/option_theme_advanced_styles.html | 2 +-
.../option_theme_advanced_toolbar_align.html | 2 +-
...ption_theme_advanced_toolbar_location.html | 2 +-
.../docs/option_trim_span_elements.html | 2 +-
.../docs/option_urlconverter_callback.html | 4 +-
.../tinymce2/docs/option_valid_elements.html | 9 +-
.../docs/option_verify_css_classes.html | 4 +-
.../tinymce2/docs/option_verify_html.html | 2 +-
www/extras/tinymce2/docs/option_visual.html | 2 +-
.../docs/option_visual_table_class.html | 2 +-
www/extras/tinymce2/docs/option_width.html | 2 +-
www/extras/tinymce2/docs/plugin_advhr.html | 2 +-
www/extras/tinymce2/docs/plugin_advimage.html | 5 +-
www/extras/tinymce2/docs/plugin_advlink.html | 5 +-
www/extras/tinymce2/docs/plugin_autosave.html | 2 +-
.../tinymce2/docs/plugin_contextmenu.html | 2 +-
.../tinymce2/docs/plugin_directionality.html | 2 +-
www/extras/tinymce2/docs/plugin_emotions.html | 2 +-
www/extras/tinymce2/docs/plugin_flash.html | 2 +-
.../tinymce2/docs/plugin_fullscreen.html | 2 +-
www/extras/tinymce2/docs/plugin_iespell.html | 2 +-
.../tinymce2/docs/plugin_inlinepopups.html | 2 +-
.../tinymce2/docs/plugin_insertdatetime.html | 2 +-
.../tinymce2/docs/plugin_noneditable.html | 2 +-
www/extras/tinymce2/docs/plugin_paste.html | 36 +-
www/extras/tinymce2/docs/plugin_preview.html | 2 +-
www/extras/tinymce2/docs/plugin_print.html | 2 +-
www/extras/tinymce2/docs/plugin_save.html | 25 +-
.../tinymce2/docs/plugin_searchreplace.html | 2 +-
www/extras/tinymce2/docs/plugin_table.html | 10 +-
www/extras/tinymce2/docs/plugin_zoom.html | 2 +-
.../tinymce2/docs/reference_buttons.html | 19 +-
.../docs/reference_configuration.html | 11 +-
.../docs/reference_javascript_functions.html | 12 +-
.../tinymce2/docs/reference_plugins.html | 5 +-
.../tinymce2/examples/example_advanced.htm | 59 +-
www/extras/tinymce2/examples/example_full.htm | 14 +-
.../tinymce2/examples/example_simple.htm | 5 +-
www/extras/tinymce2/examples/example_word.css | 14 +-
www/extras/tinymce2/examples/example_word.htm | 5 +-
.../tinymce2/jscripts/tiny_mce/langs/da.js | 28 +-
.../tinymce2/jscripts/tiny_mce/langs/de.js | 4 +-
.../tinymce2/jscripts/tiny_mce/langs/it.js | 2 +-
.../jscripts/tiny_mce/langs/readme.txt | 5 +
.../tinymce2/jscripts/tiny_mce/langs/zh_cn.js | 3 +-
.../plugins/_template/editor_plugin.js | 119 +-
.../plugins/_template/editor_plugin_src.js | 338 +-
.../tiny_mce/plugins/_template/langs/zh_cn.js | 3 +-
.../tiny_mce/plugins/advhr/editor_plugin.js | 2 +-
.../plugins/advhr/editor_plugin_src.js | 161 +-
.../tiny_mce/plugins/advhr/jscripts/rule.js | 2 +-
.../tiny_mce/plugins/advhr/langs/cs.js | 2 +-
.../tiny_mce/plugins/advhr/langs/da.js | 6 +-
.../tiny_mce/plugins/advhr/langs/en.js | 2 +-
.../tiny_mce/plugins/advhr/langs/zh_cn.js | 3 +-
.../jscripts/tiny_mce/plugins/advhr/rule.htm | 64 +-
.../plugins/advimage/css/advimage.css | 6 +-
.../plugins/advimage/editor_plugin.js | 2 +-
.../plugins/advimage/editor_plugin_src.js | 257 +-
.../plugins/advimage/jscripts/functions.js | 2 +-
.../tiny_mce/plugins/advimage/langs/cs.js | 37 +-
.../tiny_mce/plugins/advimage/langs/da.js | 9 +-
.../tiny_mce/plugins/advimage/langs/fr.js | 68 +-
.../tiny_mce/plugins/advimage/langs/zh_cn.js | 5 +-
.../tiny_mce/plugins/advlink/editor_plugin.js | 2 +-
.../plugins/advlink/editor_plugin_src.js | 153 +-
.../plugins/advlink/jscripts/functions.js | 10 +-
.../tiny_mce/plugins/advlink/langs/cs.js | 65 +-
.../tiny_mce/plugins/advlink/langs/da.js | 32 +-
.../tiny_mce/plugins/advlink/langs/nb.js | 3 +-
.../tiny_mce/plugins/advlink/langs/nl.js | 2 +-
.../tiny_mce/plugins/advlink/langs/zh_cn.js | 5 +-
.../tiny_mce/plugins/advlink/link.htm | 2 +-
.../plugins/autosave/editor_plugin.js | 2 +-
.../plugins/autosave/editor_plugin_src.js | 70 +-
.../tiny_mce/plugins/autosave/langs/cs.js | 2 +-
.../tiny_mce/plugins/autosave/langs/da.js | 4 +-
.../tiny_mce/plugins/autosave/langs/zh_cn.js | 3 +-
.../plugins/contextmenu/css/contextmenu.css | 36 +-
.../plugins/contextmenu/editor_plugin.js | 2 +-
.../plugins/contextmenu/editor_plugin_src.js | 524 +-
.../plugins/directionality/editor_plugin.js | 2 +-
.../directionality/editor_plugin_src.js | 167 +-
.../plugins/directionality/langs/cs.js | 2 +-
.../plugins/directionality/langs/da.js | 6 +-
.../plugins/directionality/langs/zh_cn.js | 3 +-
.../plugins/emotions/editor_plugin.js | 2 +-
.../plugins/emotions/editor_plugin_src.js | 110 +-
.../plugins/emotions/images/emotions.gif | Bin 357 -> 319 bytes
.../plugins/emotions/jscripts/functions.js | 4 +-
.../tiny_mce/plugins/emotions/langs/da.js | 14 +-
.../tiny_mce/plugins/emotions/langs/zh_cn.js | 31 +-
.../tiny_mce/plugins/flash/editor_plugin.js | 2 +-
.../plugins/flash/editor_plugin_src.js | 451 +-
.../tiny_mce/plugins/flash/langs/cs.js | 16 +-
.../tiny_mce/plugins/flash/langs/da.js | 8 +-
.../tiny_mce/plugins/flash/langs/zh_cn.js | 3 +-
.../plugins/fullscreen/editor_plugin.js | 2 +-
.../plugins/fullscreen/editor_plugin_src.js | 102 +-
.../plugins/fullscreen/fullscreen.htm | 24 +-
.../tiny_mce/plugins/fullscreen/langs/cs.js | 2 +-
.../tiny_mce/plugins/fullscreen/langs/da.js | 6 +-
.../plugins/fullscreen/langs/zh_cn.js | 3 +-
.../tiny_mce/plugins/iespell/editor_plugin.js | 2 +-
.../plugins/iespell/editor_plugin_src.js | 91 +-
.../tiny_mce/plugins/iespell/langs/cs.js | 2 +-
.../tiny_mce/plugins/iespell/langs/da.js | 4 +-
.../tiny_mce/plugins/iespell/langs/zh_cn.js | 3 +-
.../plugins/inlinepopups/css/inlinepopup.css | 4 +-
.../plugins/inlinepopups/editor_plugin.js | 2 +-
.../plugins/inlinepopups/editor_plugin_src.js | 95 +-
.../plugins/insertdatetime/editor_plugin.js | 2 +-
.../insertdatetime/editor_plugin_src.js | 159 +-
.../plugins/insertdatetime/langs/cs.js | 6 +-
.../plugins/insertdatetime/langs/da.js | 10 +-
.../plugins/insertdatetime/langs/zh_cn.js | 3 +-
.../plugins/noneditable/css/noneditable.css | 4 +-
.../plugins/noneditable/editor_plugin.js | 2 +-
.../plugins/noneditable/editor_plugin_src.js | 277 +-
.../tiny_mce/plugins/paste/editor_plugin.js | 2 +-
.../plugins/paste/editor_plugin_src.js | 649 +-
.../tiny_mce/plugins/paste/langs/cs.js | 2 +-
.../tiny_mce/plugins/paste/langs/da.js | 12 +-
.../tiny_mce/plugins/paste/langs/zh_cn.js | 3 +-
.../tiny_mce/plugins/preview/editor_plugin.js | 2 +-
.../plugins/preview/editor_plugin_src.js | 158 +-
.../tiny_mce/plugins/preview/langs/cs.js | 2 +-
.../tiny_mce/plugins/preview/langs/zh_cn.js | 3 +-
.../tiny_mce/plugins/print/editor_plugin.js | 2 +-
.../plugins/print/editor_plugin_src.js | 80 +-
.../tiny_mce/plugins/print/langs/zh_cn.js | 4 +-
.../tiny_mce/plugins/save/editor_plugin.js | 2 +-
.../plugins/save/editor_plugin_src.js | 169 +-
.../tiny_mce/plugins/save/langs/cs.js | 2 +-
.../tiny_mce/plugins/save/langs/zh_cn.js | 4 +-
.../plugins/searchreplace/editor_plugin.js | 2 +-
.../searchreplace/editor_plugin_src.js | 330 +-
.../plugins/searchreplace/jscripts/replace.js | 6 +-
.../plugins/searchreplace/langs/cs.js | 2 +-
.../plugins/searchreplace/langs/da.js | 22 +-
.../plugins/searchreplace/langs/en.js | 4 +-
.../plugins/searchreplace/langs/zh_cn.js | 3 +-
.../plugins/searchreplace/replace.htm | 4 +-
.../jscripts/tiny_mce/plugins/table/cell.htm | 2 +-
.../tiny_mce/plugins/table/editor_plugin.js | 2 +-
.../plugins/table/editor_plugin_src.js | 1865 +--
.../tiny_mce/plugins/table/jscripts/cell.js | 5 +
.../tiny_mce/plugins/table/jscripts/row.js | 5 +
.../tiny_mce/plugins/table/jscripts/table.js | 28 +-
.../tiny_mce/plugins/table/langs/cs.js | 119 +-
.../tiny_mce/plugins/table/langs/da.js | 51 +-
.../tiny_mce/plugins/table/langs/de.js | 2 +-
.../tiny_mce/plugins/table/langs/en.js | 3 +
.../tiny_mce/plugins/table/langs/it.js | 10 +-
.../tiny_mce/plugins/table/langs/readme.txt | 8 +-
.../tiny_mce/plugins/table/langs/sv.js | 3 +
.../tiny_mce/plugins/table/langs/zh_cn.js | 3 +-
.../jscripts/tiny_mce/plugins/table/row.htm | 2 +-
.../jscripts/tiny_mce/plugins/table/table.htm | 2 +-
.../tiny_mce/plugins/zoom/editor_plugin.js | 12 +-
.../plugins/zoom/editor_plugin_src.js | 99 +-
.../tiny_mce/themes/advanced/about.htm | 3 +-
.../tiny_mce/themes/advanced/color_picker.htm | 2 +-
.../themes/advanced/css/editor_content.css | 38 +-
.../themes/advanced/css/editor_popup.css | 40 +-
.../themes/advanced/css/editor_ui.css | 301 +-
.../advanced/docs/cs/common_buttons.htm | 14 +-
.../themes/advanced/docs/cs/style.css | 4 +-
.../themes/advanced/docs/da/about.htm | 40 +-
.../advanced/docs/da/common_buttons.htm | 110 +-
.../docs/da/create_accessible_content.htm | 90 +-
.../themes/advanced/docs/da/index.htm | 30 +-
.../advanced/docs/da/insert_anchor_button.htm | 44 +-
.../advanced/docs/da/insert_image_button.htm | 52 +-
.../advanced/docs/da/insert_link_button.htm | 46 +-
.../advanced/docs/da/insert_table_button.htm | 46 +-
.../themes/advanced/docs/da/style.css | 6 +-
.../themes/advanced/docs/de/style.css | 4 +-
.../advanced/docs/en/common_buttons.htm | 14 +-
.../themes/advanced/docs/en/style.css | 4 +-
.../advanced/docs/es/common_buttons.htm | 14 +-
.../themes/advanced/docs/es/style.css | 4 +-
.../advanced/docs/fi/common_buttons.htm | 14 +-
.../themes/advanced/docs/fi/style.css | 4 +-
.../advanced/docs/fr/common_buttons.htm | 14 +-
.../themes/advanced/docs/fr/style.css | 4 +-
.../advanced/docs/fr_ca/common_buttons.htm | 14 +-
.../themes/advanced/docs/fr_ca/style.css | 4 +-
.../themes/advanced/docs/hu/style.css | 4 +-
.../advanced/docs/it/common_buttons.htm | 14 +-
.../themes/advanced/docs/it/style.css | 4 +-
.../advanced/docs/nb/common_buttons.htm | 14 +-
.../themes/advanced/docs/nb/style.css | 4 +-
.../advanced/docs/nl/common_buttons.htm | 14 +-
.../themes/advanced/docs/nl/style.css | 4 +-
.../advanced/docs/nn/common_buttons.htm | 14 +-
.../themes/advanced/docs/nn/style.css | 4 +-
.../advanced/docs/pl/common_buttons.htm | 14 +-
.../themes/advanced/docs/pl/style.css | 4 +-
.../advanced/docs/sk/common_buttons.htm | 14 +-
.../themes/advanced/docs/sk/style.css | 4 +-
.../advanced/docs/sv/common_buttons.htm | 14 +-
.../themes/advanced/docs/sv/style.css | 4 +-
.../advanced/docs/zh_cn/common_buttons.htm | 14 +-
.../themes/advanced/docs/zh_cn/style.css | 4 +-
.../themes/advanced/editor_template.js | 24 +-
.../themes/advanced/editor_template_src.js | 2387 ++--
.../tiny_mce/themes/advanced/image.htm | 75 +-
.../themes/advanced/images/buttons.gif | Bin 3286 -> 8399 bytes
.../themes/advanced/jscripts/about.js | 13 +-
.../themes/advanced/jscripts/anchor.js | 21 +-
.../themes/advanced/jscripts/charmap.js | 10 +-
.../themes/advanced/jscripts/color_picker.js | 3 +-
.../themes/advanced/jscripts/image.js | 2 +-
.../tiny_mce/themes/advanced/jscripts/link.js | 17 +-
.../themes/advanced/jscripts/source_editor.js | 20 +-
.../tiny_mce/themes/advanced/langs/da.js | 57 +-
.../tiny_mce/themes/advanced/langs/de.js | 3 +-
.../tiny_mce/themes/advanced/langs/readme.txt | 8 +-
.../tiny_mce/themes/advanced/langs/zh_cn.js | 3 +-
.../tiny_mce/themes/advanced/link.htm | 72 +-
.../themes/advanced/source_editor.htm | 2 +-
.../themes/simple/css/editor_content.css | 32 +-
.../themes/simple/css/editor_popup.css | 2 +-
.../tiny_mce/themes/simple/css/editor_ui.css | 137 +-
.../tiny_mce/themes/simple/editor_template.js | 24 +-
.../themes/simple/editor_template_src.js | 138 +-
.../tinymce2/jscripts/tiny_mce/tiny_mce.js | 4 +-
.../jscripts/tiny_mce/tiny_mce_popup.js | 77 +-
.../jscripts/tiny_mce/tiny_mce_src.js | 11054 ++++++++--------
.../jscripts/tiny_mce/utils/form_utils.js | 32 +-
.../jscripts/tiny_mce/utils/mctabs.js | 6 +-
.../jscripts/tiny_mce/utils/validate.js | 6 +-
342 files changed, 13043 insertions(+), 11487 deletions(-)
diff --git a/www/extras/tinymce2/changelog b/www/extras/tinymce2/changelog
index a168739e1..693f78fe0 100644
--- a/www/extras/tinymce2/changelog
+++ b/www/extras/tinymce2/changelog
@@ -1,3 +1,156 @@
+Version 2.0.5.1 (2005-03-22)
+ Fixed bug where emtpy paragraphs sometimes got removed in MSIE.
+ Fixed bug where autosave plugin was running even in fullscreen mode.
+ Fixed bug where browse and color image button urls in form_utils.js where hardcoded.
+Version 2.0.5 (2005-03-21)
+ Added API docs for the TinyMCE_Popup class that is used by all dialogs in TinyMCE.
+ Added new TinyMCE_Layer class to the core of TinyMCE plugins will be using this later on.
+ Added new loadPlugin function, use this to load external plugins.
+ Added instructions on how to contribute language packs.
+ Added new support for multiple content_css files, based on contribution by Man-Chicken.
+ Added new table_cell_limit, table_row_limit, table_col_limit options, based on contribution by Man-Chicken.
+ Added new fix_list_elements option, if this is set to true UL/OL lists will be forced XHTML valid on cleanup.
+ Added new fix_table_elements, if this is set to true tables will be moved outside paragraphs.
+ Fixed so input and button as closed elements in the cleanup logic.
+ Fixed so the mceButtonSelected is more visible with darker background in the editor_ui.css.
+ Fixed issue where charmap.js was calling switchClass that's reserved for buttons.
+ Fixed issue where the directionality option wasn't used in the preview plugin.
+ Fixed issues with nestled bullet lists pasted from Word 2003.
+ Fixed bug where button wasn't selected correctly in MSIE due to a CSS issue.
+ Fixed bug where ask mode wasn't working on DIV elements in Firefox and Opera.
+ Fixed bug where the mceAddFrameControl command wasn't working correctly.
+ Fixed bug where language packs wasn't imported correctly in plugins loaded externaly.
+ Fixed bug where focusing external input elements was visible in element path under MSIE.
+ Fixed bug where fullscreen plugin wasn't opening the window fullscreen in Firefox.
+ Fixed bug where style select dropdown wasn't working in Firefox when used in fullscreen mode.
+ Fixed bug where the fix_content_duplication wasn't working anymore.
+ Fixed bug where MSIE sometimes generated empty paragraphs.
+ Fixed bug where MSIE sometimes generated tags like /tag>.
+ Fixed bug where the directionality option produced a error for the color picker dialog.
+ Fixed bug where configured callback options wasn't executed correctly in fullscreen mode.
+ Fixed bug where tags got generated as <*> some times in Gecko.
+ Fixed bug where the cursor was placed within a the anchor when inserting a new one in Gecko.
+ Fixed bug where convert_fonts_to_span option wasn't working correctly with new cleanup engine.
+ Fixed various language pack issues such as invalid characters.
+ Fixed naming conflict with zoom plugin and the format select box.
+ Fixed so that the initialization of the editor is slightly faster.
+ Removed all language packs except the english one from the core package. [BREAKS COMPATIBLITY]
+Version 2.0.4 (2006-02-24)
+ Fixed bug where fullscreen plugin was using the tinymce_dev.js script.
+ Fixed bug where events where having a return true; statement infront of them.
+ Fixed bug where theme_advanced_toolbar_location option wasn't working.
+ Fixed bug where select lists wasn't working if you touched them with the tab key.
+ Fixed bug where auto reset design mode wasn't working correctly.
+ Fixed bug where null was inserted in paste button action in MSIE.
+ Fixed bug where _template plugin had a , instead of . character on e.type.
+ Fixed bug where src, href where replaced to xsrc and xhref in comments.
+ Fixed bug where paste_cleanup_on_paste option wasn't working correctly with the paste plugin.
+ Fixed bug where MSIE was reporting an error when TinyMCE was placed in a frame and not focused.
+ Fixed bug where clipboard_msg wasn't entity decoded corectly before displaying it in confirm box.
+ Fixed bug where mceRemoveControl wasn't working correctly on DIV elements.
+ Fixed bug where mceInsertContent/mceReplaceContent produced error when a empty string was inserted.
+ Fixed so the default valid_elements option is more XHTML valid.
+ Fixed issue where style formatting wasn't handled when pasting content from Word.
+ Fixed issue where ' characters wasn't entity encoded, they are now encoded into ' and not '.
+ Fixed issue with empty paragraphs, these are now filled with &nsbp; if they are empty.
+ Added documentation on how the # prefix can be used in the valid_elements option.
+ Added new options paste_remove_styles and paste_remove_spans to paste plugin.
+ Added possibility to have empty default attributes values.
+Version 2.0.3 (2006-02-13)
+ Added missing buttons to button reference page in documentation.
+ Added dt,dl,dd elements to default_valid elements config value.
+ Added new support for self registrering plugins.
+ Added new callback for themes and plugins handleEvent and the handle_event_callback option.
+ Added new execcommand_callback option, this enables you to add custom execcommand logic on page level.
+ Added new custom_shortcuts option, this enables you to disable plugin/theme specific keyboard shortcuts.
+ Added new addShortcut to TinyMCE_Control, this enables plugin to register custom keyboard shortcuts.
+ Added new getButtonHTML function to TinyMCE core, this function makes it easier for plugins/themes to make buttons.
+ Added more documentation on how to write plugins and updated the _template plugin.
+ Added more documentation on how to write custom themes.
+ Fixed so the default window size of the source editor is larger in the advanced theme.
+ Fixed so all internal plugins use the new auto registration and separation logic.
+ Fixed so all internal themes use the new auto registration and separation logic.
+ Fixed so the Safari warning is switched off by default.
+ Fixed so cursor position isn't moved when performing a cleanup.
+ Fixed so cursor position is correct when performing undo/redo actions.
+ Fixed so all themes/plugins now use a:hover to produce the mouse over button effect.
+ Fixed so it uses the DOMContentLoaded and onreadystatechange instead of onload.
+ Fixed so the simple theme also supports the button_tile_map option.
+ Fixed so the selection/cursor is moved to the beginning of area on search/replace.
+ Fixed callback handling to reduce logic, improve performance and flexibility.
+ Fixed documentarion error for the paste plugin, contributed by Jochen Metzger.
+ Fixed bug that made the cleanup process to hang MSIE on specific content.
+ Fixed bug with absolute to relative URL convertion logic if the absolute URL didn't have a path.
+ Fixed bug where about.htm in advanced theme refered to a non existing css file.
+ Fixed bug with defParam and the event_elements option.
+ Fixed bug where fullscreen plugin wasn't correctly setup with editor contents.
+ Fixed bug where paste/drop converted relative URLs incorrectly in MSIE.
+ Fixed bug with inlinepopups not restoring selection on close window in MSIE.
+ Fixed bug where selection was lost when a new column/row was inserted in a table running in Gecko.
+ Fixed bug where save plugin wasn't working in fullscreen mode.
+ Fixed bug where fullscreen plugin wasn't working in Opera.
+ Fixed bug where editor resizing in advanced theme wasn't working in Opera.
+ Fixed bug where cursor position was placed at the end of instance on word paste.
+ Fixed bug where a tinyMCE is undefined error was reported in Firefox.
+ Fixed compatiblity issues with new cleanup plugin and the prototype.js library.
+ Renamed the mceItemEditable/mceItemNonEditable to mceEditable/mceNonEditable.
+ Renamed the TinyMCEControl class to TinyMCE_Control, TinyMCE_ is the valid class prefix.
+ Removed the getInsertLinkTemplate and getInsertImageTemplate functions from themes and from API.
+ Removed insertImage and insertLink from TinyMCE core, they are moved to the advanced theme.
+ Removed opacity workaround made for Opera Preview 1, download Opera Preview 2 instead.
+ Removed search backward function from replace dialog since it could result in a infinite loop.
+ Marked insertlink_callback, insertimage_callback options as deprecated these can be replaced with execcommand_callback.
+ Moved selection specific methods to a new class. For example inst.selectNode is now inst.selection.selectNode.
+ Updated German language pack, contributed by Ace Man.
+Version 2.0.2 (2006-01-24)
+ Added updated Danish language pack contributed by Jan Moelgaard, John Dalsgaard and Bo Frederiksen.
+ Added updated Czech language pack contributed by michi aka mishal.
+ Added new Slovenian language pack contributed by Domen Kosir.
+ Added new Turkish language pack contributed by Engin Dumlu.
+ Added new save_onsavecallback option to the save plugin, this function is called on save.
+ Added new save_enablewhendirty option to the save plugin, this will disable the button until changes are made.
+ Added new onpageload callback event, this event is called when the page is loaded but before instances are made.
+ Added new accessibility_focus option, this enables you to control if buttons should be tab focusable or not.
+ Added new greek alpha character to charmap dialog.
+ Added new Scaron,scaron,Alpha entities to the default value of the entities option thanks to Kevin Rodgers.
+ Added new contextmenu items link.unlink,advhr contributed by Speednet.
+ Added new paste_insert_word_content_callback option for the paste plugin.
+ Added new cleanup plugin, this will replace the one inside the core ones it's considered stable.
+ Added cancel button to color picker contributed by Speednet.
+ Fixed various documentation errors and typos, modified the FAQ.
+ Fixed issue where the first handleNodeChange call was done to early in initialization.
+ Fixed issue with Dutch language pack for advlink plugin.
+ Fixed issue where dialogs was to short when dialog_type option was set to modal in MSIE.
+ Fixed bug where insert image under Gecko resulted in a broken image if it was inserted a the beginning of a element.
+ Fixed bug where mceVisualAid class wasn't removed from TH elements on save.
+ Fixed bug where the href attribute area elements gets converted to xhref.
+ Fixed bug with document relative anchors being forced absolute even when the convert_urls was set to false.
+ Fixed bug where some plugins produced &gr; intead of > entities on string encoding.
+ Fixed bug where some characters in charmap dialog was double encoded in Firefox/Gecko.
+ Fixed bug with XML core entities wasn't encoded when using raw or numeric value in entity_encoding option.
+ Fixed bug where classes was removed from table,td,th elements when the verify_css_classes option was enabled.
+ Fixed bug where elements was getting a visual aid class if a default or force class attribute value rule was used.
+ Fixed bug where strong/em rules didn't handle the -/+ prefixes correctly under Firefox/Mozilla.
+ Fixed bug where non textarea elements didn't work when submiting content.
+ Fixed bug where a access denied error was produced when using contextmenu together with modal dialogs under MSIE.
+ Fixed bug where fullscreen plugin didn't call custom cleanup functions when passing content back and forth.
+ Fixed issue where default rule for font tags didn't have a + prefix in valid_elements.
+ Fixed issue with CSS where "arrow" was used instead of "default" for cursor replacement.
+ Fixed issue where the replace button replaced the current selection first time it was used.
+ Fixed issue with missing title for the advhr dialog.
+ Fixed issue with div not beeing usable in the theme_advanced_blockformats option.
+ Fixed issue in with translation in the German language pack.
+ Fixed so the word wrap toggle for source view functions in Firefox/Mozilla.
+ Fixed so title attribute of emotion images gets inserted aswell as alt.
+ Fixed so the insert return on popups is checked by default in advlink.
+ Fixed so url gets filled when empty if a user selects a popup url.
+ Fixed so some init settings gets trimmed from whitespace.
+ Fixed so charmap closes when a char is selected since most of the time users only need one char.
+ Fixed so the link and image dialogs of advanced theme are styled with the new 2.x layout.
+ Fixed accessibility issuew with the link, image and advhr dialogs.
+ Fixed so the advhr dialog uses the new 2.x layout.
+ Fixed XHTML compliance for Preview plugin contributed by Bo Frederiksen.
+ Fixed entity decoding problem with insert button of the advhr plugin contributed by Bo Frederiksen.
Version 2.0.1 (2005-12-02)
Fixed critical bug in some MSIE versions when submiting content.
Version 2.0 (2005-12-01)
diff --git a/www/extras/tinymce2/docs/about.html b/www/extras/tinymce2/docs/about.html
index e11f5b01c..723967d89 100644
--- a/www/extras/tinymce2/docs/about.html
+++ b/www/extras/tinymce2/docs/about.html
@@ -13,7 +13,7 @@
General information
-
TinyMCE is a powerful WYSIWYG editor control for web browsers such as MSIE or Mozilla that enables the user to edit HTML contents in a more user friendly way. The editor control is very flexible and it's build for integration purposes for example usage within systems like Intranets, CMS, LMS and so forth.
+
TinyMCE is a powerful WYSIWYG editor control for web browsers such as MSIE or Mozilla that enables the user to edit HTML contents in a more user friendly way. The editor control is very flexible and it's built for integration purposes for example usage within systems like Intranets, CMS, LMS and so forth.
TinyMCE is developed by Moxiecode Systems AB and is currently released under the "LGPL" license, read the license agreement for details.
@@ -33,7 +33,7 @@
diff --git a/www/extras/tinymce2/docs/compatiblity_chart.html b/www/extras/tinymce2/docs/compatiblity_chart.html
index cce4cf3d0..acf65bfce 100644
--- a/www/extras/tinymce2/docs/compatiblity_chart.html
+++ b/www/extras/tinymce2/docs/compatiblity_chart.html
@@ -76,7 +76,7 @@
diff --git a/www/extras/tinymce2/docs/credits.html b/www/extras/tinymce2/docs/credits.html
index ed79639c1..578c49a8e 100644
--- a/www/extras/tinymce2/docs/credits.html
+++ b/www/extras/tinymce2/docs/credits.html
@@ -24,6 +24,7 @@
- Code / Solutions / Features
+ - donadoni
- Michael Keck
- Victor Nilsson
- Jürgen Baute
@@ -73,7 +74,7 @@
diff --git a/www/extras/tinymce2/docs/css/screen.css b/www/extras/tinymce2/docs/css/screen.css
index 6bad721e2..280684b1c 100644
--- a/www/extras/tinymce2/docs/css/screen.css
+++ b/www/extras/tinymce2/docs/css/screen.css
@@ -16,15 +16,15 @@ body {
h1 {
font-size: 18px;
font-weight: bold;
- padding: 0px;
+ padding: 0;
margin: 4px;
}
h2 {
font-size: 14px;
font-weight: bold;
- padding: 0px;
- margin: 0px;
+ padding: 0;
+ margin: 0;
margin-top: 4px;
margin-bottom: 4px;
}
@@ -32,8 +32,8 @@ h2 {
h3 {
font-size: 11px;
font-weight: bold;
- padding: 0px;
- margin: 0px;
+ padding: 0;
+ margin: 0;
margin-bottom: 3px;
}
@@ -57,19 +57,19 @@ p {
.helpindex {
margin-left: 20px;
- padding-left: 0px;
+ padding-left: 0;
}
.optionlist {
- margin: 0px;
- padding: 0px;
+ margin: 0;
+ padding: 0;
margin-bottom: 10px;
}
.optionlist li {
- padding: 0px;
- margin: 0px;
+ padding: 0;
+ margin: 0;
margin-top: 3px;
margin-bottom: 3px;
margin-left: 10px;
@@ -90,8 +90,8 @@ p {
}
code, pre {
- margin: 0px;
- padding: 0px;
+ margin: 0;
+ padding: 0;
background-color: #E6EBF1;
}
@@ -142,4 +142,27 @@ a {
thead {
background-color: #E6EBF1;
+}
+
+.btable {
+}
+
+.btable th {
+ border: 1px solid gray;
+ vertical-align: top;
+}
+
+.btable td {
+ border: 1px solid gray;
+ vertical-align: top;
+}
+
+.plist {
+ list-style-type: none;
+ margin: 0;
+ padding: 0;
+}
+
+.plist li {
+ padding-bottom: 3px;
}
\ No newline at end of file
diff --git a/www/extras/tinymce2/docs/customization_language_packs.html b/www/extras/tinymce2/docs/customization_language_packs.html
index 38923cb74..be3e28c3b 100644
--- a/www/extras/tinymce2/docs/customization_language_packs.html
+++ b/www/extras/tinymce2/docs/customization_language_packs.html
@@ -28,7 +28,8 @@ paste_desc : 'Paste (Ctrl+P)'
Remember the last translation line should not have a , character at the end. The first parameter to the addToLang is the prefix to add before each variable, this was added to reduce the overall size of the language packs to reduce the overall download time.
- Files to edit
+ Files to edit
+
When translating TinyMCE, these are the files that currently needs to be translated:
@@ -39,11 +40,16 @@ paste_desc : 'Paste (Ctrl+P)'
Notice some language variables may include a name/url of a gif image or simmilar, for example the button for bold has a "F" character in the Swedish language pack. There are also relative window sizes located in the language packs, for example is the link dialog needs to be bigger inorder to fit a specific translation you can alter the width of the window by modifying these variables.
+ Contributing your language pack
+
+ Go to the sourceforge patch page and upload a zip containing all the language files in the correct directory structure.
+ Please translate all the plugins, even if you aren't using them.
+
diff --git a/www/extras/tinymce2/docs/customization_plugins.html b/www/extras/tinymce2/docs/customization_plugins.html
index 2caad0a37..1ac520edf 100644
--- a/www/extras/tinymce2/docs/customization_plugins.html
+++ b/www/extras/tinymce2/docs/customization_plugins.html
@@ -14,239 +14,212 @@
Creating your own plugins
-Creating you own plugins for the TinyMCE application is fairly easy if you know the basics of HTML, CSS and Javascript. The most easy way is to copy the "_template" directory or one of the other core plugins and work from there. The "_template" directory is a tutorial plugin that shows how to create a plugin. After you copy the template you need to change the red sections marked below to the name of your plugin this is needed so that plugins don't overlap in other words it gives the plugin a unique name. Then just alter the source code as you see fit remember that your custom plugins needs to be located in tiny_mce's "plugins" directory. If you want you may add plugin specific options/settings but remember to namespace them in the following format "<your plugin>_<option>" for example "yourplugin_someoption".
+Creating you own plugins for the TinyMCE application is fairly easy if you know the basics of HTML, CSS and Javascript. The most easy way is to copy the "_template" directory or one of the other core plugins and work from there. The "_template" directory is a tutorial plugin that shows how to create a plugin. After you copy the template you need to change the red sections marked below to the name of your plugin this is needed so that plugins don't overlap in other words it gives the plugin a unique name.
+
If you want you may add plugin specific options/settings but remember to namespace them in the following format "<your plugin>_<option>" for example "yourplugin_someoption".
+
Specific callback functions that you don't need or doesn't do anything can be removed.
+
+
+
Plugin directory structure
-The example below has three functions, these are explained in greater detail below.
+
+
+ | File/Directory
+ | Description
+ |
+
+ | css | Plugin specific CSS files |
+ | docs | Plugin specific documentation |
+ | images | Plugin specific images |
+ | jscripts | Plugin specific jscripts for HTML dialogs |
+ | langs | Plugin specific language files |
+ | editor_plugin.js | Editor plugin file (compressed). |
+ | editor_plugin_src.js | Editor plugin file (source). |
+ | somedialog.htm | Plugin specific dialog HTML file. |
+
+
+
+
Plugin example source
+
+The example below shows a simple empty plugin and all possible callbacks.
-function TinyMCE_yourplugin_getInfo() {
- // Should return info about the plugin to be presented in about dialog
- return {
- longname : 'Some plugin name',
- author : 'Your name',
- authorurl : 'http://www.yoursite.com',
- infourl : 'http://www.yoursite.com/docs/..',
- version : '1.0'
- };
+var TinyMCE_SomeNamePlugin = {
+ /**
+ * Returns information about the plugin as a name/value array.
+ * The current keys are longname, author, authorurl, infourl and version.
+ *
+ * @returns Name/value array containing information about the plugin.
+ * @type Array
+ */
+ getInfo : function() {
+ return {
+ longname : 'Your plugin',
+ author : 'Your name',
+ authorurl : 'http://www.yoursite.com',
+ infourl : 'http://www.yoursite.com/docs/template.html',
+ version : "1.0"
+ };
+ },
+
+ /**
+ * Gets executed when a TinyMCE editor instance is initialized.
+ *
+ * @param {TinyMCE_Control} Initialized TinyMCE editor control instance.
+ */
+ initInstance : function(inst) {
+ // You can take out plugin specific parameters
+ alert("Initialization parameter:" + tinyMCE.getParam("somename_someparam", false));
+
+ // Register custom keyboard shortcut
+ inst.addShortcut('ctrl', 't', 'lang_somename_desc', 'mceSomeCommand');
+ },
+
+ /**
+ * Returns the HTML code for a specific control or empty string if this plugin doesn't have that control.
+ * A control can be a button, select list or any other HTML item to present in the TinyMCE user interface.
+ * The variable {$editor_id} will be replaced with the current editor instance id and {$pluginurl} will be replaced
+ * with the URL of the plugin. Language variables such as {$lang_somekey} will also be replaced with contents from
+ * the language packs.
+ *
+ * @param {string} cn Editor control/button name to get HTML for.
+ * @return HTML code for a specific control or empty string.
+ * @type string
+ */
+ getControlHTML : function(cn) {
+ switch (cn) {
+ case "SomeControl":
+ return tinyMCE.getButtonHTML(cn, 'lang_someplugin_button_desc', '{$pluginurl}/images/someimage.gif', 'mceSomeCommand');
+ }
+
+ return "";
+ },
+
+ getControlHTML : function(cn) {
+ switch (cn) {
+ case "advhr":
+ return tinyMCE.getButtonHTML(cn, 'lang_insert_advhr_desc', '{$pluginurl}/images/advhr.gif', 'mceAdvancedHr');
+ }
+
+ return "";
+ },
+
+
+ /**
+ * Executes a specific command, this function handles plugin commands.
+ *
+ * @param {string} editor_id TinyMCE editor instance id that issued the command.
+ * @param {HTMLElement} element Body or root element for the editor instance.
+ * @param {string} command Command name to be executed.
+ * @param {string} user_interface True/false if a user interface should be presented.
+ * @param {mixed} value Custom value argument, can be anything.
+ * @return true/false if the command was executed by this plugin or not.
+ * @type
+ */
+ execCommand : function(editor_id, element, command, user_interface, value) {
+ // Handle commands
+ switch (command) {
+ // Remember to have the "mce" prefix for commands so they don't intersect with built in ones in the browser.
+ case "mceSomeCommand":
+ // Do your custom command logic here.
+
+ return true;
+ }
+
+ // Pass to next handler in chain
+ return false;
+ },
+
+ /**
+ * Gets called ones the cursor/selection in a TinyMCE instance changes. This is useful to enable/disable
+ * button controls depending on where the user are and what they have selected. This method gets executed
+ * alot and should be as performance tuned as possible.
+ *
+ * @param {string} editor_id TinyMCE editor instance id that was changed.
+ * @param {HTMLNode} node Current node location, where the cursor is in the DOM tree.
+ * @param {int} undo_index The current undo index, if this is -1 custom undo/redo is disabled.
+ * @param {int} undo_levels The current undo levels, if this is -1 custom undo/redo is disabled.
+ * @param {boolean} visual_aid Is visual aids enabled/disabled ex: dotted lines on tables.
+ * @param {boolean} any_selection Is there any selection at all or is there only a cursor.
+ */
+ handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) {
+ },
+
+ /**
+ * Gets called when a TinyMCE editor instance gets filled with content on startup.
+ *
+ * @param {string} editor_id TinyMCE editor instance id that was filled with content.
+ * @param {HTMLElement} body HTML body element of editor instance.
+ * @param {HTMLDocument} doc HTML document instance.
+ */
+ setupContent : function(editor_id, body, doc) {
+ },
+
+ /**
+ * Gets called when the contents of a TinyMCE area is modified, in other words when a undo level is
+ * added.
+ *
+ * @param {TinyMCE_Control} inst TinyMCE editor area control instance that got modified.
+ */
+ onChange : function(inst) {
+ },
+
+ /**
+ * Gets called when TinyMCE handles events such as keydown, mousedown etc. TinyMCE
+ * doesn't listen on all types of events so custom event handling may be required for
+ * some purposes.
+ *
+ * @param {Event} e HTML editor event reference.
+ * @return true - pass to next handler in chain, false - stop chain execution
+ * @type boolean
+ */
+ handleEvent : function(e) {
+ return true;
+ },
+
+ /**
+ * Gets called when HTML contents is inserted or retrived from a TinyMCE editor instance.
+ * The type parameter contains what type of event that was performed and what format the content is in.
+ * Possible valuses for type is get_from_editor, insert_to_editor, get_from_editor_dom, insert_to_editor_dom.
+ *
+ * @param {string} type Cleanup event type.
+ * @param {mixed} content Editor contents that gets inserted/extracted can be a string or DOM element.
+ * @param {TinyMCE_Control} inst TinyMCE editor instance control that performes the cleanup.
+ * @return New content or the input content depending on action.
+ * @type string
+ */
+ cleanup : function(type, content, inst) {
+ return content;
+ },
+
+ // Private plugin internal methods
+
+ /**
+ * This is just a internal plugin method, prefix all internal methods with a _ character.
+ * The prefix is needed so they doesn't collide with future TinyMCE callback functions.
+ *
+ * @param {string} a Some arg1.
+ * @param {string} b Some arg2.
+ * @return Some return.
+ * @type string
+ */
+ _someInternalFunction : function(a, b) {
+ return 1;
+ }
};
-function TinyMCE_yourplugin_initInstance(inst) {
- // Gets executed when a editor instance is initialized
-}
-
-function TinyMCE_yourplugin_getControlHTML(control_name) {
- // Gets executed when a button is to be generated
-}
-
-function TinyMCE_yourplugin_handleNodeChange(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) {
- // Gets executed when the selection changes
-}
-
-function TinyMCE_yourplugin_execCommand(editor_id, element, command, user_interface, value) {
- // Add your own custom commands here
-
- return false;
-}
-
-function TinyMCE_yourplugin_cleanup(type, content) {
- // Add your own custom cleanup here
-
- return content;
-}
+// Adds the plugin class to the list of available TinyMCE plugins
+tinyMCE.addPlugin("someplugin", TinyMCE_SomePluginPlugin);
-
-
-
-
Creating popup HTML files
-
-When creating a popup you need to include the "tiny_mce_popup.js" this enables you to retrive the tinyMCE global instance in all popup windows. All variables and language definitions gets replaced in the page when it loads. So language variables such as {$lang_something} can be places in the HTML code, if you need to get a language string in JavaScript simply use the tinyMCE.getLang function.
-
-
Example of simple popup file:
-
-
-<html>
-<head>
-<title>{$lang_plugin_sample_title}</title>
-<script language="javascript" src="../../tiny_mce_popup.js"></script>
-<script language="javascript">
- // getWindowArg returns any arguments passed to the window
- alert(tinyMCE.getWindowArg('some_arg'));
-</script>
-<body>
- <strong>{$lang_plugin_sample_desc}</strong>
-</body>
-
-
-
-
-
-
The TinyMCE_<plugin>_initInstance function (Optional)
-
- This function is called when a editor instance gets initialized.
-
-
-
-
-
- | Parameters |
-
-
-
-
- | inst |
- Reference to editor instance that was initialized. |
-
-
-
-
-
-
-
-
-
The TinyMCE_<plugin>_handleNodeChange function (Optional)
-
-This function is called when the cursor/selection of a editor instance changes. Then the currenly selected/focused node is passed to this function. This can be useful when you want to change the UI depending on what the user has selected.
-
-
-
-
-
- | Parameters |
-
-
-
-
- | editor_id |
- Unique editor id, this is the same as the $editor_id variable in getEditorTemplate. |
-
-
- | node |
- Reference to the Node element where the cursor is currenly located. |
-
-
- | undo_index |
- Current undo index, this value is -1 if the custom undo/redo support is disabled. |
-
-
- | undo_levels |
- Current number of undo levels, this value is -1 if the custom undo/redo support is disabled. |
-
-
- | visual_aid |
- True/false state of visual aid/guidelines mode. |
-
-
- | any_selection |
- Is any text or image selected. |
-
-
-
-
-
-
-
-
The TinyMCE_<plugin>_execCommand function (Optional)
-
-This function is called when a command is executed for example "bold" or "createlink" this callback/plugin function may then intercept plugin specific commands and do custom logic. If this command returns true the command handling is terminated and the default tinyMCE command handeling never gets executed.
-
-
-
-
-
- | Parameters |
-
-
-
-
- | editor_id |
- Unique editor id, this is the same as the $editor_id variable in getEditorTemplate. |
-
-
- | element |
- Reference to the document DOM root element of the editor instance. |
-
-
- | command |
- Command that is to be executed for example "myCommand". |
-
-
- | user_interface |
- true/false option if a user insterace is to be used or not. |
-
-
- | value |
- Custom data value passed with command, may be any data type. |
-
-
-
-
-
-Returns:
-true - Command intercepted and handled do not continue with command handling.
-false - Continue with execCommand handling, bubble.
-
-
-
-
-
The TinyMCE_<plugin>_getControlHTML(control_name) function (Optional)
-
-This function is called when a editor needs to render a specific control/button. This function should return the HTML template of that control or a empty string if the control_name wasn't recognized. Notice the variable {$pluginurl} gets replaced with the URL prefix for the current plugin directory.
-
-
-
-
-
- | Parameters |
-
-
-
-
- | control_name |
- Control name to match against. |
-
-
-
-
-
-Returns: return the HTML template of that control or a empty string if the control_name wasn't recognized.
-
-
The TinyMCE_<plugin>_cleanup(type, content) function (Optional)
-
-This function is called when a editor does cleanup of contents. This function has the same format as the one defined in the cleanup_callback option.
-
-
-
-
-
- | Parameters |
-
-
-
-
- | type |
- Type of cleanup, insert_to_editor or get_from_editor. Insert to editor is passed when new content is placed within the editor and get_from_editor is when content is passed out from the editor. When dealing with the DOM representation of the same content insert_to_editor_dom or get_from_editor_dom gets passed as a type. |
-
-
- | content |
- HTML contents to be cleaned up, this string contains the HTML code or with the _dom types the body DOM object gets passed instead. |
-
-
-
-
-
-Returns: return the cleaned up HTML code.
-
-
diff --git a/www/extras/tinymce2/docs/customization_themes.html b/www/extras/tinymce2/docs/customization_themes.html
index 566923bbf..08c5e8c13 100644
--- a/www/extras/tinymce2/docs/customization_themes.html
+++ b/www/extras/tinymce2/docs/customization_themes.html
@@ -11,55 +11,221 @@
-
Creating your own Themes
-Creating you own themes for the TinyMCE application is fairly easy if you know the basics of HTML, CSS and Javascript. The most easy way is to copy the "default" or the "advanced" template and rename it as your own name to for example "mytheme". After you copy the template you need to change the red sections marked below to "mytheme" this is needed so that themes don't overlap in other words it gives the theme a unique name. Then just alter the HTML code as you see fit but notice some elements needs to be there so check the docs below on each function also remember that your custom themes needs to be located in tiny_mce's "themes" directory. If you want you may add theme specific options/settings but remember to namespace them in the following format "theme_<your theme>_<option>".
+Creating you own themes for the TinyMCE application is fairly easy if you know the basics of HTML, CSS and Javascript. The most easy way is to copy the "simple" or the "advanced" template and rename it as your own name to for example "mytheme". After you copy the template you need to change the red sections marked below to "mytheme" this is needed so that themes don't overlap in other words it gives the theme a unique name. Then just alter the HTML code as you see fit but notice some elements needs to be there so check the docs below on each function also remember that your custom themes needs to be located in tiny_mce's "themes" directory. If you want you may add theme specific options/settings but remember to namespace them in the following format "theme_<your theme>_<option>".
+
+
Theme directory structure
-The example below has three functions, these are explained in greater detail below.
+
+
+ | File/Directory
+ | Description
+ |
+
+ | css | Theme specific CSS files |
+ | docs | Theme specific documentation |
+ | images | Theme specific images |
+ | jscripts | Theme specific jscripts for HTML dialogs |
+ | langs | Theme specific language files |
+ | editor_template.js | Editor theme template file (compressed). |
+ | editor_template_src.js | Editor theme template file (source). |
+ | somedialog.htm | Theme specific dialog HTML file. |
+
+
+
+
Theme example source
+
+The example below shows a simple empty theme and all possible callbacks.
-function TinyMCE_default_getEditorTemplate(settings) {
- var template = new Array();
+var TinyMCE_SomeNameTheme = {
+ /**
+ * Returns information about the theme as a name/value array.
+ * The current keys are longname, author, authorurl, infourl and version.
+ *
+ * @returns Name/value array containing information about the theme.
+ * @type Array
+ */
+ getInfo : function() {
+ return {
+ longname : 'Your Theme',
+ author : 'Your name',
+ authorurl : 'http://www.yoursite.com',
+ infourl : 'http://www.yoursite.com/docs/template.html',
+ version : "1.0"
+ };
+ },
- template['html'] = '<Some HTML>';
- template['delta_width'] = 0;
- template['delta_height'] = -40;
+ /**
+ * Gets executed when a TinyMCE editor instance is initialized.
+ *
+ * @param {TinyMCE_Control} Initialized TinyMCE editor control instance.
+ */
+ initInstance : function(inst) {
+ // You can take out theme specific parameters
+ alert("Initialization parameter:" + tinyMCE.getParam("somename_someparam", false));
- return template;
-}
+ // Register custom keyboard shortcut
+ inst.addShortcut('ctrl', 't', 'lang_somename_desc', 'mceSomeCommand');
+ },
-function TinyMCE_default_getInsertLinkTemplate(settings) {
- var template = new Array();
+ /**
+ * Returns the HTML code for a specific control or empty string if this theme doesn't have that control.
+ * A control can be a button, select list or any other HTML item to present in the TinyMCE user interface.
+ * The variable {$editor_id} will be replaced with the current editor instance id and {$themeurl} will be replaced
+ * with the URL of the theme. Language variables such as {$lang_somekey} will also be replaced with contents from
+ * the language packs.
+ *
+ * @param {string} cn Editor control/button name to get HTML for.
+ * @return HTML code for a specific control or empty string.
+ * @type string
+ */
+ getControlHTML : function(cn) {
+ switch (cn) {
+ case "SomeControl":
+ return tinyMCE.getButtonHTML(cn, 'lang_sometheme_button_desc', '{$themeurl}/images/someimage.gif', 'mceSomeCommand');
+ }
- template['file'] = 'link.htm';
- template['width'] = 320;
- template['height'] = 130;
+ return "";
+ },
- return template;
-}
+ /**
+ * Returns the HTML code that should be inserted for a specific editor instance.
+ * This function should return a name/value array with three items html, delta_width, delta_height.
+ * The html item should contain the HTML code to insert as a editor instance.
+ * The variable {$editor_id} will be replaced with the current editor instance id and {$themeurl} will be replaced
+ * with the URL of the theme. Language variables such as {$lang_somekey} will also be replaced with contents from
+ * the language packs. Any element with the id {$editor_id} will be replaced with the editor iframe element.
+ * The {$width} and {$height} variables will be replaced with the editors outside dimension values.
+ * The delta_width/height is the relative width/height in pixels to add or remove from the iframe dimensions.
+ *
+ * @param {Array} settings Name/Value array instance settings.
+ * @param {string} editor_id TinMYCE editor control instance id.
+ * @return Name/Value array of editor template data.
+ * @type Array
+ */
+ getEditorTemplate : function(settings, editor_id) {
+ var html = "";
-function TinyMCE_default_getInsertImageTemplate(settings) {
- var template = new Array();
+ // Build toolbar and editor instance
+ html += "..";
- template['file'] = 'image.htm';
- template['width'] = 320;
- template['height'] = 130;
+ return {
+ html : html,
+ delta_width : 0,
+ delta_height : 0
+ };
+ },
- return template;
-}
+ /**
+ * Executes a specific command, this function handles theme commands.
+ *
+ * @param {string} editor_id TinyMCE editor instance id that issued the command.
+ * @param {HTMLElement} element Body or root element for the editor instance.
+ * @param {string} command Command name to be executed.
+ * @param {string} user_interface True/false if a user interface should be presented.
+ * @param {mixed} value Custom value argument, can be anything.
+ * @return true/false if the command was executed by this theme or not.
+ * @type
+ */
+ execCommand : function(editor_id, element, command, user_interface, value) {
+ // Handle commands
+ switch (command) {
+ // Remember to have the "mce" prefix for commands so they don't intersect with built in ones in the browser.
+ case "mceSomeCommand":
+ // Do your custom command logic here.
-function TinyMCE_default_handleNodeChange(editor_id, node) {
- // Check what happend
-}
+ return true;
+ }
-function TinyMCE_default_execCommand(editor_id, element, command, user_interface, value) {
- // Your custom command logic
- return false;
-}
+ // Pass to next handler in chain
+ return false;
+ },
+
+ /**
+ * Gets called ones the cursor/selection in a TinyMCE instance changes. This is useful to enable/disable
+ * button controls depending on where the user are and what they have selected. This method gets executed
+ * alot and should be as performance tuned as possible.
+ *
+ * @param {string} editor_id TinyMCE editor instance id that was changed.
+ * @param {HTMLNode} node Current node location, where the cursor is in the DOM tree.
+ * @param {int} undo_index The current undo index, if this is -1 custom undo/redo is disabled.
+ * @param {int} undo_levels The current undo levels, if this is -1 custom undo/redo is disabled.
+ * @param {boolean} visual_aid Is visual aids enabled/disabled ex: dotted lines on tables.
+ * @param {boolean} any_selection Is there any selection at all or is there only a cursor.
+ */
+ handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) {
+ },
+
+ /**
+ * Gets called when a TinyMCE editor instance gets filled with content on startup.
+ *
+ * @param {string} editor_id TinyMCE editor instance id that was filled with content.
+ * @param {HTMLElement} body HTML body element of editor instance.
+ * @param {HTMLDocument} doc HTML document instance.
+ */
+ setupContent : function(editor_id, body, doc) {
+ },
+
+ /**
+ * Gets called when the contents of a TinyMCE area is modified, in other words when a undo level is
+ * added.
+ *
+ * @param {TinyMCE_Control} inst TinyMCE editor area control instance that got modified.
+ */
+ onChange : function(inst) {
+ },
+
+ /**
+ * Gets called when TinyMCE handles events such as keydown, mousedown etc. TinyMCE
+ * doesn't listen on all types of events so custom event handling may be required for
+ * some purposes.
+ *
+ * @param {Event} e HTML editor event reference.
+ * @return true - pass to next handler in chain, false - stop chain execution
+ * @type boolean
+ */
+ handleEvent : function(e) {
+ return true;
+ },
+
+ /**
+ * Gets called when HTML contents is inserted or retrived from a TinyMCE editor instance.
+ * The type parameter contains what type of event that was performed and what format the content is in.
+ * Possible valuses for type is get_from_editor, insert_to_editor, get_from_editor_dom, insert_to_editor_dom.
+ *
+ * @param {string} type Cleanup event type.
+ * @param {mixed} content Editor contents that gets inserted/extracted can be a string or DOM element.
+ * @param {TinyMCE_Control} inst TinyMCE editor instance control that performes the cleanup.
+ * @return New content or the input content depending on action.
+ * @type string
+ */
+ cleanup : function(type, content, inst) {
+ return content;
+ },
+
+ // Private theme internal methods
+
+ /**
+ * This is just a internal theme method, prefix all internal methods with a _ character.
+ * The prefix is needed so they doesn't collide with future TinyMCE callback functions.
+ *
+ * @param {string} a Some arg1.
+ * @param {string} b Some arg2.
+ * @return Some return.
+ * @type string
+ */
+ _someInternalFunction : function(a, b) {
+ return 1;
+ }
+};
+
+// Adds the theme class to the list of available TinyMCE themes
+tinyMCE.addTheme("sometheme", TinyMCE_SomeThemeTheme);
@@ -74,348 +240,21 @@ When creating a popup you need to include the "tiny_mce_popup.js" this
<html>
<head>
-<title>{$lang_plugin_sample_title}</title>
+<title>{$lang_theme_sample_title}</title>
<script language="javascript" src="../../tiny_mce_popup.js"></script>
<script language="javascript">
// getWindowArg returns any arguments passed to the window
alert(tinyMCE.getWindowArg('some_arg'));
</script>
<body>
- <strong>{$lang_plugin_sample_desc}</strong>
+ <strong>{$lang_theme_sample_desc}</strong>
</body>
-
-The TinyMCE_<theme>_getEditorTemplate(settings) function
-
-This function is responsible for the layout of the editor instance within the page it should return a name/value based array with some specific names. These are explained below, notice names included in [] characters are optional. The settings parameter to this function is a name/value array containing tinyMCE:s settings/options.
-
-
-
-
-
- | Template data |
-
-
-
-
- | html |
- HTML template data, this value should contain all the HTML code needed to render the editor. Notice: {$<variable>} are replaces with values when used. More about these specific values later on. |
-
-
- | [delta_width] |
- Delta width, this value should contain the relative width needed by the UI. For example if a toolbar takes 20 pixels this value should be -20. This is so the editor gets the same size as the element that are replaced. |
-
-
- | [delta_height] |
- Delta height, this value should contain the relative width needed by the UI. For example if a toolbar takes 40 pixels this value should be -40. This is so the editor gets the same size as the element that are replaced. |
-
-
-
-
-
-Variables within the "html" value above are replaced with internal TinyMCE values. There are two types of variables one is the ones starting with the "lang_" prefix, these are replaced with the matching names in the language packs. So for example <b>{$lang_test}</b> gets replaces with the "tinyMCELang['lang_test']" variable and the output is then <b>Test</b>. The other variables are passed expicilty for the template used and these are listed below. Notice: Variables within [] characters are optional.
-
-
-
-
-
- | Variables |
-
-
-
-
- | editor_id |
- This is the editor instance id and it should be placed in ID attribute of the IFRAME element that must be included in the template. |
-
-
- | [default_document] |
- This will be replaced with a blank html page, this is added for MSIE security issues and should be placed in the SRC attribute of the IFRAME within the template. |
-
-
- | [area_width] |
- Width of IFRAME area in pixels. |
-
-
- | [area_height] |
- Height of IFRAME area in pixels. |
-
-
- | [width] |
- Width of the whole editor area in pixels. |
-
-
- | [height] |
- Height of the whole editor area in pixels. |
-
-
- | [themeurl] |
- URL to theme location. |
-
-
-
-
-
-Notice: There are two javascript function that can be called from this template these are tinyMCE.execCommand that executes commans on the currenly selected editor area and the tinyMCE.switchClass that switches the CSS class of the element specified. For more details of commands available by execCommand check the Mozilla midas specification and the TinyMCE specific commands.
-
-
-The TinyMCE_<theme>_getInsertLinkTemplate(settings) function
-
-This function is responsible for the layout of the insert link popup window and it should return a name/value based array with some specific names. These are explained below, notice names included in [] characters are optional. The settings parameter to this function is a name/value array containing tinyMCE:s settings/options.
-
-
-
-
-
- | Template data |
-
-
-
-
- | html |
- HTML template data, this value should contain all the HTML code needed to render the link dialog. Notice: {$<variable>} are replaces with values when used. More about these specific values later on. This parameter is not needed if the "file" param is assigned. |
-
-
- | file |
- Name of external template file to use, this may even be logic pages like .php,.asp,.jsp etc. |
-
-
- | [width] |
- Width of popup window in pixels. Default is 320. |
-
-
- | [height] |
- Height of popup window in pixels. Default is 200. |
-
-
-
-
-
-Variables within the "html" value above are replaced with internal TinyMCE values. There are two types of variables one is the ones starting with the "lang_" prefix, these are replaced with the matching names in the language packs. So for example <b>{$lang_test}</b> gets replaces with the "tinyMCELang['lang_test']" variable and the output is then <b>Test</b>. The other variables are passed expicilty for the template used and these are listed below. Notice: Variables within [] characters are optional.
-
-
-
-
-
- | Variables/Window arguments: |
-
-
-
-
- | [href] |
- This variable gets replaced with the "href" attribute value of the selected link if one is selected. |
-
-
- | [target] |
- This variable gets replaced with the "target" attribute value of the selected link if one is selected. |
-
-
- | [css] |
- Theme popup css location. |
-
-
-
-
-
-Notice: There are a javascript function that can be called from this template "window.opener.tinyMCE.insertLink(href, target)" this inserts the link into the currently selected editor and should be called when for example a insert button is pressed.
-
-
-The TinyMCE_<theme>_getInsertImageTemplate(settings) function
-
-This function is responsible for the layout of the insert image dialog, it should return a name/value based array with some specific names. These are explained below, notice names included in [] characters are optional. The settings parameter to this function is a name/value array containing tinyMCE:s settings/options.
-
-
-
-
-
- | Template data |
-
-
-
-
- | html |
- HTML template data, this value should contain all the HTML code needed to render the image dialog. Notice: {$<variable>} are replaces with values when used. More about these specific values later on. This parameter is not needed if the "file" param is assigned. |
-
-
- | [width] |
- Width of popup window in pixels. Default is 320. |
-
-
- | [height] |
- Height of popup window in pixels. Default is 200. |
-
-
-
-
-
-Variables within the "html" value above are replaced with internal TinyMCE values. There are two types of variables one is the ones starting with the "lang_" prefix, these are replaced with the matchin names in the language packs. So for example <b>{$lang_test}</b> gets replaces with the "tinyMCELang['lang_test']" variable and the output is then <b>Test</b>. The other variables are passed expicilty for the template used and these are listed below. Notice: Variables within [] characters are optional.
-
-
-
-
-
- | Variables/Window arguments |
-
-
-
-
- | [src] |
- This variable gets replaced with the "src" attribute value of the selected link if one is selected. |
-
-
- | [alt] |
- This variable gets replaced with the "alt" attribute value of the selected link if one is selected. |
-
-
- | [border] |
- This variable gets replaced with the "border" attribute value of the selected link if one is selected. |
-
-
- | [hspace] |
- This variable gets replaced with the "hspace" attribute value of the selected link if one is selected. |
-
-
- | [vspace] |
- This variable gets replaced with the "vspace" attribute value of the selected link if one is selected. |
-
-
- | [width] |
- This variable gets replaced with the "width" attribute value of the selected link if one is selected. |
-
-
- | [height] |
- This variable gets replaced with the "height" attribute value of the selected link if one is selected. |
-
-
- | [align] |
- This variable gets replaced with the "align" attribute value of the selected link if one is selected. |
-
-
- | [css] |
- Theme popup css location. |
-
-
-
-
-
-Notice: There are a javascript function that can be called from this template "window.opener.tinyMCE.insertImage(src, alt, border, hspace, vspace, width, height, align)" this inserts the image into the currently selected editor and should be called when for example a insert button is pressed.
-
-
-
-
-The TinyMCE_<theme>_handleNodeChange function (Optional)
-
-This function is called when the cursor/selection of a editor instance changes. Then the currenly selected/focused node is passed to this function. This can be useful when you want to change the UI depending on what the user has selected.
-
-
-
-
-
- | Parameters |
-
-
-
-
- | editor_id |
- Unique editor id, this is the same as the $editor_id variable in getEditorTemplate. |
-
-
- | node |
- Reference to the Node element where the cursor is currenly located. |
-
-
- | undo_index |
- Current undo index, this value is -1 if the custom undo/redo support is disabled. |
-
-
- | undo_levels |
- Current number of undo levels, this value is -1 if the custom undo/redo support is disabled. |
-
-
- | visual_aid |
- True/false state of visual aid/guidelines mode. |
-
-
- | any_selection |
- Is any text or image selected. |
-
-
-
-
-
-
-
-The TinyMCE_<theme>_execCommand function (Optional)
-
-This function is called when a command is executed for example "bold" or "createlink" this callback/theme function may then intercept theme specific commands and do custom logic. If this command returns true the command handling is terminated and the default tinyMCE command handeling never gets executed.
-
-
-
-
-
- | Parameters |
-
-
-
-
- | editor_id |
- Unique editor id, this is the same as the $editor_id variable in getEditorTemplate. |
-
-
- | element |
- Reference to the document DOM root element of the editor instance. |
-
-
- | command |
- Command that is to be executed for example "myCommand". |
-
-
- | user_interface |
- true/false option if a user insterace is to be used or not. |
-
-
- | value |
- Custom data value passed with command, may be any data type. |
-
-
-
-
-
-Returns:
-true - Command intercepted and handled do not continue with command handling.
-false - Continue with execCommand handling, bubble.
-
-
-
-
-The TinyMCE_<theme>_getControlHTML(control_name) function (Optional)
-
-This function is called when a editor needs to render a specific control/button. This function should return the HTML template of that control or a empty string if the control_name wasn't recognized. Notice the variable {$pluginurl} gets replaced with the URL prefix for the current plugin directory.
-
-
-
-
-
- | Parameters |
-
-
-
-
- | control_name |
- Control name to match against. |
-
-
-
-
-
-Returns: return the HTML template of that control or a empty string if the control_name wasn't recognized.
-
-
-
diff --git a/www/extras/tinymce2/docs/faq.html b/www/extras/tinymce2/docs/faq.html
index 74dfc5227..7fc38afa3 100644
--- a/www/extras/tinymce2/docs/faq.html
+++ b/www/extras/tinymce2/docs/faq.html
@@ -12,9 +12,27 @@
Here are some common answers to common questions. If you need more help you can always visit the TinyMCE Forum on the TinyMCE web site.
+
+
+
+
TinyMCE is broken, what should I do?
There are a few things you should check before posting questions about your problem at the forum or sourceforge.
@@ -32,6 +50,63 @@
+
+
Why is my paths incorrect, I want absolute/relative URLs?
+
+
+ These are the diffrent configuration scenarios for URLs within TinyMCE:
+
+
+ | Output |
+ Config |
+ Description |
+
+
+
+ | http://www.site.com/path1/path2/file.htm will be converted to path2/file.htm |
+
+relative_urls : true,
+document_base_url : "http://www.site.com/path1/"
+ |
+ This will convert all URLs within the same domain to relative URLs. The URLs will be relative from the document_base_url. |
+
+
+
+ | path2/file.htm will be converted to /path1/path2/file.htm |
+
+relative_urls : false,
+remove_script_host : true,
+document_base_url : "http://www.site.com/path1/"
+ |
+ This will convert all relative URLs to absolute URLs. The URLs will be absolute based on the document_base_url. |
+
+
+
+ | path2/file.htm will be converted to http://www.site.com/path1/path2/file.htm |
+
+relative_urls : false,
+remove_script_host : false,
+document_base_url : "http://www.site.com/path1/"
+ |
+ This will convert all relative URLs to absolute URLs. The URLs will be absolute based on the document_base_url. |
+
+
+
+ | path2/file.htm or http://www.site.com/path1/path2/file.htm will not be converted at all. |
+
+convert_urls : false
+ |
+ This option will preserve the URLs as they are in a separate attribute while editing, since browsers tend to auto convert URLs. |
+
+
+
+
+
+
+
+
+
+
Why does TinyMCE strip aways attributes or tags from my source?
You need to check out the "valid_elements" and "extended_valid_elements" option in the configuration. By default, TinyMCE only allows certain tags and attributes. TinyMCE also tries to follow the XHTML specification as much as possible (and so should you), this can cause some unexpected source changes, there are however configuration options to battle this issue, study the configuration options in details.
@@ -39,6 +114,7 @@
+
How do I change the default font size/face color of the editor?
@@ -48,6 +124,7 @@
+
How do I remove/add buttons/controls to TinyMCE?
@@ -57,15 +134,7 @@
-
TinyMCE changes the path of my images, why?
-
-
- Different browsers handles images differently, TinyMCE tries to compensate for this and has its own convert URL functions. You can control the behavior through the configuration, check out the URL section in the configuration options.
-
-
-
-
-
+
Why does my HTML output include lots of \" like <a href=\"mylink.htm\">link</a>?
This is probably because you are using PHP and it has a feature that's called magic quotes that is enabled by default. You can read more about this at the PHP website or use the stripslashes function.
@@ -73,6 +142,7 @@
+
TinyMCE takes ages to load, is there a way to make it load quicker?
@@ -82,13 +152,7 @@
-
Can I use TinyMCE in my commercial application?
-
-
Yes you can, the LGPL license is a Free Software License. You can read the whole license here or visit Free Software Foundation web site here
-
-
-
-
+
TinyMCE stops working when placed in tabs or hidden divs?
Since Gecko based browsers Mozilla/Firefox has a bug where it looses designMode on iframes that are hidden a special option is needed that re-enables the design mode when reappearing after being hidden. Enable this option to resolve the issue: "auto_reset_designmode".
@@ -96,18 +160,28 @@
+
+
Can I use TinyMCE in my commercial application?
+
+
Yes you can, the LGPL license is a Free Software License. You can read the whole license here or visit Free Software Foundation web site here
+
+
+
+
+
Are there any restrictions to using TinyMCE in my commercial application?
Yes, all copyright notices must be intact. Moxiecode Systems are still the copyright holders of the source code, so you can not use the code for other applications. Any modifications or add-ons you make to the source has to be contributes back to the TinyMCE community.
- If you start to make a lot of revenue from using TinyMCE, please remember the time and dedication that has been put into this by other developers, respect this and give credit to those who deserve it. We also accept donations.
+ If you start to make a lot of revenue from using TinyMCE, please remember the time and dedication that has been put into this by other developers, respect this and give credit to those who deserve it.
+
I don't like LGPL, is there a commercial license available for me?
@@ -117,6 +191,7 @@
+
Do you provide support?
@@ -126,6 +201,7 @@
+
Who made this software?
@@ -136,7 +212,7 @@
diff --git a/www/extras/tinymce2/docs/index.html b/www/extras/tinymce2/docs/index.html
index cccfb0741..b580c2cee 100644
--- a/www/extras/tinymce2/docs/index.html
+++ b/www/extras/tinymce2/docs/index.html
@@ -36,7 +36,7 @@
diff --git a/www/extras/tinymce2/docs/installation_example_00.html b/www/extras/tinymce2/docs/installation_example_00.html
index 2130f8d74..735f069c7 100644
--- a/www/extras/tinymce2/docs/installation_example_00.html
+++ b/www/extras/tinymce2/docs/installation_example_00.html
@@ -27,7 +27,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/installation_example_01.html b/www/extras/tinymce2/docs/installation_example_01.html
index 98162c255..7053db225 100644
--- a/www/extras/tinymce2/docs/installation_example_01.html
+++ b/www/extras/tinymce2/docs/installation_example_01.html
@@ -28,7 +28,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/installation_example_02.html b/www/extras/tinymce2/docs/installation_example_02.html
index 86f98a300..539210e20 100644
--- a/www/extras/tinymce2/docs/installation_example_02.html
+++ b/www/extras/tinymce2/docs/installation_example_02.html
@@ -44,7 +44,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/installation_example_03.html b/www/extras/tinymce2/docs/installation_example_03.html
index 6848b8c78..e5a084228 100644
--- a/www/extras/tinymce2/docs/installation_example_03.html
+++ b/www/extras/tinymce2/docs/installation_example_03.html
@@ -35,7 +35,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/installing.html b/www/extras/tinymce2/docs/installing.html
index 40749c1bb..bb25514ea 100644
--- a/www/extras/tinymce2/docs/installing.html
+++ b/www/extras/tinymce2/docs/installing.html
@@ -113,7 +113,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/license.html b/www/extras/tinymce2/docs/license.html
index c0c9c9ad5..e94ae2a42 100644
--- a/www/extras/tinymce2/docs/license.html
+++ b/www/extras/tinymce2/docs/license.html
@@ -457,7 +457,7 @@ DAMAGES.
diff --git a/www/extras/tinymce2/docs/option_accessibility_warnings.html b/www/extras/tinymce2/docs/option_accessibility_warnings.html
index be4852761..fd897ecdd 100644
--- a/www/extras/tinymce2/docs/option_accessibility_warnings.html
+++ b/www/extras/tinymce2/docs/option_accessibility_warnings.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_add_form_submit_trigger.html b/www/extras/tinymce2/docs/option_add_form_submit_trigger.html
index d62dc98d1..e29e7025f 100644
--- a/www/extras/tinymce2/docs/option_add_form_submit_trigger.html
+++ b/www/extras/tinymce2/docs/option_add_form_submit_trigger.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_add_unload_trigger.html b/www/extras/tinymce2/docs/option_add_unload_trigger.html
index e43aacf86..100d901b4 100644
--- a/www/extras/tinymce2/docs/option_add_unload_trigger.html
+++ b/www/extras/tinymce2/docs/option_add_unload_trigger.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_apply_source_formatting.html b/www/extras/tinymce2/docs/option_apply_source_formatting.html
index 06f3288bc..dfbce21a6 100644
--- a/www/extras/tinymce2/docs/option_apply_source_formatting.html
+++ b/www/extras/tinymce2/docs/option_apply_source_formatting.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_ask.html b/www/extras/tinymce2/docs/option_ask.html
index 42279e1bd..290a681d5 100644
--- a/www/extras/tinymce2/docs/option_ask.html
+++ b/www/extras/tinymce2/docs/option_ask.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_auto_focus.html b/www/extras/tinymce2/docs/option_auto_focus.html
index e271d6e66..2150e9187 100644
--- a/www/extras/tinymce2/docs/option_auto_focus.html
+++ b/www/extras/tinymce2/docs/option_auto_focus.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_auto_reset_designmode.html b/www/extras/tinymce2/docs/option_auto_reset_designmode.html
index 9b00849e7..487d2188b 100644
--- a/www/extras/tinymce2/docs/option_auto_reset_designmode.html
+++ b/www/extras/tinymce2/docs/option_auto_reset_designmode.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_auto_resize.html b/www/extras/tinymce2/docs/option_auto_resize.html
index f28adbb43..3e3746b25 100644
--- a/www/extras/tinymce2/docs/option_auto_resize.html
+++ b/www/extras/tinymce2/docs/option_auto_resize.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_browsers.html b/www/extras/tinymce2/docs/option_browsers.html
index a1b378b69..a2a6d81bd 100644
--- a/www/extras/tinymce2/docs/option_browsers.html
+++ b/www/extras/tinymce2/docs/option_browsers.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_button_tile_map.html b/www/extras/tinymce2/docs/option_button_tile_map.html
index 7c2ba5c1a..abe07539b 100644
--- a/www/extras/tinymce2/docs/option_button_tile_map.html
+++ b/www/extras/tinymce2/docs/option_button_tile_map.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_cleanup.html b/www/extras/tinymce2/docs/option_cleanup.html
index 7644adaff..bd7882aee 100644
--- a/www/extras/tinymce2/docs/option_cleanup.html
+++ b/www/extras/tinymce2/docs/option_cleanup.html
@@ -12,7 +12,7 @@
- This option enables you to turn on/off the build in cleanup functionality. TinyMCE is equipped with powerful cleanup functionality that enables you to specify what elements and attributes are allowed and how HTML contents should be generated. This option is set to true by default, but if you want to disable it you may set it to false. Notice: It's not recommended to disable this feature.
+ This option enables you to turn on/off the built in cleanup functionality. TinyMCE is equipped with powerful cleanup functionality that enables you to specify what elements and attributes are allowed and how HTML contents should be generated. This option is set to true by default, but if you want to disable it you may set it to false. Notice: It's not recommended to disable this feature.
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_cleanup_callback.html b/www/extras/tinymce2/docs/option_cleanup_callback.html
index 72bd4f66e..a8083f264 100644
--- a/www/extras/tinymce2/docs/option_cleanup_callback.html
+++ b/www/extras/tinymce2/docs/option_cleanup_callback.html
@@ -64,7 +64,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_cleanup_on_startup.html b/www/extras/tinymce2/docs/option_cleanup_on_startup.html
index 0e5369c6b..509f79c1b 100644
--- a/www/extras/tinymce2/docs/option_cleanup_on_startup.html
+++ b/www/extras/tinymce2/docs/option_cleanup_on_startup.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_content_css.html b/www/extras/tinymce2/docs/option_content_css.html
index 39f407f59..f278538da 100644
--- a/www/extras/tinymce2/docs/option_content_css.html
+++ b/www/extras/tinymce2/docs/option_content_css.html
@@ -12,7 +12,7 @@
- This option enables you to specify a custom CSS file that extends the theme content CSS. This CSS file is the one used within the editor (the editable area). The default location of this CSS file is within the current theme.
+ This option enables you to specify a custom CSS file that extends the theme content CSS. This CSS file is the one used within the editor (the editable area). The default location of this CSS file is within the current theme. This option can also be a comma separated list of URLs.
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_convert_fonts_to_spans.html b/www/extras/tinymce2/docs/option_convert_fonts_to_spans.html
index c87436fe8..7f127c9f6 100644
--- a/www/extras/tinymce2/docs/option_convert_fonts_to_spans.html
+++ b/www/extras/tinymce2/docs/option_convert_fonts_to_spans.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_convert_newlines_to_brs.html b/www/extras/tinymce2/docs/option_convert_newlines_to_brs.html
index 211636474..c1f10507f 100644
--- a/www/extras/tinymce2/docs/option_convert_newlines_to_brs.html
+++ b/www/extras/tinymce2/docs/option_convert_newlines_to_brs.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_convert_urls.html b/www/extras/tinymce2/docs/option_convert_urls.html
index 71585aad9..7c2d25dea 100644
--- a/www/extras/tinymce2/docs/option_convert_urls.html
+++ b/www/extras/tinymce2/docs/option_convert_urls.html
@@ -11,7 +11,7 @@
-
This option enables you to control if TinyMCE is to be clever and restore urls to their original values. URLs are auto converted/messed up by default since the build in browser logic works this way, there is no way to get the real URL unless you store it away. If you set this option to false it will try to keep these URLs intact. This option is set to true by default that means URLs will be forced absolute or relative depending on the state of relative_urls.
+
This option enables you to control if TinyMCE is to be clever and restore urls to their original values. URLs are auto converted/messed up by default since the built in browser logic works this way, there is no way to get the real URL unless you store it away. If you set this option to false it will try to keep these URLs intact. This option is set to true by default that means URLs will be forced absolute or relative depending on the state of relative_urls.
@@ -28,7 +28,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_custom_undo_redo.html b/www/extras/tinymce2/docs/option_custom_undo_redo.html
index fb6cc106b..3b19c73e4 100644
--- a/www/extras/tinymce2/docs/option_custom_undo_redo.html
+++ b/www/extras/tinymce2/docs/option_custom_undo_redo.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_custom_undo_redo_keyboard_shortcuts.html b/www/extras/tinymce2/docs/option_custom_undo_redo_keyboard_shortcuts.html
index 9f2046ce3..6e3f549df 100644
--- a/www/extras/tinymce2/docs/option_custom_undo_redo_keyboard_shortcuts.html
+++ b/www/extras/tinymce2/docs/option_custom_undo_redo_keyboard_shortcuts.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_custom_undo_redo_levels.html b/www/extras/tinymce2/docs/option_custom_undo_redo_levels.html
index 1cc2a4fe8..8df786073 100644
--- a/www/extras/tinymce2/docs/option_custom_undo_redo_levels.html
+++ b/www/extras/tinymce2/docs/option_custom_undo_redo_levels.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_debug.html b/www/extras/tinymce2/docs/option_debug.html
index 03ae1ea76..8c329d2b9 100644
--- a/www/extras/tinymce2/docs/option_debug.html
+++ b/www/extras/tinymce2/docs/option_debug.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_dialog_type.html b/www/extras/tinymce2/docs/option_dialog_type.html
index 94f6acc1f..096c00757 100644
--- a/www/extras/tinymce2/docs/option_dialog_type.html
+++ b/www/extras/tinymce2/docs/option_dialog_type.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_directionality.html b/www/extras/tinymce2/docs/option_directionality.html
index 285e1d32a..3518ecbd5 100644
--- a/www/extras/tinymce2/docs/option_directionality.html
+++ b/www/extras/tinymce2/docs/option_directionality.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_docs_language.html b/www/extras/tinymce2/docs/option_docs_language.html
index 68fd83d0f..d4d26c95d 100644
--- a/www/extras/tinymce2/docs/option_docs_language.html
+++ b/www/extras/tinymce2/docs/option_docs_language.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_doctype.html b/www/extras/tinymce2/docs/option_doctype.html
index ae2b82dab..74f09d974 100644
--- a/www/extras/tinymce2/docs/option_doctype.html
+++ b/www/extras/tinymce2/docs/option_doctype.html
@@ -27,7 +27,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_document_base_url.html b/www/extras/tinymce2/docs/option_document_base_url.html
index c108a3653..c2bcd2b03 100644
--- a/www/extras/tinymce2/docs/option_document_base_url.html
+++ b/www/extras/tinymce2/docs/option_document_base_url.html
@@ -28,7 +28,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_editor_css.html b/www/extras/tinymce2/docs/option_editor_css.html
index 6579f4f3b..67fcb485a 100644
--- a/www/extras/tinymce2/docs/option_editor_css.html
+++ b/www/extras/tinymce2/docs/option_editor_css.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_editor_deselector.html b/www/extras/tinymce2/docs/option_editor_deselector.html
index 5e4a6e8f6..254657eae 100644
--- a/www/extras/tinymce2/docs/option_editor_deselector.html
+++ b/www/extras/tinymce2/docs/option_editor_deselector.html
@@ -41,7 +41,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_editor_selector.html b/www/extras/tinymce2/docs/option_editor_selector.html
index f1db1228a..5b430148b 100644
--- a/www/extras/tinymce2/docs/option_editor_selector.html
+++ b/www/extras/tinymce2/docs/option_editor_selector.html
@@ -41,7 +41,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_elements.html b/www/extras/tinymce2/docs/option_elements.html
index 3126cedae..088673f31 100644
--- a/www/extras/tinymce2/docs/option_elements.html
+++ b/www/extras/tinymce2/docs/option_elements.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_encoding.html b/www/extras/tinymce2/docs/option_encoding.html
index 0755b176c..82d33fde1 100644
--- a/www/extras/tinymce2/docs/option_encoding.html
+++ b/www/extras/tinymce2/docs/option_encoding.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_entities.html b/www/extras/tinymce2/docs/option_entities.html
index a0a075020..bdcdbb8a0 100644
--- a/www/extras/tinymce2/docs/option_entities.html
+++ b/www/extras/tinymce2/docs/option_entities.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_entity_encoding.html b/www/extras/tinymce2/docs/option_entity_encoding.html
index 9a267239d..a28dc774c 100644
--- a/www/extras/tinymce2/docs/option_entity_encoding.html
+++ b/www/extras/tinymce2/docs/option_entity_encoding.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_event_elements.html b/www/extras/tinymce2/docs/option_event_elements.html
index 468977bfd..987434b86 100644
--- a/www/extras/tinymce2/docs/option_event_elements.html
+++ b/www/extras/tinymce2/docs/option_event_elements.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_extended_valid_elements.html b/www/extras/tinymce2/docs/option_extended_valid_elements.html
index 9c7d31df4..93f0561e8 100644
--- a/www/extras/tinymce2/docs/option_extended_valid_elements.html
+++ b/www/extras/tinymce2/docs/option_extended_valid_elements.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_external_image_list_url.html b/www/extras/tinymce2/docs/option_external_image_list_url.html
index c867d7ab7..52c35a252 100644
--- a/www/extras/tinymce2/docs/option_external_image_list_url.html
+++ b/www/extras/tinymce2/docs/option_external_image_list_url.html
@@ -43,7 +43,7 @@ var tinyMCEImageList = new Array(
diff --git a/www/extras/tinymce2/docs/option_external_link_list_url.html b/www/extras/tinymce2/docs/option_external_link_list_url.html
index 8cf80c888..15ee47050 100644
--- a/www/extras/tinymce2/docs/option_external_link_list_url.html
+++ b/www/extras/tinymce2/docs/option_external_link_list_url.html
@@ -44,7 +44,7 @@ var tinyMCELinkList = new Array(
diff --git a/www/extras/tinymce2/docs/option_file_browser_callback.html b/www/extras/tinymce2/docs/option_file_browser_callback.html
index 91e4a44cc..65d36c2ca 100644
--- a/www/extras/tinymce2/docs/option_file_browser_callback.html
+++ b/www/extras/tinymce2/docs/option_file_browser_callback.html
@@ -35,7 +35,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_fix_content_duplication.html b/www/extras/tinymce2/docs/option_fix_content_duplication.html
index 6cdee840d..5d70ab175 100644
--- a/www/extras/tinymce2/docs/option_fix_content_duplication.html
+++ b/www/extras/tinymce2/docs/option_fix_content_duplication.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_focus_alert.html b/www/extras/tinymce2/docs/option_focus_alert.html
index 21e89ff39..d77058f9a 100644
--- a/www/extras/tinymce2/docs/option_focus_alert.html
+++ b/www/extras/tinymce2/docs/option_focus_alert.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_font_size_classes.html b/www/extras/tinymce2/docs/option_font_size_classes.html
index b2b95c8e9..51131345c 100644
--- a/www/extras/tinymce2/docs/option_font_size_classes.html
+++ b/www/extras/tinymce2/docs/option_font_size_classes.html
@@ -27,7 +27,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_font_size_style_values.html b/www/extras/tinymce2/docs/option_font_size_style_values.html
index 8de865f1c..26a195c11 100644
--- a/www/extras/tinymce2/docs/option_font_size_style_values.html
+++ b/www/extras/tinymce2/docs/option_font_size_style_values.html
@@ -27,7 +27,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_force_br_newlines.html b/www/extras/tinymce2/docs/option_force_br_newlines.html
index dac8a9929..8bc90a9d6 100644
--- a/www/extras/tinymce2/docs/option_force_br_newlines.html
+++ b/www/extras/tinymce2/docs/option_force_br_newlines.html
@@ -12,7 +12,7 @@
- If you set this option to true, TinyMCE will force BR elements on newlines instead of inserting paragraphs. This option is set to false by default since paragraphs is a much better concept. You can style P elements to be one row by adding p { margin: 0px; padding: 0px; } to your CSS, P tags where invented for a reason and should be used. BR elements should only be used when you really have to (mostly never).
+ If you set this option to true, TinyMCE will force BR elements on newlines instead of inserting paragraphs. This option is set to false by default since paragraphs is a much better concept. You can style P elements to be one row by adding p { margin: 0; padding: 0; } to your CSS, P tags where invented for a reason and should be used. BR elements should only be used when you really have to (mostly never).
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_force_hex_style_colors.html b/www/extras/tinymce2/docs/option_force_hex_style_colors.html
index f55ed972d..7d1888927 100644
--- a/www/extras/tinymce2/docs/option_force_hex_style_colors.html
+++ b/www/extras/tinymce2/docs/option_force_hex_style_colors.html
@@ -27,7 +27,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_force_p_newlines.html b/www/extras/tinymce2/docs/option_force_p_newlines.html
index 347b144d0..16f108d15 100644
--- a/www/extras/tinymce2/docs/option_force_p_newlines.html
+++ b/www/extras/tinymce2/docs/option_force_p_newlines.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_height.html b/www/extras/tinymce2/docs/option_height.html
index 7daf75db4..1f0819be9 100644
--- a/www/extras/tinymce2/docs/option_height.html
+++ b/www/extras/tinymce2/docs/option_height.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_init_instance_callback.html b/www/extras/tinymce2/docs/option_init_instance_callback.html
index 0c6ee2342..739e94634 100644
--- a/www/extras/tinymce2/docs/option_init_instance_callback.html
+++ b/www/extras/tinymce2/docs/option_init_instance_callback.html
@@ -34,7 +34,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_inline_styles.html b/www/extras/tinymce2/docs/option_inline_styles.html
index 1dcc1b200..8e89164a9 100644
--- a/www/extras/tinymce2/docs/option_inline_styles.html
+++ b/www/extras/tinymce2/docs/option_inline_styles.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_insertimage_callback.html b/www/extras/tinymce2/docs/option_insertimage_callback.html
index cb55d9997..f27a2fd03 100644
--- a/www/extras/tinymce2/docs/option_insertimage_callback.html
+++ b/www/extras/tinymce2/docs/option_insertimage_callback.html
@@ -7,12 +7,15 @@
- This option enables you to override the build in functionality for inserting images. This option should contain a function name to be executed when a new image is inserted into TinyMCE. The format of this callback function is: insertImage(src, alt, border, hspace, vspace, width, height, align, title, onmouseover, onmouseout, action). Where most of these options are self explained the action can be "update" or "insert" depending on what operation type. This function should return an array with the same values as the incomming parameters, the example below describes how this is done. This option is set to a internal TinyMCE function by default.
+ This callback was removed in 2.0.3, use execcommand_callback instead this also enables you to override other things than the image and link dialogs.
+
+
+ This option enables you to override the built in functionality for inserting images. This option should contain a function name to be executed when a new image is inserted into TinyMCE. The format of this callback function is: insertImage(src, alt, border, hspace, vspace, width, height, align, title, onmouseover, onmouseout, action). Where most of these options are self explained the action can be "update" or "insert" depending on what operation type. This function should return an array with the same values as the incomming parameters, the example below describes how this is done. This option is set to a internal TinyMCE function by default.
@@ -49,7 +52,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_insertlink_callback.html b/www/extras/tinymce2/docs/option_insertlink_callback.html
index 2d67c4923..2aaf77a55 100644
--- a/www/extras/tinymce2/docs/option_insertlink_callback.html
+++ b/www/extras/tinymce2/docs/option_insertlink_callback.html
@@ -7,12 +7,15 @@
- This option enables you to override the build in functionality for inserting links. This option should contain a function name to be executed when a new link is inserted into TinyMCE. The format of this callback function is: insertLink(href, target, title, onclick, action). Where most of these options are self explained the action can be "update" or "insert" depending on what operation type. This function should return an array with the same values as the incomming parameters, the example below describes how this is done. This option is set to a internal TinyMCE function by default.
+ This callback was removed in 2.0.3, use execcommand_callback instead this also enables you to override other things than the image and link dialogs.
+
+
+ This option enables you to override the built in functionality for inserting links. This option should contain a function name to be executed when a new link is inserted into TinyMCE. The format of this callback function is: insertLink(href, target, title, onclick, action). Where most of these options are self explained the action can be "update" or "insert" depending on what operation type. This function should return an array with the same values as the incomming parameters, the example below describes how this is done. This option is set to a internal TinyMCE function by default.
@@ -42,7 +45,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_invalid_elements.html b/www/extras/tinymce2/docs/option_invalid_elements.html
index f313e7f47..0d4f38e6c 100644
--- a/www/extras/tinymce2/docs/option_invalid_elements.html
+++ b/www/extras/tinymce2/docs/option_invalid_elements.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_language.html b/www/extras/tinymce2/docs/option_language.html
index daf35dd4e..c75cf99bb 100644
--- a/www/extras/tinymce2/docs/option_language.html
+++ b/www/extras/tinymce2/docs/option_language.html
@@ -34,7 +34,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_merge_styles_invalid_parents.html b/www/extras/tinymce2/docs/option_merge_styles_invalid_parents.html
index 7deffee43..254366ec1 100644
--- a/www/extras/tinymce2/docs/option_merge_styles_invalid_parents.html
+++ b/www/extras/tinymce2/docs/option_merge_styles_invalid_parents.html
@@ -29,7 +29,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_mode.html b/www/extras/tinymce2/docs/option_mode.html
index c613d9d01..28b89a876 100644
--- a/www/extras/tinymce2/docs/option_mode.html
+++ b/www/extras/tinymce2/docs/option_mode.html
@@ -46,7 +46,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_nowrap.html b/www/extras/tinymce2/docs/option_nowrap.html
index 3d533211e..73705f374 100644
--- a/www/extras/tinymce2/docs/option_nowrap.html
+++ b/www/extras/tinymce2/docs/option_nowrap.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_object_resizing.html b/www/extras/tinymce2/docs/option_object_resizing.html
index 48d7069c1..90f750e79 100644
--- a/www/extras/tinymce2/docs/option_object_resizing.html
+++ b/www/extras/tinymce2/docs/option_object_resizing.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_onchange_callback.html b/www/extras/tinymce2/docs/option_onchange_callback.html
index d7d83c655..05cffb149 100644
--- a/www/extras/tinymce2/docs/option_onchange_callback.html
+++ b/www/extras/tinymce2/docs/option_onchange_callback.html
@@ -35,7 +35,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_oninit.html b/www/extras/tinymce2/docs/option_oninit.html
index 755dbd6f7..8a9511a4f 100644
--- a/www/extras/tinymce2/docs/option_oninit.html
+++ b/www/extras/tinymce2/docs/option_oninit.html
@@ -34,7 +34,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_plugins.html b/www/extras/tinymce2/docs/option_plugins.html
index 4169c5fb3..1e3c7e260 100644
--- a/www/extras/tinymce2/docs/option_plugins.html
+++ b/www/extras/tinymce2/docs/option_plugins.html
@@ -14,6 +14,9 @@
This option should contain a comma separated list of plugins. Plugins are loaded from the "tinymce/jscripts/tiny_mce/plugins" directory and the plugin name matches the name of the directory. TinyMCE is shipped with some core plugins these are described in greater detail in the Plugins reference.
+
+ TinyMCE also supports the ability to have plugins added from a external resource, these plugins needs to be self registrering and loaded after the tinyMCE.init call. You should also prefix these plugins with a "-" character so that TinyMCE doesn't try to load it from the TinyMCE plugins directory.
+
There are many third party plugins for TinyMCE some of these may be found under "Plugins" at SourceForge and if you have developed one of your own please contribute it to this project by uploading it to SourceForge.
@@ -26,7 +29,7 @@
tinyMCE.init({
...
- plugins : "table,contextmenu,paste"
+ plugins : "table,contextmenu,paste,-externalplugin"
});
@@ -34,7 +37,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_popups_css.html b/www/extras/tinymce2/docs/option_popups_css.html
index 9e3f5789f..ce1df5099 100644
--- a/www/extras/tinymce2/docs/option_popups_css.html
+++ b/www/extras/tinymce2/docs/option_popups_css.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_preformatted.html b/www/extras/tinymce2/docs/option_preformatted.html
index e0cd3aa72..177901cfa 100644
--- a/www/extras/tinymce2/docs/option_preformatted.html
+++ b/www/extras/tinymce2/docs/option_preformatted.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_relative_urls.html b/www/extras/tinymce2/docs/option_relative_urls.html
index a4aa7db22..0e127d4fb 100644
--- a/www/extras/tinymce2/docs/option_relative_urls.html
+++ b/www/extras/tinymce2/docs/option_relative_urls.html
@@ -28,7 +28,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_remove_linebreaks.html b/www/extras/tinymce2/docs/option_remove_linebreaks.html
index 065a9e713..cfcda016d 100644
--- a/www/extras/tinymce2/docs/option_remove_linebreaks.html
+++ b/www/extras/tinymce2/docs/option_remove_linebreaks.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_remove_script_host.html b/www/extras/tinymce2/docs/option_remove_script_host.html
index 3e2201400..880cd607b 100644
--- a/www/extras/tinymce2/docs/option_remove_script_host.html
+++ b/www/extras/tinymce2/docs/option_remove_script_host.html
@@ -29,7 +29,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_save_callback.html b/www/extras/tinymce2/docs/option_save_callback.html
index 391e9731c..12229aaf0 100644
--- a/www/extras/tinymce2/docs/option_save_callback.html
+++ b/www/extras/tinymce2/docs/option_save_callback.html
@@ -12,7 +12,7 @@
- This option enables you to add custom logic to be executed when the contents is extracted/saved. This custom logic can then modify the contents before it's submited to a serverside page. This can be useful if you want to do your own regexp cleanups and so forth. The format of this function is: saveContent(element_id, html, body). Where element id is the form element/div id of the editor and HTML is the HTML contents after the build in cleanup process has executed. This function should return the new HTML contents.
+ This option enables you to add custom logic to be executed when the contents is extracted/saved. This custom logic can then modify the contents before it's submited to a serverside page. This can be useful if you want to do your own regexp cleanups and so forth. The format of this function is: saveContent(element_id, html, body). Where element id is the form element/div id of the editor and HTML is the HTML contents after the built in cleanup process has executed. This function should return the new HTML contents.
@@ -37,7 +37,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_setupcontent_callback.html b/www/extras/tinymce2/docs/option_setupcontent_callback.html
index d0db1735e..b3526aa97 100644
--- a/www/extras/tinymce2/docs/option_setupcontent_callback.html
+++ b/www/extras/tinymce2/docs/option_setupcontent_callback.html
@@ -35,7 +35,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_submit_patch.html b/www/extras/tinymce2/docs/option_submit_patch.html
index e7709fcfe..a23bf49c0 100644
--- a/www/extras/tinymce2/docs/option_submit_patch.html
+++ b/www/extras/tinymce2/docs/option_submit_patch.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_table_inline_editing.html b/www/extras/tinymce2/docs/option_table_inline_editing.html
index 8a2c7a5bf..b94b84239 100644
--- a/www/extras/tinymce2/docs/option_table_inline_editing.html
+++ b/www/extras/tinymce2/docs/option_table_inline_editing.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_textarea_trigger.html b/www/extras/tinymce2/docs/option_textarea_trigger.html
index 570186bf8..70a2a5940 100644
--- a/www/extras/tinymce2/docs/option_textarea_trigger.html
+++ b/www/extras/tinymce2/docs/option_textarea_trigger.html
@@ -39,7 +39,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme.html b/www/extras/tinymce2/docs/option_theme.html
index 7abdc1b26..dbbbe215f 100644
--- a/www/extras/tinymce2/docs/option_theme.html
+++ b/www/extras/tinymce2/docs/option_theme.html
@@ -12,7 +12,7 @@
- This option enables you to specify what theme to use when rendering the TinyMCE WYSIWYG editor instances. This name matches the directories located in "tinymce/jscripts/tiny_mce/themes". The default value of this option is "advanced". TinyMCE has three build in themes and these are described in greater detail below.
+ This option enables you to specify what theme to use when rendering the TinyMCE WYSIWYG editor instances. This name matches the directories located in "tinymce/jscripts/tiny_mce/themes". The default value of this option is "advanced". TinyMCE has three built in themes and these are described in greater detail below.
@@ -41,7 +41,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_blockformats.html b/www/extras/tinymce2/docs/option_theme_advanced_blockformats.html
index bf2ca47f7..b5b9859cf 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_blockformats.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_blockformats.html
@@ -12,7 +12,7 @@
- This option should contain a comma separated list of block formats the default value of this option is "p,address,pre,h1,h2,h3,h4,h5,h6". This option is only available if the advanced theme is used.
+ This option should contain a comma separated list of block formats the default value of this option is "p,div,address,pre,h1,h2,h3,h4,h5,h6". This option is only available if the advanced theme is used.
@@ -22,7 +22,7 @@
tinyMCE.init({
...
- theme_advanced_blockformats : "p,h1,h2,h3,h4,h5,h6"
+ theme_advanced_blockformats : "p,div,h1,h2,h3,h4,h5,h6"
});
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_buttons_n.html b/www/extras/tinymce2/docs/option_theme_advanced_buttons_n.html
index e0066d750..d6ccdfd8d 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_buttons_n.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_buttons_n.html
@@ -12,7 +12,7 @@
- This option should contain a comma separated list of button/control names to insert into the toolbar. The number 1-n is the row number to insert the buttons/controls to. Below is a list of build in controls, plugins may include other controls names that can be inserted but these are documented in the individual plugins.
+ This option should contain a comma separated list of button/control names to insert into the toolbar. The number 1-n is the row number to insert the buttons/controls to. Below is a list of built in controls, plugins may include other controls names that can be inserted but these are documented in the individual plugins.
This option can only be used when theme is set to advanced and when the theme_advanced_layout_manager option is set to the default value of "SimpleLayout".
@@ -36,7 +36,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_buttons_n_add.html b/www/extras/tinymce2/docs/option_theme_advanced_buttons_n_add.html
index d321ee46b..0ada971ee 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_buttons_n_add.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_buttons_n_add.html
@@ -12,7 +12,7 @@
- This option should contain a comma separated list of button/control names to add to the end of the specified toolbar row. The number 1-n is the row number to add the buttons/controls to. Below is a list of build in controls, plugins may include other controls names that can be inserted but these are documented in the individual plugins.
+ This option should contain a comma separated list of button/control names to add to the end of the specified toolbar row. The number 1-n is the row number to add the buttons/controls to. Below is a list of built in controls, plugins may include other controls names that can be inserted but these are documented in the individual plugins.
This option can only be used when theme is set to advanced and when the theme_advanced_layout_manager option is set to the default value of "SimpleLayout".
@@ -36,7 +36,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_buttons_n_add_before.html b/www/extras/tinymce2/docs/option_theme_advanced_buttons_n_add_before.html
index 4ba6abf3c..fe27ecd0d 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_buttons_n_add_before.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_buttons_n_add_before.html
@@ -12,7 +12,7 @@
- This option should contain a comma separated list of button/control names to add to the beginning of the specified toolbar row. The number 1-n is the row number to add the buttons/controls to. Below is a list of build in controls, plugins may include other controls names that can be inserted but these are documented in the individual plugins.
+ This option should contain a comma separated list of button/control names to add to the beginning of the specified toolbar row. The number 1-n is the row number to add the buttons/controls to. Below is a list of built in controls, plugins may include other controls names that can be inserted but these are documented in the individual plugins.
This option can only be used when theme is set to advanced and when the theme_advanced_layout_manager option is set to the default value of "SimpleLayout".
@@ -36,7 +36,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_container.html b/www/extras/tinymce2/docs/option_theme_advanced_container.html
index 61c800ef2..cc2bddc0e 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_container.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_container.html
@@ -31,7 +31,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_container_align.html b/www/extras/tinymce2/docs/option_theme_advanced_container_align.html
index d944db655..972f69ef1 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_container_align.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_container_align.html
@@ -31,7 +31,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_container_class.html b/www/extras/tinymce2/docs/option_theme_advanced_container_class.html
index 71f9381a7..a663478f9 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_container_class.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_container_class.html
@@ -31,7 +31,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_containers.html b/www/extras/tinymce2/docs/option_theme_advanced_containers.html
index a6ceddfe4..cc4095645 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_containers.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_containers.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_containers_default_align.html b/www/extras/tinymce2/docs/option_theme_advanced_containers_default_align.html
index 89cf96b2e..41f040e92 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_containers_default_align.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_containers_default_align.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_containers_default_class.html b/www/extras/tinymce2/docs/option_theme_advanced_containers_default_class.html
index 9aee63474..166b183aa 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_containers_default_class.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_containers_default_class.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_custom_layout.html b/www/extras/tinymce2/docs/option_theme_advanced_custom_layout.html
index bafc1a4ca..ed523f3a5 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_custom_layout.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_custom_layout.html
@@ -41,7 +41,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_disable.html b/www/extras/tinymce2/docs/option_theme_advanced_disable.html
index e472821d3..6850f55ab 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_disable.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_disable.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_fonts.html b/www/extras/tinymce2/docs/option_theme_advanced_fonts.html
index 88b8791e8..77a5cecb9 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_fonts.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_fonts.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_layout_manager.html b/www/extras/tinymce2/docs/option_theme_advanced_layout_manager.html
index af479883f..0eb5c4e81 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_layout_manager.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_layout_manager.html
@@ -31,7 +31,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_link_targets.html b/www/extras/tinymce2/docs/option_theme_advanced_link_targets.html
index d1416a336..92cb33a2f 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_link_targets.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_link_targets.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_path.html b/www/extras/tinymce2/docs/option_theme_advanced_path.html
index 27874c98d..e76563356 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_path.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_path.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_path_location.html b/www/extras/tinymce2/docs/option_theme_advanced_path_location.html
index 9bbacd398..ee2c74a21 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_path_location.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_path_location.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_resize_horizontal.html b/www/extras/tinymce2/docs/option_theme_advanced_resize_horizontal.html
index b83b9cfce..869ada340 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_resize_horizontal.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_resize_horizontal.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_resizing.html b/www/extras/tinymce2/docs/option_theme_advanced_resizing.html
index 25c6e161f..a47d023a1 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_resizing.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_resizing.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_resizing_use_cookie.html b/www/extras/tinymce2/docs/option_theme_advanced_resizing_use_cookie.html
index 90df5b599..d9cc6a781 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_resizing_use_cookie.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_resizing_use_cookie.html
@@ -27,7 +27,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_source_editor_height.html b/www/extras/tinymce2/docs/option_theme_advanced_source_editor_height.html
index 6e14af81a..f8aff7da8 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_source_editor_height.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_source_editor_height.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_source_editor_width.html b/www/extras/tinymce2/docs/option_theme_advanced_source_editor_width.html
index fa11f9f4b..90c45076c 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_source_editor_width.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_source_editor_width.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_statusbar_location.html b/www/extras/tinymce2/docs/option_theme_advanced_statusbar_location.html
index 687ab6e35..415ed4259 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_statusbar_location.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_statusbar_location.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_styles.html b/www/extras/tinymce2/docs/option_theme_advanced_styles.html
index fa25eab23..997d3883b 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_styles.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_styles.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_toolbar_align.html b/www/extras/tinymce2/docs/option_theme_advanced_toolbar_align.html
index 93109355e..fc59eee3d 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_toolbar_align.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_toolbar_align.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_theme_advanced_toolbar_location.html b/www/extras/tinymce2/docs/option_theme_advanced_toolbar_location.html
index c7e9f1fa6..146b05fbb 100644
--- a/www/extras/tinymce2/docs/option_theme_advanced_toolbar_location.html
+++ b/www/extras/tinymce2/docs/option_theme_advanced_toolbar_location.html
@@ -33,7 +33,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_trim_span_elements.html b/www/extras/tinymce2/docs/option_trim_span_elements.html
index 3e07f87ae..e88e70dd9 100644
--- a/www/extras/tinymce2/docs/option_trim_span_elements.html
+++ b/www/extras/tinymce2/docs/option_trim_span_elements.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_urlconverter_callback.html b/www/extras/tinymce2/docs/option_urlconverter_callback.html
index a328df2d1..ae8ced6c9 100644
--- a/www/extras/tinymce2/docs/option_urlconverter_callback.html
+++ b/www/extras/tinymce2/docs/option_urlconverter_callback.html
@@ -12,7 +12,7 @@
- This option enable you to add your own URL converter logic. This option should contain a JavaScript function name. The format of this converter function is: URLConverter(url, node, on_save). There URL is the URL string to convert, node is the element that contains the URL that is to be converted this parameter may be set to null if there is no element for the URL and on_save is set to true when contents is to be extracted from the editor for example when the user submits the HTML form. This function should return the converted URL as a string. This option is set to a internal TinyMCE function "TinyMCE.prototype.convertURL" by default. You may call this function from your extention inorder to use the build in convertor options.
+ This option enable you to add your own URL converter logic. This option should contain a JavaScript function name. The format of this converter function is: URLConverter(url, node, on_save). There URL is the URL string to convert, node is the element that contains the URL that is to be converted this parameter may be set to null if there is no element for the URL and on_save is set to true when contents is to be extracted from the editor for example when the user submits the HTML form. This function should return the converted URL as a string. This option is set to a internal TinyMCE function "TinyMCE.prototype.convertURL" by default. You may call this function from your extention inorder to use the built in convert options.
@@ -38,7 +38,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_valid_elements.html b/www/extras/tinymce2/docs/option_valid_elements.html
index e6e1184ac..b332b5e54 100644
--- a/www/extras/tinymce2/docs/option_valid_elements.html
+++ b/www/extras/tinymce2/docs/option_valid_elements.html
@@ -30,6 +30,7 @@
| ? | Separates attribute verification values, see above. |
| + | Makes the element open if no child nodes exists. Example: +a. |
| - | Enables removal of empty elements such as >strong /<. Example: -strong. |
+
| # | Enables padding of empty elements, this will padd with if they are empty. Example: #p. |
Wildcards such as *,+,? may be used in element or attribute name matching.
@@ -64,7 +65,7 @@ tinyMCE.init({
-+a[id|style|rel|rev|charset|hreflang|dir|lang|tabindex|accesskey|type|name|href|target|title|class|onfocus|onblur|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup],-strong/b[class|style],-em/i[class|style],-strike[class|style],-u[class|style],+p[style|dir|class|align],-ol[class|style],-ul[class|style],-li[class|style],br,img[id|dir|lang|longdesc|usemap|style|class|src|onmouseover|onmouseout|border=0|alt|title|hspace|vspace|width|height|align],-sub[style|class],-sup[style|class],-blockquote[dir|style],-table[border=0|cellspacing|cellpadding|width|height|class|align|summary|style|dir|id|lang|bgcolor|background|bordercolor],-tr[id|lang|dir|class|rowspan|width|height|align|valign|style|bgcolor|background|bordercolor],tbody[id|class],thead[id|class],tfoot[id|class],-td[id|lang|dir|class|colspan|rowspan|width|height|align|valign|style|bgcolor|background|bordercolor|scope],-th[id|lang|dir|class|colspan|rowspan|width|height|align|valign|style|scope],caption[id|lang|dir|class|style],-div[id|dir|class|align|style],-span[style|class|align],-pre[class|align|style],address[class|align|style],-h1[style|dir|class|align],-h2[style|dir|class|align],-h3[style|dir|class|align],-h4[style|dir|class|align],-h5[style|dir|class|align],-h6[style|dir|class|align],hr[class|style],font[face|size|style|id|class|dir|color]
++a[id|style|rel|rev|charset|hreflang|dir|lang|tabindex|accesskey|type|name|href|target|title|class|onfocus|onblur|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup],-strong/-b[class|style],-em/-i[class|style],-strike[class|style],-u[class|style],#p[id|style|dir|class|align],-ol[class|style],-ul[class|style],-li[class|style],br,img[id|dir|lang|longdesc|usemap|style|class|src|onmouseover|onmouseout|border|alt=|title|hspace|vspace|width|height|align],-sub[style|class],-sup[style|class],-blockquote[dir|style],-table[border=0|cellspacing|cellpadding|width|height|class|align|summary|style|dir|id|lang|bgcolor|background|bordercolor],-tr[id|lang|dir|class|rowspan|width|height|align|valign|style|bgcolor|background|bordercolor],tbody[id|class],thead[id|class],tfoot[id|class],-td[id|lang|dir|class|colspan|rowspan|width|height|align|valign|style|bgcolor|background|bordercolor|scope],-th[id|lang|dir|class|colspan|rowspan|width|height|align|valign|style|scope],caption[id|lang|dir|class|style],-div[id|dir|class|align|style],-span[style|class|align],-pre[class|align|style],address[class|align|style],-h1[id|style|dir|class|align],-h2[id|style|dir|class|align],-h3[id|style|dir|class|align],-h4[id|style|dir|class|align],-h5[id|style|dir|class|align],-h6[id|style|dir|class|align],hr[class|style],-font[face|size|style|id|class|dir|color],dd[id|class|title|style|dir|lang],dl[id|class|title|style|dir|lang],dt[id|class|title|style|dir|lang]
@@ -72,7 +73,7 @@ tinyMCE.init({
Full XHTML rule set:
- This is the default string used by TinyMCE to cleanup the HTML contents.
+ The following will validate that the page complies fully with the XHTML specification.
@@ -272,7 +273,7 @@ valid_elements : ""
+"small[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
+"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
+"|title],"
-+"span[align
diff --git a/www/extras/tinymce2/docs/option_verify_css_classes.html b/www/extras/tinymce2/docs/option_verify_css_classes.html
index 8c3543a75..1109c208c 100644
--- a/www/extras/tinymce2/docs/option_verify_css_classes.html
+++ b/www/extras/tinymce2/docs/option_verify_css_classes.html
@@ -7,7 +7,7 @@
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_verify_html.html b/www/extras/tinymce2/docs/option_verify_html.html
index 36c52df19..9327a471e 100644
--- a/www/extras/tinymce2/docs/option_verify_html.html
+++ b/www/extras/tinymce2/docs/option_verify_html.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_visual.html b/www/extras/tinymce2/docs/option_visual.html
index a836f5b78..587e5a4cb 100644
--- a/www/extras/tinymce2/docs/option_visual.html
+++ b/www/extras/tinymce2/docs/option_visual.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_visual_table_class.html b/www/extras/tinymce2/docs/option_visual_table_class.html
index 22909937d..3f6a188a3 100644
--- a/www/extras/tinymce2/docs/option_visual_table_class.html
+++ b/www/extras/tinymce2/docs/option_visual_table_class.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/option_width.html b/www/extras/tinymce2/docs/option_width.html
index 01c1db081..b114d342e 100644
--- a/www/extras/tinymce2/docs/option_width.html
+++ b/www/extras/tinymce2/docs/option_width.html
@@ -30,7 +30,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/plugin_advhr.html b/www/extras/tinymce2/docs/plugin_advhr.html
index ee85cf42d..12617a3b5 100644
--- a/www/extras/tinymce2/docs/plugin_advhr.html
+++ b/www/extras/tinymce2/docs/plugin_advhr.html
@@ -38,7 +38,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/plugin_advimage.html b/www/extras/tinymce2/docs/plugin_advimage.html
index abb0fe7fc..f6141e9dd 100644
--- a/www/extras/tinymce2/docs/plugin_advimage.html
+++ b/www/extras/tinymce2/docs/plugin_advimage.html
@@ -40,8 +40,7 @@
tinyMCE.init({
theme : "advanced",
mode : "textareas",
- plugins : "preview",
- extended_valid_elements : "a[name|href|target|title|onclick]"
+ plugins : "preview"
});
@@ -50,7 +49,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/plugin_advlink.html b/www/extras/tinymce2/docs/plugin_advlink.html
index 951963ede..72b94fc05 100644
--- a/www/extras/tinymce2/docs/plugin_advlink.html
+++ b/www/extras/tinymce2/docs/plugin_advlink.html
@@ -39,8 +39,7 @@
tinyMCE.init({
theme : "advanced",
mode : "textareas",
- plugins : "advlink",
- extended_valid_elements : "a[name|href|target|title|onclick]"
+ plugins : "advlink"
});
@@ -48,7 +47,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/plugin_autosave.html b/www/extras/tinymce2/docs/plugin_autosave.html
index 0dc4adc12..7929216bf 100644
--- a/www/extras/tinymce2/docs/plugin_autosave.html
+++ b/www/extras/tinymce2/docs/plugin_autosave.html
@@ -27,7 +27,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/plugin_contextmenu.html b/www/extras/tinymce2/docs/plugin_contextmenu.html
index a5c9ed364..0ce0d101e 100644
--- a/www/extras/tinymce2/docs/plugin_contextmenu.html
+++ b/www/extras/tinymce2/docs/plugin_contextmenu.html
@@ -35,7 +35,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/plugin_directionality.html b/www/extras/tinymce2/docs/plugin_directionality.html
index 2eaca168c..c5c986dcd 100644
--- a/www/extras/tinymce2/docs/plugin_directionality.html
+++ b/www/extras/tinymce2/docs/plugin_directionality.html
@@ -36,7 +36,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/plugin_emotions.html b/www/extras/tinymce2/docs/plugin_emotions.html
index f178f7398..ae2556363 100644
--- a/www/extras/tinymce2/docs/plugin_emotions.html
+++ b/www/extras/tinymce2/docs/plugin_emotions.html
@@ -45,7 +45,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/plugin_flash.html b/www/extras/tinymce2/docs/plugin_flash.html
index f0447d83d..77d6c16a4 100644
--- a/www/extras/tinymce2/docs/plugin_flash.html
+++ b/www/extras/tinymce2/docs/plugin_flash.html
@@ -71,7 +71,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/plugin_fullscreen.html b/www/extras/tinymce2/docs/plugin_fullscreen.html
index b6b1832e0..6acc3329d 100644
--- a/www/extras/tinymce2/docs/plugin_fullscreen.html
+++ b/www/extras/tinymce2/docs/plugin_fullscreen.html
@@ -50,7 +50,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/plugin_iespell.html b/www/extras/tinymce2/docs/plugin_iespell.html
index dfc6f7f88..5137218cf 100644
--- a/www/extras/tinymce2/docs/plugin_iespell.html
+++ b/www/extras/tinymce2/docs/plugin_iespell.html
@@ -37,7 +37,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/plugin_inlinepopups.html b/www/extras/tinymce2/docs/plugin_inlinepopups.html
index 9e6af0473..61a2a2388 100644
--- a/www/extras/tinymce2/docs/plugin_inlinepopups.html
+++ b/www/extras/tinymce2/docs/plugin_inlinepopups.html
@@ -28,7 +28,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/plugin_insertdatetime.html b/www/extras/tinymce2/docs/plugin_insertdatetime.html
index 5a5e95d18..0cd07c362 100644
--- a/www/extras/tinymce2/docs/plugin_insertdatetime.html
+++ b/www/extras/tinymce2/docs/plugin_insertdatetime.html
@@ -99,7 +99,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/plugin_noneditable.html b/www/extras/tinymce2/docs/plugin_noneditable.html
index fb4dbd5ee..3826bc4c4 100644
--- a/www/extras/tinymce2/docs/plugin_noneditable.html
+++ b/www/extras/tinymce2/docs/plugin_noneditable.html
@@ -46,7 +46,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/plugin_paste.html b/www/extras/tinymce2/docs/plugin_paste.html
index d1269dd9e..d42e93c86 100644
--- a/www/extras/tinymce2/docs/plugin_paste.html
+++ b/www/extras/tinymce2/docs/plugin_paste.html
@@ -39,8 +39,25 @@ tinyMCE.init({
paste_auto_cleanup_on_paste : true,
paste_convert_middot_lists : false,
paste_unindented_list_class : "unindentedList",
- paste_convert_headers_to_strong : true
+ paste_convert_headers_to_strong : true,
+ paste_insert_word_content_callback : "convertWord"
});
+
+function convertWord(type, content) {
+ switch (type) {
+ // Gets executed before the built in logic performes it's cleanups
+ case "before":
+ content = content.toLowerCase(); // Some dummy logic
+ break;
+
+ // Gets executed after the built in logic performes it's cleanups
+ case "after":
+ content = content.toLowerCase(); // Some dummy logic
+ break;
+ }
+
+ return content;
+}
@@ -59,7 +76,7 @@ tinyMCE.init({
| [paste_use_dialog] |
- MSIE specific option, if you set this to false both Mozilla and MSIE will present a paste dialog. If you set it to true pasting in MSIE will be done directly. This option is set to false by default. |
+ MSIE specific option, if you set this to true both Mozilla and MSIE will present a paste dialog. If you set it to false pasting in MSIE will be done directly. This option is set to false by default. |
| [paste_auto_cleanup_on_paste] |
@@ -77,6 +94,14 @@ tinyMCE.init({
[paste_convert_headers_to_strong] |
This feature converts H1-6 elements to strong elements on paste, this is feature is disabled by default. |
+
+ | [paste_remove_spans] |
+ This enables you to control if the word parse operation should remove or keep span elements, they will be removed by default. |
+
+
+ | [paste_remove_styles] |
+ This enables you to control if the word parse operation should remove or keep style attributes, they will be removed by default. |
+
| [paste_replace_list] |
Comma separated list of search/replace chunks. Where even items is the regexp that is to be used for the search and odd values are the contents that are to be replaced.
@@ -94,6 +119,11 @@ tinyMCE.init({
|
+
+ | [paste_insert_word_content_callback] |
+ This option enables you to specify a callback function. This callback is executed when the user pastes word content, the return value of this function will be the new content string. Check the example above for more details.
+ |
+
@@ -101,7 +131,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/plugin_preview.html b/www/extras/tinymce2/docs/plugin_preview.html
index 487bc5eb2..9bba87415 100644
--- a/www/extras/tinymce2/docs/plugin_preview.html
+++ b/www/extras/tinymce2/docs/plugin_preview.html
@@ -58,7 +58,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/plugin_print.html b/www/extras/tinymce2/docs/plugin_print.html
index 797854e15..696f12391 100644
--- a/www/extras/tinymce2/docs/plugin_print.html
+++ b/www/extras/tinymce2/docs/plugin_print.html
@@ -37,7 +37,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/plugin_save.html b/www/extras/tinymce2/docs/plugin_save.html
index 87c1c81f9..c42bde11d 100644
--- a/www/extras/tinymce2/docs/plugin_save.html
+++ b/www/extras/tinymce2/docs/plugin_save.html
@@ -20,7 +20,26 @@
Add the ltr, rtl button names to button list, example: theme_advanced_buttons3_add : "save".
+
+
+
Options
+
+
+
+
+ | [save_enablewhendirty] |
+ If you set this option to true, the edit button will be disabled/dimmed until modifications are made. This is disabled by default. |
+
+
+ | [onchange_callback] |
+ This option enables you to add a custom function to be called when the save button/command is invoked. This is not used by default. |
+
+
+
+
+
Initialization Example
+
@@ -28,7 +47,9 @@ tinyMCE.init({
theme : "advanced",
mode : "textareas",
plugins : "save",
- theme_advanced_buttons3_add : "save"
+ theme_advanced_buttons3_add : "save",
+ save_enablewhendirty : true,
+ onchange_callback : "mysave"
});
@@ -36,7 +57,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/plugin_searchreplace.html b/www/extras/tinymce2/docs/plugin_searchreplace.html
index 9914dfeb7..0538fde22 100644
--- a/www/extras/tinymce2/docs/plugin_searchreplace.html
+++ b/www/extras/tinymce2/docs/plugin_searchreplace.html
@@ -36,7 +36,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/plugin_table.html b/www/extras/tinymce2/docs/plugin_table.html
index 7e525ca7e..7706f97a9 100644
--- a/www/extras/tinymce2/docs/plugin_table.html
+++ b/www/extras/tinymce2/docs/plugin_table.html
@@ -59,6 +59,9 @@
| table_styles | This option should contain a semicolon separated list of class titles and class names separated by =. The titles are the ones that get presented to the user in the styles drop down list and and the class names is the classes that gets inserted. |
| table_cell_styles | This option should contain a semicolon separated list of class titles and class names separated by =. The titles are the ones that get presented to the user in the styles drop down list and and the class names is the classes that gets inserted. |
| table_row_styles | This option should contain a semicolon separated list of class titles and class names separated by =. The titles are the ones that get presented to the user in the styles drop down list and and the class names is the classes that gets inserted. |
+
| table_cell_limit | Enables you to specify the max number of cells for a table. |
+
| table_row_limit | Enables you to specify the max number of rows for a table. |
+
| table_col_limit | Enables you to specify the max number of columns for a table. |
@@ -82,7 +85,10 @@ tinyMCE.init({
theme_advanced_buttons3_add : "
tablecontrols",
table_styles : "Header 1=header1;Header 2=header2;Header 3=header3",
table_cell_styles : "Header 1=header1;Header 2=header2;Header 3=header3;Table Cell=tableCel1",
- table_row_styles : "Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1"
+ table_row_styles : "Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1",
+ table_cell_limit : 100,
+ table_row_limit : 5,
+ table_col_limit : 5
});
@@ -90,7 +96,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/plugin_zoom.html b/www/extras/tinymce2/docs/plugin_zoom.html
index d27844ade..93f7b06b2 100644
--- a/www/extras/tinymce2/docs/plugin_zoom.html
+++ b/www/extras/tinymce2/docs/plugin_zoom.html
@@ -36,7 +36,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/reference_buttons.html b/www/extras/tinymce2/docs/reference_buttons.html
index 1da568a55..6cd62997d 100644
--- a/www/extras/tinymce2/docs/reference_buttons.html
+++ b/www/extras/tinymce2/docs/reference_buttons.html
@@ -43,6 +43,10 @@
code
hr
removeformat
+ formatselect
+ fontselect
+ fontsizeselect
+ styleselect
sub
sup
forecolor
@@ -61,14 +65,25 @@
iespell
preview
print
-
save
zoom
fullscreen
+
advhr
+
fullpage
+
spellchecker
Plugins with custom buttons
@@ -100,7 +103,10 @@
init_instance_callback
file_browser_callback
cleanup_callback
+
handle_event_callback
+
execcommand_callback
oninit
+
onpageload
Layout
@@ -123,6 +129,7 @@
custom_undo_redo
custom_undo_redo_levels
custom_undo_redo_keyboard_shortcuts
+
custom_undo_redo_restore_selection
File lists
@@ -205,7 +212,7 @@ tinyMCE.init({
diff --git a/www/extras/tinymce2/docs/reference_javascript_functions.html b/www/extras/tinymce2/docs/reference_javascript_functions.html
index 3b936b9f3..a0aedc3b6 100644
--- a/www/extras/tinymce2/docs/reference_javascript_functions.html
+++ b/www/extras/tinymce2/docs/reference_javascript_functions.html
@@ -223,8 +223,9 @@ Example:
-
tinyMCE.insertLink(href, target);
-
+
(Deprecated) tinyMCE.insertLink(href, target);
+
This method is deprecated and removed as of 2.0.3. Use tinyMCE.execCommand('mceInsertContent',false,'custom html'); instead and tinyMCE.getInstanceById('<inst>').selection.getFocusElement() to retrive/update the selected element.
+
But if you realy need the old function it's marked internal but is available in the advanced theme and you can call it by using tinyMCE.themes['advanced']._insertLink(href, target);. But the recommended way is to modify your code to use the logic above.
This method inserts a link a the cursor position of the selected editor instance or updates the selected link with new data. This method should be called upon "ok" in the insertLink popup when you create custom themes.
@@ -248,7 +249,8 @@ Example:
Returns: Nothing
-tinyMCE.insertImage(src, alt, border, hspace, vspace, width, height, align, title, onmouseover, onmouseout);
+(Deprecated) tinyMCE.insertImage(src, alt, border, hspace, vspace, width, height, align, title, onmouseover, onmouseout);
+
This method is deprecated and removed as of 2.0.3. Use tinyMCE.execCommand('mceInsertContent',false,'custom html'); instead or if you realy need the old function it's marked internal but is available in the advanced theme and you can call it by using tinyMCE.themes['advanced']._insertImage(src, alt, border, hspace, vspace, width, height, align, title, onmouseover, onmouseout);. But the recommended way is to modify your code to use the logic above.
This method inserts a image a the cursor position of the selected editor instance or updates the selected image with new data. This method should be called upon "ok" in the insertImage popup when you create custom themes.
@@ -379,7 +381,7 @@ This method returns a editor instance by editor id.
-Returns: TinyMCE Editor instance (TinyMCEControl).
+Returns: TinyMCE Editor instance (TinyMCE_Control).
tinyMCE.importThemeLanguagePack([theme]);
@@ -587,7 +589,7 @@ Returns: TinyMCE configuration parameter.
diff --git a/www/extras/tinymce2/docs/reference_plugins.html b/www/extras/tinymce2/docs/reference_plugins.html
index 4e44d14d7..91521ab88 100644
--- a/www/extras/tinymce2/docs/reference_plugins.html
+++ b/www/extras/tinymce2/docs/reference_plugins.html
@@ -48,7 +48,10 @@
zoom
directionality
fullscreen
+
fullpage
inlinepopups
+
fullpage
+
spellchecker
@@ -65,7 +68,7 @@
diff --git a/www/extras/tinymce2/examples/example_advanced.htm b/www/extras/tinymce2/examples/example_advanced.htm
index 7dacef689..c22339310 100644
--- a/www/extras/tinymce2/examples/example_advanced.htm
+++ b/www/extras/tinymce2/examples/example_advanced.htm
@@ -9,8 +9,6 @@
theme : "advanced",
mode : "exact",
elements : "elm1,elm2",
- //insertlink_callback : "customInsertLink",
- //insertimage_callback : "customInsertImage",
save_callback : "customSave",
content_css : "example_advanced.css",
extended_valid_elements : "a[href|target|name]",
@@ -18,46 +16,39 @@
theme_advanced_buttons3_add_before : "tablecontrols,separator",
//invalid_elements : "a",
theme_advanced_styles : "Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1", // Theme specific setting CSS classes
+ //execcommand_callback : "myCustomExecCommandHandler",
debug : false
});
- // Custom insert link callback, extends the link function
- function customInsertLink(href, target) {
- var result = new Array();
+ // Custom event handler
+ function myCustomExecCommandHandler(editor_id, elm, command, user_interface, value) {
+ var linkElm, imageElm, inst;
- alert("customInsertLink called href: " + href + " target: " + target);
+ switch (command) {
+ case "mceLink":
+ inst = tinyMCE.getInstanceById(editor_id);
+ linkElm = tinyMCE.getParentElement(inst.selection.getFocusElement(), "a");
- result['href'] = "http://www.sourceforge.net";
- result['target'] = '_blank';
+ if (linkElm)
+ alert("Link dialog has been overriden. Found link href: " + tinyMCE.getAttrib(linkElm, "href"));
+ else
+ alert("Link dialog has been overriden.");
- return result;
- }
+ return true;
- // Custom insert image callback, extends the image function
- function customInsertImage(src, alt, border, hspace, vspace, width, height, align) {
- var result = new Array();
+ case "mceImage":
+ inst = tinyMCE.getInstanceById(editor_id);
+ imageElm = tinyMCE.getParentElement(inst.selection.getFocusElement(), "img");
- var debug = "CustomInsertImage called:\n"
- debug += "src: " + src + "\n";
- debug += "alt: " + alt + "\n";
- debug += "border: " + border + "\n";
- debug += "hspace: " + hspace + "\n";
- debug += "vspace: " + vspace + "\n";
- debug += "width: " + width + "\n";
- debug += "height: " + height + "\n";
- debug += "align: " + align + "\n";
- alert(debug);
+ if (imageElm)
+ alert("Image dialog has been overriden. Found image src: " + tinyMCE.getAttrib(imageElm, "src"));
+ else
+ alert("Image dialog has been overriden.");
- result['src'] = "logo.jpg";
- result['alt'] = "test description";
- result['border'] = "2";
- result['hspace'] = "5";
- result['vspace'] = "5";
- result['width'] = width;
- result['height'] = height;
- result['align'] = "right";
+ return true;
+ }
- return result;
+ return false; // Pass to next handler in chain
}
// Custom save callback, gets called when the contents is to be submitted
@@ -100,9 +91,9 @@ Some custom actions:
[Bold] |
[Italic]
[Insert some HTML]
-
[Replace selection]
+
[Replace selection]
-
\ No newline at end of file
+
diff --git a/www/extras/tinymce2/examples/example_full.htm b/www/extras/tinymce2/examples/example_full.htm
index e6a8cea0a..0024f546e 100644
--- a/www/extras/tinymce2/examples/example_full.htm
+++ b/www/extras/tinymce2/examples/example_full.htm
@@ -7,28 +7,26 @@
tinyMCE.init({
mode : "textareas",
theme : "advanced",
- plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print,paste,directionality,fullscreen,noneditable,contextmenu",
+ plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable",
theme_advanced_buttons1_add_before : "save,newdocument,separator",
theme_advanced_buttons1_add : "fontselect,fontsizeselect",
- theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor,liststyle",
+ theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,separator,forecolor,backcolor",
theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
theme_advanced_buttons3_add_before : "tablecontrols,separator",
theme_advanced_buttons3_add : "emotions,iespell,flash,advhr,separator,print,separator,ltr,rtl,separator,fullscreen",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
- theme_advanced_statusbar_location : "bottom",
+ theme_advanced_path_location : "bottom",
content_css : "example_full.css",
plugin_insertdate_dateFormat : "%Y-%m-%d",
plugin_insertdate_timeFormat : "%H:%M:%S",
- extended_valid_elements : "hr[class|width|size|noshade]",
+ extended_valid_elements : "hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
external_link_list_url : "example_link_list.js",
external_image_list_url : "example_image_list.js",
flash_external_list_url : "example_flash_list.js",
file_browser_callback : "fileBrowserCallBack",
- paste_use_dialog : false,
- theme_advanced_resizing : true,
theme_advanced_resize_horizontal : false,
- theme_advanced_link_targets : "_something=My somthing;_something2=My somthing2;_something3=My somthing3;"
+ theme_advanced_resizing : true
});
function fileBrowserCallBack(field_name, url, type, win) {
@@ -62,4 +60,4 @@