diff --git a/lib/editor/tinymce/docs/about.html b/lib/editor/tinymce/docs/about.html deleted file mode 100644 index e44a8337550..00000000000 --- a/lib/editor/tinymce/docs/about.html +++ /dev/null @@ -1,41 +0,0 @@ - - - -About - - - - -
-

About

-
- -
-

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 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. -

-

Features

-

-

-

-
-
- - - - - diff --git a/lib/editor/tinymce/docs/compatiblity_chart.html b/lib/editor/tinymce/docs/compatiblity_chart.html deleted file mode 100644 index 25b2ddeb213..00000000000 --- a/lib/editor/tinymce/docs/compatiblity_chart.html +++ /dev/null @@ -1,84 +0,0 @@ - - - -Compatiblity Chart - - - - -
-

Compatiblity Chart

-
- -
-

Browser support

-
-

TinyMCE uses advanced JavaScript and tries to be as smart as possible when it comes to different browsers, the main focus is on Microsoft Internet Explorer and Mozilla/Firefox. The table was reset to only show the browsers we ourselves can test on. It works with many older versions of Mozilla and Firefox. Just cause a browser is not listed on this page doesn't mean it does not work, try out the examples on our website.

- -

Since MacOS X 10.4 is more or less Linux we are not testing much on Linux any more, use the Sourceforge bug report system to submit bugs on the very latest browsers only.

-

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Windows XPMacOS X 10.4
MSIE 6OK 
MSIE 5.5 SP2OK 
MSIE 5.0OK 
Mozilla 1.7.xOKOK
Firefox 1.0.xOKOK
Firefox 1.5b2OKOK
Safari 2.0 (412) OK(1)
Opera 9 Preview 1OK(1)OK(1)
-

-

-

-

-
-
- - - - - diff --git a/lib/editor/tinymce/docs/credits.html b/lib/editor/tinymce/docs/credits.html deleted file mode 100644 index 76976647927..00000000000 --- a/lib/editor/tinymce/docs/credits.html +++ /dev/null @@ -1,82 +0,0 @@ - - - -Credits - - - - -
-

Credits

-
- -
-

Contributors

-
-

These are the people, companies or organizations that have contributed in some way to the TinyMCE project. If you feel we are missing someone please inform us right away and we will correct this in future versions of TinyMCE.

-

- Please note that some of these have contributed with complete language packs and some have updated parts of language packs or similar. -

-
-
-
-

-

-

-

There are also a few corporations that have contributed in various ways to have features developed by payed support. -

-
-
- - - - - diff --git a/lib/editor/tinymce/docs/css/screen.css b/lib/editor/tinymce/docs/css/screen.css deleted file mode 100644 index 3257c4bafe1..00000000000 --- a/lib/editor/tinymce/docs/css/screen.css +++ /dev/null @@ -1,168 +0,0 @@ -body { - background-color: #FFFFFF; - font-family: Verdana, Arial, helvetica, sans-serif; - font-size: 12px; -} - -.header { - border: #E0E0E0 solid 1px; -} - -.footer { - border: #E0E0E0 solid 1px; - height: 20px; -} - -h1 { - font-size: 18px; - font-weight: bold; - padding: 0; - margin: 4px; -} - -h2 { - font-size: 14px; - font-weight: bold; - padding: 0; - margin: 0; - margin-top: 4px; - margin-bottom: 4px; -} - -h3 { - font-size: 11px; - font-weight: bold; - padding: 0; - margin: 0; - margin-bottom: 3px; -} - -.section { - margin-left: 15px; -} - -.column { - margin-right: 20px; - float: left -} - -.separator { - border-bottom: 1px solid #E6EBF1; - margin-top: 10px; - margin-bottom: 10px; -} - -p { -} - -.helpindex { - margin-left: 20px; - padding-left: 0; -} - - -.optionlist { - margin: 0; - padding: 0; - margin-bottom: 10px; -} - -.optionlist li { - padding: 0; - margin: 0; - margin-top: 3px; - margin-bottom: 3px; - margin-left: 10px; - list-style-type: none; -} - -.helpindex li { - margin-top: 3px; -} - -.content { - margin: 10px; -} - -.example { - background-color: #E6EBF1; - margin-left: 10px; -} - -code, pre { - margin: 0; - padding: 0; - background-color: #E6EBF1; -} - -.copyright { - margin: 3px; - float: left; -} - -.helpindexlink { - margin: 3px; - float: right; -} - -a:visited { - color: #666666; - text-decoration: underline; -} - -a:active { - color: #666666; - text-decoration: underline; -} - -a:hover { - color: #666666; - text-decoration: underline; -} - -a { - color: #666666; - text-decoration: underline; -} - -.list_subtitle { - padding-top: 5px; -} - -.note { - margin-top: 5px; - margin-left: 10px; - font-size: 10px; -} - -.marked { - color: red; - font-weight: bold; -} - -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/lib/editor/tinymce/docs/customization_language_packs.html b/lib/editor/tinymce/docs/customization_language_packs.html deleted file mode 100644 index 12fc3a65d75..00000000000 --- a/lib/editor/tinymce/docs/customization_language_packs.html +++ /dev/null @@ -1,51 +0,0 @@ - - - -Customization - Creating a language pack - - - - -
-

Customization - Creating a language pack

-
- -
-

Making language packs

-

Language packs are simply JavaScript name/value arrays placed in the ".js" files in the "lang" directory. Remember to allways use the "lang_" prefix for these value names so that they don't override other variables in the templates. The example below shows how the cut, copy and paste texts are lang packed. Notice there are three kinds of language packs the first one is the general one shared by all themes these are located in the "jscripts/tiny_mce/langs" directory the secound ones are theme specific language packs these are contained in "jscripts/tiny_mce/themes/<some theme>/langs" and the last one is plugin specific language packs located in each plugin. -

-

-

-
-tinyMCE.addToLang('',{
-cut_desc : 'Cut (Ctrl+X)',
-copy_desc : 'Copy (Ctrl+C)',
-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

- When translating TinyMCE, these are the files that currently needs to be translated: -

-

- /tinymce/jscripts/tiny_mce/langs/en.js
- /tinymce/jscripts/tiny_mce/plugins/<plugin>/langs/en.js
- /tinymce/jscripts/tiny_mce/themes/advanced/langs/en.js
-

-

- 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. -

-
- - - - - diff --git a/lib/editor/tinymce/docs/customization_plugins.html b/lib/editor/tinymce/docs/customization_plugins.html deleted file mode 100644 index d0944e49d9a..00000000000 --- a/lib/editor/tinymce/docs/customization_plugins.html +++ /dev/null @@ -1,227 +0,0 @@ - - - -Customization - Creating a plugin - - - - -
-

Customization - Creating a plugin

-
- -
- -

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. -

-

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

-

- - - - - - - - - - - - -
File/Directory - Description -
cssPlugin specific CSS files
docsPlugin specific documentation
imagesPlugin specific images
jscriptsPlugin specific jscripts for HTML dialogs
langsPlugin specific language files
editor_plugin.jsEditor plugin file (compressed).
editor_plugin_src.jsEditor plugin file (source).
somedialog.htmPlugin specific dialog HTML file.
-

-
-

Plugin example source

-

-The example below shows a simple empty plugin and all possible callbacks. -

-

-

-
-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;
-	}
-};
-
-// Adds the plugin class to the list of available TinyMCE plugins
-tinyMCE.addPlugin("someplugin", TinyMCE_SomePluginPlugin);
-
-
-

-
- - - - - diff --git a/lib/editor/tinymce/docs/customization_themes.html b/lib/editor/tinymce/docs/customization_themes.html deleted file mode 100644 index 02915798ea4..00000000000 --- a/lib/editor/tinymce/docs/customization_themes.html +++ /dev/null @@ -1,262 +0,0 @@ - - - -Customization - Creating a theme - - - - -
-

Customization - Creating a theme

-
- -
-

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 "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

-

- - - - - - - - - - - - -
File/Directory - Description -
cssTheme specific CSS files
docsTheme specific documentation
imagesTheme specific images
jscriptsTheme specific jscripts for HTML dialogs
langsTheme specific language files
editor_template.jsEditor theme template file (compressed).
editor_template_src.jsEditor theme template file (source).
somedialog.htmTheme specific dialog HTML file.
-

-
-

Theme example source

-

-The example below shows a simple empty theme and all possible callbacks. -

-

-

-
-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"
-		};
-	},
-
-	/**
-	 * 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));
-
-		// 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 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');
-		}
-
-		return "";
-	},
-
-	/**
-	 * 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 = "";
-
-		// Build toolbar and editor instance
-		html += "..";
-
-		return {
-			html : html,
-			delta_width : 0,
-			delta_height : 0
-		};
-	},
-
-	/**
-	 * 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.
-
-				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 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);
-
-
-

-
- -

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_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_theme_sample_desc}</strong>
-</body>
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/faq.html b/lib/editor/tinymce/docs/faq.html deleted file mode 100644 index df90bfe6d48..00000000000 --- a/lib/editor/tinymce/docs/faq.html +++ /dev/null @@ -1,220 +0,0 @@ - - - -Frequently Asked Questions - - - - -
-

Frequently Asked Questions

-
- -
-

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.

-

-

    -
  • Does TinyMCE work on the TinyMCE website. Then you know that TinyMCE works with your browser.
  • -
  • Try to disable any other JavaScripts on the page, some scripts interfere with internal functions that TinyMCE uses. Those scripts are probably poorly written.
  • -
  • Check that you havn't missed removing the last , character in your initialization code and that all the other rows have a trailing , character.
  • -
  • Verify that the path/URL to TinyMCE is correct, you can use the excellent tool Fiddler for this and other HTTP debugging.
  • -
  • Do not cross domain load TinyMCE or any other script unless you really really must, since this will invoke various browser security features. In other words, try placing everything on the same server.
  • -
  • Don't place textareas within paragraph elements since this is not valid HTML and it will break MSIE and TinyMCE.
  • -
-

-
- -
- - -

Why is my paths incorrect, I want absolute/relative URLs?

-
-

- These are the diffrent configuration scenarios for URLs within TinyMCE: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
OutputConfigDescription
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.

-
- -
- - -

How do I change the default font size/face color of the editor?

-
-

- We recommend that you have a look at the content_css option, this enables you to switch the CSS file TinyMCE uses for it's editing area with a file with your CSS rules for font size and so forth. -

-
- -
- - -

How do I remove/add buttons/controls to TinyMCE?

-
-

- There are quite a few options for this but a reference of all available buttons/control names can be found in the button/control reference. -

-
- -
- - -

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.

-
- -
- - -

TinyMCE takes ages to load, is there a way to make it load quicker?

-
-

- If you use PHP on your server you can use tiny_mce_gzip.php instead of tiny_mce.js in page script call. This PHP file bundles all .js files together into two HTTP requests instead of one for each plugin, language file and theme and it also GZip compresses these files. -

-
- -
- - -

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".

-
- -
- - -

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. -

-
- -
- - -

I don't like LGPL, is there a commercial license available for me?

-
-

- Yes, we can draw up a license for you that enables you to remove copyright restrictions or anything else you would like to have in this license agreement. Contact us through email, sales (at) moxiecode (dot) com. -

-
- -
- - -

Do you provide support?

-
-

- We do not provide any non-commercial support outside the forum on the TinyMCE web site. If you require commercial support, contact us by email, sales (at) moxiecode (dot) com. -

-
- -
- - -

Who made this software?

-
-

- The author of TinyMCE is Moxiecode Systems, parts of code has also been contributed by others, here are the credits list. -

-
-
- - - - - diff --git a/lib/editor/tinymce/docs/images/moxiecode.gif b/lib/editor/tinymce/docs/images/moxiecode.gif deleted file mode 100644 index ae188807475..00000000000 Binary files a/lib/editor/tinymce/docs/images/moxiecode.gif and /dev/null differ diff --git a/lib/editor/tinymce/docs/index.html b/lib/editor/tinymce/docs/index.html deleted file mode 100644 index aa5cc1f17b8..00000000000 --- a/lib/editor/tinymce/docs/index.html +++ /dev/null @@ -1,44 +0,0 @@ - - - -TinyMCE Documentation - Index - - - - -
-

TinyMCE Documentation

-
- -
- -
- - - - - diff --git a/lib/editor/tinymce/docs/installation_example_00.html b/lib/editor/tinymce/docs/installation_example_00.html deleted file mode 100644 index 124930ec1d9..00000000000 --- a/lib/editor/tinymce/docs/installation_example_00.html +++ /dev/null @@ -1,35 +0,0 @@ - - - -Installation Example 00 - - - - - - -
-

Installation example 00

-
- -
-

Example

-
- -
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/installation_example_01.html b/lib/editor/tinymce/docs/installation_example_01.html deleted file mode 100644 index cec9d58d3f0..00000000000 --- a/lib/editor/tinymce/docs/installation_example_01.html +++ /dev/null @@ -1,36 +0,0 @@ - - - -Installation Example 01 - - - - - - -
-

Installation example 01

-
- -
-

Example

-

Open this page with "View source" or similar to see how the configuration is made.

-
- -
-
- - - - - - diff --git a/lib/editor/tinymce/docs/installation_example_02.html b/lib/editor/tinymce/docs/installation_example_02.html deleted file mode 100644 index a40c7fb405c..00000000000 --- a/lib/editor/tinymce/docs/installation_example_02.html +++ /dev/null @@ -1,52 +0,0 @@ - - - -Installation Example 02 - - - - - - -
-

Installation example 02

-
- -
-

Example

-

Open this page with "View source" or similar to see how the configuration is made.

-
- -
-
- - - - - - diff --git a/lib/editor/tinymce/docs/installation_example_03.html b/lib/editor/tinymce/docs/installation_example_03.html deleted file mode 100644 index 5879bc044a9..00000000000 --- a/lib/editor/tinymce/docs/installation_example_03.html +++ /dev/null @@ -1,43 +0,0 @@ - - - -Installation Example 02 - - - - - - -
-

Installation example 02

-
- -
-

Example

-

Open this page with "View source" or similar to see how the configuration is made.

-
- -
-
- - - - - - diff --git a/lib/editor/tinymce/docs/installing.html b/lib/editor/tinymce/docs/installing.html deleted file mode 100644 index 2ed668d7934..00000000000 --- a/lib/editor/tinymce/docs/installing.html +++ /dev/null @@ -1,121 +0,0 @@ - - - -Installation instructions - - - - -
-

Installation instructions

-
- -
-

Installing TinyMCE is very simple, follow the instructions here. We give a few examples of to integrate TinyMCE, also look at the extensive options for configuration.

- -
- -

Requirements

-
-

TinyMCE has no direct requirements except for browser compatibility and of course JavaScript needs to be turned on. There is NO backend code distributed with TinyMCE. -

-
- -
- -

Downloading

-
-

For download instructions check our web site.

-
- -
- -

Extracting the archives

-
-

On windows you could use WinZip or something similar. And on other operating systems such as Linux you simply extract the archive with the tar command. You can find a example on how to extract the archived file on Linux below.

-

- You should extract TinyMCE in your wwwroot or site domain root folder -

-

Extract example using a shell:

-
-
-$ cd wwwroot
-$ gzip -d tinymce_1_44.tar.gz
-$ tar xvf tinymce_1_44.tar
-
-
-

-

A folder structure looking like this is created:

-
-
-/tinymce/
-/tinymce/docs/
-/tinymce/docs/zh_cn/
-/tinymce/examples/
-/tinymce/examples/zh_cn/
-/tinymce/jscripts/
-/tinymce/jscripts/tiny_mce/
-/tinymce/jscripts/tiny_mce/langs/
-/tinymce/jscripts/tiny_mce/plugins/
-/tinymce/jscripts/tiny_mce/plugins/<plugin folders>
-/tinymce/jscripts/tiny_mce/themes/
-/tinymce/jscripts/tiny_mce/themes/advanced/
-/tinymce/jscripts/tiny_mce/themes/default/
-/tinymce/jscripts/tiny_mce/themes/simple/
-
-
-

-
- -
- -

Making changes on your web site

-
-

Once you have extracted the archive you will need to edit the pages to include the configuration and javascript for TinyMCE. Please note that you should probably only include the TinyMCE javascript on the pages that need it, not all the pages of the web site. Remember to change the URL to the .js below to match your installation path.

-

-

The most basic page integration (converts all textarea elements into editors):

-
-
-<html>
-<head>
-<title>TinyMCE Test</title>
-<script language="javascript" type="text/javascript" src="../jscripts/tiny_mce/tiny_mce.js"></script>
-<script language="javascript" type="text/javascript">
-tinyMCE.init({
-	mode : "textareas"
-});
-</script>
-</head>
-<body>
-<form method="post">
-	<textarea name="content" cols="50" rows="15">This is some content that will be editable with TinyMCE.</textarea>
-</form>
-</body>
-</html>
-
-
-

-

- Here are a few different example of how you could integrate TinyMCE. -

-

-

-

-

- If you have any problems, you should check the forum on the TinyMCE web site.

-
-
- - - - - diff --git a/lib/editor/tinymce/docs/license.html b/lib/editor/tinymce/docs/license.html deleted file mode 100644 index 15edd4695e8..00000000000 --- a/lib/editor/tinymce/docs/license.html +++ /dev/null @@ -1,465 +0,0 @@ - - - -TinyMCE License (LGPL) - - - - -
-

TinyMCE License (LGPL)

-
- -
-

-Visit the FAQ for general answers surrounding TinyMCE. Or visit http://www.fsf.org for more information about Open-Source licenses. -

-
-		  GNU LIBRARY GENERAL PUBLIC LICENSE
-		       Version 2, June 1991
-
- Copyright (C) 1991 Free Software Foundation, Inc.
- 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-[This is the first released version of the library GPL.  It is
- numbered 2 because it goes with version 2 of the ordinary GPL.]
-
-			    Preamble
-
-  The licenses for most software are designed to take away your
-freedom to share and change it.  By contrast, the GNU General Public
-Licenses are intended to guarantee your freedom to share and change
-free software--to make sure the software is free for all its users.
-
-  This license, the Library General Public License, applies to some
-specially designated Free Software Foundation software, and to any
-other libraries whose authors decide to use it.  You can use it for
-your libraries, too.
-
-  When we speak of free software, we are referring to freedom, not
-price.  Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
-  To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if
-you distribute copies of the library, or if you modify it.
-
-  For example, if you distribute copies of the library, whether gratis
-or for a fee, you must give the recipients all the rights that we gave
-you.  You must make sure that they, too, receive or can get the source
-code.  If you link a program with the library, you must provide
-complete object files to the recipients so that they can relink them
-with the library, after making changes to the library and recompiling
-it.  And you must show them these terms so they know their rights.
-
-  Our method of protecting your rights has two steps: (1) copyright
-the library, and (2) offer you this license which gives you legal
-permission to copy, distribute and/or modify the library.
-
-  Also, for each distributor's protection, we want to make certain
-that everyone understands that there is no warranty for this free
-library.  If the library is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original
-version, so that any problems introduced by others will not reflect on
-the original authors' reputations.
-.
-  Finally, any free program is threatened constantly by software
-patents.  We wish to avoid the danger that companies distributing free
-software will individually obtain patent licenses, thus in effect
-transforming the program into proprietary software.  To prevent this,
-we have made it clear that any patent must be licensed for everyone's
-free use or not licensed at all.
-
-  Most GNU software, including some libraries, is covered by the ordinary
-GNU General Public License, which was designed for utility programs.  This
-license, the GNU Library General Public License, applies to certain
-designated libraries.  This license is quite different from the ordinary
-one; be sure to read it in full, and don't assume that anything in it is
-the same as in the ordinary license.
-
-  The reason we have a separate public license for some libraries is that
-they blur the distinction we usually make between modifying or adding to a
-program and simply using it.  Linking a program with a library, without
-changing the library, is in some sense simply using the library, and is
-analogous to running a utility program or application program.  However, in
-a textual and legal sense, the linked executable is a combined work, a
-derivative of the original library, and the ordinary General Public License
-treats it as such.
-
-  Because of this blurred distinction, using the ordinary General
-Public License for libraries did not effectively promote software
-sharing, because most developers did not use the libraries.  We
-concluded that weaker conditions might promote sharing better.
-
-  However, unrestricted linking of non-free programs would deprive the
-users of those programs of all benefit from the free status of the
-libraries themselves.  This Library General Public License is intended to
-permit developers of non-free programs to use free libraries, while
-preserving your freedom as a user of such programs to change the free
-libraries that are incorporated in them.  (We have not seen how to achieve
-this as regards changes in header files, but we have achieved it as regards
-changes in the actual functions of the Library.)  The hope is that this
-will lead to faster development of free libraries.
-
-  The precise terms and conditions for copying, distribution and
-modification follow.  Pay close attention to the difference between a
-"work based on the library" and a "work that uses the library".  The
-former contains code derived from the library, while the latter only
-works together with the library.
-
-  Note that it is possible for a library to be covered by the ordinary
-General Public License rather than by this special one.
-.
-		  GNU LIBRARY GENERAL PUBLIC LICENSE
-   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
-  0. This License Agreement applies to any software library which
-contains a notice placed by the copyright holder or other authorized
-party saying it may be distributed under the terms of this Library
-General Public License (also called "this License").  Each licensee is
-addressed as "you".
-
-  A "library" means a collection of software functions and/or data
-prepared so as to be conveniently linked with application programs
-(which use some of those functions and data) to form executables.
-
-  The "Library", below, refers to any such software library or work
-which has been distributed under these terms.  A "work based on the
-Library" means either the Library or any derivative work under
-copyright law: that is to say, a work containing the Library or a
-portion of it, either verbatim or with modifications and/or translated
-straightforwardly into another language.  (Hereinafter, translation is
-included without limitation in the term "modification".)
-
-  "Source code" for a work means the preferred form of the work for
-making modifications to it.  For a library, complete source code means
-all the source code for all modules it contains, plus any associated
-interface definition files, plus the scripts used to control compilation
-and installation of the library.
-
-  Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope.  The act of
-running a program using the Library is not restricted, and output from
-such a program is covered only if its contents constitute a work based
-on the Library (independent of the use of the Library in a tool for
-writing it).  Whether that is true depends on what the Library does
-and what the program that uses the Library does.
-  
-  1. You may copy and distribute verbatim copies of the Library's
-complete source code as you receive it, in any medium, provided that
-you conspicuously and appropriately publish on each copy an
-appropriate copyright notice and disclaimer of warranty; keep intact
-all the notices that refer to this License and to the absence of any
-warranty; and distribute a copy of this License along with the
-Library.
-
-  You may charge a fee for the physical act of transferring a copy,
-and you may at your option offer warranty protection in exchange for a
-fee.
-.
-  2. You may modify your copy or copies of the Library or any portion
-of it, thus forming a work based on the Library, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
-    a) The modified work must itself be a software library.
-
-    b) You must cause the files modified to carry prominent notices
-    stating that you changed the files and the date of any change.
-
-    c) You must cause the whole of the work to be licensed at no
-    charge to all third parties under the terms of this License.
-
-    d) If a facility in the modified Library refers to a function or a
-    table of data to be supplied by an application program that uses
-    the facility, other than as an argument passed when the facility
-    is invoked, then you must make a good faith effort to ensure that,
-    in the event an application does not supply such function or
-    table, the facility still operates, and performs whatever part of
-    its purpose remains meaningful.
-
-    (For example, a function in a library to compute square roots has
-    a purpose that is entirely well-defined independent of the
-    application.  Therefore, Subsection 2d requires that any
-    application-supplied function or table used by this function must
-    be optional: if the application does not supply it, the square
-    root function must still compute square roots.)
-
-These requirements apply to the modified work as a whole.  If
-identifiable sections of that work are not derived from the Library,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works.  But when you
-distribute the same sections as part of a whole which is a work based
-on the Library, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote
-it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Library.
-
-In addition, mere aggregation of another work not based on the Library
-with the Library (or with a work based on the Library) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
-  3. You may opt to apply the terms of the ordinary GNU General Public
-License instead of this License to a given copy of the Library.  To do
-this, you must alter all the notices that refer to this License, so
-that they refer to the ordinary GNU General Public License, version 2,
-instead of to this License.  (If a newer version than version 2 of the
-ordinary GNU General Public License has appeared, then you can specify
-that version instead if you wish.)  Do not make any other change in
-these notices.
-.
-  Once this change is made in a given copy, it is irreversible for
-that copy, so the ordinary GNU General Public License applies to all
-subsequent copies and derivative works made from that copy.
-
-  This option is useful when you wish to copy part of the code of
-the Library into a program that is not a library.
-
-  4. You may copy and distribute the Library (or a portion or
-derivative of it, under Section 2) in object code or executable form
-under the terms of Sections 1 and 2 above provided that you accompany
-it with the complete corresponding machine-readable source code, which
-must be distributed under the terms of Sections 1 and 2 above on a
-medium customarily used for software interchange.
-
-  If distribution of object code is made by offering access to copy
-from a designated place, then offering equivalent access to copy the
-source code from the same place satisfies the requirement to
-distribute the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
-  5. A program that contains no derivative of any portion of the
-Library, but is designed to work with the Library by being compiled or
-linked with it, is called a "work that uses the Library".  Such a
-work, in isolation, is not a derivative work of the Library, and
-therefore falls outside the scope of this License.
-
-  However, linking a "work that uses the Library" with the Library
-creates an executable that is a derivative of the Library (because it
-contains portions of the Library), rather than a "work that uses the
-library".  The executable is therefore covered by this License.
-Section 6 states terms for distribution of such executables.
-
-  When a "work that uses the Library" uses material from a header file
-that is part of the Library, the object code for the work may be a
-derivative work of the Library even though the source code is not.
-Whether this is true is especially significant if the work can be
-linked without the Library, or if the work is itself a library.  The
-threshold for this to be true is not precisely defined by law.
-
-  If such an object file uses only numerical parameters, data
-structure layouts and accessors, and small macros and small inline
-functions (ten lines or less in length), then the use of the object
-file is unrestricted, regardless of whether it is legally a derivative
-work.  (Executables containing this object code plus portions of the
-Library will still fall under Section 6.)
-
-  Otherwise, if the work is a derivative of the Library, you may
-distribute the object code for the work under the terms of Section 6.
-Any executables containing that work also fall under Section 6,
-whether or not they are linked directly with the Library itself.
-.
-  6. As an exception to the Sections above, you may also compile or
-link a "work that uses the Library" with the Library to produce a
-work containing portions of the Library, and distribute that work
-under terms of your choice, provided that the terms permit
-modification of the work for the customer's own use and reverse
-engineering for debugging such modifications.
-
-  You must give prominent notice with each copy of the work that the
-Library is used in it and that the Library and its use are covered by
-this License.  You must supply a copy of this License.  If the work
-during execution displays copyright notices, you must include the
-copyright notice for the Library among them, as well as a reference
-directing the user to the copy of this License.  Also, you must do one
-of these things:
-
-    a) Accompany the work with the complete corresponding
-    machine-readable source code for the Library including whatever
-    changes were used in the work (which must be distributed under
-    Sections 1 and 2 above); and, if the work is an executable linked
-    with the Library, with the complete machine-readable "work that
-    uses the Library", as object code and/or source code, so that the
-    user can modify the Library and then relink to produce a modified
-    executable containing the modified Library.  (It is understood
-    that the user who changes the contents of definitions files in the
-    Library will not necessarily be able to recompile the application
-    to use the modified definitions.)
-
-    b) Accompany the work with a written offer, valid for at
-    least three years, to give the same user the materials
-    specified in Subsection 6a, above, for a charge no more
-    than the cost of performing this distribution.
-
-    c) If distribution of the work is made by offering access to copy
-    from a designated place, offer equivalent access to copy the above
-    specified materials from the same place.
-
-    d) Verify that the user has already received a copy of these
-    materials or that you have already sent this user a copy.
-
-  For an executable, the required form of the "work that uses the
-Library" must include any data and utility programs needed for
-reproducing the executable from it.  However, as a special exception,
-the source code distributed need not include anything that is normally
-distributed (in either source or binary form) with the major
-components (compiler, kernel, and so on) of the operating system on
-which the executable runs, unless that component itself accompanies
-the executable.
-
-  It may happen that this requirement contradicts the license
-restrictions of other proprietary libraries that do not normally
-accompany the operating system.  Such a contradiction means you cannot
-use both them and the Library together in an executable that you
-distribute.
-.
-  7. You may place library facilities that are a work based on the
-Library side-by-side in a single library together with other library
-facilities not covered by this License, and distribute such a combined
-library, provided that the separate distribution of the work based on
-the Library and of the other library facilities is otherwise
-permitted, and provided that you do these two things:
-
-    a) Accompany the combined library with a copy of the same work
-    based on the Library, uncombined with any other library
-    facilities.  This must be distributed under the terms of the
-    Sections above.
-
-    b) Give prominent notice with the combined library of the fact
-    that part of it is a work based on the Library, and explaining
-    where to find the accompanying uncombined form of the same work.
-
-  8. You may not copy, modify, sublicense, link with, or distribute
-the Library except as expressly provided under this License.  Any
-attempt otherwise to copy, modify, sublicense, link with, or
-distribute the Library is void, and will automatically terminate your
-rights under this License.  However, parties who have received copies,
-or rights, from you under this License will not have their licenses
-terminated so long as such parties remain in full compliance.
-
-  9. You are not required to accept this License, since you have not
-signed it.  However, nothing else grants you permission to modify or
-distribute the Library or its derivative works.  These actions are
-prohibited by law if you do not accept this License.  Therefore, by
-modifying or distributing the Library (or any work based on the
-Library), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Library or works based on it.
-
-  10. Each time you redistribute the Library (or any work based on the
-Library), the recipient automatically receives a license from the
-original licensor to copy, distribute, link with or modify the Library
-subject to these terms and conditions.  You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-.
-  11. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License.  If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Library at all.  For example, if a patent
-license would not permit royalty-free redistribution of the Library by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Library.
-
-If any portion of this section is held invalid or unenforceable under any
-particular circumstance, the balance of the section is intended to apply,
-and the section as a whole is intended to apply in other circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system which is
-implemented by public license practices.  Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
-  12. If the distribution and/or use of the Library is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Library under this License may add
-an explicit geographical distribution limitation excluding those countries,
-so that distribution is permitted only in or among countries not thus
-excluded.  In such case, this License incorporates the limitation as if
-written in the body of this License.
-
-  13. The Free Software Foundation may publish revised and/or new
-versions of the Library General Public License from time to time.
-Such new versions will be similar in spirit to the present version,
-but may differ in detail to address new problems or concerns.
-
-Each version is given a distinguishing version number.  If the Library
-specifies a version number of this License which applies to it and
-"any later version", you have the option of following the terms and
-conditions either of that version or of any later version published by
-the Free Software Foundation.  If the Library does not specify a
-license version number, you may choose any version ever published by
-the Free Software Foundation.
-.
-  14. If you wish to incorporate parts of the Library into other free
-programs whose distribution conditions are incompatible with these,
-write to the author to ask for permission.  For software which is
-copyrighted by the Free Software Foundation, write to the Free
-Software Foundation; we sometimes make exceptions for this.  Our
-decision will be guided by the two goals of preserving the free status
-of all derivatives of our free software and of promoting the sharing
-and reuse of software generally.
-
-			    NO WARRANTY
-
-  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
-WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
-EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
-OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
-KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
-LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
-THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
-  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
-WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
-AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
-FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
-CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
-LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
-RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
-FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
-SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
-DAMAGES.
-
-		     END OF TERMS AND CONDITIONS
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_accessibility_focus.html b/lib/editor/tinymce/docs/option_accessibility_focus.html deleted file mode 100644 index d1adbc195d6..00000000000 --- a/lib/editor/tinymce/docs/option_accessibility_focus.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: accessibility_focus - - - - -
-

Option: accessibility_focus

-
- -
-

- If this option is set to true some accessibility focus will available to all buttons, you will be able to tab through them all. If you set this option to false, focus will be placed inside the text area when you tab through the interface. -

- -
- -

Example of usage of the accessibility_focus option:

-
-
-tinyMCE.init({
-	...
-	accessibility_focus : false
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_accessibility_warnings.html b/lib/editor/tinymce/docs/option_accessibility_warnings.html deleted file mode 100644 index a9c01fe6bea..00000000000 --- a/lib/editor/tinymce/docs/option_accessibility_warnings.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: accessibility_warnings - - - - -
-

Option: accessibility_warnings

-
- -
-

- If this option is set to true some accessibility warnings will be presented to the user if they miss specifying that information. This option is set to true default, since we should all try to make this world a better place for disabled people. But if you are annoyed with the warnings, set this option to false. -

- -
- -

Example of usage of the accessibility_warnings option:

-
-
-tinyMCE.init({
-	...
-	accessibility_warnings : false
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_add_form_submit_trigger.html b/lib/editor/tinymce/docs/option_add_form_submit_trigger.html deleted file mode 100644 index a448aaa4993..00000000000 --- a/lib/editor/tinymce/docs/option_add_form_submit_trigger.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: add_form_submit_trigger - - - - -
-

Option: add_form_submit_trigger

-
- -
-

- This option enables you to turn on/off the onsubmit event listener. This feature adds a onsubmit event listener on all forms on the page, if a form is submitted a tinyMCE.triggerSave() JavaScript calls gets executed, this function moves HTML content from the editor iframe and to the hidden form element. This option is set to true by default. -

- -
- -

Example of usage of the add_form_submit_trigger option:

-
-
-tinyMCE.init({
-	...
-	add_form_submit_trigger : false
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_add_unload_trigger.html b/lib/editor/tinymce/docs/option_add_unload_trigger.html deleted file mode 100644 index 84a070d2f64..00000000000 --- a/lib/editor/tinymce/docs/option_add_unload_trigger.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: add_unload_trigger - - - - -
-

Option: add_unload_trigger

-
- -
-

- If you set this option to true, page contents will be stored away is the page is unloaded for example is the user navigates away from the page and then navigated back to it by pressing the back button. This option is set to true by default. -

- -
- -

Example of usage of the add_unload_trigger option:

-
-
-tinyMCE.init({
-	...
-	add_unload_trigger : false
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_apply_source_formatting.html b/lib/editor/tinymce/docs/option_apply_source_formatting.html deleted file mode 100644 index 371c39016ee..00000000000 --- a/lib/editor/tinymce/docs/option_apply_source_formatting.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: apply_source_formatting - - - - -
-

Option: apply_source_formatting

-
- -
-

- This option enables you to tell TinyMCE to apply some source formatting to the output HTML code. This function is disabled by default. -

- -
- -

Example of usage of the apply_source_formatting option:

-
-
-tinyMCE.init({
-	...
-	apply_source_formatting : true
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_ask.html b/lib/editor/tinymce/docs/option_ask.html deleted file mode 100644 index 56079ab4cf0..00000000000 --- a/lib/editor/tinymce/docs/option_ask.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: ask - - - - -
-

Option: ask

-
- -
-

- This option enables you to add a confirmation dialog when focusing textareas. This dialog asks if the focused textarea should be converted into a editor instance or not. It will only ask once since it would get annoying otherwice. The default value of this option is "false". -

- -
- -

Example of usage of the ask option:

-
-
-tinyMCE.init({
-	...
-	ask : true
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_auto_focus.html b/lib/editor/tinymce/docs/option_auto_focus.html deleted file mode 100644 index ed4f7c3f1eb..00000000000 --- a/lib/editor/tinymce/docs/option_auto_focus.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: auto_focus - - - - -
-

Option: auto_focus

-
- -
-

- This option enables you to auto focus a editor instance. The value of this option should be a editor instance id. Editor instance ids are specified as "mce_editor_<index>" where index is a value starting from 0. So if there are 3 editor instances on a page these would have the following ids mce_editor_0, mce_editor_1 and mce_editor_2. -

- -
- -

Example of usage of the auto_focus option:

-
-
-tinyMCE.init({
-	...
-	auto_focus : "mce_editor_2"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_auto_reset_designmode.html b/lib/editor/tinymce/docs/option_auto_reset_designmode.html deleted file mode 100644 index 5079c28a57d..00000000000 --- a/lib/editor/tinymce/docs/option_auto_reset_designmode.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: auto_reset_designmode - - - - -
-

Option: auto_reset_designmode

-
- -
-

- This option is very useful if TinyMCE is used in a DHTML tab system or other divs that are hidden and displayed by some JavaScript. Since Mozilla has a bug when using display:none, the designMode state gets lost. To prevent this from happening you should enable this option. The default value of this option is "true". -

- -
- -

Example of usage of the auto_reset_designmode option:

-
-
-tinyMCE.init({
-	...
-	auto_reset_designmode : true
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_auto_resize.html b/lib/editor/tinymce/docs/option_auto_resize.html deleted file mode 100644 index fb6800a632c..00000000000 --- a/lib/editor/tinymce/docs/option_auto_resize.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: auto_resize - - - - -
-

Option: auto_resize

-
- -
-

- This option enables you to get the TinyMCE editor area to resize to the bounderies of the contents. This option is very experimental and is set to false by default. -

- -
- -

Example of usage of the auto_resize option:

-
-
-tinyMCE.init({
-	...
-	auto_resize : true
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_browsers.html b/lib/editor/tinymce/docs/option_browsers.html deleted file mode 100644 index b6645360229..00000000000 --- a/lib/editor/tinymce/docs/option_browsers.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: browsers - - - - -
-

Option: browsers

-
- -
-

- This option should contain a comma separated list of supported browsers. This enables you to for example disable the editor while running on Safari. The default value of this option is: msie,gecko,safari,opera and since the support for Safari is very limited a warning message will appear until a better version is released. The possible values of this option is msie, gecko and safari. -

- -
- -

Example of usage of the browsers option:

-
-
-tinyMCE.init({
-	...
-	browsers : "msie,gecko,opera"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_button_tile_map.html b/lib/editor/tinymce/docs/option_button_tile_map.html deleted file mode 100644 index 13f86f9fce3..00000000000 --- a/lib/editor/tinymce/docs/option_button_tile_map.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: button_tile_map - - - - -
-

Option: button_tile_map

-
- -
-

- If this option is set to true TinyMCE will use tiled images instead of individual images for most of the editor controls. This produces faster loading time since only one GIF image needs to be loaded instead of a GIF for each individual button. This option is set to false by default since it doesn't work with some DOCTYPE declarations. -

- -
- -

Example of usage of the button_tile_map option:

-
-
-tinyMCE.init({
-	...
-	button_tile_map : true
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_cleanup.html b/lib/editor/tinymce/docs/option_cleanup.html deleted file mode 100644 index 6ea729471b4..00000000000 --- a/lib/editor/tinymce/docs/option_cleanup.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: cleanup - - - - -
-

Option: cleanup

-
- -
-

- 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. -

- -
- -

Example of usage of the cleanup option:

-
-
-tinyMCE.init({
-	...
-	cleanup : true
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_cleanup_callback.html b/lib/editor/tinymce/docs/option_cleanup_callback.html deleted file mode 100644 index 5d60be8d85d..00000000000 --- a/lib/editor/tinymce/docs/option_cleanup_callback.html +++ /dev/null @@ -1,72 +0,0 @@ - - - -Option: cleanup_callback - - - - -
-

Option: cleanup_callback

-
- -
-

- This option enables you to add custom cleanup logic to TinyMCE. This function is called when the cleanup process is executed this process occures when the editor saves/submits content, user hits the cleanup button and when the HTML editor dialog is presented. The format of this function is: customCleanup(type, value). Where type can be "get_from_editor" when the contents is extracted from TinyMCE for example when the user submits the form. The "insert_to_editor" type value gets passed when new contents is inserted into the editor on initialization or when the HTML editor dialog commits new content. The "get_from_editor_dom" value is executed when cleanup process has a valid DOM tree and is extracted from the editor. The "insert_to_editor_dom" gets passed when the editor has a valid DOM tree and contents has been inserted into the editor. The example below illustrated all these types. -

- -
- -

Example of usage of the cleanup_callback option:

-
-
-function myCustomCleanup(type, value) {
-	switch (type) {
-		case "get_from_editor":
-			alert("Value HTML string: " + value);
-
-			// Do custom cleanup code here
-
-			break;
-
-		case "insert_to_editor":
-			alert("Value HTML string: " + value);
-
-			// Do custom cleanup code here
-
-			break;
-
-		case "get_from_editor_dom":
-			alert("Value DOM Element " + value);
-
-			// Do custom cleanup code here
-
-			break;
-
-		case "insert_to_editor_dom":
-			alert("Value DOM Element: " + value);
-
-			// Do custom cleanup code here
-
-			break;
-	}
-
-	return value;
-}
-
-tinyMCE.init({
-	...
-	cleanup_callback : "myCustomCleanup"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_cleanup_on_startup.html b/lib/editor/tinymce/docs/option_cleanup_on_startup.html deleted file mode 100644 index e2ebc621bf1..00000000000 --- a/lib/editor/tinymce/docs/option_cleanup_on_startup.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: cleanup_on_startup - - - - -
-

Option: cleanup_on_startup

-
- -
-

- If you set this option to true, TinyMCE will perform a HTML cleanup call when the editor loads. This option is set to false by default. -

- -
- -

Example of usage of the cleanup_on_startup option:

-
-
-tinyMCE.init({
-	...
-	cleanup_on_startup : true
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_content_css.html b/lib/editor/tinymce/docs/option_content_css.html deleted file mode 100644 index 0af1fd6673e..00000000000 --- a/lib/editor/tinymce/docs/option_content_css.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: content_css - - - - -
-

Option: content_css

-
- -
-

- 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. -

- -
- -

Example of usage of the content_css option:

-
-
-tinyMCE.init({
-	...
-	content_css : "/mycontent.css"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_convert_fonts_to_spans.html b/lib/editor/tinymce/docs/option_convert_fonts_to_spans.html deleted file mode 100644 index d3fe95238cf..00000000000 --- a/lib/editor/tinymce/docs/option_convert_fonts_to_spans.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: convert_fonts_to_spans - - - - -
-

Option: convert_fonts_to_spans

-
- -
-

If you set this option to true, all TinyMCE will convert all font elements to span elements and generate span elements instead of font elements. This option should be used inorder to get more W3C compatible code, since font elements are deprecated. How sizes gets converted can be controlled by the font_size_classes and font_size_style_values options.

-

- More information about this subject can be found in this article: What's wrong with FONT FACE -

-
- -

Example of usage of the convert_fonts_to_spans option:

-
-
-tinyMCE.init({
-	...
-	convert_fonts_to_spans : false
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_convert_newlines_to_brs.html b/lib/editor/tinymce/docs/option_convert_newlines_to_brs.html deleted file mode 100644 index be361d8a87a..00000000000 --- a/lib/editor/tinymce/docs/option_convert_newlines_to_brs.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: convert_newlines_to_brs - - - - -
-

Option: convert_newlines_to_brs

-
- -
-

- If you set this option to true newline characters codes gets converted in to br elements. This option is set to false by default. -

- -
- -

Example of usage of the convert_newlines_to_brs option:

-
-
-tinyMCE.init({
-	...
-	convert_newlines_to_brs : true
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_convert_urls.html b/lib/editor/tinymce/docs/option_convert_urls.html deleted file mode 100644 index 293a29329a3..00000000000 --- a/lib/editor/tinymce/docs/option_convert_urls.html +++ /dev/null @@ -1,36 +0,0 @@ - - - -Option: convert_urls - - - - -
-

Option: convert_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.

- -
- -

Example of usage of the convert_urls option:

-
-
-tinyMCE.init({
-	...
-	convert_urls : false
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_custom_shortcuts.html b/lib/editor/tinymce/docs/option_custom_shortcuts.html deleted file mode 100644 index 769b6ac1c74..00000000000 --- a/lib/editor/tinymce/docs/option_custom_shortcuts.html +++ /dev/null @@ -1,39 +0,0 @@ - - - -Option: custom_shortcuts - - - - -
-

Option: custom_shortcuts

-
- -
-

- This option enables you to disable/enable the custom keyboard shortcuts plugins and themes may register. The value of this - option is set to true by default. -

- -
- -

Example of usage of the custom_shortcuts option:

-
-
-tinyMCE.init({
-	...
-	custom_shortcuts : false
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_custom_undo_redo.html b/lib/editor/tinymce/docs/option_custom_undo_redo.html deleted file mode 100644 index 18672950e42..00000000000 --- a/lib/editor/tinymce/docs/option_custom_undo_redo.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: custom_undo_redo - - - - -
-

Option: custom_undo_redo

-
- -
-

- This option is a true/false option that enables you to disable/enable the custom undo/redo logic within TinyMCE. This option is enabled by default, if you disable it some operations may not be undoable. -

- -
- -

Example of usage of the custom_undo_redo option:

-
-
-tinyMCE.init({
-	...
-	custom_undo_redo : false
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_custom_undo_redo_keyboard_shortcuts.html b/lib/editor/tinymce/docs/option_custom_undo_redo_keyboard_shortcuts.html deleted file mode 100644 index 064168afde6..00000000000 --- a/lib/editor/tinymce/docs/option_custom_undo_redo_keyboard_shortcuts.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: custom_undo_redo_keyboard_shortcuts - - - - -
-

Option: custom_undo_redo_keyboard_shortcuts

-
- -
-

- This option enables you to disable/enable the usage of keyboard shortcuts for undo/redo. This feature is enabled by default. Keyboard shortcurs are Ctrl+Z for undo, Ctrl+Y for redo. -

- -
- -

Example of usage of the custom_undo_redo_keyboard_shortcuts option:

-
-
-tinyMCE.init({
-	...
-	custom_undo_redo_keyboard_shortcuts : "false"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_custom_undo_redo_levels.html b/lib/editor/tinymce/docs/option_custom_undo_redo_levels.html deleted file mode 100644 index 9386a952f39..00000000000 --- a/lib/editor/tinymce/docs/option_custom_undo_redo_levels.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: custom_undo_redo_levels - - - - -
-

Option: custom_undo_redo_levels

-
- -
-

- This option should contain the number of undo levels to keep in memory. This is set to -1 by default and such a value tells TinyMCE to use a unlimited number of undo levels. But this steals lots of memory so for low end systems a value of 10 may be better. -

- -
- -

Example of usage of the custom_undo_redo_levels option:

-
-
-tinyMCE.init({
-	...
-	custom_undo_redo_levels : 10
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_custom_undo_redo_restore_selection.html b/lib/editor/tinymce/docs/option_custom_undo_redo_restore_selection.html deleted file mode 100644 index 6ed23740a5a..00000000000 --- a/lib/editor/tinymce/docs/option_custom_undo_redo_restore_selection.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: custom_undo_redo_restore_selection - - - - -
-

Option: custom_undo_redo_restore_selection

-
- -
-

- This option gives you the possibility to turn on/off the restoration of the cursor/selection when a undo/redo event occurs. This option is enabled by default. -

- -
- -

Example of usage of the custom_undo_redo_restore_selection option:

-
-
-tinyMCE.init({
-	...
-	custom_undo_redo_restore_selection : false
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_debug.html b/lib/editor/tinymce/docs/option_debug.html deleted file mode 100644 index 8c551c19df2..00000000000 --- a/lib/editor/tinymce/docs/option_debug.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: debug - - - - -
-

Option: debug

-
- -
-

- If the value of this option is set to "true" some debugging information will appear such as a list of what CSS files are used. The default value of this option is false. -

- -
- -

Example of usage of the debug option:

-
-
-tinyMCE.init({
-	...
-	debug : true
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_dialog_type.html b/lib/editor/tinymce/docs/option_dialog_type.html deleted file mode 100644 index 7120a18d7cf..00000000000 --- a/lib/editor/tinymce/docs/option_dialog_type.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: dialog_type - - - - -
-

Option: dialog_type

-
- -
-

- This option enables you to specify how dialogs/popups should be opened, possible values are "window" and "modal", where the window option opens a normal window and the dialog option opens a modal dialog. This option is set to "window" by default. -

- -
- -

Example of usage of the dialog_type option:

-
-
-tinyMCE.init({
-	...
-	dialog_type : "modal"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_directionality.html b/lib/editor/tinymce/docs/option_directionality.html deleted file mode 100644 index fcd34d3e6ac..00000000000 --- a/lib/editor/tinymce/docs/option_directionality.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: directionality - - - - -
-

Option: directionality

-
- -
-

- This option specifies the default writing direction, some languages writes from right to left instead of left to right. The default value of this option is ":ltr" but if you want to use from right to left mode specify "rtl" instead. -

- -
- -

Example of usage of the directionality option:

-
-
-tinyMCE.init({
-	...
-	directionality : "rtl"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_docs_language.html b/lib/editor/tinymce/docs/option_docs_language.html deleted file mode 100644 index 9eae79d050f..00000000000 --- a/lib/editor/tinymce/docs/option_docs_language.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: docs_language - - - - -
-

Option: docs_language

-
- -
-

- This option should contain a language code of the editor documentation to use with TinyMCE. These codes are in ISO-639-2 format to see if your language is available check the contents of "tinymce/jscripts/tiny_mce/theme/<theme used>/docs". The default value of this option is the value specified in the "language" option or "en" for English. -

- -
- -

Example of usage of the docs_language option:

-
-
-tinyMCE.init({
-	...
-	docs_language : "sv"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_doctype.html b/lib/editor/tinymce/docs/option_doctype.html deleted file mode 100644 index b742597744f..00000000000 --- a/lib/editor/tinymce/docs/option_doctype.html +++ /dev/null @@ -1,35 +0,0 @@ - - - -Option: doctype - - - - -
-

Option: doctype

-
- -
-

This option enables you to specify the doctype that is used while editing content within TinyMCE, this defaults to .

-
- -

Example of usage of the doctype option:

-
-
-tinyMCE.init({
-	...
-	doctype : "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_document_base_url.html b/lib/editor/tinymce/docs/option_document_base_url.html deleted file mode 100644 index 22079d34709..00000000000 --- a/lib/editor/tinymce/docs/option_document_base_url.html +++ /dev/null @@ -1,36 +0,0 @@ - - - -Option: document_base_url - - - - -
-

Option: document_base_url

-
- -
-

This option enables you to specify the URL from where all URLs will be relative to this option is only used when the relative_urls option is set to true. The value of this option is set to the current document by default.

- -
- -

Example of usage of the document_base_url option:

-
-
-tinyMCE.init({
-	...
-	document_base_url : "/somedir/somfile.html"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_editor_css.html b/lib/editor/tinymce/docs/option_editor_css.html deleted file mode 100644 index 3d410ab5445..00000000000 --- a/lib/editor/tinymce/docs/option_editor_css.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: editor_css - - - - -
-

Option: editor_css

-
- -
-

- This option enables you to specify the CSS to be used for the editor toolbars/user interface of TinyMCE this option is set to a CSS file found in the currently used theme by default. This CSS contains layout information about panels and buttons used by TinyMCE. -

- -
- -

Example of usage of the editor_css option:

-
-
-tinyMCE.init({
-	...
-	editor_css : "/myeditor.css"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_editor_deselector.html b/lib/editor/tinymce/docs/option_editor_deselector.html deleted file mode 100644 index bdaa498bc16..00000000000 --- a/lib/editor/tinymce/docs/option_editor_deselector.html +++ /dev/null @@ -1,49 +0,0 @@ - - - -Option: editor_deselector - - - - -
-

Option: editor_deselector

-
- -
-

- This option enables you to specify a CSS class name that will be deselect textareas from being converted into editor instances. If this option isn't set to a value this option will not have any effect and the mode option will choose textareas instead. The default value of this option is "mceNoEditor" so if mceNoEditor is added to the class attribute of a textarea it will be excluded for convertion. -

- -
- -

Example of usage of the editor_deselector option:

-
-
-tinyMCE.init({
-	...
-	editor_deselector : "mceNoEditor"
-});
-
-
- -
- -

Example of usage in the HTML:

-
-
-<textarea id="myarea1" class="mceNoEditor">This will be a NOT be a editor.</textarea>
-
-<textarea id="myarea2">This will be a editor.</textarea>
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_editor_selector.html b/lib/editor/tinymce/docs/option_editor_selector.html deleted file mode 100644 index 8321cb7b3a4..00000000000 --- a/lib/editor/tinymce/docs/option_editor_selector.html +++ /dev/null @@ -1,49 +0,0 @@ - - - -Option: editor_selector - - - - -
-

Option: editor_selector

-
- -
-

- This option enables you to specify a CSS class name that will be required on the text areas that is to be converted. This enables you to select specific text areas for convertion by adding this CSS class name to the class attribute of the text area. If this option isn't set to a value this option will not have any effect and the mode option will choose textareas instead. If you want all editors to be converted and just specific editors to be excluded check the editor_deselector option. -

- -
- -

Example of usage of the editor_selector option:

-
-
-tinyMCE.init({
-	...
-	editor_selector : "mceEditor"
-});
-
-
- -
- -

Example of usage in the HTML:

-
-
-<textarea id="myarea1" class="mceEditor">This will be a editor.</textarea>
-
-<textarea id="myarea2">This will NOT be a editor.</textarea>
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_elements.html b/lib/editor/tinymce/docs/option_elements.html deleted file mode 100644 index 1ec572803e2..00000000000 --- a/lib/editor/tinymce/docs/option_elements.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: elements - - - - -
-

Option: elements

-
- -
-

- This option should contain a comma separated list of element id's to convert into editor instances. This option is only used if mode is set to "exact". -

- -
- -

Example of usage of the elements option:

-
-
-tinyMCE.init({
-	...
-	elements : "elm1,elm2"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_encoding.html b/lib/editor/tinymce/docs/option_encoding.html deleted file mode 100644 index 52a41e1d9b8..00000000000 --- a/lib/editor/tinymce/docs/option_encoding.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: encoding - - - - -
-

Option: encoding

-
- -
-

- This option enables you to get XML escaped contents out of TinyMCE. Posted content will be converted to a XML string escaping characters such as < > " & to &lt; &gt; &quot; &amp;. This option is set nothing by default and is there for disabled. -

- -
- -

Example of usage of the encoding option:

-
-
-tinyMCE.init({
-	...
-	encoding : "xml"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_entities.html b/lib/editor/tinymce/docs/option_entities.html deleted file mode 100644 index e8bec86ff29..00000000000 --- a/lib/editor/tinymce/docs/option_entities.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: entities - - - - -
-

Option: entities

-
- -
-

- This option contains a comma separated list of entity names that is used instead of characters. Odd items are the character code and even items are the name of the character code. The default value of this option is placed in the example below. -

- -
- -

Example of usage of the entities option / default value:

-
-
-tinyMCE.init({
-	...
-	entities : "160,nbsp,38,amp,34,quot,162,cent,8364,euro,163,pound,165,yen,169,copy,174,reg,8482,trade,8240,permil,181,micro,183,middot,8226,bull,8230,hellip,8242,prime,8243,Prime,167,sect,182,para,223,szlig,8249,lsaquo,8250,rsaquo,171,laquo,187,raquo,8216,lsquo,8217,rsquo,8220,ldquo,8221,rdquo,8218,sbquo,8222,bdquo,60,lt,62,gt,8804,le,8805,ge,8211,ndash,8212,mdash,175,macr,8254,oline,164,curren,166,brvbar,168,uml,161,iexcl,191,iquest,710,circ,732,tilde,176,deg,8722,minus,177,plusmn,247,divide,8260,frasl,215,times,185,sup1,178,sup2,179,sup3,188,frac14,189,frac12,190,frac34,402,fnof,8747,int,8721,sum,8734,infin,8730,radic,8764,sim,8773,cong,8776,asymp,8800,ne,8801,equiv,8712,isin,8713,notin,8715,ni,8719,prod,8743,and,8744,or,172,not,8745,cap,8746,cup,8706,part,8704,forall,8707,exist,8709,empty,8711,nabla,8727,lowast,8733,prop,8736,ang,180,acute,184,cedil,170,ordf,186,ordm,8224,dagger,8225,Dagger,192,Agrave,194,Acirc,195,Atilde,196,Auml,197,Aring,198,AElig,199,Ccedil,200,Egrave,202,Ecirc,203,Euml,204,Igrave,206,Icirc,207,Iuml,208,ETH,209,Ntilde,210,Ograve,212,Ocirc,213,Otilde,214,Ouml,216,Oslash,338,OElig,217,Ugrave,219,Ucirc,220,Uuml,376,Yuml,222,THORN,224,agrave,226,acirc,227,atilde,228,auml,229,aring,230,aelig,231,ccedil,232,egrave,234,ecirc,235,euml,236,igrave,238,icirc,239,iuml,240,eth,241,ntilde,242,ograve,244,ocirc,245,otilde,246,ouml,248,oslash,339,oelig,249,ugrave,251,ucirc,252,uuml,254,thorn,255,yuml,914,Beta,915,Gamma,916,Delta,917,Epsilon,918,Zeta,919,Eta,920,Theta,921,Iota,922,Kappa,923,Lambda,924,Mu,925,Nu,926,Xi,927,Omicron,928,Pi,929,Rho,931,Sigma,932,Tau,933,Upsilon,934,Phi,935,Chi,936,Psi,937,Omega,945,alpha,946,beta,947,gamma,948,delta,949,epsilon,950,zeta,951,eta,952,theta,953,iota,954,kappa,955,lambda,956,mu,957,nu,958,xi,959,omicron,960,pi,961,rho,962,sigmaf,963,sigma,964,tau,965,upsilon,966,phi,967,chi,968,psi,969,omega,8501,alefsym,982,piv,8476,real,977,thetasym,978,upsih,8472,weierp,8465,image,8592,larr,8593,uarr,8594,rarr,8595,darr,8596,harr,8629,crarr,8656,lArr,8657,uArr,8658,rArr,8659,dArr,8660,hArr,8756,there4,8834,sub,8835,sup,8836,nsub,8838,sube,8839,supe,8853,oplus,8855,otimes,8869,perp,8901,sdot,8968,lceil,8969,rceil,8970,lfloor,8971,rfloor,9001,lang,9002,rang,9674,loz,9824,spades,9827,clubs,9829,hearts,9830,diams,8194,ensp,8195,emsp,8201,thinsp,8204,zwnj,8205,zwj,8206,lrm,8207,rlm,173,shy,233,eacute,237,iacute,243,oacute,250,uacute,193,Aacute,225,aacute,201,Eacute,205,Iacute,211,Oacute,218,Uacute,221,Yacute,253,yacute"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_entity_encoding.html b/lib/editor/tinymce/docs/option_entity_encoding.html deleted file mode 100644 index 317ebaff007..00000000000 --- a/lib/editor/tinymce/docs/option_entity_encoding.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: entity_encoding - - - - -
-

Option: entity_encoding

-
- -
-

- This option controls how entities/characters gets processed by TinyMCE. The value can be set to numeric, named or raw. Where numeric is numeric representation such as "&#160;" named is entity names such as "&nbsp;" and raw is " ". The default value of this option is named, if named is used the entities option will be used to convert the codes into names. -

- -
- -

Example of usage of the entity_encoding option:

-
-
-tinyMCE.init({
-	...
-	entity_encoding : "raw"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_event_elements.html b/lib/editor/tinymce/docs/option_event_elements.html deleted file mode 100644 index 5f86e4fa534..00000000000 --- a/lib/editor/tinymce/docs/option_event_elements.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: event_elements - - - - -
-

Option: event_elements

-
- -
-

- This option should contain a comma separated list of elements thay may have event attributes such as onclick and simmilar. This option is needed since some browsers execute these events while editing content. This option is set to "a,img" default. -

- -
- -

Example of usage of the event_elements option:

-
-
-tinyMCE.init({
-	...
-	event_elements : "a,img,span"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_execcommand_callback.html b/lib/editor/tinymce/docs/option_execcommand_callback.html deleted file mode 100644 index 3d9a19c9d15..00000000000 --- a/lib/editor/tinymce/docs/option_execcommand_callback.html +++ /dev/null @@ -1,69 +0,0 @@ - - - -Option: execcommand_callback - - - - -
-

Option: execcommand_callback

-
- -
-

- This option allows you to add a custom callback function for execCommand handling. This enables you to override internal - command functions in TinyMCE. The example below shows how the mceLink and mceImage are overriden. -

- -
- -

Example of usage of the execcommand_callback option:

-
-
-function myCustomExecCommandHandler(editor_id, elm, command, user_interface, value) {
-	var linkElm, imageElm, inst;
-
-	switch (command) {
-		case "mceLink":
-			inst = tinyMCE.getInstanceById(editor_id);
-			linkElm = tinyMCE.getParentElement(inst.selection.getFocusElement(), "a");
-
-			if (linkElm)
-				alert("Link dialog has been overriden. Found link href: " + tinyMCE.getAttrib(linkElm, "href"));
-			else
-				alert("Link dialog has been overriden.");
-
-			return true;
-
-		case "mceImage":
-			inst = tinyMCE.getInstanceById(editor_id);
-			imageElm = tinyMCE.getParentElement(inst.selection.getFocusElement(), "img");
-
-			if (imageElm)
-				alert("Image dialog has been overriden. Found image src: " + tinyMCE.getAttrib(imageElm, "src"));
-			else
-				alert("Image dialog has been overriden.");
-
-			return true;
-	}
-
-	return false; // Pass to next handler in chain
-}
-
-tinyMCE.init({
-	...
-	execcommand_callback : "myCustomExecCommandHandler"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_extended_valid_elements.html b/lib/editor/tinymce/docs/option_extended_valid_elements.html deleted file mode 100644 index f504e345c31..00000000000 --- a/lib/editor/tinymce/docs/option_extended_valid_elements.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: extended_valid_elements - - - - -
-

Option: extended_valid_elements

-
- -
-

- This option is very similar to valid_elements the only diffrance between this option and valid_elements is that this one gets added to the existing rule set. This can be very useful if the existing rule set is fine but you want to add some specific elements that also should be valid. -

- -
- -

Example of usage of the extended_valid_elements option:

-
-
-tinyMCE.init({
-	...
-	extended_valid_elements : "img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name]"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_external_image_list_url.html b/lib/editor/tinymce/docs/option_external_image_list_url.html deleted file mode 100644 index 931961ebaea..00000000000 --- a/lib/editor/tinymce/docs/option_external_image_list_url.html +++ /dev/null @@ -1,51 +0,0 @@ - - - -Option: external_image_list_url - - - - -
-

Option: external_image_list_url

-
- -
-

- This option enables you to have a external list of images this list of images can be generated by a server side page and then inserted into the image dialog windows of TinyMCE. The images can be to internal site images or external URLs. -

- -
- -

Example of usage of the external_image_list_url option:

-
-
-tinyMCE.init({
-	...
-	external_image_list_url : "myexternallist.js"
-});
-
-
- -
- -

Example of a external link list file: (myexternallist.js)

-
-
-var tinyMCEImageList = new Array(
-	// Name, URL
-	["Logo 1", "logo.jpg"],
-	["Logo 2 Over", "logo_over.jpg"]
-);
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_external_link_list_url.html b/lib/editor/tinymce/docs/option_external_link_list_url.html deleted file mode 100644 index 52dfdaebcbc..00000000000 --- a/lib/editor/tinymce/docs/option_external_link_list_url.html +++ /dev/null @@ -1,52 +0,0 @@ - - - -Option: external_link_list_url - - - - -
-

Option: external_link_list_url

-
- -
-

- This option enables you to have a external list of links this list of links can be generated by a server side page and then inserted into the link dialog windows of TinyMCE. The links can be to internal site documents or external URLs. -

- -
- -

Example of usage of the external_link_list_url option:

-
-
-tinyMCE.init({
-	...
-	external_link_list_url : "myexternallist.js"
-});
-
-
- -
- -

Example of a external link list file: (myexternallist.js)

-
-
-var tinyMCELinkList = new Array(
-	// Name, URL
-	["Moxiecode", "http://www.moxiecode.com"],
-	["Freshmeat", "http://www.freshmeat.com"],
-	["Sourceforge", "http://www.sourceforge.com"]
-);
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_file_browser_callback.html b/lib/editor/tinymce/docs/option_file_browser_callback.html deleted file mode 100644 index 41b07fd0128..00000000000 --- a/lib/editor/tinymce/docs/option_file_browser_callback.html +++ /dev/null @@ -1,43 +0,0 @@ - - - -Option: file_browser_callback - - - - -
-

Option: file_browser_callback

-
- -
-

- This option enables you to add your own file browser/image browser to TinyMCE. This function is executed each time a user clicks on the "browse" buttons in various dialogs. The format of this callback function is: fileBrowser(field_name, url, type, win) where field_name is the id/name of the form element that the browser should insert it's URL into. The url parameter contains the URL value that is currently inside the field. The type parameter contains what type of browser to present this value can be file, image or flash depending on what dialog is calling the function. The win parameter contains a reference to the dialog/window that executes the function. -

- -
- -

Example of usage of the file_browser_callback option:

-
-
-function myCustomFileBrowser(field_name, url, type, win) {
-	// Do custom browser logic
-	win.document.forms[0].elements[field_name].value = 'my browser value';
-}
-
-tinyMCE.init({
-	...
-	file_browser_callback : "myCustomFileBrowser"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_fix_content_duplication.html b/lib/editor/tinymce/docs/option_fix_content_duplication.html deleted file mode 100644 index d0c7f66bb65..00000000000 --- a/lib/editor/tinymce/docs/option_fix_content_duplication.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: fix_content_duplication - - - - -
-

Option: fix_content_duplication

-
- -
-

- This option is available since MSIE has a serious bug where the DOM tree sometimes can include the same node twice. This produces duplication of content when the cleanup process runs. This option is enabled by default and removes any duplicated nodes. -

- -
- -

Example of usage of the fix_content_duplication option:

-
-
-tinyMCE.init({
-	...
-	fix_content_duplication : false
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_focus_alert.html b/lib/editor/tinymce/docs/option_focus_alert.html deleted file mode 100644 index 60f111ef9e0..00000000000 --- a/lib/editor/tinymce/docs/option_focus_alert.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: focus_alert - - - - -
-

Option: focus_alert

-
- -
-

- This option enables you to specify if a "Editor is not focused" alert message should appear if the user calls tinyMCE.execCommand and havn't selected a editor instance before. This message will normaly not appear unless some integration has been made. Using tinyMCE.execInstanceCommand prevents this from happening since it auto focuses the editor specified. The default value of this option is "true". -

- -
- -

Example of usage of the focus_alert option:

-
-
-tinyMCE.init({
-	...
-	focus_alert : false
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_font_size_classes.html b/lib/editor/tinymce/docs/option_font_size_classes.html deleted file mode 100644 index 17b4fc145a9..00000000000 --- a/lib/editor/tinymce/docs/option_font_size_classes.html +++ /dev/null @@ -1,35 +0,0 @@ - - - -Option: font_size_classes - - - - -
-

Option: font_size_classes

-
- -
-

Comma separated list of class names that is to be used when the user selects font sizes, this option is only used when the convert_fonts_to_spans option is enabled. This list of classes should be 7 items. This option is not used by default, but can be useful if you want to have custom classes for each font size for browser compatiblity.

-
- -

Example of usage of the font_size_classes option:

-
-
-tinyMCE.init({
-	...
-	font_size_classes : "fontSize1,fontSize2,fontSize3,fontSize4,fontSize5,fontSize6,fontSize7"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_font_size_style_values.html b/lib/editor/tinymce/docs/option_font_size_style_values.html deleted file mode 100644 index a39a7f14e98..00000000000 --- a/lib/editor/tinymce/docs/option_font_size_style_values.html +++ /dev/null @@ -1,35 +0,0 @@ - - - -Option: font_size_style_values - - - - -
-

Option: font_size_style_values

-
- -
-

Comma separated list of style values that is to be used when the user selects font sizes, this option is only used when the convert_fonts_to_spans option is enabled. This list of style values should be 7 items. This option is not used by default, but can be useful if you want to have custom CSS values for each font size for browser compatiblity. Defaults to: xx-small,x-small,small,medium,large,x-large,xx-large.

-
- -

Example of usage of the font_size_style_values option:

-
-
-tinyMCE.init({
-	...
-	font_size_style_values : "xx-small,x-small,small,medium,large,x-large,xx-large"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_force_br_newlines.html b/lib/editor/tinymce/docs/option_force_br_newlines.html deleted file mode 100644 index e3a23189379..00000000000 --- a/lib/editor/tinymce/docs/option_force_br_newlines.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: force_br_newlines - - - - -
-

Option: force_br_newlines

-
- -
-

- 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). -

- -
- -

Example of usage of the force_br_newlines option:

-
-
-tinyMCE.init({
-	...
-	force_br_newlines : true
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_force_hex_style_colors.html b/lib/editor/tinymce/docs/option_force_hex_style_colors.html deleted file mode 100644 index 8f3d09fbfc2..00000000000 --- a/lib/editor/tinymce/docs/option_force_hex_style_colors.html +++ /dev/null @@ -1,35 +0,0 @@ - - - -Option: force_hex_style_colors - - - - -
-

Option: force_hex_style_colors

-
- -
-

This option enables you to control TinyMCE to force the color format to use hexa decimal instead of rgb strings. It converts for example "color: rgb(255, 255, 0)" to "#FFFF00". This option is set to true by default since otherwice MSIE and Firefox would differ in this behavior.

-
- -

Example of usage of the force_hex_style_colors option:

-
-
-tinyMCE.init({
-	...
-	force_hex_style_colors : false
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_force_p_newlines.html b/lib/editor/tinymce/docs/option_force_p_newlines.html deleted file mode 100644 index ea16d690d0c..00000000000 --- a/lib/editor/tinymce/docs/option_force_p_newlines.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: force_p_newlines - - - - -
-

Option: force_p_newlines

-
- -
-

- This option enables you to disable/enable the creation of paragraphs on return/enter in Mozilla/Firefox. The default value of this option is true. -

- -
- -

Example of usage of the force_p_newlines option:

-
-
-tinyMCE.init({
-	...
-	force_p_newlines : true
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_force_p_newliness.html b/lib/editor/tinymce/docs/option_force_p_newliness.html deleted file mode 100644 index c7ced5e7102..00000000000 --- a/lib/editor/tinymce/docs/option_force_p_newliness.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: force_p_newliness - - - - -
-

Option: force_p_newliness

-
- -
-

- ... -

- -
- -

Example of usage of the force_p_newliness option:

-
-
-tinyMCE.init({
-	...
-	force_p_newliness : ""
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_handle_event_callback.html b/lib/editor/tinymce/docs/option_handle_event_callback.html deleted file mode 100644 index 4558176230c..00000000000 --- a/lib/editor/tinymce/docs/option_handle_event_callback.html +++ /dev/null @@ -1,44 +0,0 @@ - - - -Option: handle_event_callback - - - - -
-

Option: handle_event_callback

-
- -
-

- This option should contain a function name to be executed each time TinyMCE intercepts and handles a event such as keydown, mousedown and so forth. The format of this function is: handleEvent(event), where inst is the editor instance object reference. If the handle event function returns false it will terminate the internal event handling. -

- -
- -

Example of usage of the handle_event_callback option:

-
-
-function myHandleEvent(e) {
-	window.status = "event:" + e.type;
-
-	return true; // Continue handling
-}
-
-tinyMCE.init({
-	...
-	handle_event_callback : "myHandleEvent"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_height.html b/lib/editor/tinymce/docs/option_height.html deleted file mode 100644 index a8d02fd9200..00000000000 --- a/lib/editor/tinymce/docs/option_height.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: height - - - - -
-

Option: height

-
- -
-

- This option gives you the ability to specify the height of the editor in pixels or percent. This height can be very userful to specify if the editor is used in hidden tabs or if the editor area should be bigger than the replaced element. The default value of this option is set to the height of the HTML element TinyMCE replaces for example the pixel height of a textarea. -

- -
- -

Example of usage of the height option:

-
-
-tinyMCE.init({
-	...
-	height : "480"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_init_instance_callback.html b/lib/editor/tinymce/docs/option_init_instance_callback.html deleted file mode 100644 index af85268e9db..00000000000 --- a/lib/editor/tinymce/docs/option_init_instance_callback.html +++ /dev/null @@ -1,42 +0,0 @@ - - - -Option: init_instance_callback - - - - -
-

Option: init_instance_callback

-
- -
-

- This option should contain a function name to be executed each time a editor instance is initialized. The format of this function is: initInstance(inst) where inst is the editor instance object reference. -

- -
- -

Example of usage of the init_instance_callback option:

-
-
-function myCustomInitInstance(inst) {
-	alert("Editor: " + inst.editorId + " is now initialized.");
-}
-
-tinyMCE.init({
-	...
-	init_instance_callback : "myCustomInitInstance"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_inline_styles.html b/lib/editor/tinymce/docs/option_inline_styles.html deleted file mode 100644 index 6e5482d2199..00000000000 --- a/lib/editor/tinymce/docs/option_inline_styles.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: inline_styles - - - - -
-

Option: inline_styles

-
- -
-

- If you enable the inline styles feature by setting this option to true. Most of the attributes gets converted into CSS style attributes instead. This will make the editor output more XHTML strict compatible. -

- -
- -

Example of usage of the inline_styles option:

-
-
-tinyMCE.init({
-	...
-	inline_styles : true
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_insertimage_callback.html b/lib/editor/tinymce/docs/option_insertimage_callback.html deleted file mode 100644 index ee082482964..00000000000 --- a/lib/editor/tinymce/docs/option_insertimage_callback.html +++ /dev/null @@ -1,60 +0,0 @@ - - - -Option: insertimage_callback - - - - -
-

(deprecated) Option: insertimage_callback

-
- -
-

- 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. -

- -
- -

Example of usage of the insertimage_callback option:

-
-
-function myCustomInsertImage(src, alt, border, hspace, vspace, width, height, align, title, onmouseover, onmouseout, action) {
-	var result = new Array();
-
-	// Do some custom logic
-	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";
-	result['title'] = "Some title";
-	result['onmouseover'] = "";
-	result['onmouseout'] = "";
-
-	return data;
-}
-
-tinyMCE.init({
-	...
-	insertimage_callback : "myCustomInsertImage"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_insertlink_callback.html b/lib/editor/tinymce/docs/option_insertlink_callback.html deleted file mode 100644 index aa53e80fb85..00000000000 --- a/lib/editor/tinymce/docs/option_insertlink_callback.html +++ /dev/null @@ -1,53 +0,0 @@ - - - -Option: insertlink_callback - - - - -
-

(deprecated) Option: insertlink_callback

-
- -
-

- 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. -

- -
- -

Example of usage of the insertlink_callback option:

-
-
-function myCustomInsertLink(href, target, title, onclick, action) {
-	var result = new Array();
-
-	// Do some custom logic
-	result['href'] = "some_page.htm";
-	result['target'] = "_self";
-	result['title'] = "Some link title";
-	result['onclick'] = "";
-
-	return data;
-}
-
-tinyMCE.init({
-	...
-	insertlink_callback : "myCustomInsertLink"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_invalid_elements.html b/lib/editor/tinymce/docs/option_invalid_elements.html deleted file mode 100644 index a1f9b67ca9f..00000000000 --- a/lib/editor/tinymce/docs/option_invalid_elements.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: invalid_elements - - - - -
-

Option: invalid_elements

-
- -
-

- This option should contain a comma separated list of element names to exclude from the content. Elements in this list will removed when TinyMCE executes a cleanup. -

- -
- -

Example of usage of the invalid_elements option:

-
-
-tinyMCE.init({
-	...
-	invalid_elements : "strong,em"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_language.html b/lib/editor/tinymce/docs/option_language.html deleted file mode 100644 index 7ab5b7fe145..00000000000 --- a/lib/editor/tinymce/docs/option_language.html +++ /dev/null @@ -1,42 +0,0 @@ - - - -Option: language - - - - -
-

Option: language

-
- -
-

- This option should contain a language code of the language pack to use with TinyMCE. These codes are in ISO-639-2 format to see if your language is available check the contents of "tinymce/jscripts/tiny_mce/langs". The default value of this option is "en" for English. -

- -

- If TinyMCE doesn't have a language pack for your language you could always write your own and contribute this back to this project by uploading it as a Patch at SourceForge. A description on how to create language packs can be found in Language packs section. -

- -
- -

Example of usage of the language option:

-
-
-tinyMCE.init({
-	...
-	language : "en"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_merge_styles_invalid_parents.html b/lib/editor/tinymce/docs/option_merge_styles_invalid_parents.html deleted file mode 100644 index f57e4c04080..00000000000 --- a/lib/editor/tinymce/docs/option_merge_styles_invalid_parents.html +++ /dev/null @@ -1,37 +0,0 @@ - - - -Option: merge_styles_invalid_parents - - - - -
-

Option: merge_styles_invalid_parents

-
- -
-

This option enables you to specify a regexp with elements you want to exclude from parent mergeing. By default style information are attached to the parent element of a selection if all childrent/the whole element contents is selected. For example if you select a whole strong element and select a font size, the font-size style will be applied to the strong element and not with a wrapping style element. But sometimes you want to force a span element, this is where this option comes in to place. This option is set to nothing by default and applies to the font size/face/color and class drop drown lists.

- -
- -

Example of usage of the merge_styles_invalid_parents option:

-
-
-tinyMCE.init({
-	...
-	// Excludes table cells and strong elements from any parent merge operation
-	merge_styles_invalid_parents : "^TD|STRONG$"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_mode.html b/lib/editor/tinymce/docs/option_mode.html deleted file mode 100644 index d4e3b9a6759..00000000000 --- a/lib/editor/tinymce/docs/option_mode.html +++ /dev/null @@ -1,54 +0,0 @@ - - - -Option: mode - - - - -
-

Option: mode

-
- -
-

- This option specifies how elements is to be converted into TinyMCE WYSIWYG editor instances. This option can be set to any of the values below. -

- -

-

textareas

- Converts all textarea elements to editors when the page loads. -

- -

-

specific_textareas

- Converts all textarea elements with the a textarea_trigger attribute set to "true". -

- -

-

exact

- exact - Converts only explicit elements, these are listed in the elements option. These elements can be any kind for example textareas or divs. -

- -
- -

Example of usage of the mode option:

-
-
-tinyMCE.init({
-	...
-	mode : "exact",
-	elements : "elm1,elm2"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_nowrap.html b/lib/editor/tinymce/docs/option_nowrap.html deleted file mode 100644 index 584cab4aaf8..00000000000 --- a/lib/editor/tinymce/docs/option_nowrap.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: nowrap - - - - -
-

Option: nowrap

-
- -
-

- This nowrap option enables you to control how whitespace is to be wordwrapped within the editor. This option is set to false by default, but if you enable it by setting it to true editor contents will never wrap. -

- -
- -

Example of usage of the nowrap option:

-
-
-tinyMCE.init({
-	...
-	nowrap : true
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_object_resizing.html b/lib/editor/tinymce/docs/option_object_resizing.html deleted file mode 100644 index 02a49bba4d8..00000000000 --- a/lib/editor/tinymce/docs/option_object_resizing.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: object_resizing - - - - -
-

Option: object_resizing

-
- -
-

- This true/false option gives you the ability to turn on/off the inline resizing controls of tables and images in Firefox/Mozilla. These are enabled by default. -

- -
- -

Example of usage of the object_resizing option:

-
-
-tinyMCE.init({
-	...
-	object_resizing : false
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_onchange_callback.html b/lib/editor/tinymce/docs/option_onchange_callback.html deleted file mode 100644 index 7bbec42ff0b..00000000000 --- a/lib/editor/tinymce/docs/option_onchange_callback.html +++ /dev/null @@ -1,43 +0,0 @@ - - - -Option: onchange_callback - - - - -
-

Option: onchange_callback

-
- -
-

- This option should contain a function name to be executed each time contents is modified by TinyMCE. This function is called each time a undo level is added to TinyMCE. The format of this function is: onchange(inst), where inst is the editor instance object reference. -

- -
- -

Example of usage of the onchange_callback option:

-
-
-function myCustomOnChangeHandler(inst) {
-	alert("Some one modified something");
-	alert("The HTML is now:" + inst.getBody().innerHTML);
-}
-
-tinyMCE.init({
-	...
-	onchange_callback : "myCustomOnChangeHandler"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_oninit.html b/lib/editor/tinymce/docs/option_oninit.html deleted file mode 100644 index d44871bdbef..00000000000 --- a/lib/editor/tinymce/docs/option_oninit.html +++ /dev/null @@ -1,42 +0,0 @@ - - - -Option: oninit - - - - -
-

Option: oninit

-
- -
-

- This option enables you to specify a function name to be executed when all editor instances has finished it's initialization. This is much like the onload event of a HTML page. -

- -
- -

Example of usage of the oninit option:

-
-
-function myCustomOnInit() {
-	alert("We are ready to rumble!!");
-}
-
-tinyMCE.init({
-	...
-	oninit : "myCustomOnInit"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_onpageload.html b/lib/editor/tinymce/docs/option_onpageload.html deleted file mode 100644 index 96a9b09fa89..00000000000 --- a/lib/editor/tinymce/docs/option_onpageload.html +++ /dev/null @@ -1,42 +0,0 @@ - - - -Option: onpageload - - - - -
-

Option: onpageload

-
- -
-

- This option enables you to specify a function name to be executed when the page is loaded but before the TinyMCE instances are created. -

- -
- -

Example of usage of the onpageload option:

-
-
-function myCustomOnPageLoad() {
-	alert("We are nearly ready to rumble!!");
-}
-
-tinyMCE.init({
-	...
-	onpageload : "myCustomOnPageLoad"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_plugins.html b/lib/editor/tinymce/docs/option_plugins.html deleted file mode 100644 index 9f8f0400358..00000000000 --- a/lib/editor/tinymce/docs/option_plugins.html +++ /dev/null @@ -1,45 +0,0 @@ - - - -Option: plugins - - - - -
-

Option: plugins

-
- -
-

- 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. -

- -
- -

Example of usage of the plugins option:

-
-
-tinyMCE.init({
-	...
-	plugins : "table,contextmenu,paste,-externalplugin"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_popups_css.html b/lib/editor/tinymce/docs/option_popups_css.html deleted file mode 100644 index 6fedd3ca3e7..00000000000 --- a/lib/editor/tinymce/docs/option_popups_css.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: popups_css - - - - -
-

Option: popups_css

-
- -
-

- This option enables you to specify the CSS to be used in all popup/dialog windows within TinyMCE this option is set to a CSS file found in the currently used theme by default. -

- -
- -

Example of usage of the popups_css option:

-
-
-tinyMCE.init({
-	...
-	popups_css : "/mypopup.css"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_preformatted.html b/lib/editor/tinymce/docs/option_preformatted.html deleted file mode 100644 index 327bb98cab8..00000000000 --- a/lib/editor/tinymce/docs/option_preformatted.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: preformatted - - - - -
-

Option: preformatted

-
- -
-

- If you enable this feature, whitespace such as tabs and spaces will be preserved. Much like the bahavior of a PRE element. This can be handy when integrating TinyMCE with webmail clients. This option is disabled by default. -

- -
- -

Example of usage of the preformatted option:

-
-
-tinyMCE.init({
-	...
-	preformatted : true
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_relative_urls.html b/lib/editor/tinymce/docs/option_relative_urls.html deleted file mode 100644 index cf8a7c3f7ce..00000000000 --- a/lib/editor/tinymce/docs/option_relative_urls.html +++ /dev/null @@ -1,36 +0,0 @@ - - - -Option: relative_urls - - - - -
-

Option: relative_urls

-
- -
-

If this option is set to true, all URLs returned from the MCFileManager will be relative from the specified document_base_url if it's set to false all URLs will be converted to absolute URLs. This feature can not be disabled since MSIE and FF modifies the URLs of DOM objects by them self so TinyMCE tries to solve this problem by reconverting them. This option is set to true by default.

- -
- -

Example of usage of the relative_urls option:

-
-
-tinyMCE.init({
-	...
-	relative_urls : false
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_remove_linebreaks.html b/lib/editor/tinymce/docs/option_remove_linebreaks.html deleted file mode 100644 index 41197851556..00000000000 --- a/lib/editor/tinymce/docs/option_remove_linebreaks.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: remove_linebreaks - - - - -
-

Option: remove_linebreaks

-
- -
-

- This option controls if linebreak characters should be removed from output HTML or not. This option is enabled by default since many backend systems use newline to <br /> convertion since they used to be plain old textarea based. With this option enables all HTML content will be placed on one line. -

- -
- -

Example of usage of the remove_linebreaks option:

-
-
-tinyMCE.init({
-	...
-	remove_linebreaks : false
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_remove_script_host.html b/lib/editor/tinymce/docs/option_remove_script_host.html deleted file mode 100644 index cf650f50807..00000000000 --- a/lib/editor/tinymce/docs/option_remove_script_host.html +++ /dev/null @@ -1,37 +0,0 @@ - - - -Option: remove_script_host - - - - -
-

Option: remove_script_host

-
- -
-

If this option is enabled the protocol and host part of the URLs returned from the MCFileManager will be removed. This option is only used if the relative_urls option is set to false. This option is set to true by default.

-

URL:s will be returned in this format: "/somedir/somefile.htm" instead of the default mode: "http://www.somesite.com/somedir/somefile.htm".

- -
- -

Example of usage of the remove_script_host option:

-
-
-tinyMCE.init({
-	...
-	remove_script_host : false
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_save_callback.html b/lib/editor/tinymce/docs/option_save_callback.html deleted file mode 100644 index 49fa6574e9a..00000000000 --- a/lib/editor/tinymce/docs/option_save_callback.html +++ /dev/null @@ -1,45 +0,0 @@ - - - -Option: save_callback - - - - -
-

Option: save_callback

-
- -
-

- 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. -

- -
- -

Example of usage of the save_callback option:

-
-
-function myCustomSaveContent(element_id, html, body) {
-	// Do some custom HTML cleanup
-	html = html.replace(/a/g,'b');
-
-	return html;
-}
-
-tinyMCE.init({
-	...
-	save_callback : "myCustomSaveContent"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_setupcontent_callback.html b/lib/editor/tinymce/docs/option_setupcontent_callback.html deleted file mode 100644 index 6afdd2b1deb..00000000000 --- a/lib/editor/tinymce/docs/option_setupcontent_callback.html +++ /dev/null @@ -1,43 +0,0 @@ - - - -Option: setupcontent_callback - - - - -
-

Option: setupcontent_callback

-
- -
-

- This option enables you to execute custom setup content logic when the editor initializes. The format of this callback is: - setupContent(editor_id, body, doc). Where editor_id is the TinyMCE editor instance id the editor instance object reference can be retrived by using tinyMCE.getInstanceById(editor_id). The body parameter is a reference to the iframes body element and doc is the iframes document element. This option is not used if it's not specified. -

- -
- -

Example of usage of the setupcontent_callback option:

-
-
-function myCustomSetupContent(editor_id, body, doc) {
-	body.innerHTML = "my new content" + body.innerHTML;
-}
-
-tinyMCE.init({
-	...
-	setupcontent_callback : "myCustomSetupContent"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_submit_patch.html b/lib/editor/tinymce/docs/option_submit_patch.html deleted file mode 100644 index 92003a57fda..00000000000 --- a/lib/editor/tinymce/docs/option_submit_patch.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: submit_patch - - - - -
-

Option: submit_patch

-
- -
-

- This toggle option enables you to turn on/off the auto patching of the submit function in forms. TinyMCE will auto move contents from the iframe to the hidden textarea field if for example a JavaScript uses a form[0].submit() call. This is the same as using the tinyMCE.triggerSave() call. This option is set to true by default. -

- -
- -

Example of usage of the submit_patch option:

-
-
-tinyMCE.init({
-	...
-	submit_patch : false
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_table_inline_editing.html b/lib/editor/tinymce/docs/option_table_inline_editing.html deleted file mode 100644 index 9477cb3c785..00000000000 --- a/lib/editor/tinymce/docs/option_table_inline_editing.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: table_inline_editing - - - - -
-

Option: table_inline_editing

-
- -
-

- This true/false option gives you the ability to turn on/off the inline table editing controls in Firefox/Mozilla. These controls are somewhat buggy and not redesignable so they are disabled by default. -

- -
- -

Example of usage of the table_inline_editing option:

-
-
-tinyMCE.init({
-	...
-	table_inline_editing : true
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_textarea_trigger.html b/lib/editor/tinymce/docs/option_textarea_trigger.html deleted file mode 100644 index 6bd5527e340..00000000000 --- a/lib/editor/tinymce/docs/option_textarea_trigger.html +++ /dev/null @@ -1,47 +0,0 @@ - - - -Option: textarea_trigger - - - - -
-

Option: textarea_trigger

-
- -
-

- This option enables you to specify the name of the attribute to check if it's value is true/false. If the mode option is set to "specific_textareas", only specific textareas with a attribute by the name of the value of this option gets converted and only if it's set to true. This option defaults to "mce_editable". -

- -

- If the mode is set to textareas and the textarea trigger attribute value is set to false, these textareas will not be converted. -

- -

- Notice: This option is deprecated. - We strongly recommend you to use the editor_selector/editor_deselector options instead since they validate with W3C specifications. -

- -
- -

Example of usage of the textarea_trigger option:

-
-
-tinyMCE.init({
-	...
-	textarea_trigger : "convert_this"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme.html b/lib/editor/tinymce/docs/option_theme.html deleted file mode 100644 index 610098352bc..00000000000 --- a/lib/editor/tinymce/docs/option_theme.html +++ /dev/null @@ -1,49 +0,0 @@ - - - -Option: theme - - - - -
-

Option: theme

-
- -
-

- 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. -

- -

-

advanced

- This is the advanced theme of TinyMCE, this theme enables users to add/remove buttons and panels and is a lot more flexible than the simple or default theme. For more information about this themes specific options check the "Advanced theme" configuration section. -

- -

-

simple

- This is the most simple theme for TinyMCE it contains only the basic functions. -

- -
- -

Example of usage of the theme option:

-
-
-tinyMCE.init({
-	...
-	theme : "advanced",
-	theme_advanced_buttons3_add_before : "tablecontrols,separator"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_blockformats.html b/lib/editor/tinymce/docs/option_theme_advanced_blockformats.html deleted file mode 100644 index 909256db40c..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_blockformats.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: theme_advanced_blockformats - - - - -
-

Option: theme_advanced_blockformats

-
- -
-

- 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. -

- -
- -

Example of usage of the theme_advanced_blockformats option:

-
-
-tinyMCE.init({
-	...
-	theme_advanced_blockformats : "p,div,h1,h2,h3,h4,h5,h6"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_buttons_n.html b/lib/editor/tinymce/docs/option_theme_advanced_buttons_n.html deleted file mode 100644 index d548865603b..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_buttons_n.html +++ /dev/null @@ -1,44 +0,0 @@ - - - -Option: theme_advanced_buttons<1-n> - - - - -
-

Option: theme_advanced_buttons<1-n>

-
- -
-

- 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". -

-

- A complete reference of all built in buttons and controls can be found in the button/control reference page. -

- -
- -

Example of usage of the theme_advanced_buttons<1-n> option:

-
-
-tinyMCE.init({
-	...
-	theme_advanced_buttons1 : "separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor"
-	theme_advanced_buttons2 : "bullist,numlist,separator,outdent,indent,separator,undo,redo,separator,link,unlink,anchor,image,cleanup,help,code"
-	theme_advanced_buttons3 : "hr,removeformat,visualaid,separator,sub,sup,separator,charmap"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_buttons_n_add.html b/lib/editor/tinymce/docs/option_theme_advanced_buttons_n_add.html deleted file mode 100644 index 4d5cf39ef00..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_buttons_n_add.html +++ /dev/null @@ -1,44 +0,0 @@ - - - -Option: theme_advanced_buttons<1-n_add> - - - - -
-

Option: theme_advanced_buttons<1-n_add>

-
- -
-

- 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". -

-

- A complete reference of all built in buttons and controls can be found in the button/control reference page. -

- -
- -

Example of usage of the theme_advanced_buttons<1-n>_add option:

-
-
-tinyMCE.init({
-	...
-	theme_advanced_buttons1_add : "separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor"
-	theme_advanced_buttons2_add : "bullist,numlist,separator,outdent,indent,separator,undo,redo,separator,link,unlink,anchor,image,cleanup,help,code"
-	theme_advanced_buttons3_add : "hr,removeformat,visualaid,separator,sub,sup,separator,charmap"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_buttons_n_add_before.html b/lib/editor/tinymce/docs/option_theme_advanced_buttons_n_add_before.html deleted file mode 100644 index 3912d2c280c..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_buttons_n_add_before.html +++ /dev/null @@ -1,44 +0,0 @@ - - - -Option: theme_advanced_buttons<1-n_add_before> - - - - -
-

Option: theme_advanced_buttons<1-n_add_before>

-
- -
-

- 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". -

-

- A complete reference of all built in buttons and controls can be found in the button/control reference page. -

- -
- -

Example of usage of the theme_advanced_buttons<1-n>_add_before option:

-
-
-tinyMCE.init({
-	...
-	theme_advanced_buttons1_add_before : "separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor"
-	theme_advanced_buttons2_add_before : "bullist,numlist,separator,outdent,indent,separator,undo,redo,separator,link,unlink,anchor,image,cleanup,help,code"
-	theme_advanced_buttons3_add_before : "hr,removeformat,visualaid,separator,sub,sup,separator,charmap"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_container.html b/lib/editor/tinymce/docs/option_theme_advanced_container.html deleted file mode 100644 index 9b6324d2bd3..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_container.html +++ /dev/null @@ -1,39 +0,0 @@ - - - -Option: theme_advanced_container_<container> - - - - -
-

Option: theme_advanced_container_<container>

-
- -
-

- This option should contain buttons/control that you wich to insert into the container, the button names available is the same as in the theme_advanced_buttons_<1-3> option but two extra controls available when this layout option is used these are "mceEditor" and "mceElementpath". The <container> part of this option should be replaced with a name within the theme_advanced_containers list. This option can only be used when theme is set to advanced and when the theme_advanced_layout_manager option is set to the value of "RowLayout". -

- -
- -

Example of usage of the theme_advanced_container_<container> option:

-
-
-tinyMCE.init({
-	...
-	theme_advanced_container_somecontainer1 : "bold,italic",
-	theme_advanced_container_somecontainer2 : "strikethrough,cut"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_container_align.html b/lib/editor/tinymce/docs/option_theme_advanced_container_align.html deleted file mode 100644 index 0c2513fc426..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_container_align.html +++ /dev/null @@ -1,39 +0,0 @@ - - - -Option: theme_advanced_container_align - - - - -
-

Option: theme_advanced_container_<container>_align

-
- -
-

- This option is used to set the alignment of a specific containerer. The <container> part of this option should be replaced with a name within the theme_advanced_containers list. This option can only be used when theme is set to advanced and when the theme_advanced_layout_manager option is set to the value of "RowLayout". -

- -
- -

Example of usage of the theme_advanced_container_<container>_align option:

-
-
-tinyMCE.init({
-	...
-	theme_advanced_container_somecontainer1_align : "left"
-	theme_advanced_container_somecontainer2_align : "right"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_container_class.html b/lib/editor/tinymce/docs/option_theme_advanced_container_class.html deleted file mode 100644 index bf96d733b95..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_container_class.html +++ /dev/null @@ -1,39 +0,0 @@ - - - -Option: theme_advanced_container_<container>_class - - - - -
-

Option: theme_advanced_container_<container>_class

-
- -
-

- This option is used to set the class of a specific container. The <container> part of this option should be replaced with a name within the theme_advanced_containers list. This option can only be used when theme is set to advanced and when the theme_advanced_layout_manager option is set to the value of "RowLayout". -

- -
- -

Example of usage of the theme_advanced_container_<container>_class option:

-
-
-tinyMCE.init({
-	...
-	theme_advanced_container_somecontainer1_class : "someclass",
-	theme_advanced_container_somecontainer2_class : "someotherclass"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_containers.html b/lib/editor/tinymce/docs/option_theme_advanced_containers.html deleted file mode 100644 index 30871f0eea3..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_containers.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: theme_advanced_containers - - - - -
-

Option: theme_advanced_containers

-
- -
-

- This option should contain a comma separated list of container/panel names. These names are then matched agains the other container options. This option can only be used when theme is set to advanced and when the theme_advanced_layout_manager option is set to the value of "RowLayout". -

- -
- -

Example of usage of the theme_advanced_containers option:

-
-
-tinyMCE.init({
-	...
-	theme_advanced_containers : "mycontainer1,mycontainer2"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_containers_default_align.html b/lib/editor/tinymce/docs/option_theme_advanced_containers_default_align.html deleted file mode 100644 index 5cb2fb2d215..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_containers_default_align.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: theme_advanced_containers_default_align - - - - -
-

Option: theme_advanced_containers_default_align

-
- -
-

- This option should contain the default container/panel alignment this can be a value of "left", "center" or "right". This option can only be used when theme is set to advanced and when the theme_advanced_layout_manager option is set to the value of "RowLayout". -

- -
- -

Example of usage of the theme_advanced_containers_default_align option:

-
-
-tinyMCE.init({
-	...
-	theme_advanced_containers_default_align : "left"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_containers_default_class.html b/lib/editor/tinymce/docs/option_theme_advanced_containers_default_class.html deleted file mode 100644 index 546d7596591..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_containers_default_class.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: theme_advanced_containers_default_class - - - - -
-

Option: theme_advanced_containers_default_class

-
- -
-

- This option should contain the default container/panel class name. This option can only be used when theme is set to advanced and when the theme_advanced_layout_manager option is set to the value of "RowLayout". -

- -
- -

Example of usage of the theme_advanced_containers_default_class option:

-
-
-tinyMCE.init({
-	...
-	theme_advanced_containers_default_class : "myPanelClass"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_custom_layout.html b/lib/editor/tinymce/docs/option_theme_advanced_custom_layout.html deleted file mode 100644 index 6c0900e9a06..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_custom_layout.html +++ /dev/null @@ -1,49 +0,0 @@ - - - -Option: theme_advanced_custom_layout - - - - -
-

Option: theme_advanced_custom_layout

-
- -
-

- This option is used to specify a custom layout manager function. The format of this function is: customLayout(template) where template is the template array within the advanced theme, this function should return a new template array containing the editor HTML in a key called html. This option can only be used when theme is set to advanced and when the theme_advanced_layout_manager option is set to the value of "RowLayout". - - CustomLayout - - template -

- -
- -

Example of usage of the theme_advanced_custom_layout option:

-
-
-function myCustomLayout(template) {
-	// Make custom layout
-	template['html'] = "make new layout";
-
-	return template;
-}
-
-tinyMCE.init({
-	...
-	theme_advanced_custom_layout : "myCustomLayout"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_disable.html b/lib/editor/tinymce/docs/option_theme_advanced_disable.html deleted file mode 100644 index 294a77d2a75..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_disable.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: theme_advanced_disable - - - - -
-

Option: theme_advanced_disable

-
- -
-

- This option should contain a comma separated list of controls to disable from any toolbar row/panel in TinyMCE. -

- -
- -

Example of usage of the theme_advanced_disable option:

-
-
-tinyMCE.init({
-	...
-	theme_advanced_disable : "bold,italic"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_fonts.html b/lib/editor/tinymce/docs/option_theme_advanced_fonts.html deleted file mode 100644 index c52ed57126a..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_fonts.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: theme_advanced_fonts - - - - -
-

Option: theme_advanced_fonts

-
- -
-

- This option should contain a semicolon separated list of font titles and font families separated by =. The titles are the ones that get presented to the user in the fonts drop down list and and the font family names is the string that gets inserted into the font face or fontFamily CSS style. -

- -
- -

Example of usage of the theme_advanced_fonts option:

-
-
-tinyMCE.init({
-	...
-	theme_advanced_fonts : "Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_layout_manager.html b/lib/editor/tinymce/docs/option_theme_advanced_layout_manager.html deleted file mode 100644 index 54572b81593..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_layout_manager.html +++ /dev/null @@ -1,39 +0,0 @@ - - - -Option: theme_advanced_layout_manager - - - - -
-

Option: theme_advanced_layout_manager

-
- -
-

- This option enables you to switch button and panel layout functionality. There are three diffrent layout manager options - SimpleLayout that is the default layout manager, RowLayout that is the more advanced manager and finaly CustomLayout that executes a custom layout manager function. Each of these layout managers have diffrent options and can be configurated in diffrent ways. This option is only available if the advanced theme is used. -

- -
- -

Example of usage of the theme_advanced_layout_manager option:

-
-
-tinyMCE.init({
-	...
-	theme_advanced_layout_manager : "RowLayout"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_link_targets.html b/lib/editor/tinymce/docs/option_theme_advanced_link_targets.html deleted file mode 100644 index dcb99966ad3..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_link_targets.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: theme_advanced_link_targets - - - - -
-

Option: theme_advanced_link_targets

-
- -
-

- This option should contain a semicolon separated list of link target titles and target names separated by =. The titles are the ones that get presented to the user in the link target drop down list and and the target names is the target that gets inserted as a target attribute. -

- -
- -

Example of usage of the theme_advanced_link_targets option:

-
-
-tinyMCE.init({
-	...
-	theme_advanced_link_targets : "Some frame=someframe;Some other frame=otherframe"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_path.html b/lib/editor/tinymce/docs/option_theme_advanced_path.html deleted file mode 100644 index a0616ab2528..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_path.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: theme_advanced_path - - - - -
-

Option: theme_advanced_path

-
- -
-

- This option gives you the ability to enable/disable the element path. This option is only useful if the theme_advanced_statusbar_location option is set to "top" or "bottom". This option is set to true by default. -

- -
- -

Example of usage of the theme_advanced_path option:

-
-
-tinyMCE.init({
-	...
-	theme_advanced_path : true
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_path_location.html b/lib/editor/tinymce/docs/option_theme_advanced_path_location.html deleted file mode 100644 index 8b26984a821..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_path_location.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: theme_advanced_path_location - - - - -
-

Option: theme_advanced_path_location

-
- -
-

- This option enables you to specify where the element path should be located. This option can be set to "top", "bottom" or "none". The default value is set to "none". 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". -

- -
- -

Example of usage of the theme_advanced_path_location option:

-
-
-tinyMCE.init({
-	...
-	theme_advanced_path_location : "bottom"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_resize_horizontal.html b/lib/editor/tinymce/docs/option_theme_advanced_resize_horizontal.html deleted file mode 100644 index c72e4f5c9e5..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_resize_horizontal.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - Option: theme_advanced_resize_horizontal - - - - -
-

Option: theme_advanced_resize_horizontal

-
- -
-

- This option gives you the ability to enable/disable the horizontal resizing. This option is only useful if the theme_advanced_statusbar_location option is set to "top" or "bottom" and when the theme_advanced_resizing is set to true. This option is set to true by default, that makes resizing horizontal and vertical. -

- -
- -

Example of usage of the theme_advanced_resize_horizontal option:

-
-
-tinyMCE.init({
-	...
-	theme_advanced_resize_horizontal : false
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_resizing.html b/lib/editor/tinymce/docs/option_theme_advanced_resizing.html deleted file mode 100644 index 098475abfde..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_resizing.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: theme_advanced_resizing - - - - -
-

Option: theme_advanced_resizing

-
- -
-

- This option gives you the ability to enable/disable the resizing button. This option is only useful if the theme_advanced_statusbar_location option is set to "top" or "bottom". This option is set to false by default. -

- -
- -

Example of usage of the theme_advanced_resizing option:

-
-
-tinyMCE.init({
-	...
-	theme_advanced_resizing : true
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_resizing_use_cookie.html b/lib/editor/tinymce/docs/option_theme_advanced_resizing_use_cookie.html deleted file mode 100644 index 0c8189061e7..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_resizing_use_cookie.html +++ /dev/null @@ -1,35 +0,0 @@ - - - -Option: theme_advanced_resizing_use_cookie - - - - -
-

Option: theme_advanced_resizing_use_cookie

-
- -
-

This option enables you to disable the storage of editor size in a cookie. By default the editors size is stored and retrived from a cookie.

-
- -

Example of usage of the theme_advanced_resizing_use_cookie option:

-
-
-tinyMCE.init({
-	...
-	theme_advanced_resizing_use_cookie : false
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_source_editor_height.html b/lib/editor/tinymce/docs/option_theme_advanced_source_editor_height.html deleted file mode 100644 index e4c242d39a9..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_source_editor_height.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: theme_advanced_source_editor_height - - - - -
-

Option: theme_advanced_source_editor_height

-
- -
-

- This option is used to define the height of the source editor dialog. This option is set to 400 by default. -

- -
- -

Example of usage of the theme_advanced_source_editor_height option:

-
-
-tinyMCE.init({
-	...
-	theme_advanced_source_editor_height : "600"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_source_editor_width.html b/lib/editor/tinymce/docs/option_theme_advanced_source_editor_width.html deleted file mode 100644 index 0b407bbf61c..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_source_editor_width.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: theme_advanced_source_editor_width - - - - -
-

Option: theme_advanced_source_editor_width

-
- -
-

- This option is used to define the width of the source editor dialog. This option is set to 500 by default. -

- -
- -

Example of usage of the theme_advanced_source_editor_width option:

-
-
-tinyMCE.init({
-	...
-	theme_advanced_source_editor_width : "700"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_statusbar_location.html b/lib/editor/tinymce/docs/option_theme_advanced_statusbar_location.html deleted file mode 100644 index b5e929f1176..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_statusbar_location.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: theme_advanced_statusbar_location - - - - -
-

Option: theme_advanced_statusbar_location

-
- -
-

- This option enables you to specify where the element statusbar with the path and resize tool should be located. This option can be set to "top", "bottom" or "none". The default value is set to "none". 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". -

- -
- -

Example of usage of the theme_advanced_statusbar_location option:

-
-
-tinyMCE.init({
-	...
-	theme_advanced_statusbar_location : "bottom"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_styles.html b/lib/editor/tinymce/docs/option_theme_advanced_styles.html deleted file mode 100644 index 8aea0fcab23..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_styles.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: theme_advanced_styles - - - - -
-

Option: theme_advanced_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. If this option isn't defined TinyMCE auto imports the classes from the content CSS. -

- -
- -

Example of usage of the theme_advanced_styles option:

-
-
-tinyMCE.init({
-	...
-	theme_advanced_styles : "Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_toolbar_align.html b/lib/editor/tinymce/docs/option_theme_advanced_toolbar_align.html deleted file mode 100644 index 60d61e16db7..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_toolbar_align.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: theme_advanced_toolbar_align - - - - -
-

Option: theme_advanced_toolbar_align

-
- -
-

- This option enables you to specify the alignment of the toolbar, this value can be left, right or center the default value is center. 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". -

- -
- -

Example of usage of the theme_advanced_toolbar_align option:

-
-
-tinyMCE.init({
-	...
-	theme_advanced_toolbar_align : "left"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_theme_advanced_toolbar_location.html b/lib/editor/tinymce/docs/option_theme_advanced_toolbar_location.html deleted file mode 100644 index 5ced8ad63c2..00000000000 --- a/lib/editor/tinymce/docs/option_theme_advanced_toolbar_location.html +++ /dev/null @@ -1,41 +0,0 @@ - - - -Option: theme_advanced_toolbar_location - - - - -
-

Option: theme_advanced_toolbar_location

-
- -
-

- This option enables you to specify where the toolbar should be located. This option can be set to "top" or "bottom". The default value is set to "bottom". 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". -

-

- There is a special "external" location, this option adds the toolbar to a DIV element and sets the class of this DIV to "mceToolbarExternal". This enables you to freely specify the location of the toolbar. -

- -
- -

Example of usage of the theme_advanced_toolbar_location option:

-
-
-tinyMCE.init({
-	...
-	theme_advanced_toolbar_location : "top"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_trim_span_elements.html b/lib/editor/tinymce/docs/option_trim_span_elements.html deleted file mode 100644 index 00c00fce269..00000000000 --- a/lib/editor/tinymce/docs/option_trim_span_elements.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: trim_span_elements - - - - -
-

Option: trim_span_elements

-
- -
-

- This option controls if spans without attributes will be removed or not. This option is set to true by default. -

- -
- -

Example of usage of the trim_span_elements option:

-
-
-tinyMCE.init({
-	...
-	trim_span_elements : false
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_urlconverter_callback.html b/lib/editor/tinymce/docs/option_urlconverter_callback.html deleted file mode 100644 index f35d9471e01..00000000000 --- a/lib/editor/tinymce/docs/option_urlconverter_callback.html +++ /dev/null @@ -1,46 +0,0 @@ - - - -Option: urlconverter_callback - - - - -
-

Option: urlconverter_callback

-
- -
-

- 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. -

- -
- -

Example of usage of the urlconverter_callback option:

-
-
-function myCustomURLConverter(url, node, on_save) {
-	// Do some custom URL convertion
-	url = url.substring(3);
-
-	// Return new URL
-	return url;
-}
-
-tinyMCE.init({
-	...
-	urlconverter_callback : "myCustomURLConverter"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_valid_elements.html b/lib/editor/tinymce/docs/option_valid_elements.html deleted file mode 100644 index eef58eda94d..00000000000 --- a/lib/editor/tinymce/docs/option_valid_elements.html +++ /dev/null @@ -1,348 +0,0 @@ - - - -Option: valid_elements - - - - -
-

Option: valid_elements

-
- -
-

- This option should contain a comma separated list element convertion chunks. Each chunk contains information about how one element and it's attributes should be treated. The default rule set for this option is specified below. -

-

- - - - - - - - - - - - - - - - - -
Control characters:
,Separates element chunk definitions.
/Separates element synonymous. The first element is the one that will be outputted.
|Separates attribute definitions.
[Starts a new attribute list for a element definition.
]Ends a attribute list for a element definition.
=Makes the attribute to default to the specified value. For example "target=_blank"
:Makes the attribute to be forced to the specified value. For example "border:0"
<Verifies the value of a attribute. For example "target<_blank?_self"
?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 &nbsp; if they are empty. Example: #p.
- Wildcards such as *,+,? may be used in element or attribute name matching. -

-

- Special variables:
- {$uid} Results in a unique ID. For example "p[id:{$uid}]".
-
- Use *[*] to include all elements and all attributes this can be very useful when used with the invalid_elements option. -

- -
- -

Example of usage of the valid_elements option:

-

- This example string tells TinyMCE to remove all elements that are not a "a, strong, div or br" element, convert b elements to strong elements, default target to "_blank" and keep the href, target and align attributes of the elements. -

-
-
-tinyMCE.init({
-	...
-	valid_elements : "a[href|target=_blank],strong/b,div[align],br"
-});
-
-
- -
- -

Default rule set:

-

- This is the default string used by TinyMCE to cleanup the HTML contents. -

-
-
-+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]
-
-
- -
- -

Full XHTML rule set:

-

- The following will validate that the page complies fully with the XHTML specification. -

-
-
-valid_elements : ""
-+"a[accesskey|charset|class|coords|dir<ltr?rtl|href|hreflang|id|lang|name"
-  +"|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup"
-  +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rel|rev"
-  +"|shape<circle?default?poly?rect|style|tabindex|title|target|type],"
-+"abbr[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
-  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
-  +"|title],"
-+"acronym[class|dir<ltr?rtl|id|id|lang|onclick|ondblclick|onkeydown|onkeypress"
-  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
-  +"|title],"
-+"address[class|align|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"
-  +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
-  +"|onmouseup|style|title],"
-+"applet[align<bottom?left?middle?right?top|alt|archive|class|code|codebase"
-  +"|height|hspace|id|name|object|style|title|vspace|width],"
-+"area[accesskey|alt|class|coords|dir<ltr?rtl|href|id|lang|nohref<nohref"
-  +"|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup"
-  +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup"
-  +"|shape<circle?default?poly?rect|style|tabindex|title|target],"
-+"base[href|target],"
-+"basefont[color|face|id|size],"
-+"bdo[class|dir<ltr?rtl|id|lang|style|title],"
-+"big[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
-  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
-  +"|title],"
-+"blockquote[dir|style|cite|class|dir<ltr?rtl|id|lang|onclick|ondblclick"
-  +"|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout"
-  +"|onmouseover|onmouseup|style|title],"
-+"body[alink|background|bgcolor|class|dir<ltr?rtl|id|lang|link|onclick"
-  +"|ondblclick|onkeydown|onkeypress|onkeyup|onload|onmousedown|onmousemove"
-  +"|onmouseout|onmouseover|onmouseup|onunload|style|title|text|vlink],"
-+"br[class|clear<all?left?none?right|id|style|title],"
-+"button[accesskey|class|dir<ltr?rtl|disabled<disabled|id|lang|name|onblur"
-  +"|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown"
-  +"|onmousemove|onmouseout|onmouseover|onmouseup|style|tabindex|title|type"
-  +"|value],"
-+"caption[align<bottom?left?right?top|class|dir<ltr?rtl|id|lang|onclick"
-  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
-  +"|onmouseout|onmouseover|onmouseup|style|title],"
-+"center[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
-  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
-  +"|title],"
-+"cite[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
-  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
-  +"|title],"
-+"code[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
-  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
-  +"|title],"
-+"col[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id"
-  +"|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown"
-  +"|onmousemove|onmouseout|onmouseover|onmouseup|span|style|title"
-  +"|valign<baseline?bottom?middle?top|width],"
-+"colgroup[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl"
-  +"|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown"
-  +"|onmousemove|onmouseout|onmouseover|onmouseup|span|style|title"
-  +"|valign<baseline?bottom?middle?top|width],"
-+"dd[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup"
-  +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
-+"del[cite|class|datetime|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"
-  +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
-  +"|onmouseup|style|title],"
-+"dfn[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
-  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
-  +"|title],"
-+"dir[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"
-  +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
-  +"|onmouseup|style|title],"
-+"div[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick"
-  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
-  +"|onmouseout|onmouseover|onmouseup|style|title],"
-+"dl[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"
-  +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
-  +"|onmouseup|style|title],"
-+"dt[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup"
-  +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
-+"em/i[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
-  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
-  +"|title],"
-+"fieldset[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
-  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
-  +"|title],"
-+"font[class|color|dir<ltr?rtl|face|id|lang|size|style|title],"
-+"form[accept|accept-charset|action|class|dir<ltr?rtl|enctype|id|lang"
-  +"|method<get?post|name|onclick|ondblclick|onkeydown|onkeypress|onkeyup"
-  +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onreset|onsubmit"
-  +"|style|title|target],"
-+"frame[class|frameborder|id|longdesc|marginheight|marginwidth|name"
-  +"|noresize<noresize|scrolling<auto?no?yes|src|style|title],"
-+"frameset[class|cols|id|onload|onunload|rows|style|title],"
-+"h1[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick"
-  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
-  +"|onmouseout|onmouseover|onmouseup|style|title],"
-+"h2[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick"
-  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
-  +"|onmouseout|onmouseover|onmouseup|style|title],"
-+"h3[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick"
-  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
-  +"|onmouseout|onmouseover|onmouseup|style|title],"
-+"h4[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick"
-  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
-  +"|onmouseout|onmouseover|onmouseup|style|title],"
-+"h5[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick"
-  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
-  +"|onmouseout|onmouseover|onmouseup|style|title],"
-+"h6[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick"
-  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
-  +"|onmouseout|onmouseover|onmouseup|style|title],"
-+"head[dir<ltr?rtl|lang|profile],"
-+"hr[align<center?left?right|class|dir<ltr?rtl|id|lang|noshade<noshade|onclick"
-  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
-  +"|onmouseout|onmouseover|onmouseup|size|style|title|width],"
-+"html[dir<ltr?rtl|lang|version],"
-+"iframe[align<bottom?left?middle?right?top|class|frameborder|height|id"
-  +"|longdesc|marginheight|marginwidth|name|scrolling<auto?no?yes|src|style"
-  +"|title|width],"
-+"img[align<bottom?left?middle?right?top|alt|border|class|dir<ltr?rtl|height"
-  +"|hspace|id|ismap<ismap|lang|longdesc|name|onclick|ondblclick|onkeydown"
-  +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
-  +"|onmouseup|src|style|title|usemap|vspace|width],"
-+"input[accept|accesskey|align<bottom?left?middle?right?top|alt"
-  +"|checked<checked|class|dir<ltr?rtl|disabled<disabled|id|ismap<ismap|lang"
-  +"|maxlength|name|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress"
-  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onselect"
-  +"|readonly<readonly|size|src|style|tabindex|title"
-  +"|type<button?checkbox?file?hidden?image?password?radio?reset?submit?text"
-  +"|usemap|value],"
-+"ins[cite|class|datetime|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"
-  +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
-  +"|onmouseup|style|title],"
-+"isindex[class|dir<ltr?rtl|id|lang|prompt|style|title],"
-+"kbd[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
-  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
-  +"|title],"
-+"label[accesskey|class|dir<ltr?rtl|for|id|lang|onblur|onclick|ondblclick"
-  +"|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout"
-  +"|onmouseover|onmouseup|style|title],"
-+"legend[align<bottom?left?right?top|accesskey|class|dir<ltr?rtl|id|lang"
-  +"|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
-  +"|onmouseout|onmouseover|onmouseup|style|title],"
-+"li[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup"
-  +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|type"
-  +"|value],"
-+"link[charset|class|dir<ltr?rtl|href|hreflang|id|lang|media|onclick"
-  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
-  +"|onmouseout|onmouseover|onmouseup|rel|rev|style|title|target|type],"
-+"map[class|dir<ltr?rtl|id|lang|name|onclick|ondblclick|onkeydown|onkeypress"
-  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
-  +"|title],"
-+"menu[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"
-  +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
-  +"|onmouseup|style|title],"
-+"meta[content|dir<ltr?rtl|http-equiv|lang|name|scheme],"
-+"noframes[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
-  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
-  +"|title],"
-+"noscript[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
-  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
-  +"|title],"
-+"object[align<bottom?left?middle?right?top|archive|border|class|classid"
-  +"|codebase|codetype|data|declare|dir<ltr?rtl|height|hspace|id|lang|name"
-  +"|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
-  +"|onmouseout|onmouseover|onmouseup|standby|style|tabindex|title|type|usemap"
-  +"|vspace|width],"
-+"ol[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"
-  +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
-  +"|onmouseup|start|style|title|type],"
-+"optgroup[class|dir<ltr?rtl|disabled<disabled|id|label|lang|onclick"
-  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
-  +"|onmouseout|onmouseover|onmouseup|style|title],"
-+"option[class|dir<ltr?rtl|disabled<disabled|id|label|lang|onclick|ondblclick"
-  +"|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout"
-  +"|onmouseover|onmouseup|selected<selected|style|title|value],"
-+"p[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick"
-  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
-  +"|onmouseout|onmouseover|onmouseup|style|title],"
-+"param[id|name|type|value|valuetype<DATA?OBJECT?REF],"
-+"pre/listing/plaintext/xmp[align|class|dir<ltr?rtl|id|lang|onclick|ondblclick"
-  +"|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout"
-  +"|onmouseover|onmouseup|style|title|width],"
-+"q[cite|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
-  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
-  +"|title],"
-+"s[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup"
-  +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
-+"samp[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
-  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
-  +"|title],"
-+"script[charset|defer|language|src|type],"
-+"select[class|dir<ltr?rtl|disabled<disabled|id|lang|multiple<multiple|name"
-  +"|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup"
-  +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|size|style"
-  +"|tabindex|title],"
-+"small[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
-  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
-  +"|title],"
-+"span[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"
-  +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
-  +"|onmouseup|style|title],"
-+"strike[class|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"
-  +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
-  +"|onmouseup|style|title],"
-+"strong/b[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
-  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
-  +"|title],"
-+"style[dir<ltr?rtl|lang|media|title|type],"
-+"sub[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
-  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
-  +"|title],"
-+"sup[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
-  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
-  +"|title],"
-+"table[align<center?left?right|bgcolor|border|cellpadding|cellspacing|class"
-  +"|dir<ltr?rtl|frame|height|id|lang|onclick|ondblclick|onkeydown|onkeypress"
-  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rules"
-  +"|style|summary|title|width],"
-+"tbody[align<center?char?justify?left?right|char|class|charoff|dir<ltr?rtl|id"
-  +"|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown"
-  +"|onmousemove|onmouseout|onmouseover|onmouseup|style|title"
-  +"|valign<baseline?bottom?middle?top],"
-+"td[abbr|align<center?char?justify?left?right|axis|bgcolor|char|charoff|class"
-  +"|colspan|dir<ltr?rtl|headers|height|id|lang|nowrap<nowrap|onclick"
-  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
-  +"|onmouseout|onmouseover|onmouseup|rowspan|scope<col?colgroup?row?rowgroup"
-  +"|style|title|valign<baseline?bottom?middle?top|width],"
-+"textarea[accesskey|class|cols|dir<ltr?rtl|disabled<disabled|id|lang|name"
-  +"|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup"
-  +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onselect"
-  +"|readonly<readonly|rows|style|tabindex|title],"
-+"tfoot[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id"
-  +"|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown"
-  +"|onmousemove|onmouseout|onmouseover|onmouseup|style|title"
-  +"|valign<baseline?bottom?middle?top],"
-+"th[abbr|align<center?char?justify?left?right|axis|bgcolor|char|charoff|class"
-  +"|colspan|dir<ltr?rtl|headers|height|id|lang|nowrap<nowrap|onclick"
-  +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
-  +"|onmouseout|onmouseover|onmouseup|rowspan|scope<col?colgroup?row?rowgroup"
-  +"|style|title|valign<baseline?bottom?middle?top|width],"
-+"thead[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id"
-  +"|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown"
-  +"|onmousemove|onmouseout|onmouseover|onmouseup|style|title"
-  +"|valign<baseline?bottom?middle?top],"
-+"title[dir<ltr?rtl|lang],"
-+"tr[abbr|align<center?char?justify?left?right|bgcolor|char|charoff|class"
-  +"|rowspan|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
-  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
-  +"|title|valign<baseline?bottom?middle?top],"
-+"tt[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup"
-  +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
-+"u[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup"
-  +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
-+"ul[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"
-  +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
-  +"|onmouseup|style|title|type],"
-+"var[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"
-  +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
-  +"|title]"
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_verify_css_classes.html b/lib/editor/tinymce/docs/option_verify_css_classes.html deleted file mode 100644 index cdeaeb2ac21..00000000000 --- a/lib/editor/tinymce/docs/option_verify_css_classes.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: verify_css_classes - - - - -
-

(Removed)Option: verify_css_classes

-
- -
-

- If you enable this function, class names placed in class attributes will be verified agains the content CSS. So elements with a class attribute containing a class that doesn't exist in the CSS will be removed. -

- -
- -

Example of usage of the verify_css_classes option:

-
-
-tinyMCE.init({
-	...
-	verify_css_classes : true
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_verify_html.html b/lib/editor/tinymce/docs/option_verify_html.html deleted file mode 100644 index efdefcde9d5..00000000000 --- a/lib/editor/tinymce/docs/option_verify_html.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: verify_html - - - - -
-

Option: verify_html

-
- -
-

- This option enabled or disables the element cleanup functionality. If you set this option to false, all element cleanup will be skipped but other cleanup functionality such as URL convertion will still be executed. -

- -
- -

Example of usage of the verify_html option:

-
-
-tinyMCE.init({
-	...
-	verify_html : false
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_visual.html b/lib/editor/tinymce/docs/option_visual.html deleted file mode 100644 index 73d3d5e9688..00000000000 --- a/lib/editor/tinymce/docs/option_visual.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: visual - - - - -
-

Option: visual

-
- -
-

- This true/false option gives you the ability to turn on/off the visual aid for border less tables. If a the border of a table is set to 0 TinyMCE adds a dotted line around the table by default. -

- -
- -

Example of usage of the visual option:

-
-
-tinyMCE.init({
-	...
-	visual : false
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_visual_table_class.html b/lib/editor/tinymce/docs/option_visual_table_class.html deleted file mode 100644 index 99cd4db06f2..00000000000 --- a/lib/editor/tinymce/docs/option_visual_table_class.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: visual_table_class - - - - -
-

Option: visual_table_class

-
- -
-

- This option enables you to specify what CSS class to use for presenting visual aids for border less tables. The default value of this option is set to "mceVisualAid". -

- -
- -

Example of usage of the visual_table_class option:

-
-
-tinyMCE.init({
-	...
-	visual_table_class : "myCustomVisualAidTableClass"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/option_width.html b/lib/editor/tinymce/docs/option_width.html deleted file mode 100644 index 92a0bf9cc9a..00000000000 --- a/lib/editor/tinymce/docs/option_width.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -Option: width - - - - -
-

Option: width

-
- -
-

- This option gives you the ability to specify the width of the editor in pixels or percent. This width can be very useful to specify if the editor is used in hidden tabs or if the editor area should be bigger than the replaced element. The default value of this option is set to the width of the HTML element TinyMCE replaces for example the pixel width of a textarea. -

- -
- -

Example of usage of the width option:

-
-
-tinyMCE.init({
-	...
-	width : "640"
-});
-
-
-
- - - - - diff --git a/lib/editor/tinymce/docs/plugin_advhr.html b/lib/editor/tinymce/docs/plugin_advhr.html deleted file mode 100644 index 3d32c2efdd2..00000000000 --- a/lib/editor/tinymce/docs/plugin_advhr.html +++ /dev/null @@ -1,46 +0,0 @@ - - - -Plugin: advhr - - - - -
-

Plugin: advhr

-
- -
-

This is a more advanced hr dialog contributed by Michael Keck. This hr plugin supports noshade, width and size.

- -

Installation Instructions

-

-

-

-

Initialization Example

-

-

-
-tinyMCE.init({
-	theme : "advanced",
-	mode : "textareas",
-	plugins : "advhr",
-	theme_advanced_buttons1_add : "advhr",
-	extended_valid_elements : "hr[class|width|size|noshade]"
-});
-
-

-
- - - - - diff --git a/lib/editor/tinymce/docs/plugin_advimage.html b/lib/editor/tinymce/docs/plugin_advimage.html deleted file mode 100644 index 8766e8d132a..00000000000 --- a/lib/editor/tinymce/docs/plugin_advimage.html +++ /dev/null @@ -1,57 +0,0 @@ - - - -Plugin: advimage - - - - -
-

Plugin: advimage

-
- -
-

This is a more advanced image dialog mostly based on code contributed by Michael Keck. This one supports mouseover/out image swapping.

- -

Installation Instructions

-

-

-

- -

- - - - - - -
Advimage plugin options
advimage_stylesThis 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.
advimage_update_dimensions_onchangeThis option enables you to control if the image dimensions should be updated with new data if the image src field is changed. This option is enabled by default.
-
-

- -

Initialization Example

-

-

-
-tinyMCE.init({
-	theme : "advanced",
-	mode : "textareas",
-	plugins : "preview"
-});
-
-
-

-
- - - - - diff --git a/lib/editor/tinymce/docs/plugin_advlink.html b/lib/editor/tinymce/docs/plugin_advlink.html deleted file mode 100644 index 2ab0b2ed613..00000000000 --- a/lib/editor/tinymce/docs/plugin_advlink.html +++ /dev/null @@ -1,55 +0,0 @@ - - - -Plugin: advlink - - - - -
-

Plugin: advlink

-
- -
-

This is a more advanced link dialog mostly based on code contributed by Michael Keck. This link plugin supports popup windows and targets.

- -

Installation Instructions

-

-

- -

- - - - - -
Advlink plugin options
advlink_stylesThis 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.
-
-

- -

-

Initialization Example

-

-

-
-tinyMCE.init({
-	theme : "advanced",
-	mode : "textareas",
-	plugins : "advlink"
-});
-
-

-
- - - - - diff --git a/lib/editor/tinymce/docs/plugin_autosave.html b/lib/editor/tinymce/docs/plugin_autosave.html deleted file mode 100644 index ad793a1c71b..00000000000 --- a/lib/editor/tinymce/docs/plugin_autosave.html +++ /dev/null @@ -1,35 +0,0 @@ - - - -Plugin: autosave - - - - -
-

Plugin: autosave

-
- -
-

This plugin gives the user a warning if they made modifications to a editor instance but didn't submit them. This plugin will most likely be extended in the future to provide AJAX auto save support.

-

Initialization Example

-

-

-
-tinyMCE.init({
-	theme : "advanced",
-	mode : "textareas",
-	plugins : "autosave"
-});
-
-

-
- - - - - diff --git a/lib/editor/tinymce/docs/plugin_contextmenu.html b/lib/editor/tinymce/docs/plugin_contextmenu.html deleted file mode 100644 index bfa36740087..00000000000 --- a/lib/editor/tinymce/docs/plugin_contextmenu.html +++ /dev/null @@ -1,43 +0,0 @@ - - - -Plugin: contextmenu - - - - -
-

Plugin: contextmenu

-
- -
-

- -

Installation Instructions

-

-

-

-

Initialization Example

-

-

-
-tinyMCE.init({
-	theme : "advanced",
-	mode : "textareas",
-	plugins : "contextmenu"
-});
-
-

-
- - - - - diff --git a/lib/editor/tinymce/docs/plugin_directionality.html b/lib/editor/tinymce/docs/plugin_directionality.html deleted file mode 100644 index e63dd9b1ac8..00000000000 --- a/lib/editor/tinymce/docs/plugin_directionality.html +++ /dev/null @@ -1,44 +0,0 @@ - - - -Plugin: directionality - - - - -
-

Plugin: directionality

-
- -
-

This plugin adds directionality icons to TinyMCE that enables TinyMCE to better handle languages that is written from right to left.

- -

Installation Instructions

-

-

-

-

Initialization Example

-

-

-
-tinyMCE.init({
-	theme : "advanced",
-	mode : "textareas",
-	plugins : "directionality",
-	theme_advanced_buttons3_add : "ltr,rtl"
-});
-
-

-
- - - - - diff --git a/lib/editor/tinymce/docs/plugin_emotions.html b/lib/editor/tinymce/docs/plugin_emotions.html deleted file mode 100644 index 5cd1a868ff6..00000000000 --- a/lib/editor/tinymce/docs/plugin_emotions.html +++ /dev/null @@ -1,53 +0,0 @@ - - - -Plugin: emotions - - - - -
-

Plugin: emotions

-
- -
-

The emotions plugin is able to insert smiley images into the TinyMCE editable area.

- -

Installation Instructions

-

-

-

-

Initialization Example

-

-

-
-tinyMCE.init({
-	theme : "advanced",
-	mode : "textareas",
-	plugins : "emotions",
-	theme_advanced_buttons3_add : "emotions"
-});
-
-

- -
- -

Copyright notice

-

- These emotions where taken from Mozilla Thunderbird. I hope they don't get angry if I use them here after all this is a open source project aswell and I realy love their product. -

-
- - - - - - diff --git a/lib/editor/tinymce/docs/plugin_flash.html b/lib/editor/tinymce/docs/plugin_flash.html deleted file mode 100644 index 863b7cb9dbe..00000000000 --- a/lib/editor/tinymce/docs/plugin_flash.html +++ /dev/null @@ -1,79 +0,0 @@ - - - -Plugin: flash - - - - -
-

Plugin: flash

-
- -
-

This is the "Insert Flash" Dialog, it enables users to insert flash movies into TinyMCE.

-

You can control the wmode, quality and menu by setting the flash_wmode, flash_quality and flash_menu options.

- -

Installation Instructions

-

-

-

-

Initialization Example

-

-

-
-tinyMCE.init({
-	theme : "advanced",
-	mode : "textareas",
-	plugins : "flash",
-	extended_valid_elements : "img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name]"
-	flash_external_list_url : "example_flash_list.js", // Optional URL to a list of SWF movies
-	flash_wmode : "transparent",
-	flash_quality : "high",
-	flash_menu : "false"
-});
-
-

- -
- -

Additional note

-

- The flash plugin has been heavily modified (the original is editor_plugin_original.js) since the original did not play nicely with html content that already contained existing flash tags and in fact stripped out the object - tags for existing flash html. The rewrite corrects this as well attempts - to preserve the existing flash tags where possible. The tinyMCE.init call - should be be something like: -

-

Initialization Example

-

-

-
-tinyMCE.init({
-	theme : "advanced",
-	mode : "textareas",
-	plugins : "flash",
-	extended_valid_elements : "img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name|obj|param|embed]"
-});
-
-

-

Note the extra obj,param,embed attributes for the img tag. These attributes - are used to serialize data from existing flash tags so that they can be - properly restored. Editing a flash tag with the plugin will cause this - information to be lost (sorry!) but still produces a working flash nevertheless. -

-
- - - - - - diff --git a/lib/editor/tinymce/docs/plugin_fullpage.html b/lib/editor/tinymce/docs/plugin_fullpage.html deleted file mode 100644 index 6e51cb786b3..00000000000 --- a/lib/editor/tinymce/docs/plugin_fullpage.html +++ /dev/null @@ -1,112 +0,0 @@ - - - -Plugin: fullpage - - - - -
-

Plugin: fullpage

-
- -
-

This plugin adds fullpage editing support. This enables you to edit whole documents with both head and body.

- -

Installation Instructions

-

-

-

- -

-

Options

-

-

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[fullpage_doctypes]This is a name/value list of possible document types. The value format of this option is name=value,name=value. These document types will be presented in the document type selection list. The default value of this option is: XHTML 1.0 Transitional=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">,XHTML 1.0 Frameset=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">,XHTML 1.0 Strict=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">,XHTML 1.1=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">">,HTML 4.01 Transitional=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">,HTML 4.01 Strict=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">,HTML 4.01 Frameset=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">.
[fullpage_fonts]This option enables you specify what font family style values that can be added to the body element. The value format of this option is name=value;name=value. The default value of this option is: Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,times new roman,times,serif;Tahoma=tahoma,arial,helvetica,sans-serif;Times New Roman=times new roman,times,serif;Verdana=verdana,arial,helvetica,sans-serif;Impact=impact;WingDings=wingdings -
[fullpage_fontsizes]This is a comma separated list of possible font sizes for the style attribute of the body element. This option defaults to: 10px,11px,12px,13px,14px,15px,16px.
[fullpage_encodings]This option enables you to specify what the document character encoding sets the user may select from. The default value of this option is: Western european (iso-8859-1)=iso-8859-1,Central European (iso-8859-2)=iso-8859-2,Unicode (UTF-8)=utf-8,Chinese traditional (Big5)=big5,Cyrillic (iso-8859-5)=iso-8859-5,Japanese (iso-2022-jp)=iso-2022-jp,Greek (iso-8859-7)=iso-8859-7,Korean (iso-2022-kr)=iso-2022-kr,ASCII (us-ascii)=us-ascii -
[fullpage_default_doctype]This option enables you to specify the default doctype for the output HTML.
[fullpage_default_encoding]This option enables you to specify the default encoding for the output HTML.
[fullpage_default_title]This option enables you to specify the default title for the output HTML.
[fullpage_default_font_size]This option enables you to specify the default font size for body element.
[fullpage_default_font_family]This option enables you to specify the default font family for body element.
[fullpage_default_text_color]This option enables you to specify the default text color for body element.
[fullpage_default_langcode]This option enables you to specify the default langcode for the output HTML.
[fullpage_default_xml_pi]This option enables you to specify if a XML declaration should be added or not true/false option.
-

-

-

Initialization Example

-

-

-

-
-tinyMCE.init({
-	theme : "advanced",
-	mode : "textareas",
-	plugins : "fullpage",
-	theme_advanced_buttons3_add : "fullpage",
-	fullpage_fontsizes : '13px,14px,15px,18pt,xx-large',
-	fullpage_default_xml_pi : false,
-	fullpage_default_langcode : 'en',
-	fullpage_default_title : "My document title"
-});
-
-

-
- - - - - diff --git a/lib/editor/tinymce/docs/plugin_fullscreen.html b/lib/editor/tinymce/docs/plugin_fullscreen.html deleted file mode 100644 index df428a8e9b9..00000000000 --- a/lib/editor/tinymce/docs/plugin_fullscreen.html +++ /dev/null @@ -1,58 +0,0 @@ - - - -Plugin: fullscreen - - - - -
-

Plugin: fullscreen

-
- -
-

This plugin adds fullscreen editing mode to TinyMCE.

- -

Installation Instructions

-

-

-

- -

- - - - - -
Fullscreen plugin options
fullscreen_settingsThis option gives you the ability to have diffrent settings applied when the editor is in fullscreen mode for example more tools.
-
-

- -

Initialization Example

-

-

-
-tinyMCE.init({
-	theme : "advanced",
-	mode : "textareas",
-	plugins : "fullscreen",
-	theme_advanced_buttons3_add : "fullscreen",
-	fullscreen_settings : {
-		theme_advanced_path_location : "top"
-	}
-});
-
-

-
- - - - - diff --git a/lib/editor/tinymce/docs/plugin_iespell.html b/lib/editor/tinymce/docs/plugin_iespell.html deleted file mode 100644 index ed808b4ed9c..00000000000 --- a/lib/editor/tinymce/docs/plugin_iespell.html +++ /dev/null @@ -1,45 +0,0 @@ - - - -Plugin: iespell - - - - -
-

Plugin: iespell

-
- -
-

- -

Installation Instructions

-

-

-

-

Initialization Example

-

-

-
-tinyMCE.init({
-	theme : "advanced",
-	mode : "textareas",
-	plugins : "iespell",
-	theme_advanced_buttons3_add : "iespell"
-});
-
-

-
- - - - - diff --git a/lib/editor/tinymce/docs/plugin_inlinepopups.html b/lib/editor/tinymce/docs/plugin_inlinepopups.html deleted file mode 100644 index 6d74e7ca27e..00000000000 --- a/lib/editor/tinymce/docs/plugin_inlinepopups.html +++ /dev/null @@ -1,36 +0,0 @@ - - - -Plugin: inlinepopups - - - - -
-

Plugin: inlinepopups

-
- -
-

This plugin makes all dialogs to open as floating DIV layers instead of popup windows. This option can be very useful inorder to get around popup blockers. This plugin should be treated as experimental since it's not 100% compatible yet.

- -

Initialization Example

-

-

-
-tinyMCE.init({
-	theme : "advanced",
-	mode : "textareas",
-	plugins : "inlinepopups"
-});
-
-

-
- - - - - diff --git a/lib/editor/tinymce/docs/plugin_insertdatetime.html b/lib/editor/tinymce/docs/plugin_insertdatetime.html deleted file mode 100644 index 9b5bded9660..00000000000 --- a/lib/editor/tinymce/docs/plugin_insertdatetime.html +++ /dev/null @@ -1,107 +0,0 @@ - - - -Plugin: insertdatetime - - - - -
-

Plugin: insertdatetime

-
- -
-

- -

Installation Instructions

-

-

-

-

Initialization Example

-

-

-
-tinyMCE.init({
-	theme : "advanced",
-	mode : "textareas",
-	plugins : "insertdatetime",
-	theme_advanced_buttons3_add : "insertdate,inserttime"
-    plugin_insertdate_dateFormat : "%Y-%m-%d",
-    plugin_insertdate_timeFormat : "%H:%M:%S"
-});
-
-

-

-

Options

-

-

- plugin_insertdate_dateFormat - Format that the date is output as. Defaults to: "%Y-%m-%d".
- plugin_insertdate_timeFormat - Format that the time is output as. Defaults to: "%H:%M:%S". -

-

Replacement variables

-

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
%yyear as a decimal number without a century (range 00 to 99)
%Yyear as a decimal number including the century
%dday of the month as a decimal number (range 01 to 31)
%mmonth as a decimal number (range 01 to 12)
%Dsame as %m/%d/%y
%rtime in a.m. and p.m. notation
%Hhour as a decimal number using a 24-hour clock (range 00 to 23)
%Ihour as a decimal number using a 12-hour clock (range 01 to 12)
%Mminute as a decimal number (range 00-59)
%Ssecond as a decimal number (range 00-59)
%peither "am" or "pm" according to the given time value
%%a literal "%" character
-

-
- - - - - diff --git a/lib/editor/tinymce/docs/plugin_noneditable.html b/lib/editor/tinymce/docs/plugin_noneditable.html deleted file mode 100644 index 834ec329cb6..00000000000 --- a/lib/editor/tinymce/docs/plugin_noneditable.html +++ /dev/null @@ -1,54 +0,0 @@ - - - -Plugin: noneditable - - - - -
-

Plugin: noneditable

-
- -
-

Adds non editable elements support for MSIE and Mozilla/FF. Any element with the "mceItemNonEditable" class will be blocked from modifications and treated as a single character. This class name is configurable using the "noneditable_noneditable_class". Any elements with the MSIE specific attribute "contenteditable" will be converted into classes instead.

-

Initialization Example

-

-

-
-tinyMCE.init({
-	theme : "advanced",
-	mode : "textareas",
-	plugins : "noneditable",
-	noneditable_leave_contenteditable : true
-});
-
-

- -

-

Options

- - - - - - - - - - - - - -
[noneditable_editable_class]Class name to be used for editable elements, this would be the the same as contenteditable=true, forcing a element to be editable. This option defaults to: "mceItemEditable". Notice that classes with the mceItem prefix is invisible within TinyMCE.
[noneditable_noneditable_class]Class name to be used for non editable elements, this would be the same as contenteditable=false. This option defaults to: "mceItemNonEditable". Notice that classes with the mceItem prefix is invisible within TinyMCE.
[noneditable_leave_contenteditable]If the value of this option is set to true, all contenteditable attributes will be left intact. This option is set to false by default, since this attribute is not a valid W3C attribute and the class approach is better.
-

-
- - - - - diff --git a/lib/editor/tinymce/docs/plugin_paste.html b/lib/editor/tinymce/docs/plugin_paste.html deleted file mode 100644 index d34a3602dea..00000000000 --- a/lib/editor/tinymce/docs/plugin_paste.html +++ /dev/null @@ -1,139 +0,0 @@ - - - -Plugin: paste - - - - -
-

Plugin: paste

-
- -
-

This plugin adds paste as plain text and paste from Word icons to TinyMCE. This plugin was developed by Ryan Demmer and modified by the TinyMCE crew to be more general and some extra features where added.

-

- On 25 May 2005, this plugin was modified by speednet: IE now pastes directly into the editor, bypassing the extra steps of opening the Insert box, selecting options, and clicking Insert. Speednet also added the Select All command, which highlights all the content in the editor when the user clicks the toolbar button (Other miscellaneous cleanup also). -

-

On 28 October 2005, this plugin was modified by monkeybrain: Added the paste_strip_class_attributes option.

-

Installation Instructions

-

-

-

-

Initialization Example

-

-

-
-tinyMCE.init({
-	theme : "advanced",
-	mode : "textareas",
-	plugins : "paste",
-	theme_advanced_buttons3_add : "pastetext,pasteword,selectall",
-	paste_create_paragraphs : false,
-	paste_create_linebreaks : false,
-	paste_use_dialog : true,
-	paste_auto_cleanup_on_paste : true,
-	paste_convert_middot_lists : false,
-	paste_unindented_list_class : "unindentedList",
-	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;
-}
-
-
-

-

-

Options

-

-

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[paste_create_paragraphs]If enabled double linefeeds are converted to paragraph elements when using the plain text dialog. This is enabled by default.
[paste_create_linebreaks]If enabled single linefeeds are converted to hard line break elements when using the plain text dialog. This is enabled by default.
[paste_use_dialog]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]MSIE specific option. If you enable this feature, a word paste will be executed when the user copy/paste content to the editor. This feature is disabled by default.
[paste_convert_middot_lists]If this feature is enabled middot lists are converted into UL lists, these will be assign a special class.
[paste_unindented_list_class]This option enables you to specify what class to assign to the UL list of middot converted lists. Middot lists are unindented in MS Office. This option defaults to "unIndentedList".
[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. -

This option defaults to: "\u2122,<sup>TM</sup>,\u2026,...,\u201c|\u201d,",\u2019,\',\u2013|\u2014|\u2015|\u2212,-" this list replaces some custom MS 1250 characters. -

- The \uXXXX values is the hex values of the Unicode characters. Trick use javascript:alert('<unicode char>'.charCodeAt(0).toString(16)); to retive these numbers.
[paste_strip_class_attributes]This feature allows you to control whether or not class attributes are stripped when using pasteword. Valid values are: -
    -
  • all - will strip all class attributes from the pasted content. This is the default value.
  • -
  • none - will not strip any class attributes from the pasted content.
  • -
  • mso - will strip out all of the class attribute values that start with "Mso", but retain all others.
  • -
-
[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. -
-

- -
- - - - - diff --git a/lib/editor/tinymce/docs/plugin_preview.html b/lib/editor/tinymce/docs/plugin_preview.html deleted file mode 100644 index f494d38c335..00000000000 --- a/lib/editor/tinymce/docs/plugin_preview.html +++ /dev/null @@ -1,66 +0,0 @@ - - - -Plugin: preview - - - - -
-

Plugin: preview

-
- -
-

This plugin adds a preview button to TinyMCE, pressing the button opens a popup showing the current content.

- -

Installation Instructions

-

-

-

-

Initialization Example

-

-

-
-tinyMCE.init({
-	theme : "advanced",
-	mode : "textareas",
-	plugins : "preview",
-	theme_advanced_buttons3_add : "preview",
-	plugin_preview_width : "500",
-	plugin_preview_height : "600"
-});
-
-

-

-

Options

-

-

- - - - - - - - - - - - - -
[plugin_preview_width]Preview window width. Defaults to 550.
[plugin_preview_height]Preview window height. Defaults to 600.
[plugin_preview_pageurl]Custom preview page URL relative from theme use "../../plugins/preview/example.html" for a example.
-

-
- - - - - diff --git a/lib/editor/tinymce/docs/plugin_print.html b/lib/editor/tinymce/docs/plugin_print.html deleted file mode 100644 index b3403cb8a66..00000000000 --- a/lib/editor/tinymce/docs/plugin_print.html +++ /dev/null @@ -1,45 +0,0 @@ - - - -Plugin: paste - - - - -
-

Plugin: print

-
- -
-

This plugin adds a print button to TinyMCE.

- -

Installation Instructions

-

-

-

-

Initialization Example

-

-

-
-tinyMCE.init({
-	theme : "advanced",
-	mode : "textareas",
-	plugins : "print",
-	theme_advanced_buttons3_add : "print"
-});
-
-

-
- - - - - diff --git a/lib/editor/tinymce/docs/plugin_save.html b/lib/editor/tinymce/docs/plugin_save.html deleted file mode 100644 index 79b44834173..00000000000 --- a/lib/editor/tinymce/docs/plugin_save.html +++ /dev/null @@ -1,65 +0,0 @@ - - - -Plugin: save - - - - -
-

Plugin: save

-
- -
-

This plugin adds a save button to TinyMCE this save button will submit the form that the editor is within.

- -

Installation Instructions

-

-

-

- -

-

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

-

-

-

-
-tinyMCE.init({
-	theme : "advanced",
-	mode : "textareas",
-	plugins : "save",
-	theme_advanced_buttons3_add : "save",
-	save_enablewhendirty : true,
-	onchange_callback : "mysave"
-});
-
-

-
- - - - - diff --git a/lib/editor/tinymce/docs/plugin_searchreplace.html b/lib/editor/tinymce/docs/plugin_searchreplace.html deleted file mode 100644 index 73bc2cdbd2f..00000000000 --- a/lib/editor/tinymce/docs/plugin_searchreplace.html +++ /dev/null @@ -1,44 +0,0 @@ - - - -Plugin: searchreplace - - - - -
-

Plugin: searchreplace

-
- -
-

This plugin adds search/replace dialogs to TinyMCE.

- -

Installation Instructions

-

-

-

-

Initialization Example

-

-

-
-tinyMCE.init({
-	theme : "advanced",
-	mode : "textareas",
-	plugins : "searchreplace",
-	theme_advanced_buttons3_add : "search,replace"
-});
-
-

-
- - - - - diff --git a/lib/editor/tinymce/docs/plugin_table.html b/lib/editor/tinymce/docs/plugin_table.html deleted file mode 100644 index 0b70819683e..00000000000 --- a/lib/editor/tinymce/docs/plugin_table.html +++ /dev/null @@ -1,98 +0,0 @@ - - - -Plugin: table - - - - -
-

Plugin: table

-
- -
-

- This plugin adds table management functionality to TinyMCE. -

- -

- - - - - - - - - - - - - - - - - - -
Table controls/buttons
tablecontrolsAll table control below and some separators between them.
tableInsert table control.
row_propsEdit row properties (tr).
cell_propsEdit cell properties (td).
delete_colDelete column control.
delete_rowDelete row control.
col_afterColumn after control.
col_beforeColumn before control.
row_afterRow after control.
row_beforeRow before control.
row_afterRow after control.
row_beforeRow before control.
split_cellsSplits a merged cell into rows and columns.
merge_cellsMergers selected cells into one cell.
-

- -

- - - - - - - - - - - -
Table commands to use with execCommand
mceInsertTableInserts a new table at cursor location the default size is 2x2. If the value parameter is specified it should contain a name/value array, this array has the following options cols, rows, border, cellspacing, cellpadding. The default border is set to: 0.
mceTableInsertRowBeforeInserts a row before/above the current cursor location.
mceTableInsertRowAfterInserts a row after/under the current cursor location.
mceTableDeleteRowDeletes the row at the current cursor location.
mceTableInsertColBeforeInserts a column before the current cursor location.
mceTableInsertColAfterInserts a column after the current cursor location.
mceTableDeleteColDeletes the column at the current cursor location.
-

- -

- - - - - - - -
Options
table_stylesThis 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_stylesThis 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_stylesThis 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.
-
-

- -

Installation Instructions

-

-

-

-

Initialization Example

-

-

-
-tinyMCE.init({
-	theme : "advanced",
-	mode : "textareas",
-	plugins : "table",
-	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"
-});
-
-

-
- - - - - diff --git a/lib/editor/tinymce/docs/plugin_zoom.html b/lib/editor/tinymce/docs/plugin_zoom.html deleted file mode 100644 index 5701909d9ea..00000000000 --- a/lib/editor/tinymce/docs/plugin_zoom.html +++ /dev/null @@ -1,44 +0,0 @@ - - - -Plugin: zoom - - - - -
-

Plugin: zoom

-
- -
-

Adds a zoom drop list in MSIE5.5+, this plugin was mostly created to show how to add custom droplists as plugins.

- -

Installation Instructions

-

-

-

-

Initialization Example

-

-

-
-tinyMCE.init({
-	theme : "advanced",
-	mode : "textareas",
-	plugins : "zoom",
-	theme_advanced_buttons3_add : "zoom"
-});
-
-

-
- - - - - diff --git a/lib/editor/tinymce/docs/reference_buttons.html b/lib/editor/tinymce/docs/reference_buttons.html deleted file mode 100644 index 8caaffaebdc..00000000000 --- a/lib/editor/tinymce/docs/reference_buttons.html +++ /dev/null @@ -1,136 +0,0 @@ - - - -List of all buttons/controls available, and their plugin requirements. - - - - -
-

List of all buttons/controls available, and their plugin requirements.

-
- -
-

- This is a list of all the avalible buttons that you can configure, the requirements are also listed as some buttons require you to include the plugin first. Check each plugin for more information, some plugins have seperate configurations. Use the theme_advanced_buttons<1-n>, theme_advanced_buttons<1-n>_add or theme_advanced_buttons<1-n>_add_before options to add new buttons and to disable buttons use the theme_advanced_disable option. -

-
- -

-

Default buttons available in the advanced theme

- bold
- italic
- underline
- strikethrough
- justifyleft
- justifycenter
- justifyright
- justifyfull
- bullist
- numlist
- outdent
- indent
- cut
- copy
- paste
- undo
- redo
- link
- unlink
- image
- cleanup
- help
- code
- hr
- removeformat
- formatselect
- fontselect
- fontsizeselect
- styleselect
- sub
- sup
- forecolor
- backcolor
- charmap
- visualaid
- anchor
- newdocument
- separator
-

-

-

Plugins with the button name same as plugin name

- save
- emotions
- flash
- iespell
- preview
- print
- zoom
- fullscreen
- advhr
- fullpage
-
-

-

-

Plugins with custom buttons

- -

-
- - - - - diff --git a/lib/editor/tinymce/docs/reference_configuration.html b/lib/editor/tinymce/docs/reference_configuration.html deleted file mode 100644 index d885123eaef..00000000000 --- a/lib/editor/tinymce/docs/reference_configuration.html +++ /dev/null @@ -1,218 +0,0 @@ - - - -Configuration reference - - - - -
-

Configuration reference

-
- -
-

This document is the index/reference page for all available core configuration options in TinyMCE.

- -
- -

Configuration options

-
-

All configuration options below is to be placed within the init JavaScript call.

- -

- - - -
-

-
- -
- -

Initialization of TinyMCE

-
-

Inorder to initialize the TinyMCE the following code must be placed within HEAD element of a document. The following example is configurated to convert all TEXTAREA elements to into editors when the page loads, there are other modes as well.

-

Example of TinyMCE configuration:

-
-
-<html>
-<head>
-<script language="javascript" type="text/javascript" src="../jscripts/tiny_mce/tiny_mce.js"></script>
-<script language="javascript" type="text/javascript">
-tinyMCE.init({
-	theme : "advanced",
-	mode : "textareas"
-});
-</script>
-</head>
-
-
-
- Note: Remember to remove the last "," character in the options list. -
-
- - -
- - - - - diff --git a/lib/editor/tinymce/docs/reference_javascript_functions.html b/lib/editor/tinymce/docs/reference_javascript_functions.html deleted file mode 100644 index f2fe00902ad..00000000000 --- a/lib/editor/tinymce/docs/reference_javascript_functions.html +++ /dev/null @@ -1,597 +0,0 @@ - - - -Javascript Functions - - - - -
-

Javascript Functions

-
- -
-

This is for advanced users, TinyMCE has a global instance with some public functions that can be called from the page.

-

tinyMCE.triggerSave([skip_cleanup], [skip_callback]);

-

-Makes a cleanup and moves the contents from the editor to the form field. This method is automaticly called by tinyMCE by adding a trigger on the forms submit method. -

-

- - - - - - - - - - - - - - - - -
Parameters
[skip_cleanup]Disables the cleanup process of trigger save. Defaults to false. (Optional)
[skip_callback]Disables the execution of the save_callback function. Defaults to false. (Optional)
- -skip_callback -

-

-Returns: Nothing -

-
-

tinyMCE.updateContent(form_element_name);

-

-Moves the contents from the form element to the editor, this does the opposite of triggerSave(). This method can be used when you want to change the contents of the editor dynamicly. -

-

- - - - - - - - - - - - -
Parameters
form_element_nameThe name of the form element to get contents from.
-

-

-Returns: Nothing -

-
-

tinyMCE.execInstanceCommand(editor_id, command, [user_interface], [value]);

-

-This method executes a command by name on the editor instance specified by the editor_id parameter. -

-

- - - - - - - - - - - - - - - - - - - - - - - - -
Parameters
editor_idID of editor instance or element id/name of the replaced element.
commandCommand to execute check the execCommand function for details.
[user_interface]Is a user interface to be used or not.
[value]Value to pass with command for example a URL..
-

-

-Returns: Nothing -

-
-

tinyMCE.execCommand(command, [user_interface], [value]);

-

-This method executes a command by name on the selected editor instance. -

-

- - - - - - - - - - - - - - - - - - - - -
Parameters
commandCommand to execute for example "Bold" or "Italic". These are defined by Mozilla Midas specification or Microsoft specification. But there are a some TinyMCE specific commands many other commands are available within plugins and themes.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
mceLinkOpens the insert link dialog and inserts a link.
mceImageOpens the insert image dialog and inserts a image.
mceCleanupRemoved unwanted elements and attributes from the HTML code.
mceHelpOpens the manual pages.
mceAddControlAdds a editor control to the element id/name specified as value.
mceRemoveControlRemoves a specific control by editor_id name. The value is the editor_id to remove, editor ids are in the following format: "mce_editor_<index>". DOM element ids and form element names can allso be used.
mceFocusFocuses the editor by the id placed in value. Editor id's are in the format "mce_editor_". DOM element ids and form element names can allso be used.
mceSetCSSClassSets the CSS class attribute or creates a new span of the selection. The value is the css class name to assign to selected element or new span element.
mceInsertContentInserts contents of value parameter to current cursor position.
mceReplaceContentReplaces the current selection with the HTML code in value. The {$selection} variable gets replaced with the currently selected text contents.
mceSetAttributeSets a attribute of the currenly selected element. The value of this command should be a name/value array with the following parameters.

- name - Attribute name to set.
- value - Attrbute value to set.
- [targets] - Target elements to add attribute on. Default: p,img,span,div,td,h1,h2,h3,h4,h5,h6,pre,address.

- Example of usage:
- tinyMCE.execCommand('mceSetAttribute',false,{name:'align',value:'right'});
-
mceToggleVisualAidToggles visual aid/guidelines mode on/off.
mceAnchorInserts a named anchor element, the value is the name of the anchor.
mceResetDesignModeResets the designMode state of all editor instances, this command is useful on Firefox if the editor is placed in tabs or shown/hidden with style.display="none/block". Call this command after the editor displayed again.
mceSelectNodeSelects the node/element passed as value. This command will also scroll to the elements location within the editor.
mceSelectNodeDepthSelects the node/element by depth relative from the current node. So a value of 0 will select the currently focused node. This command will also scroll to the elements location within the editor.
mceRemoveNodeRemoves the specified node and places the contents of the node in the same location. Specify the node reference to remove in the value parameter or null if the currently selected node is to be removed.
-
[user_interface]Tells if the command is to display a user interface or not. True/False option.
[value]Value to pass for the command for example to insertLink it's the URL of the link.
- -

-

-Returns: Nothing -

-

-Example: -

-

-

-
-<a href="javascript:tinymce.execCommand('Bold');">[Do bold]</a>
-
-
-

-
-

(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. -

- - - - - - - - - - - - - - - - -
Parameters
hrefHREF/URL of the link.
targetTarget of the link.
-

-Returns: Nothing -

-
-

(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. -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Parameters
srcImage src url.
altAlternative text of img element.
borderBorder of image element.
hspaceHorizontal spacing of image element.
vspaceVertical spacing of image element.
widthWidth of image element.
heightHeight of image element.
alignAlignment of image element.
titleLink title of image element.
onmouseoverOn mouse over event handler of image element.
onmouseoutOn mouse out event handler of image element.
-

-Returns: Nothing -

-
-

tinyMCE.triggerNodeChange();

-

This method is to be called when external changes is made to the editor. This method will then call the "handleNodeChangeCallback" callback in the theme. -

-

-Parameters: -

-

-None -

-

-Returns: Nothing -

-
-

tinyMCE.getContent();

-

-This method returns the HTML contents of the currently selected editor or null if no editor was selected. -

-

-Parameters: -

-

-None -

-

-Returns: HTML contents of the currently selected editor or null. -

-
-

Syntax: tinyMCE.setContent(html);

- -

This method sets the HTML contents of the currently selected editor.

- -

- - - - - - - - - - - - -
Parameters
htmlHTML Source code to set.
-

-

-Returns: None. -

-
-

tinyMCE.getInstanceById(editor_id);

-

-This method returns a editor instance by editor id. -

-

- - - - - - - - - - - - -
Parameters
editor_idEditor instance to retrive.
-

-

-Returns: TinyMCE Editor instance (TinyMCE_Control). -

-
-

tinyMCE.importThemeLanguagePack([theme]);

-

-This method imports/loads theme specific language packs. This may be called from custom themes. -

-

- - - - - - - - - - - - -
Parameters
[theme]Name of the current theme. This is a optional parameter it defaults to the global "theme" setting. This parameter is useful within theme plugins.
-

-

-Returns: None. -

-
-

tinyMCE.importPluginLanguagePack(plugin, valid_languages);

-

-This method imports/loads plugin specific language packs. This may be called from custom plugins. -

-

- - - - - - - - - - - - - - - - -
Parameters
pluginName of the current plugin.
valid_languagesComma separated list of supported languagepacks.
-

-

-Returns: None. -

-
-

tinyMCE.applyTemplate(html);

-

-This method replaces settings and lang variables in the theme. -

-

- - - - - - - - - - - - -
Parameters
htmlHTML code to apply theme variable substitution on.
-

-

-Returns: New converted, HTML code. -

-
-

tinyMCE.openWindow(template, [args]);

-

This method opens a new window by the template data assigned, it will get the width, height and html data from template parameters. The args array contains variable names to be substituted.

-

-There are some custom window arguments: -

-

- - - - - - - - - - - - - - - - -
Parameters
mce_replacevariablesEnables/Disables the language/variable replacement of the document HTML. Enabled by default.
mce_windowresizeEnables/Disables the auto resize feature of popupwindows. Enabled by default.
-

- -

- - - - - - - - - - - - - - - - -
Parameters
templateName/Value array with width, height, html and file keys in it.
[args]Name/Value array with variable names to replace. Variables in the template file key value (URL) gets replaced with the argument list.
-

-

-Returns: None. -

-
-

tinyMCE.getWindowArg(name, [default_value]);

-

-This method returns a window argument defined by name. This function is to be used in theme popup windows to retrive dialog parameters. -

-

- - - - - - - - - - - - - - - - -
Parameters
nameName of window argument to get.
[default_value]Default value to be returned if window argument is missing.
-

-

-Returns: Window argument value. -

-
-

tinyMCE.setWindowArg(name, value);

-

This method sets a window argument by name. This can for example be useful if plugin are to call other plugins.

-

- - - - - - - - - - - - - - - - -
Parameters
nameName of window argument to set.
valueValue to set in window argument.
-

-

-Returns: Window argument value. -

-
-

tinyMCE.getParam(name, [default_value], [strip_whitespace]);

-

This method returns a TinyMCE configuration parameter.

-

- - - - - - - - - - - - - - - - - - - - -
Parameters:
nameName of window argument to get.
[default_value]Default value to be returned if window argument is missing.
[strip_whitespace]If true all whitespace will be removed from return value, default: false.
-

-

-Returns: TinyMCE configuration parameter. -

-
- - - - - diff --git a/lib/editor/tinymce/docs/reference_plugins.html b/lib/editor/tinymce/docs/reference_plugins.html deleted file mode 100644 index 6300394b666..00000000000 --- a/lib/editor/tinymce/docs/reference_plugins.html +++ /dev/null @@ -1,75 +0,0 @@ - - - -Plugins Reference - - - - -
-

Plugins reference

-
- -
-

Here are some information about the different plugins.

- -
- -

Plugins

-
-

To use a plugin, you need to use the advanced theme and add the plugin name in the "plugin" comma seperated line. You also need to add the button to the interface, read more about the advanced plugin to configure this.

-

-

- - -
-

-

- Please notice that the plugins can require some configuration, click on the plugin link to read more about that plugin. -

-
- -
- - -
- - - - - diff --git a/lib/editor/tinymce/docs/tinymce_api/TinyMCE_Cleanup.html b/lib/editor/tinymce/docs/tinymce_api/TinyMCE_Cleanup.html deleted file mode 100644 index 2c98c3158ae..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/TinyMCE_Cleanup.html +++ /dev/null @@ -1,675 +0,0 @@ - - - - - -TinyMCE_Cleanup - - - - - - - - - - - - - - - - - - - - - -
- - -
- -
- - -

Class TinyMCE_Cleanup

-
Object
-   |
-   +--TinyMCE_Cleanup
-
- - -
-
- -
class - TinyMCE_Cleanup - - -
- -

- Defined in TinyMCE_Cleanup.class.js

-

- -
- - - - - - - - - - - - - - - - - - - - - - - - -
-Constructor Summary
- - - TinyMCE_Cleanup - - () - -
-             - TinyMCE_Cleanup class. -
- - - -  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- -  void - - - - - addRuleStr(<string> s) - -
-            - Adds a cleanup rule string, for TinyMCE_Cleanup.prototype.example = a;[href|name|title=title|class=class1?class2?class3]. -
- -  string - - - - - formatHTML(<string> h) - -
-            - Applies source formatting/indentation on the specified HTML string. -
- -  void - - - - - init(<Array> s) - -
-            - Initializes the cleanup engine with the specified config. -
- -  Array - - - - - parseRuleStr(<string> s) - -
-            - Parses a cleanup rule string, for TinyMCE_Cleanup.prototype.example = a;[href|name|title=title|class=class1?class2?class3]. -
- -  string - - - - - serializeNodeAsHTML(<HTMLNode> n) - -
-            - Serializes the specified node as a XHTML string. -
- -  string - - - - - serializeNodeAsXML(<HTMLNode> n) - -
-            - Serializes the specified node as a HTML string. -
- -  string - - - - - split(<RegEx> re, <string> s) - -
-            - Splits the specified string and removed empty chunks. -
- -  string - - - - - xmlEncode(<string> s) - -
-            - XML Encodes the specified string based on configured entity encoding. -
- - - -

- - - - - - - - - - - - - - - -
- Constructor Detail -
- -

-TinyMCE_Cleanup

-
TinyMCE_Cleanup()
- - - - - - - - - - - - - - - -
- - - - - - - - - - - - -
- Method Detail -
- - - - -

addRuleStr

-
void addRuleStr(<string> s)
- - - - - - - - - - - - - - - -
- - -

formatHTML

-
string formatHTML(<string> h)
- - - - - - - - - - - - - - - - - -
- - -

init

-
void init(<Array> s)
- - - - - - - - - - - - - - - -
- - -

parseRuleStr

-
Array parseRuleStr(<string> s)
- - - - - - - - - - - - - - - - - -
- - -

serializeNodeAsHTML

-
string serializeNodeAsHTML(<HTMLNode> n)
- - - - - - - - - - - - - - - - - -
- - -

serializeNodeAsXML

-
string serializeNodeAsXML(<HTMLNode> n)
- - - - - - - - - - - - - - - - - -
- - -

split

-
string split(<RegEx> re, <string> s)
- - - - - - - - - - - - - - - - - -
- - -

xmlEncode

-
string xmlEncode(<string> s)
- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - -
- - -
- - - -
- - - -
Documentation generated by JSDoc on Fri Feb 24 13:38:20 2006
- - diff --git a/lib/editor/tinymce/docs/tinymce_api/TinyMCE_Control.html b/lib/editor/tinymce/docs/tinymce_api/TinyMCE_Control.html deleted file mode 100644 index 1b98bbd5aaf..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/TinyMCE_Control.html +++ /dev/null @@ -1,1339 +0,0 @@ - - - - - -TinyMCE_Control - - - - - - - - - - - - - - - - - - - - - -
- - -
- -
- - -

Class TinyMCE_Control

-
Object
-   |
-   +--TinyMCE_Control
-
- - -
-
- -
class - TinyMCE_Control - - -
- -

- Defined in TinyMCE_Control.class.js

-

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Field Summary
-  Objectcleanup -
-           
-  ObjecthasMouseMoved -
-           
-  ObjectisTinyMCE_Control -
-           
-  Objectplugins -
-           
-  Objectselection -
-           
-  Objectsettings -
-           
-  Objectshortcuts -
-           
-  ObjectundoRedo -
-           
-  ObjectundoRedoLevel -
-           
-   - - - - - - - - - - - - - - - - - -
-Constructor Summary
- - - TinyMCE_Control - - (<Array> settings) - -
-             - This is the TinyMCE editor control instance class. -
- - - -  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- -  void - - - - - addPlugin(<string> n, p) - -
-            - Adds a plugin to the editor instance. -
- -  boolean - - - - - addShortcut(<string> m, <Object> k, <string> d, <string> cmd, <boolean> ui, <Object> va) - -
-            - Adds a keyboard shortcut to a specific command. -
- -  void - - - - - autoResetDesignMode() - -
-            - Auto resets the design mode of the document if it gets lost. -
- -  Object - - - - - execCommand(<string> command, <boolean> user_interface, <mixed> value) - -
-            - Executes a command on the current instance. -
- -  HTMLElement - - - - - getBody() - -
-            - Returns the body element of a editor instance. -
- -  DOMDocument - - - - - getDoc() - -
-            - Returns the DOM document of a editor instance. -
- -  HTMLElement - - - - - getFocusElement() - -
-            - Returns the currently selected element. -
- -  DOMRange - - - - - getRng() - -
-            - Returns the browsers selections first range instance. -
- -  DOMSelection - - - - - getSel() - -
-            - Returns the browsers selection instance. -
- -  Window - - - - - getWin() - -
-            - Returns the window of a editor instance. -
- -  boolean - - - - - handleShortcut(<DOMEvent> e) - -
-            - Executes shortcuts based on the event information. -
- -  boolean - - - - - hasPlugin(<string> n) - -
-            - Returns true/false if the instance has the current plugin available. -
- -  boolean - - - - - isDirty() - -
-            - Returns true/false if the editor instance is dirty or not. -
- -  boolean - - - - - isHidden() - -
-            - Returns if the instance is hidden or not. -
- -  boolean - - - - - queryCommandState(<string> c) - -
-            - Returns a command specific state, for example if bold is enabled or not. -
- -  mixed - - - - - queryCommandValue(<string> c) - -
-            - Returns a command specific value, for example the current font size. -
- -  void - - - - - repaint() - -
-            - Repaints the editarea in Gecko browsers. -
- -  void - - - - - setBaseHREF(<string> u) - -
-            - Sets the base href url of the current document instance. -
- -  void - - - - - switchSettings() - -
-            - Switches the global TinyMCE settings to the current instance settings. -
- - - -

- - - - - - - - - - -
Field Detail
- - - -

cleanup

-
Object cleanup
- -
- - -

hasMouseMoved

-
Object hasMouseMoved
- -
- - -

isTinyMCE_Control

-
Object isTinyMCE_Control
- -
- - -

plugins

-
Object plugins
- -
- - -

selection

-
Object selection
- -
- - -

settings

-
Object settings
- -
- - -

shortcuts

-
Object shortcuts
- -
- - -

undoRedo

-
Object undoRedo
- -
- - -

undoRedoLevel

-
Object undoRedoLevel
- -
- - - - - - - - - - - - -
- Constructor Detail -
- -

-TinyMCE_Control

-
TinyMCE_Control(<Array> settings)
- - - - - - - - - - - - - - - -
- - - - - - - - - - - - -
- Method Detail -
- - - - -

addPlugin

-
void addPlugin(<string> n, p)
- - - - - - - - - - - - - - - -
- - -

addShortcut

-
boolean addShortcut(<string> m, <Object> k, <string> d, <string> cmd, <boolean> ui, <Object> va)
- - - - - - - - - - - - - - - - - -
- - -

autoResetDesignMode

-
void autoResetDesignMode()
- - - - - - - - - - - - - -
- - -

execCommand

-
Object execCommand(<string> command, <boolean> user_interface, <mixed> value)
- - - - - - - - - - - - - - - -
- - -

getBody

-
HTMLElement getBody()
- - - - - - - - - - - - - - - -
- - -

getDoc

-
DOMDocument getDoc()
- - - - - - - - - - - - - - - -
- - -

getFocusElement

-
HTMLElement getFocusElement()
- - - - - - - - - - - - - - - - - -
- - -

getRng

-
DOMRange getRng()
- - - - - - - - - - - - - - - - - -
- - -

getSel

-
DOMSelection getSel()
- - - - - - - - - - - - - - - - - -
- - -

getWin

-
Window getWin()
- - - - - - - - - - - - - - - -
- - -

handleShortcut

-
boolean handleShortcut(<DOMEvent> e)
- - - - - - - - - - - - - - - - - -
- - -

hasPlugin

-
boolean hasPlugin(<string> n)
- - - - - - - - - - - - - - - - - -
- - -

isDirty

-
boolean isDirty()
- - - - - - - - - - - - - - - -
- - -

isHidden

-
boolean isHidden()
- - - - - - - - - - - - - - - -
- - -

queryCommandState

-
boolean queryCommandState(<string> c)
- - - - - - - - - - - - - - - - - -
- - -

queryCommandValue

-
mixed queryCommandValue(<string> c)
- - - - - - - - - - - - - - - - - -
- - -

repaint

-
void repaint()
- - - - - - - - - - - - - -
- - -

setBaseHREF

-
void setBaseHREF(<string> u)
- - - - - - - - - - - - - - - -
- - -

switchSettings

-
void switchSettings()
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - -
- - -
- - - -
- - - -
Documentation generated by JSDoc on Fri Feb 24 13:38:20 2006
- - diff --git a/lib/editor/tinymce/docs/tinymce_api/TinyMCE_Engine.html b/lib/editor/tinymce/docs/tinymce_api/TinyMCE_Engine.html deleted file mode 100644 index a3a02b845d7..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/TinyMCE_Engine.html +++ /dev/null @@ -1,5645 +0,0 @@ - - - - - -TinyMCE_Engine - - - - - - - - - - - - - - - - - - - - - -
- - -
- -
- - -

Class TinyMCE_Engine

-
Object
-   |
-   +--TinyMCE_Engine
-
- - -
-
- -
class - TinyMCE_Engine - - -
- -

- Defined in TinyMCE_Engine.class.js

-

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Field Summary
-  ObjectbuttonMap -
-           
-  Objectconfigs -
-           
-  ObjectcurrentConfig -
-           
-  ObjectdialogCounter -
-           
-  ObjecteventHandlers -
-           
-  ObjectidCounter -
-           
-  Objectinstances -
-           
-  ObjectisGecko -
-           
-  ObjectisLoaded -
-           
-  ObjectisMac -
-           
-  ObjectisMSIE -
-           
-  ObjectisMSIE5 -
-           
-  ObjectisMSIE5_0 -
-           
-  ObjectisNS7 -
-           
-  ObjectisNS71 -
-           
-  ObjectisOpera -
-           
-  ObjectisSafari -
-           
-  ObjectloadedFiles -
-           
-  ObjectloadedPlugins -
-           
-  ObjectmajorVersion -
-           
-  ObjectminorVersion -
-           
-  Objectplugins -
-           
-  ObjectreleaseDate -
-           
-  ObjectswitchClassCache -
-           
-  Objectthemes -
-           
-  ObjectwindowArgs -
-           
-   - - - - - - - - - - - - - - - - - -
-Constructor Summary
- - - TinyMCE_Engine - - () - -
-             - Core engine class for TinyMCE, a instance of this class is available as a global called tinyMCE. -
- - - -  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- -  HTMLElement - - - - - _getElementById(<string> id) - -
-            - Returns a element by id, this will also search the form names to match the id. -
- -  Object - - - - - accessibleEventHandler(<DOMEvent> e) - -
-            - Accessibility handler that gets executed when the user hits a key in a select element. -
- -  void - - - - - addButtonMap(<string> m) - -
-            - Adds a list of buttons available in the tiled button image used by the button_tile_map option. -
- -  void - - - - - addEvent(<HTMLElement> o, <string> n, <function> h) - -
-            - Adds a event handler function to the specified object. -
- -  void - - - - - addEventHandlers(<string> editor_id) - -
-            - Adds the handleEvent function to the specified editor instance. -
- -  void - - - - - addMCEControl(<HTMLElement> replace_element, <string> form_element_name, <DOMDocument> target_document) - -
-            - Adds a TinyMCE editor control instance to a specific form element. -
- -  void - - - - - addPlugin(n, <TinyMCE_Plugin> p) - -
-            - Adds the specified plugin to the list of loaded plugins, this will also setup the baseURL - property of the plugin. -
- -  Object - - - - - addSelectAccessibility(<DOMEvent> e, <HTMLElement> s, <DOMWindow> w) - -
-            - Adds accessibility keydown handler to the specified select element. -
- -  void - - - - - addTheme(&l<TinyMCE_Theme> t;string> n, t) - -
-            - Adds the specified theme in to the list of loaded themes. -
- -  void - - - - - addToLang(<string> prefix, <Array> ar) - -
-            - Adds language items to the global language array. -
- -  string - - - - - applyTemplate(<string> h, <Array> as) - -
-            - Replaces language, args and settings variables in a HTML string. -
- -  boolean - - - - - callFunc(<<<Array> a href="TinyMCE_Control.html">TinyMCE_Control> ins, <string> p, <string> n, <int> m, a) - -
-            - Executes callback chain. -
- -  void - - - - - cancelEvent(<DOMEvent> e) - -
-            - Cancels the specified event, this will disable the event from be passed to other listeners in event chain. -
- -  void - - - - - cleanupAnchors(<DOMDocument> doc) - -
-            - Moves the contents of a anchor outside and after the anchor. -
- -  string - - - - - cleanupEventStr(<string> s) - -
-            - Removes MSIE 5.5 specific event wrapper function form a event string. -
- -  string - - - - - cleanupHTMLCode(<string> s) - -
-            - Makes some preprocessing cleanup routines on the specified HTML string. -
- -  Array - - - - - clearArray(a) - -
-            - Returns a cleared array, since some external libraries tend to extend the Array core object - arrays needs to be cleaned from these extended functions. -
- -  void - - - - - closeWindow(<DOMWindow> win) - -
-            - Closes the specified window. -
- -  void - - - - - compressStyle(<Array> ar, <string> pr, <string> sf, <string> res) - -
-            - Compresses larger styles into a smaller. -
- -  void - - - - - confirmAdd(<DOMEvent> e, <Array> settings) - -
-            - Displays a confirm dialog when a user clicks/focus a textarea that is to be converted into - a TinyMCE instance. -
- -  string - - - - - convertAbsoluteURLToRelativeURL(<string> base_url, <string> url_to_relative) - -
-            - Converts an absolute path to relative path. -
- -  void - - - - - convertAllRelativeURLs(<HTMLElement> body) - -
-            - Converts all img and a element URLs to absolute URLs. -
- -  void - - - - - convertFontsToSpans(<DOMDocument> doc) - -
-            - Convers fonts to spans in the specified document. -
- -  string - - - - - convertHexToRGB(<string> s) - -
-            - Returns a rgb(n,n,n) string from a hexadecimal value. -
- -  string - - - - - convertRelativeToAbsoluteURL(<string> base_url, <string> relative_url) - -
-            - Converts an relative path to absolute path. -
- -  string - - - - - convertRGBToHex(<string> s, <boolean> k) - -
-            - Returns a hexadecimal version of the specified rgb(1,2,3) string. -
- -  void - - - - - convertSpansToFonts(<DOMDocument> doc) - -
-            - Converts span elements to font elements in the specified document instance. -
- -  string - - - - - convertURL(<string> url, <HTMLElement> node, <boolean> on_save) - -
-            - Converts the specified URL based in TinyMCE configuration settings. -
- -  void - - - - - debug() - -
-            - Debugs the specified message to a screen. -
- -  Object - - - - - dispatchCallback(<TinyMCE_Control> i, <string> p, <string> n) - -
-            - Dispatches the specified callback on all options, plugins and themes. -
- -  string - - - - - entityDecode(<string> s) - -
-            - HTML entity decode a string, replaces < with <. -
- -  object - - - - - evalFunc(<string> f, <int> idx, <Array> a) - -
-            - Evaluates the specified function and uses the array of arguments. -
- -  void - - - - - execCommand(<string> command, <boolean> user_interface, <object> value) - -
-            - Executes a command on the selected or last selected TinyMCE editor control instance. -
- -  Object - - - - - execCommandCallback(<TinyMCE_Control> i, <string> p, <string> n) - -
-            - Executes the specified execcommand callback on all options, plugins and themes. -
- -  void - - - - - execInstanceCommand(<string> editor_id, <string> command, <boolean> user_interface, <object> value, <boolean> focus) - -
-            - Executes a command on a specific editor instance by id. -
- -  Object - - - - - executeCallback(<TinyMCE_Control> i, <string> p, <string> n) - -
-            - Executes the specified callback on all options, plugins and themes. -
- -  string - - - - - fixGeckoBaseHREFBug(<boolean> m, <HTMLElement> e, <string> h) - -
-            - Fixes a Gecko specific bug where href, src attribute values gets converted incorrectly - when inserted into editor. -
- -  TinyMCE_ElementPosition - - - - - getAbsPosition(<HTMLNode> n) - -
-            - Returns the absolute x, y position of a node. -
- -  string - - - - - getAttrib(<HTMLElement> elm, <string> name, <string> default_value) - -
-            - Returns the attribute value of a element or the default value if it wasn't found. -
- -  string - - - - - getButtonHTML(<string> id, <string> lang, <string> img, <string> cmd, <string> ui, <string> val) - -
-            - Returns the HTML code for a normal button control. -
- -  string - - - - - getContent(<string> editor_id) - -
-            - Returns the HTML contents of the specified editor instance id. -
- -  string - - - - - getControlHTML(<string> c) - -
-            - Returns the HTML for the specified control this will loop through - the theme and all plugins inorder to find the control. -
- -  Array - - - - - getCSSClasses(<string> editor_id, <DOMDocument> doc) - -
-            - Returns a array of CSS classes that is available in a document. -
- -  string - - - - - getEditorId(<string> form_element) - -
-            - Returns the editor instance id of a specific form element. -
- -  HTMLElement - - - - - getElementByAttributeValue(<HTMLElement> n, <string> e, <string> a, <string> v) - -
-            - Returns a element by a specific attribute and it's value. -
- -  Array - - - - - getElementsByAttributeValue(<HTMLElement> n, <string> e, <string> a, <string> v) - -
-            - Returns a element array by a specific attribute and it's value. -
- -  TinyMCE_Control - - - - - getInstanceById(<string> editor_id) - -
-            - Returns a TinyMCE editor instance by the specified editor id or null if it wasn't found. -
- -  object - - - - - getLang(<string> name, <string> default_value, <boolean> parse_entities) - -
-            - Returns a language variable value from the language packs. -
- -  Array - - - - - getNodeTree(&l<int> t;HTMLNode> n, <Array> na, t, <string> nn) - -
-            - Returns a array of nodes selected retrived from the child nodes of the specified node. -
- -  string - - - - - getOuterHTML(<HTMLElement> e) - -
-            - Returns the outer HTML of a element, this uses the outerHTML - property in MSIE and Opera and a workaround for Gecko. -
- -  object - - - - - getParam(<string> name, <string> default_value, <boolean> strip_whitespace, <string> split_chr) - -
-            - Returns a specific configuration setting or the default value if it wasn't found. -
- -  HTMLElement - - - - - getParentBlockElement(<HTMLNode> n) - -
-            - Returns the first block element parent of the specified node. -
- -  HTMLElement - - - - - getParentElement(<HTMLNode> node, <string> names, <string> attrib_name, <string> attrib_value) - -
-            - Returns the parent element of the specified node based on the search criteria. -
- -  string - - - - - getVisualAidClass(<string> class_name, <boolean> state) - -
-            - Returns the visual aid class string, this will add/remove the visual aid class. -
- -  Object - - - - - getWindowArg(<string> n, d) - -
-            - Returns the window argument to be passed to TinyMCE popup. -
- -  boolean - - - - - handleEvent(<DOMEvent> e) - -
-            - Event handler function that gets executed each time a event occurs in a TinyMCE editor control instance. -
- -  void - - - - - handleVisualAid(<HTMLElement> el, <boolean> deep, <boolean> state, <TinyMCE_Control> inst) - -
-            - Adds visual aid classes to all elements that need them recursive in the DOM tree. -
- -  boolean - - - - - hasPlugin(<string> n) - -
-            - Returns true/false if the specified plugin is loaded or not. -
- -  boolean - - - - - hasTheme(<string> n) - -
-            - Returns true/false if the specified theme is loaded or not. -
- -  void - - - - - importCSS(<DOMDocument> doc, <string> css_file) - -
-            - Imports a CSS file into a allready loaded document. -
- -  void - - - - - importPluginLanguagePack(<string> name, <string> valid_languages) - -
-            - Loads a plugin specific language pack. -
- -  void - - - - - importThemeLanguagePack(<string> name) - -
-            - Loads a theme specific language pack. -
- -  void - - - - - init(settings) - -
-            - Initializes TinyMCE with the specific configuration settings. -
- -  void - - - - - insertAfter(<HTMLNode> n, <HTMLNode> r) - -
-            - Inserts a node after the specific node. -
- -  boolean - - - - - isBlockElement(<HTMLNode> n) - -
-            - Returns true/false if the specified node is a block element or not. -
- -  boolean - - - - - isInstance(<object> o) - -
-            - Returns true/false if a specific object is a TinyMCE_Control instance or not. -
- -  void - - - - - loadCSS(<string> url) - -
-            - Loads the specified CSS by writing the a link tag to the current page. -
- -  void - - - - - loadScript(<string> url) - -
-            - Loads the specified script by writing the a script tag to the current page. -
- -  boolean - - - - - onLoad() - -
-            - Gets executed when the page loads or get intitialized. -
- -  void - - - - - onMouseMove() - -
-            - Mouse move handler function, this will be executed each time - the mouse is moved within a editor instance. -
- -  void - - - - - openWindow(<Array> template, <Array> args) - -
-            - Opens a popup window based in the specified input data. -
- -  Array - - - - - parseStyle(<string> str) - -
-            - Parses the specified HTML style data. -
- -  TinyMCE_URL_Item - - - - - parseURL(<string> url_str) - -
-            - Parses a URL in to its diffrent components. -
- -  boolean - - - - - queryInstanceCommandState(<string> editor_id, <string> command) - -
-            - Queries a command state for a specific command on a specific editor instance. -
- -  object - - - - - queryInstanceCommandValue(<string> editor_id, <string> command) - -
-            - Queries a command value for a specific command on a specific editor instance. -
- -  string - - - - - regexpReplace(<string> in_str, <string> reg_exp, <string> replace_str, opts) - -
-            - Regexp replaces the contents of a string. -
- -  void - - - - - removeMCEControl(<string> editor_id) - -
-            - Removes a TinyMCE editor control instance by id. -
- -  void - - - - - removeTinyMCEFormElements(<HTMLElement> form_obj) - -
-            - Removes/disables TinyMCE built in form elements such as select boxes for font sizes etc. -
- -  string - - - - - replaceVar(<string> h, <string> r, <string> v) - -
-            - Replaces a specific variable in the string with a nother string. -
- -  void - - - - - resetForm(<int> form_index) - -
-            - Resets a forms TinyMCE instances based on form index. -
- -  string - - - - - serializeStyle(<Array> ar) - -
-            - Serializes the specified style item name/value array into a HTML string. -
- -  string - - - - - serializeURL(<TinyMCE_URL_Item> up) - -
-            - Serializes the specified URL object into a string. -
- -  void - - - - - setAttrib(<HTMLElement> element, <string> name, <string> value, <boolean> fix_value) - -
-            - Sets the attribute value for a specific attribute. -
- -  void - - - - - setContent(<string> h) - -
-            - Sets the HTML contents of the selected editor instance. -
- -  void - - - - - setInnerHTML(<HTMLElement> e, <string> h) - -
-            - Sets the innerHTML property of a element, this function also - fixes a MSIE bug where the first comment is removed. -
- -  void - - - - - setOuterHTML(<HTMLElement> e, <string> h) - -
-            - Sets the outer HTML of a element, this uses the outerHTML - property in MSIE and Opera and a workaround for Gecko. -
- -  void - - - - - setPluginBaseURL(<string> n, <string> u) - -
-            - Sets the baseURL of the specified plugin, this is useful if the plugin is loaded from - a external location. -
- -  void - - - - - setStyleAttrib(<HTMLElement> elm, <string> name, <string> value) - -
-            - Sets a style attribute item value. -
- -  void - - - - - setupContent(<string> editor_id) - -
-            - Setups the contents of TinyMCE editor instance and fills it with contents. -
- -  void - - - - - setWindowArg(<string> n, <string> v) - -
-            - Sets the window argument to be passed to TinyMCE popup. -
- -  string - - - - - storeAwayURLs(<string> s) - -
-            - Stores away the src and href attribute values in separate mce_src and mce_href attributes. -
- -  void - - - - - submitPatch() - -
-            - Piggyback onsubmit event handler function, this will remove/hide the TinyMCE specific form elements - call triggerSave to fill the textarea with the correct contents then call the old piggy backed event handler. -
- -  void - - - - - switchClass(<HTMLElement> ei, <string> c) - -
-            - Switches the CSS class of the specified element. -
- -  void - - - - - triggerNodeChange(<boolean> focus, <boolean> setup_content) - -
-            - Triggers a nodeChange event to every theme and plugin. -
- -  void - - - - - triggerSave(<boolean> skip_cleanup, <boolean> skip_callback) - -
-            - Moves the contents from a TinyMCE editor control instance to the hidden textarea - that got replaced with TinyMCE. -
- -  string - - - - - trim(<string> s) - -
-            - Removes all prefix, suffix whitespace of a string. -
- -  void - - - - - unloadHandler() - -
-            - Unload document event handler function. -
- -  void - - - - - updateContent(<string> form_element_name) - -
-            - Moves the contents from the hidden textarea to the editor that gets inserted. -
- - - -

- - - - - - - - - - -
Field Detail
- - - -

buttonMap

-
Object buttonMap
- -
- - -

configs

-
Object configs
- -
- - -

currentConfig

-
Object currentConfig
- -
- - -

dialogCounter

-
Object dialogCounter
- -
- - -

eventHandlers

-
Object eventHandlers
- -
- - -

idCounter

-
Object idCounter
- -
- - -

instances

-
Object instances
- -
- - -

isGecko

-
Object isGecko
- -
- - -

isLoaded

-
Object isLoaded
- -
- - -

isMac

-
Object isMac
- -
- - -

isMSIE

-
Object isMSIE
- -
- - -

isMSIE5

-
Object isMSIE5
- -
- - -

isMSIE5_0

-
Object isMSIE5_0
- -
- - -

isNS7

-
Object isNS7
- -
- - -

isNS71

-
Object isNS71
- -
- - -

isOpera

-
Object isOpera
- -
- - -

isSafari

-
Object isSafari
- -
- - -

loadedFiles

-
Object loadedFiles
- -
- - -

loadedPlugins

-
Object loadedPlugins
- -
- - -

majorVersion

-
Object majorVersion
- -
- - -

minorVersion

-
Object minorVersion
- -
- - -

plugins

-
Object plugins
- -
- - -

releaseDate

-
Object releaseDate
- -
- - -

switchClassCache

-
Object switchClassCache
- -
- - -

themes

-
Object themes
- -
- - -

windowArgs

-
Object windowArgs
- -
- - - - - - - - - - - - -
- Constructor Detail -
- -

-TinyMCE_Engine

-
TinyMCE_Engine()
- - - - - - - - - - - - - - - -
- - - - - - - - - - - - -
- Method Detail -
- - - - -

_getElementById

-
HTMLElement _getElementById(<string> id)
- - - - - - - - - - - - - - - - - -
- - -

accessibleEventHandler

-
Object accessibleEventHandler(<DOMEvent> e)
- - - - - - - - - - - - - - - -
- - -

addButtonMap

-
void addButtonMap(<string> m)
- - - - - - - - - - - - - - - -
- - -

addEvent

-
void addEvent(<HTMLElement> o, <string> n, <function> h)
- - - - - - - - - - - - - - - -
- - -

addEventHandlers

-
void addEventHandlers(<string> editor_id)
- - - - - - - - - - - - - - - -
- - -

addMCEControl

-
void addMCEControl(<HTMLElement> replace_element, <string> form_element_name, <DOMDocument> target_document)
- - - - - - - - - - - - - - - -
- - -

addPlugin

-
void addPlugin(n, <TinyMCE_Plugin> p)
- - - - - - - - - - - - - - - -
- - -

addSelectAccessibility

-
Object addSelectAccessibility(<DOMEvent> e, <HTMLElement> s, <DOMWindow> w)
- - - - - - - - - - - - - - - -
- - -

addTheme

-
void addTheme(&l<TinyMCE_Theme> t;string> n, t)
- - - - - - - - - - - - - - - -
- - -

addToLang

-
void addToLang(<string> prefix, <Array> ar)
- - - - - - - - - - - - - - - -
- - -

applyTemplate

-
string applyTemplate(<string> h, <Array> as)
- - - - - - - - - - - - - - - - - -
- - -

callFunc

-
boolean callFunc(<<<Array> a href="TinyMCE_Control.html">TinyMCE_Control> ins, <string> p, <string> n, <int> m, a)
- - - - - - - - - - - - - - - - - -
- - -

cancelEvent

-
void cancelEvent(<DOMEvent> e)
- - - - - - - - - - - - - - - -
- - -

cleanupAnchors

-
void cleanupAnchors(<DOMDocument> doc)
- - - - - - - - - - - - - - - -
- - -

cleanupEventStr

-
string cleanupEventStr(<string> s)
- - - - - - - - - - - - - - - - - -
- - -

cleanupHTMLCode

-
string cleanupHTMLCode(<string> s)
- - - - - - - - - - - - - - - - - -
- - -

clearArray

-
Array clearArray(a)
- - - - - - - - - - - - - - - - - -
- - -

closeWindow

-
void closeWindow(<DOMWindow> win)
- - - - - - - - - - - - - - - - - -
- - -

compressStyle

-
void compressStyle(<Array> ar, <string> pr, <string> sf, <string> res)
- - - - - - - - - - - - - - - -
- - -

confirmAdd

-
void confirmAdd(<DOMEvent> e, <Array> settings)
- - - - - - - - - - - - - - - -
- - -

convertAbsoluteURLToRelativeURL

-
string convertAbsoluteURLToRelativeURL(<string> base_url, <string> url_to_relative)
- - - - - - - - - - - - - - - - - -
- - -

convertAllRelativeURLs

-
void convertAllRelativeURLs(<HTMLElement> body)
- - - - - - - - - - - - - - - -
- - -

convertFontsToSpans

-
void convertFontsToSpans(<DOMDocument> doc)
- - - - - - - - - - - - - - - -
- - -

convertHexToRGB

-
string convertHexToRGB(<string> s)
- - - - - - - - - - - - - - - - - -
- - -

convertRelativeToAbsoluteURL

-
string convertRelativeToAbsoluteURL(<string> base_url, <string> relative_url)
- - - - - - - - - - - - - - - - - -
- - -

convertRGBToHex

-
string convertRGBToHex(<string> s, <boolean> k)
- - - - - - - - - - - - - - - - - -
- - -

convertSpansToFonts

-
void convertSpansToFonts(<DOMDocument> doc)
- - - - - - - - - - - - - - - -
- - -

convertURL

-
string convertURL(<string> url, <HTMLElement> node, <boolean> on_save)
- - - - - - - - - - - - - - - - - -
- - -

debug

-
void debug()
- - - - - - - - - - - - - - - -
- - -

dispatchCallback

-
Object dispatchCallback(<TinyMCE_Control> i, <string> p, <string> n)
- - - - - - - - - - - - - - - - - -
- - -

entityDecode

-
string entityDecode(<string> s)
- - - - - - - - - - - - - - - - - -
- - -

evalFunc

-
object evalFunc(<string> f, <int> idx, <Array> a)
- - - - - - - - - - - - - - - - - -
- - -

execCommand

-
void execCommand(<string> command, <boolean> user_interface, <object> value)
- - - - - - - - - - - - - - - -
- - -

execCommandCallback

-
Object execCommandCallback(<TinyMCE_Control> i, <string> p, <string> n)
- - - - - - - - - - - - - - - - - -
- - -

execInstanceCommand

-
void execInstanceCommand(<string> editor_id, <string> command, <boolean> user_interface, <object> value, <boolean> focus)
- - - - - - - - - - - - - - - -
- - -

executeCallback

-
Object executeCallback(<TinyMCE_Control> i, <string> p, <string> n)
- - - - - - - - - - - - - - - - - -
- - -

fixGeckoBaseHREFBug

-
string fixGeckoBaseHREFBug(<boolean> m, <HTMLElement> e, <string> h)
- - - - - - - - - - - - - - - - - -
- - -

getAbsPosition

-
TinyMCE_ElementPosition getAbsPosition(<HTMLNode> n)
- - - - - - - - - - - - - - - - - -
- - -

getAttrib

-
string getAttrib(<HTMLElement> elm, <string> name, <string> default_value)
- - - - - - - - - - - - - - - - - -
- - -

getButtonHTML

-
string getButtonHTML(<string> id, <string> lang, <string> img, <string> cmd, <string> ui, <string> val)
- - - - - - - - - - - - - - - - - -
- - -

getContent

-
string getContent(<string> editor_id)
- - - - - - - - - - - - - - - - - -
- - -

getControlHTML

-
string getControlHTML(<string> c)
- - - - - - - - - - - - - - - - - -
- - -

getCSSClasses

-
Array getCSSClasses(<string> editor_id, <DOMDocument> doc)
- - - - - - - - - - - - - - - - - -
- - -

getEditorId

-
string getEditorId(<string> form_element)
- - - - - - - - - - - - - - - - - -
- - -

getElementByAttributeValue

-
HTMLElement getElementByAttributeValue(<HTMLElement> n, <string> e, <string> a, <string> v)
- - - - - - - - - - - - - - - - - -
- - -

getElementsByAttributeValue

-
Array getElementsByAttributeValue(<HTMLElement> n, <string> e, <string> a, <string> v)
- - - - - - - - - - - - - - - - - -
- - -

getInstanceById

-
TinyMCE_Control getInstanceById(<string> editor_id)
- - - - - - - - - - - - - - - - - -
- - -

getLang

-
object getLang(<string> name, <string> default_value, <boolean> parse_entities)
- - - - - - - - - - - - - - - - - -
- - -

getNodeTree

-
Array getNodeTree(&l<int> t;HTMLNode> n, <Array> na, t, <string> nn)
- - - - - - - - - - - - - - - - - -
- - -

getOuterHTML

-
string getOuterHTML(<HTMLElement> e)
- - - - - - - - - - - - - - - - - -
- - -

getParam

-
object getParam(<string> name, <string> default_value, <boolean> strip_whitespace, <string> split_chr)
- - - - - - - - - - - - - - - - - -
- - -

getParentBlockElement

-
HTMLElement getParentBlockElement(<HTMLNode> n)
- - - - - - - - - - - - - - - - - -
- - -

getParentElement

-
HTMLElement getParentElement(<HTMLNode> node, <string> names, <string> attrib_name, <string> attrib_value)
- - - - - - - - - - - - - - - - - -
- - -

getVisualAidClass

-
string getVisualAidClass(<string> class_name, <boolean> state)
- - - - - - - - - - - - - - - - - -
- - -

getWindowArg

-
Object getWindowArg(<string> n, d)
- - - - - - - - - - - - - - - - - - - -
- - -

handleEvent

-
boolean handleEvent(<DOMEvent> e)
- - - - - - - - - - - - - - - - - -
- - -

handleVisualAid

-
void handleVisualAid(<HTMLElement> el, <boolean> deep, <boolean> state, <TinyMCE_Control> inst)
- - - - - - - - - - - - - - - -
- - -

hasPlugin

-
boolean hasPlugin(<string> n)
- - - - - - - - - - - - - - - - - -
- - -

hasTheme

-
boolean hasTheme(<string> n)
- - - - - - - - - - - - - - - - - -
- - -

importCSS

-
void importCSS(<DOMDocument> doc, <string> css_file)
- - - - - - - - - - - - - - - -
- - -

importPluginLanguagePack

-
void importPluginLanguagePack(<string> name, <string> valid_languages)
- - - - - - - - - - - - - - - -
- - -

importThemeLanguagePack

-
void importThemeLanguagePack(<string> name)
- - - - - - - - - - - - - - - -
- - -

init

-
void init(settings)
- - - - - - - - - - - - - - - -
- - -

insertAfter

-
void insertAfter(<HTMLNode> n, <HTMLNode> r)
- - - - - - - - - - - - - - - -
- - -

isBlockElement

-
boolean isBlockElement(<HTMLNode> n)
- - - - - - - - - - - - - - - - - -
- - -

isInstance

-
boolean isInstance(<object> o)
- - - - - - - - - - - - - - - - - -
- - -

loadCSS

-
void loadCSS(<string> url)
- - - - - - - - - - - - - - - -
- - -

loadScript

-
void loadScript(<string> url)
- - - - - - - - - - - - - - - -
- - -

onLoad

-
boolean onLoad()
- - - - - - - - - - - - - - - -
- - -

onMouseMove

-
void onMouseMove()
- - - - - - - - - - - - - -
- - -

openWindow

-
void openWindow(<Array> template, <Array> args)
- - - - - - - - - - - - - - - -
- - -

parseStyle

-
Array parseStyle(<string> str)
- - - - - - - - - - - - - - - - - -
- - -

parseURL

-
TinyMCE_URL_Item parseURL(<string> url_str)
- - - - - - - - - - - - - - - - - -
- - -

queryInstanceCommandState

-
boolean queryInstanceCommandState(<string> editor_id, <string> command)
- - - - - - - - - - - - - - - - - -
- - -

queryInstanceCommandValue

-
object queryInstanceCommandValue(<string> editor_id, <string> command)
- - - - - - - - - - - - - - - - - -
- - -

regexpReplace

-
string regexpReplace(<string> in_str, <string> reg_exp, <string> replace_str, opts)
- - - - - - - - - - - - - - - - - - - -
- - -

removeMCEControl

-
void removeMCEControl(<string> editor_id)
- - - - - - - - - - - - - - - -
- - -

removeTinyMCEFormElements

-
void removeTinyMCEFormElements(<HTMLElement> form_obj)
- - - - - - - - - - - - - - - -
- - -

replaceVar

-
string replaceVar(<string> h, <string> r, <string> v)
- - - - - - - - - - - - - - - - - -
- - -

resetForm

-
void resetForm(<int> form_index)
- - - - - - - - - - - - - - - -
- - -

serializeStyle

-
string serializeStyle(<Array> ar)
- - - - - - - - - - - - - - - - - -
- - -

serializeURL

-
string serializeURL(<TinyMCE_URL_Item> up)
- - - - - - - - - - - - - - - - - -
- - -

setAttrib

-
void setAttrib(<HTMLElement> element, <string> name, <string> value, <boolean> fix_value)
- - - - - - - - - - - - - - - -
- - -

setContent

-
void setContent(<string> h)
- - - - - - - - - - - - - - - - - -
- - -

setInnerHTML

-
void setInnerHTML(<HTMLElement> e, <string> h)
- - - - - - - - - - - - - - - -
- - -

setOuterHTML

-
void setOuterHTML(<HTMLElement> e, <string> h)
- - - - - - - - - - - - - - - -
- - -

setPluginBaseURL

-
void setPluginBaseURL(<string> n, <string> u)
- - - - - - - - - - - - - - - -
- - -

setStyleAttrib

-
void setStyleAttrib(<HTMLElement> elm, <string> name, <string> value)
- - - - - - - - - - - - - - - -
- - -

setupContent

-
void setupContent(<string> editor_id)
- - - - - - - - - - - - - - - -
- - -

setWindowArg

-
void setWindowArg(<string> n, <string> v)
- - - - - - - - - - - - - - - -
- - -

storeAwayURLs

-
string storeAwayURLs(<string> s)
- - - - - - - - - - - - - - - - - -
- - -

submitPatch

-
void submitPatch()
- - - - - - - - - - - - - -
- - -

switchClass

-
void switchClass(<HTMLElement> ei, <string> c)
- - - - - - - - - - - - - - - -
- - -

triggerNodeChange

-
void triggerNodeChange(<boolean> focus, <boolean> setup_content)
- - - - - - - - - - - - - - - -
- - -

triggerSave

-
void triggerSave(<boolean> skip_cleanup, <boolean> skip_callback)
- - - - - - - - - - - - - - - -
- - -

trim

-
string trim(<string> s)
- - - - - - - - - - - - - - - - - -
- - -

unloadHandler

-
void unloadHandler()
- - - - - - - - - - - - - -
- - -

updateContent

-
void updateContent(<string> form_element_name)
- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - -
- - -
- - - -
- - - -
Documentation generated by JSDoc on Fri Feb 24 13:38:20 2006
- - diff --git a/lib/editor/tinymce/docs/tinymce_api/TinyMCE_Selection.html b/lib/editor/tinymce/docs/tinymce_api/TinyMCE_Selection.html deleted file mode 100644 index 638c8cd8693..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/TinyMCE_Selection.html +++ /dev/null @@ -1,732 +0,0 @@ - - - - - -TinyMCE_Selection - - - - - - - - - - - - - - - - - - - - - -
- - -
- -
- - -

Class TinyMCE_Selection

-
Object
-   |
-   +--TinyMCE_Selection
-
- - -
-
- -
class - TinyMCE_Selection - - -
- -

- Defined in TinyMCE_Selection.class.js

-

- -
- - - - - - - - - - - - - - - - - - - - - - -
- Field Summary
-  Objectinstance -
-           
-   - - - - - - - - - - - - - - - - - -
-Constructor Summary
- - - TinyMCE_Selection - - (<TinyMCE_Control> inst) - -
-             - Constructs a Selection instance and binds it to the specificed TinyMCE editor control. -
- - - -  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- -  TinyMCE_Bookmark - - - - - getBookmark(<boolean> simple) - -
-            - Returns a selection bookmark that can be restored later with moveToBookmark. -
- -  HTMLElement - - - - - getFocusElement() - -
-            - Returns the currently selected/focused element. -
- -  DOMRange - - - - - getRng() - -
-            - Returns the browsers selections first range instance. -
- -  DOMSelection - - - - - getSel() - -
-            - Returns the browsers selection instance. -
- -  string - - - - - getSelectedHTML() - -
-            - Returns the selected HTML code. -
- -  string - - - - - getSelectedText() - -
-            - Returns the selected text. -
- -  boolean - - - - - moveToBookmark(<TinyMCE_Bookmark> bookmark) - -
-            - Restores the selection to the specified bookmark. -
- -  void - - - - - scrollToNode(<HTMLNode> node) - -
-            - Scrolls to the specified node location. -
- -  void - - - - - selectNode(<HTMLNode> node, <boolean> collapse, <boolean> select_text_node, <boolean> to_start) - -
-            - Selects the specified node. -
- - - -

- - - - - - - - - - -
Field Detail
- - - -

instance

-
Object instance
- -
- - - - - - - - - - - - -
- Constructor Detail -
- -

-TinyMCE_Selection

-
TinyMCE_Selection(<TinyMCE_Control> inst)
- - - - - - - - - - - - - - - -
- - - - - - - - - - - - -
- Method Detail -
- - - - -

getBookmark

-
TinyMCE_Bookmark getBookmark(<boolean> simple)
- - - - - - - - - - - - - - - - - -
- - -

getFocusElement

-
HTMLElement getFocusElement()
- - - - - - - - - - - - - - - -
- - -

getRng

-
DOMRange getRng()
- - - - - - - - - - - - - - - -
- - -

getSel

-
DOMSelection getSel()
- - - - - - - - - - - - - - - -
- - -

getSelectedHTML

-
string getSelectedHTML()
- - - - - - - - - - - - - - - -
- - -

getSelectedText

-
string getSelectedText()
- - - - - - - - - - - - - - - -
- - -

moveToBookmark

-
boolean moveToBookmark(<TinyMCE_Bookmark> bookmark)
- - - - - - - - - - - - - - - - - -
- - -

scrollToNode

-
void scrollToNode(<HTMLNode> node)
- - - - - - - - - - - - - - - -
- - -

selectNode

-
void selectNode(<HTMLNode> node, <boolean> collapse, <boolean> select_text_node, <boolean> to_start)
- - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - -
- - -
- - - -
- - - -
Documentation generated by JSDoc on Fri Feb 24 13:38:20 2006
- - diff --git a/lib/editor/tinymce/docs/tinymce_api/TinyMCE_UndoRedo.html b/lib/editor/tinymce/docs/tinymce_api/TinyMCE_UndoRedo.html deleted file mode 100644 index 222e2287f8d..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/TinyMCE_UndoRedo.html +++ /dev/null @@ -1,513 +0,0 @@ - - - - - -TinyMCE_UndoRedo - - - - - - - - - - - - - - - - - - - - - -
- - -
- -
- - -

Class TinyMCE_UndoRedo

-
Object
-   |
-   +--TinyMCE_UndoRedo
-
- - -
-
- -
class - TinyMCE_UndoRedo - - -
- -

- Defined in TinyMCE_UndoRedo.class.js

-

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Field Summary
-  Objectinstance -
-           
-  ObjecttypingUndoIndex -
-           
-  ObjectundoIndex -
-           
-  ObjectundoLevels -
-           
-  ObjectundoRedo -
-           
-   - - - - - - - - - - - - - - - - - -
-Constructor Summary
- - - TinyMCE_UndoRedo - - (<TinyMCE_Control> inst) - -
-             - Constructs a undo redo instance, this instance handles the custom undo/redo handeling in TinyMCE. -
- - - -  - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- -  boolean - - - - - add(<TinyMCE_UndoRedoLevel> l) - -
-            - Adds a new undo level, this will take a snapshot of the current instance HTML or use the specified level. -
- -  void - - - - - redo() - -
-            - Performes a undo action, this will restore the HTML contents of the editor to a former undoed state. -
- -  void - - - - - undo() - -
-            - Performes a undo action, this will restore the HTML contents of the editor to a former state. -
- - - -

- - - - - - - - - - -
Field Detail
- - - -

instance

-
Object instance
- -
- - -

typingUndoIndex

-
Object typingUndoIndex
- -
- - -

undoIndex

-
Object undoIndex
- -
- - -

undoLevels

-
Object undoLevels
- -
- - -

undoRedo

-
Object undoRedo
- -
- - - - - - - - - - - - -
- Constructor Detail -
- -

-TinyMCE_UndoRedo

-
TinyMCE_UndoRedo(<TinyMCE_Control> inst)
- - - - - - - - - - - - - - - -
- - - - - - - - - - - - -
- Method Detail -
- - - - -

add

-
boolean add(<TinyMCE_UndoRedoLevel> l)
- - - - - - - - - - - - - - - - - -
- - -

redo

-
void redo()
- - - - - - - - - - - - - -
- - -

undo

-
void undo()
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - -
- - -
- - - -
- - - -
Documentation generated by JSDoc on Fri Feb 24 13:38:20 2006
- - diff --git a/lib/editor/tinymce/docs/tinymce_api/allclasses-frame.html b/lib/editor/tinymce/docs/tinymce_api/allclasses-frame.html deleted file mode 100644 index c9d17171c9e..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/allclasses-frame.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - All Classes - - - - - - -

- -All Classes -
- - - - - - - - - - - - - - - - - - - - - - - - -
TinyMCE_Cleanup -
-
TinyMCE_Control -
-
TinyMCE_Engine -
-
TinyMCE_Selection -
-
TinyMCE_UndoRedo -
-
- - - diff --git a/lib/editor/tinymce/docs/tinymce_api/allclasses-noframe.html b/lib/editor/tinymce/docs/tinymce_api/allclasses-noframe.html deleted file mode 100644 index 8697924dc49..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/allclasses-noframe.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - All Classes - - - - - - -

- -All Classes -
- - - - - - - - - - - - - - - - - - - - - - - - -
TinyMCE_Cleanup -
-
TinyMCE_Control -
-
TinyMCE_Engine -
-
TinyMCE_Selection -
-
TinyMCE_UndoRedo -
-
- - - diff --git a/lib/editor/tinymce/docs/tinymce_api/help-doc.html b/lib/editor/tinymce/docs/tinymce_api/help-doc.html deleted file mode 100644 index 2305c0e9992..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/help-doc.html +++ /dev/null @@ -1,160 +0,0 @@ - - - - - API Help - - - - - - - - - - - - - - - - - - -
- - -
- - -
-
-

-How This API Document Is Organized

-
-This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

-Class

-
- -

-Each class has its own separate page. Each of these pages has three sections consisting of a class description, summary tables, and detailed member descriptions:

-Each summary entry contains the first sentence from the detailed description for that item.
- - -

-Index

-
-The Index contains an alphabetic list of all classes, constructors, methods, and fields.
-

-Prev/Next

-These links take you to the next or previous class, interface, package, or related page.

-Frames/No Frames

-These links show and hide the HTML frames. All pages are available with or without frames. -

- - -This help file applies to API documentation generated using the standard doclet. - -
-


- - - - - - - - - - - - - -
- - -
- - -
- - - -
Documentation generated by JSDoc on Fri Feb 24 13:38:20 2006
- - diff --git a/lib/editor/tinymce/docs/tinymce_api/index-all.html b/lib/editor/tinymce/docs/tinymce_api/index-all.html deleted file mode 100644 index 7cb273ef86c..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/index-all.html +++ /dev/null @@ -1,1364 +0,0 @@ - - - - - -Index () - - - - - - - - - - - - - - - - - - -
- - -
- - -_ A B C D E F G H I L M O P Q R S T U W X -
- - -

-_

- -
-
_getElementById(id) - -Instance method in class TinyMCE_Engine -
  -
- -
- -

-A

- -
-
accessibleEventHandler(e) - -Instance method in class TinyMCE_Engine -
  -
- -
-
add(l) - -Instance method in class TinyMCE_UndoRedo -
  -
- -
-
addButtonMap(m) - -Instance method in class TinyMCE_Engine -
  -
- -
-
addEvent(o, n, h) - -Instance method in class TinyMCE_Engine -
  -
- -
-
addEventHandlers(editor_id) - -Instance method in class TinyMCE_Engine -
  -
- -
-
addMCEControl(replace_element, form_element_name, target_document) - -Instance method in class TinyMCE_Engine -
  -
- -
-
addPlugin(n, p) - -Instance method in class TinyMCE_Engine -
  -
- -
-
addPlugin(n, p) - -Instance method in class TinyMCE_Control -
  -
- -
-
addRuleStr(s) - -Instance method in class TinyMCE_Cleanup -
  -
- -
-
addSelectAccessibility(e, s, w) - -Instance method in class TinyMCE_Engine -
  -
- -
-
addShortcut(m, k, d, cmd, ui, va) - -Instance method in class TinyMCE_Control -
  -
- -
-
addTheme(n, t) - -Instance method in class TinyMCE_Engine -
  -
- -
-
addToLang(prefix, ar) - -Instance method in class TinyMCE_Engine -
  -
- -
-
applyTemplate(h, as) - -Instance method in class TinyMCE_Engine -
  -
- -
-
autoResetDesignMode() - -Instance method in class TinyMCE_Control -
  -
- -
- -

-B

- -
-
buttonMap - -Instance field in class TinyMCE_Engine -
  -
- -
- -

-C

- -
-
callFunc(ins, p, n, m, a) - -Instance method in class TinyMCE_Engine -
  -
- -
-
cancelEvent(e) - -Instance method in class TinyMCE_Engine -
  -
- -
-
cleanup - -Instance field in class TinyMCE_Control -
  -
- -
-
cleanupAnchors(doc) - -Instance method in class TinyMCE_Engine -
  -
- -
-
cleanupEventStr(s) - -Instance method in class TinyMCE_Engine -
  -
- -
-
cleanupHTMLCode(s) - -Instance method in class TinyMCE_Engine -
  -
- -
-
clearArray(a) - -Instance method in class TinyMCE_Engine -
  -
- -
-
closeWindow(win) - -Instance method in class TinyMCE_Engine -
  -
- -
-
compressStyle(ar, pr, sf, res) - -Instance method in class TinyMCE_Engine -
  -
- -
-
configs - -Instance field in class TinyMCE_Engine -
  -
- -
-
confirmAdd(e, settings) - -Instance method in class TinyMCE_Engine -
  -
- -
-
convertAbsoluteURLToRelativeURL(base_url, url_to_relative) - -Instance method in class TinyMCE_Engine -
  -
- -
-
convertAllRelativeURLs(body) - -Instance method in class TinyMCE_Engine -
  -
- -
-
convertFontsToSpans(doc) - -Instance method in class TinyMCE_Engine -
  -
- -
-
convertHexToRGB(s) - -Instance method in class TinyMCE_Engine -
  -
- -
-
convertRelativeToAbsoluteURL(base_url, relative_url) - -Instance method in class TinyMCE_Engine -
  -
- -
-
convertRGBToHex(s, k) - -Instance method in class TinyMCE_Engine -
  -
- -
-
convertSpansToFonts(doc) - -Instance method in class TinyMCE_Engine -
  -
- -
-
convertURL(url, node, on_save) - -Instance method in class TinyMCE_Engine -
  -
- -
-
currentConfig - -Instance field in class TinyMCE_Engine -
  -
- -
- -

-D

- -
-
debug() - -Instance method in class TinyMCE_Engine -
  -
- -
-
dialogCounter - -Instance field in class TinyMCE_Engine -
  -
- -
-
dispatchCallback(i, p, n) - -Instance method in class TinyMCE_Engine -
  -
- -
- -

-E

- -
-
entityDecode(s) - -Instance method in class TinyMCE_Engine -
  -
- -
-
evalFunc(f, idx, a) - -Instance method in class TinyMCE_Engine -
  -
- -
-
eventHandlers - -Instance field in class TinyMCE_Engine -
  -
- -
-
execCommand(command, user_interface, value) - -Instance method in class TinyMCE_Engine -
  -
- -
-
execCommand(command, user_interface, value) - -Instance method in class TinyMCE_Control -
  -
- -
-
execCommandCallback(i, p, n) - -Instance method in class TinyMCE_Engine -
  -
- -
-
execInstanceCommand(editor_id, command, user_interface, value, focus) - -Instance method in class TinyMCE_Engine -
  -
- -
-
executeCallback(i, p, n) - -Instance method in class TinyMCE_Engine -
  -
- -
- -

-F

- -
-
fixGeckoBaseHREFBug(m, e, h) - -Instance method in class TinyMCE_Engine -
  -
- -
-
formatHTML(h) - -Instance method in class TinyMCE_Cleanup -
  -
- -
- -

-G

- -
-
getAbsPosition(n) - -Instance method in class TinyMCE_Engine -
  -
- -
-
getAttrib(elm, name, default_value) - -Instance method in class TinyMCE_Engine -
  -
- -
-
getBody() - -Instance method in class TinyMCE_Control -
  -
- -
-
getBookmark(simple) - -Instance method in class TinyMCE_Selection -
  -
- -
-
getButtonHTML(id, lang, img, cmd, ui, val) - -Instance method in class TinyMCE_Engine -
  -
- -
-
getContent(editor_id) - -Instance method in class TinyMCE_Engine -
  -
- -
-
getControlHTML(c) - -Instance method in class TinyMCE_Engine -
  -
- -
-
getCSSClasses(editor_id, doc) - -Instance method in class TinyMCE_Engine -
  -
- -
-
getDoc() - -Instance method in class TinyMCE_Control -
  -
- -
-
getEditorId(form_element) - -Instance method in class TinyMCE_Engine -
  -
- -
-
getElementByAttributeValue(n, e, a, v) - -Instance method in class TinyMCE_Engine -
  -
- -
-
getElementsByAttributeValue(n, e, a, v) - -Instance method in class TinyMCE_Engine -
  -
- -
-
getFocusElement() - -Instance method in class TinyMCE_Control -
  -
- -
-
getFocusElement() - -Instance method in class TinyMCE_Selection -
  -
- -
-
getInstanceById(editor_id) - -Instance method in class TinyMCE_Engine -
  -
- -
-
getLang(name, default_value, parse_entities) - -Instance method in class TinyMCE_Engine -
  -
- -
-
getNodeTree(n, na, t, nn) - -Instance method in class TinyMCE_Engine -
  -
- -
-
getOuterHTML(e) - -Instance method in class TinyMCE_Engine -
  -
- -
-
getParam(name, default_value, strip_whitespace, split_chr) - -Instance method in class TinyMCE_Engine -
  -
- -
-
getParentBlockElement(n) - -Instance method in class TinyMCE_Engine -
  -
- -
-
getParentElement(node, names, attrib_name, attrib_value) - -Instance method in class TinyMCE_Engine -
  -
- -
-
getRng() - -Instance method in class TinyMCE_Selection -
  -
- -
-
getRng() - -Instance method in class TinyMCE_Control -
  -
- -
-
getSel() - -Instance method in class TinyMCE_Selection -
  -
- -
-
getSel() - -Instance method in class TinyMCE_Control -
  -
- -
-
getSelectedHTML() - -Instance method in class TinyMCE_Selection -
  -
- -
-
getSelectedText() - -Instance method in class TinyMCE_Selection -
  -
- -
-
getVisualAidClass(class_name, state) - -Instance method in class TinyMCE_Engine -
  -
- -
-
getWin() - -Instance method in class TinyMCE_Control -
  -
- -
-
getWindowArg(n, d) - -Instance method in class TinyMCE_Engine -
  -
- -
- -

-H

- -
-
handleEvent(e) - -Instance method in class TinyMCE_Engine -
  -
- -
-
handleShortcut(e) - -Instance method in class TinyMCE_Control -
  -
- -
-
handleVisualAid(el, deep, state, inst) - -Instance method in class TinyMCE_Engine -
  -
- -
-
hasMouseMoved - -Instance field in class TinyMCE_Control -
  -
- -
-
hasPlugin(n) - -Instance method in class TinyMCE_Engine -
  -
- -
-
hasPlugin(n) - -Instance method in class TinyMCE_Control -
  -
- -
-
hasTheme(n) - -Instance method in class TinyMCE_Engine -
  -
- -
- -

-I

- -
-
idCounter - -Instance field in class TinyMCE_Engine -
  -
- -
-
importCSS(doc, css_file) - -Instance method in class TinyMCE_Engine -
  -
- -
-
importPluginLanguagePack(name, valid_languages) - -Instance method in class TinyMCE_Engine -
  -
- -
-
importThemeLanguagePack(name) - -Instance method in class TinyMCE_Engine -
  -
- -
-
init(s) - -Instance method in class TinyMCE_Cleanup -
  -
- -
-
init(settings) - -Instance method in class TinyMCE_Engine -
  -
- -
-
insertAfter(n, r) - -Instance method in class TinyMCE_Engine -
  -
- -
-
instance - -Instance field in class TinyMCE_UndoRedo -
  -
- -
-
instance - -Instance field in class TinyMCE_Selection -
  -
- -
-
instances - -Instance field in class TinyMCE_Engine -
  -
- -
-
isBlockElement(n) - -Instance method in class TinyMCE_Engine -
  -
- -
-
isDirty() - -Instance method in class TinyMCE_Control -
  -
- -
-
isGecko - -Instance field in class TinyMCE_Engine -
  -
- -
-
isHidden() - -Instance method in class TinyMCE_Control -
  -
- -
-
isInstance(o) - -Instance method in class TinyMCE_Engine -
  -
- -
-
isLoaded - -Instance field in class TinyMCE_Engine -
  -
- -
-
isMac - -Instance field in class TinyMCE_Engine -
  -
- -
-
isMSIE - -Instance field in class TinyMCE_Engine -
  -
- -
-
isMSIE5 - -Instance field in class TinyMCE_Engine -
  -
- -
-
isMSIE5_0 - -Instance field in class TinyMCE_Engine -
  -
- -
-
isNS7 - -Instance field in class TinyMCE_Engine -
  -
- -
-
isNS71 - -Instance field in class TinyMCE_Engine -
  -
- -
-
isOpera - -Instance field in class TinyMCE_Engine -
  -
- -
-
isSafari - -Instance field in class TinyMCE_Engine -
  -
- -
-
isTinyMCE_Control - -Instance field in class TinyMCE_Control -
  -
- -
- -

-L

- -
-
loadCSS(url) - -Instance method in class TinyMCE_Engine -
  -
- -
-
loadedFiles - -Instance field in class TinyMCE_Engine -
  -
- -
-
loadedPlugins - -Instance field in class TinyMCE_Engine -
  -
- -
-
loadScript(url) - -Instance method in class TinyMCE_Engine -
  -
- -
- -

-M

- -
-
majorVersion - -Instance field in class TinyMCE_Engine -
  -
- -
-
minorVersion - -Instance field in class TinyMCE_Engine -
  -
- -
-
moveToBookmark(bookmark) - -Instance method in class TinyMCE_Selection -
  -
- -
- -

-O

- -
-
onLoad() - -Instance method in class TinyMCE_Engine -
  -
- -
-
onMouseMove() - -Instance method in class TinyMCE_Engine -
  -
- -
-
openWindow(template, args) - -Instance method in class TinyMCE_Engine -
  -
- -
- -

-P

- -
-
parseRuleStr(s) - -Instance method in class TinyMCE_Cleanup -
  -
- -
-
parseStyle(str) - -Instance method in class TinyMCE_Engine -
  -
- -
-
parseURL(url_str) - -Instance method in class TinyMCE_Engine -
  -
- -
-
plugins - -Instance field in class TinyMCE_Control -
  -
- -
-
plugins - -Instance field in class TinyMCE_Engine -
  -
- -
- -

-Q

- -
-
queryCommandState(c) - -Instance method in class TinyMCE_Control -
  -
- -
-
queryCommandValue(c) - -Instance method in class TinyMCE_Control -
  -
- -
-
queryInstanceCommandState(editor_id, command) - -Instance method in class TinyMCE_Engine -
  -
- -
-
queryInstanceCommandValue(editor_id, command) - -Instance method in class TinyMCE_Engine -
  -
- -
- -

-R

- -
-
redo() - -Instance method in class TinyMCE_UndoRedo -
  -
- -
-
regexpReplace(in_str, reg_exp, replace_str, opts) - -Instance method in class TinyMCE_Engine -
  -
- -
-
releaseDate - -Instance field in class TinyMCE_Engine -
  -
- -
-
removeMCEControl(editor_id) - -Instance method in class TinyMCE_Engine -
  -
- -
-
removeTinyMCEFormElements(form_obj) - -Instance method in class TinyMCE_Engine -
  -
- -
-
repaint() - -Instance method in class TinyMCE_Control -
  -
- -
-
replaceVar(h, r, v) - -Instance method in class TinyMCE_Engine -
  -
- -
-
resetForm(form_index) - -Instance method in class TinyMCE_Engine -
  -
- -
- -

-S

- -
-
scrollToNode(node) - -Instance method in class TinyMCE_Selection -
  -
- -
-
selection - -Instance field in class TinyMCE_Control -
  -
- -
-
selectNode(node, collapse, select_text_node, to_start) - -Instance method in class TinyMCE_Selection -
  -
- -
-
serializeNodeAsHTML(n) - -Instance method in class TinyMCE_Cleanup -
  -
- -
-
serializeNodeAsXML(n) - -Instance method in class TinyMCE_Cleanup -
  -
- -
-
serializeStyle(ar) - -Instance method in class TinyMCE_Engine -
  -
- -
-
serializeURL(up) - -Instance method in class TinyMCE_Engine -
  -
- -
-
setAttrib(element, name, value, fix_value) - -Instance method in class TinyMCE_Engine -
  -
- -
-
setBaseHREF(u) - -Instance method in class TinyMCE_Control -
  -
- -
-
setContent(h) - -Instance method in class TinyMCE_Engine -
  -
- -
-
setInnerHTML(e, h) - -Instance method in class TinyMCE_Engine -
  -
- -
-
setOuterHTML(e, h) - -Instance method in class TinyMCE_Engine -
  -
- -
-
setPluginBaseURL(n, u) - -Instance method in class TinyMCE_Engine -
  -
- -
-
setStyleAttrib(elm, name, value) - -Instance method in class TinyMCE_Engine -
  -
- -
-
settings - -Instance field in class TinyMCE_Control -
  -
- -
-
setupContent(editor_id) - -Instance method in class TinyMCE_Engine -
  -
- -
-
setWindowArg(n, v) - -Instance method in class TinyMCE_Engine -
  -
- -
-
shortcuts - -Instance field in class TinyMCE_Control -
  -
- -
-
split(re, s) - -Instance method in class TinyMCE_Cleanup -
  -
- -
-
storeAwayURLs(s) - -Instance method in class TinyMCE_Engine -
  -
- -
-
submitPatch() - -Instance method in class TinyMCE_Engine -
  -
- -
-
switchClass(ei, c) - -Instance method in class TinyMCE_Engine -
  -
- -
-
switchClassCache - -Instance field in class TinyMCE_Engine -
  -
- -
-
switchSettings() - -Instance method in class TinyMCE_Control -
  -
- -
- -

-T

- -
-
themes - -Instance field in class TinyMCE_Engine -
  -
- -
-
TinyMCE_Cleanup - - class TinyMCE_Cleanup -
  -
- -
-
TinyMCE_Cleanup() - -Constructor in class TinyMCE_Cleanup -
  -
- -
-
TinyMCE_Control - - class TinyMCE_Control -
  -
- -
-
TinyMCE_Control(settings) - -Constructor in class TinyMCE_Control -
  -
- -
-
TinyMCE_Engine - - class TinyMCE_Engine -
  -
- -
-
TinyMCE_Engine() - -Constructor in class TinyMCE_Engine -
  -
- -
-
TinyMCE_Selection - - class TinyMCE_Selection -
  -
- -
-
TinyMCE_Selection(inst) - -Constructor in class TinyMCE_Selection -
  -
- -
-
TinyMCE_UndoRedo - - class TinyMCE_UndoRedo -
  -
- -
-
TinyMCE_UndoRedo(inst) - -Constructor in class TinyMCE_UndoRedo -
  -
- -
-
triggerNodeChange(focus, setup_content) - -Instance method in class TinyMCE_Engine -
  -
- -
-
triggerSave(skip_cleanup, skip_callback) - -Instance method in class TinyMCE_Engine -
  -
- -
-
trim(s) - -Instance method in class TinyMCE_Engine -
  -
- -
-
typingUndoIndex - -Instance field in class TinyMCE_UndoRedo -
  -
- -
- -

-U

- -
-
undo() - -Instance method in class TinyMCE_UndoRedo -
  -
- -
-
undoIndex - -Instance field in class TinyMCE_UndoRedo -
  -
- -
-
undoLevels - -Instance field in class TinyMCE_UndoRedo -
  -
- -
-
undoRedo - -Instance field in class TinyMCE_Control -
  -
- -
-
undoRedo - -Instance field in class TinyMCE_UndoRedo -
  -
- -
-
undoRedoLevel - -Instance field in class TinyMCE_Control -
  -
- -
-
unloadHandler() - -Instance method in class TinyMCE_Engine -
  -
- -
-
updateContent(form_element_name) - -Instance method in class TinyMCE_Engine -
  -
- -
- -

-W

- -
-
windowArgs - -Instance field in class TinyMCE_Engine -
  -
- -
- -

-X

- -
-
xmlEncode(s) - -Instance method in class TinyMCE_Cleanup -
  -
- -
- -_ A B C D E F G H I L M O P Q R S T U W X - - - - - - - - - - - - - - -
- - -
- - -
- - - -
Documentation generated by JSDoc on Fri Feb 24 13:38:20 2006
- - diff --git a/lib/editor/tinymce/docs/tinymce_api/index.html b/lib/editor/tinymce/docs/tinymce_api/index.html deleted file mode 100644 index 8a7b7ade2af..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/index.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - -Generated Javascript Documentation - - - - - - - - - - - - - - -<H2> -Frame Alert</H2> - -<P> -This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. -<BR> -Link to <A HREF="allclasses-frame.html">Non-frame version.</A> - diff --git a/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_Array.class.js.html b/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_Array.class.js.html deleted file mode 100644 index fbe8aff1206..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_Array.class.js.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - TinyMCE_Array.class.js - - - - - - -

- -TinyMCE_Array.class.js -
- - - - -
- - - diff --git a/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_Cleanup.class.js.html b/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_Cleanup.class.js.html deleted file mode 100644 index d221f3edc39..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_Cleanup.class.js.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - TinyMCE_Cleanup.class.js - - - - - - -

- -TinyMCE_Cleanup.class.js -
- - - - - - - - -
TinyMCE_Cleanup -
-
- - - diff --git a/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_Control.class.js.html b/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_Control.class.js.html deleted file mode 100644 index e8113ef8c2c..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_Control.class.js.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - TinyMCE_Control.class.js - - - - - - -

- -TinyMCE_Control.class.js -
- - - - - - - - -
TinyMCE_Control -
-
- - - diff --git a/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_DOMUtils.class.js.html b/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_DOMUtils.class.js.html deleted file mode 100644 index 14e6c01bbff..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_DOMUtils.class.js.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - TinyMCE_DOMUtils.class.js - - - - - - -

- -TinyMCE_DOMUtils.class.js -
- - - - -
- - - diff --git a/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_Debug.class.js.html b/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_Debug.class.js.html deleted file mode 100644 index 54aa0c0e3b1..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_Debug.class.js.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - TinyMCE_Debug.class.js - - - - - - -

- -TinyMCE_Debug.class.js -
- - - - -
- - - diff --git a/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_Engine.class.js.html b/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_Engine.class.js.html deleted file mode 100644 index 01ab1338bc1..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_Engine.class.js.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - TinyMCE_Engine.class.js - - - - - - -

- -TinyMCE_Engine.class.js -
- - - - - - - - -
TinyMCE_Engine -
-
- - - diff --git a/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_Event.class.js.html b/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_Event.class.js.html deleted file mode 100644 index d2fffe757c1..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_Event.class.js.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - TinyMCE_Event.class.js - - - - - - -

- -TinyMCE_Event.class.js -
- - - - -
- - - diff --git a/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_ForceParagraphs.class.js.html b/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_ForceParagraphs.class.js.html deleted file mode 100644 index e44fc90a02f..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_ForceParagraphs.class.js.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - TinyMCE_ForceParagraphs.class.js - - - - - - -

- -TinyMCE_ForceParagraphs.class.js -
- - - - -
- - - diff --git a/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_Selection.class.js.html b/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_Selection.class.js.html deleted file mode 100644 index 0deb07a9a27..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_Selection.class.js.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - TinyMCE_Selection.class.js - - - - - - -

- -TinyMCE_Selection.class.js -
- - - - - - - - -
TinyMCE_Selection -
-
- - - diff --git a/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_URL.class.js.html b/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_URL.class.js.html deleted file mode 100644 index f65ada82351..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_URL.class.js.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - TinyMCE_URL.class.js - - - - - - -

- -TinyMCE_URL.class.js -
- - - - -
- - - diff --git a/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_UndoRedo.class.js.html b/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_UndoRedo.class.js.html deleted file mode 100644 index 30451e30465..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/overview-TinyMCE_UndoRedo.class.js.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - TinyMCE_UndoRedo.class.js - - - - - - -

- -TinyMCE_UndoRedo.class.js -
- - - - - - - - -
TinyMCE_UndoRedo -
-
- - - diff --git a/lib/editor/tinymce/docs/tinymce_api/overview-frame.html b/lib/editor/tinymce/docs/tinymce_api/overview-frame.html deleted file mode 100644 index 474a9275188..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/overview-frame.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Overview () - - - - - - -

- - - - -
- - - - - -
All Classes -

- -Files -
- -TinyMCE_Array.class.js
- -TinyMCE_Cleanup.class.js
- -TinyMCE_Control.class.js
- -TinyMCE_Debug.class.js
- -TinyMCE_DOMUtils.class.js
- -TinyMCE_Engine.class.js
- -TinyMCE_Event.class.js
- -TinyMCE_ForceParagraphs.class.js
- -TinyMCE_Selection.class.js
- -TinyMCE_UndoRedo.class.js
- -TinyMCE_URL.class.js
- -

- -

-  - - diff --git a/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_Array.class.js.html b/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_Array.class.js.html deleted file mode 100644 index 197da318819..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_Array.class.js.html +++ /dev/null @@ -1,180 +0,0 @@ - - - - - Overview - - - - - - - - - - - - - - - - - - -
- - -
- - -


-
- -

TinyMCE_Array.class.js

- -
- - - - -

Summary

-

- - No overview generated for 'TinyMCE_Array.class.js'

- -

- -
- - - - - - - - -
/**
- * $RCSfile$
- * $Revision$
- * $Date$
- *
- * @author Moxiecode
- * @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
- */
-
-/* The contents of this file will be wrapped in a class later on */
-
-/**
- * Returns a cleared array, since some external libraries tend to extend the Array core object
- * arrays needs to be cleaned from these extended functions. So this function simply sets any
- * named properties back to null.
- *
- * @param {Array} Name/Value array to clear.
- * @return Cleared name/value array.
- * @type Array
- */
-TinyMCE_Engine.prototype.clearArray = function(a) {
-	for (var k in a)
-		a[k] = null;
-
-	return a;
-};
-
-
- - - - - - - - - - - - - - - -
- -
- - -
- - - -
Documentation generated by JSDoc on Fri Feb 24 13:38:20 2006
- - diff --git a/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_Cleanup.class.js.html b/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_Cleanup.class.js.html deleted file mode 100644 index 960392aef0a..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_Cleanup.class.js.html +++ /dev/null @@ -1,1334 +0,0 @@ - - - - - Overview - - - - - - - - - - - - - - - - - - -
- - -
- - -
-
- -

TinyMCE_Cleanup.class.js

- -
- - - - -

Summary

-

- - No overview generated for 'TinyMCE_Cleanup.class.js'

- -

- -
- - - - - - - - - - - - -
- - Class Summary - -
TinyMCE_Cleanup 
-
- - - - - - - -
/**
- * $RCSfile$
- * $Revision$
- * $Date$
- *
- * @author Moxiecode
- * @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
- */
-
-/* Some of the contents of this file will be wrapped in a class later on it will also be replaced with the new cleanup logic */
-
-/**
- * Makes some preprocessing cleanup routines on the specified HTML string.
- * This includes forcing some tags to be open so MSIE doesn't fail. Forcing other to close and
- * padding paragraphs with non breaking spaces. This function is used when the editor gets
- * initialized with content.
- *
- * @param {string} s HTML string to cleanup.
- * @return Cleaned HTML string.
- * @type string
- */
-TinyMCE_Engine.prototype.cleanupHTMLCode = function(s) {
-	s = s.replace(/<p \/>/gi, '<p>&nbsp;</p>');
-	s = s.replace(/<p>\s*<\/p>/gi, '<p>&nbsp;</p>');
-
-	// Open closed tags like <b/> to <b></b>
-//	tinyMCE.debug("f:" + s);
-	s = s.replace(/<(h[1-6]|p|div|address|pre|form|table|li|ol|ul|td|b|font|em|strong|i|strike|u|span|a|ul|ol|li|blockquote)([a-z]*)([^\\|>]*?)\/>/gi, '<$1$2$3></$1$2>');
-//	tinyMCE.debug("e:" + s);
-
-	// Remove trailing space <b > to <b>
-	s = s.replace(new RegExp('\\s+></', 'gi'), '></');
-
-	// Close tags <img></img> to <img/>
-	s = s.replace(/<(img|br|hr)(.*?)><\/(img|br|hr)>/gi, '<$1$2 />');
-
-	// Weird MSIE bug, <p><hr /></p> breaks runtime?
-	if (tinyMCE.isMSIE)
-		s = s.replace(/<p><hr \/><\/p>/gi, "<hr>");
-
-	// Convert relative anchors to absolute URLs ex: #something to file.htm#something
-	if (tinyMCE.getParam('convert_urls'))
-		s = s.replace(new RegExp('(href=\"?)(\\s*?#)', 'gi'), '$1' + tinyMCE.settings['document_base_url'] + "#");
-
-	return s;
-};
-
-/**
- * Parses the specified HTML style data. This will parse for example
- * "border-left: 1px; background-color: red" into an key/value array.
- *
- * @param {string} str Style data to parse.
- * @return Name/Value array of style items.
- * @type Array
- */
-TinyMCE_Engine.prototype.parseStyle = function(str) {
-	var ar = new Array();
-
-	if (str == null)
-		return ar;
-
-	var st = str.split(';');
-
-	tinyMCE.clearArray(ar);
-
-	for (var i=0; i<st.length; i++) {
-		if (st[i] == '')
-			continue;
-
-		var re = new RegExp('^\\s*([^:]*):\\s*(.*)\\s*$');
-		var pa = st[i].replace(re, '$1||$2').split('||');
-//tinyMCE.debug(str, pa[0] + "=" + pa[1], st[i].replace(re, '$1||$2'));
-		if (pa.length == 2)
-			ar[pa[0].toLowerCase()] = pa[1];
-	}
-
-	return ar;
-};
-
-/**
- * Compresses larger styles into a smaller. Since MSIE automaticly converts
- * border: 1px solid red to border-left: 1px solid red, border-righ: 1px solid red and so forth.'
- * This will bundle them together again if the information is the same in each item.
- *
- * @param {Array} ar Style name/value array with items.
- * @param {string} pr Style item prefix to bundle for example border.
- * @param {string} sf Style item suffix to bunlde for example -width or -width.
- * @param {string} res Result name, for example border-width.
- */
-TinyMCE_Engine.prototype.compressStyle = function(ar, pr, sf, res) {
-	var box = new Array();
-
-	box[0] = ar[pr + '-top' + sf];
-	box[1] = ar[pr + '-left' + sf];
-	box[2] = ar[pr + '-right' + sf];
-	box[3] = ar[pr + '-bottom' + sf];
-
-	for (var i=0; i<box.length; i++) {
-		if (box[i] == null)
-			return;
-
-		for (var a=0; a<box.length; a++) {
-			if (box[a] != box[i])
-				return;
-		}
-	}
-
-	// They are all the same
-	ar[res] = box[0];
-	ar[pr + '-top' + sf] = null;
-	ar[pr + '-left' + sf] = null;
-	ar[pr + '-right' + sf] = null;
-	ar[pr + '-bottom' + sf] = null;
-};
-
-/**
- * Serializes the specified style item name/value array into a HTML string. This function
- * will force HEX colors in Firefox and convert the URL items of a style correctly.
- *
- * @param {Array} ar Name/Value array of items to serialize.
- * @return Serialized HTML string containing the items.
- * @type string
- */
-TinyMCE_Engine.prototype.serializeStyle = function(ar) {
-	var str = "";
-
-	// Compress box
-	tinyMCE.compressStyle(ar, "border", "", "border");
-	tinyMCE.compressStyle(ar, "border", "-width", "border-width");
-	tinyMCE.compressStyle(ar, "border", "-color", "border-color");
-
-	for (var key in ar) {
-		var val = ar[key];
-
-		if (typeof(val) == 'function')
-			continue;
-
-		if (key.indexOf('mso-') == 0)
-			continue;
-
-		if (val != null && val != '') {
-			val = '' + val; // Force string
-
-			// Fix style URL
-			val = val.replace(new RegExp("url\\(\\'?([^\\']*)\\'?\\)", 'gi'), "url('$1')");
-
-			// Convert URL
-			if (val.indexOf('url(') != -1 && tinyMCE.getParam('convert_urls')) {
-				var m = new RegExp("url\\('(.*?)'\\)").exec(val);
-
-				if (m.length > 1)
-					val = "url('" + eval(tinyMCE.getParam('urlconverter_callback') + "(m[1], null, true);") + "')";
-			}
-
-			// Force HEX colors
-			if (tinyMCE.getParam("force_hex_style_colors"))
-				val = tinyMCE.convertRGBToHex(val, true);
-
-			if (val != "url('')")
-				str += key.toLowerCase() + ": " + val + "; ";
-		}
-	}
-
-	if (new RegExp('; $').test(str))
-		str = str.substring(0, str.length - 2);
-
-	return str;
-};
-
-/**
- * Returns a hexadecimal version of the specified rgb(1,2,3) string.
- *
- * @param {string} s RGB string to parse, if this doesn't isn't a rgb(n,n,n) it will passthrough the string.
- * @param {boolean} k Keep before/after contents. If enabled contents before after the rgb(n,n,n) will be intact.
- * @return Hexadecimal version of the specified rgb(1,2,3) string.
- * @type string
- */
-TinyMCE_Engine.prototype.convertRGBToHex = function(s, k) {
-	if (s.toLowerCase().indexOf('rgb') != -1) {
-		var re = new RegExp("(.*?)rgb\\s*?\\(\\s*?([0-9]+).*?,\\s*?([0-9]+).*?,\\s*?([0-9]+).*?\\)(.*?)", "gi");
-		var rgb = s.replace(re, "$1,$2,$3,$4,$5").split(',');
-		if (rgb.length == 5) {
-			r = parseInt(rgb[1]).toString(16);
-			g = parseInt(rgb[2]).toString(16);
-			b = parseInt(rgb[3]).toString(16);
-
-			r = r.length == 1 ? '0' + r : r;
-			g = g.length == 1 ? '0' + g : g;
-			b = b.length == 1 ? '0' + b : b;
-
-			s = "#" + r + g + b;
-
-			if (k)
-				s = rgb[0] + s + rgb[4];
-		}
-	}
-
-	return s;
-};
-
-/**
- * Returns a rgb(n,n,n) string from a hexadecimal value.
- *
- * @param {string} s Hexadecimal string to parse.
- * @return rgb(n,n,n) string from a hexadecimal value.
- * @type string
- */
-TinyMCE_Engine.prototype.convertHexToRGB = function(s) {
-	if (s.indexOf('#') != -1) {
-		s = s.replace(new RegExp('[^0-9A-F]', 'gi'), '');
-		return "rgb(" + parseInt(s.substring(0, 2), 16) + "," + parseInt(s.substring(2, 4), 16) + "," + parseInt(s.substring(4, 6), 16) + ")";
-	}
-
-	return s;
-};
-
-/**
- * Converts span elements to font elements in the specified document instance.
- * Todo: Move this function into a XHTML plugin or simmilar.
- *
- * @param {DOMDocument} doc Document instance to convert spans in.
- */
-TinyMCE_Engine.prototype.convertSpansToFonts = function(doc) {
-	var sizes = tinyMCE.getParam('font_size_style_values').replace(/\s+/, '').split(',');
-
-	var h = doc.body.innerHTML;
-	h = h.replace(/<span/gi, '<font');
-	h = h.replace(/<\/span/gi, '</font');
-	doc.body.innerHTML = h;
-
-	var s = doc.getElementsByTagName("font");
-	for (var i=0; i<s.length; i++) {
-		var size = tinyMCE.trim(s[i].style.fontSize).toLowerCase();
-		var fSize = 0;
-
-		for (var x=0; x<sizes.length; x++) {
-			if (sizes[x] == size) {
-				fSize = x + 1;
-				break;
-			}
-		}
-
-		if (fSize > 0) {
-			tinyMCE.setAttrib(s[i], 'size', fSize);
-			s[i].style.fontSize = '';
-		}
-
-		var fFace = s[i].style.fontFamily;
-		if (fFace != null && fFace != "") {
-			tinyMCE.setAttrib(s[i], 'face', fFace);
-			s[i].style.fontFamily = '';
-		}
-
-		var fColor = s[i].style.color;
-		if (fColor != null && fColor != "") {
-			tinyMCE.setAttrib(s[i], 'color', tinyMCE.convertRGBToHex(fColor));
-			s[i].style.color = '';
-		}
-	}
-};
-
-/**
- * Convers fonts to spans in the specified document.
- * Todo: Move this function into a XHTML plugin or simmilar.
- *
- * @param {DOMDocument} doc Document instance to convert fonts in.
- */
-TinyMCE_Engine.prototype.convertFontsToSpans = function(doc) {
-	var sizes = tinyMCE.getParam('font_size_style_values').replace(/\s+/, '').split(',');
-
-	var h = doc.body.innerHTML;
-	h = h.replace(/<font/gi, '<span');
-	h = h.replace(/<\/font/gi, '</span');
-	doc.body.innerHTML = h;
-
-	var fsClasses = tinyMCE.getParam('font_size_classes');
-	if (fsClasses != '')
-		fsClasses = fsClasses.replace(/\s+/, '').split(',');
-	else
-		fsClasses = null;
-
-	var s = doc.getElementsByTagName("span");
-	for (var i=0; i<s.length; i++) {
-		var fSize, fFace, fColor;
-
-		fSize = tinyMCE.getAttrib(s[i], 'size');
-		fFace = tinyMCE.getAttrib(s[i], 'face');
-		fColor = tinyMCE.getAttrib(s[i], 'color');
-
-		if (fSize != "") {
-			fSize = parseInt(fSize);
-
-			if (fSize > 0 && fSize < 8) {
-				if (fsClasses != null)
-					tinyMCE.setAttrib(s[i], 'class', fsClasses[fSize-1]);
-				else
-					s[i].style.fontSize = sizes[fSize-1];
-			}
-
-			s[i].removeAttribute('size');
-		}
-
-		if (fFace != "") {
-			s[i].style.fontFamily = fFace;
-			s[i].removeAttribute('face');
-		}
-
-		if (fColor != "") {
-			s[i].style.color = fColor;
-			s[i].removeAttribute('color');
-		}
-	}
-};
-
-/**
- * Moves the contents of a anchor outside and after the anchor. Only if the anchor doesn't
- * have a href.
- *
- * @param {DOMDocument} doc DOM document instance to fix anchors in.
- */
-TinyMCE_Engine.prototype.cleanupAnchors = function(doc) {
-	var i, cn, x, an = doc.getElementsByTagName("a");
-
-	for (i=0; i<an.length; i++) {
-		if (tinyMCE.getAttrib(an[i], "name") != "" && tinyMCE.getAttrib(an[i], "href") == "") {
-			cn = an[i].childNodes;
-
-			for (x=cn.length-1; x>=0; x--)
-				tinyMCE.insertAfter(cn[x], an[i]);
-		}
-	}
-};
-
-/**
- * Returns the HTML contents of the specified editor instance id.
- *
- * @param {string} editor_id Editor instance id to retrive HTML code from.
- * @return HTML contents of editor id or null if it wasn't found.
- * @type string
- */
-TinyMCE_Engine.prototype.getContent = function(editor_id) {
-	if (typeof(editor_id) != "undefined")
-		tinyMCE.selectedInstance = tinyMCE.getInstanceById(editor_id);
-
-	if (tinyMCE.selectedInstance)
-		return tinyMCE._cleanupHTML(this.selectedInstance, this.selectedInstance.getDoc(), tinyMCE.settings, this.selectedInstance.getBody(), false, true);
-
-	return null;
-};
-
-/**
- * Performces cleanup of the contents of the specified instance.
- * Todo: Finish documentation, and remove useless parameters.
- *
- * @param {TinyMCE_Control} inst Editor instance.
- * @param {DOMDocument} doc ...
- * @param {Array} config ...
- * @param {HTMLElement} element ...
- * @param {boolean} visual ...
- * @param {boolean} on_save ...
- * @param {boolean} on_submit ...
- * @return Cleaned HTML contents of editor instance.
- * @type string
- * @private
- */
-TinyMCE_Engine.prototype._cleanupHTML = function(inst, doc, config, element, visual, on_save, on_submit) {
-	var h, d, t1, t2, t3, t4, t5, c, s;
-
-	if (!tinyMCE.settings.cleanup)
-		return inst.getBody().innerHTML;
-
-	on_save = typeof(on_save) == 'undefined' ? false : on_save;
-
-	c = inst.cleanup;
-	s = inst.settings;
-	d = c.settings.debug;
-
-	if (d)
-		t1 = new Date().getTime();
-
-	if (on_save && tinyMCE.getParam("convert_fonts_to_spans"))
-		tinyMCE.convertFontsToSpans(doc);
-
-	// Call custom cleanup code
-	tinyMCE._customCleanup(inst, on_save ? "get_from_editor_dom" : "insert_to_editor_dom", doc.body);
-
-	if (d)
-		t2 = new Date().getTime();
-
-	c.settings.on_save = on_save;
-	//for (var i=0; i<100; i++)
-
-	c.idCount = 0;
-
-	if (s.cleanup_serializer == "xml")
-		h = c.serializeNodeAsXML(element);
-	else
-		h = c.serializeNodeAsHTML(element);
-
-	if (d)
-		t3 = new Date().getTime();
-
-	// Post processing
-	h = h.replace(/<\/?(body|head|html)[^>]*>/gi, '');
-	h = h.replace(new RegExp(' (rowspan="1"|colspan="1")', 'g'), '');
-	h = h.replace(/<p><hr \/><\/p>/g, '<hr />');
-	h = h.replace(/<p>(&nbsp;|&#160;)<\/p><hr \/><p>(&nbsp;|&#160;)<\/p>/g, '<hr />');
-	h = h.replace(/<td>\s*<br \/>\s*<\/td>/g, '<td>&nbsp;</td>');
-	h = h.replace(/<p>\s*<br \/>\s*<\/p>/g, '<p>&nbsp;</p>');
-	h = h.replace(/<p>\s*(&nbsp;|&#160;)\s*<br \/>\s*(&nbsp;|&#160;)\s*<\/p>/g, '<p>&nbsp;</p>');
-	h = h.replace(/<p>\s*(&nbsp;|&#160;)\s*<br \/>\s*<\/p>/g, '<p>&nbsp;</p>');
-	h = h.replace(/<p>\s*<br \/>\s*&nbsp;\s*<\/p>/g, '<p>&nbsp;</p>');
-	h = h.replace(/<a>(.*?)<\/a>/g, '$1');
-	h = h.replace(/<p([^>]*)>\s*<\/p>/g, '<p$1>&nbsp;</p>');
-
-	// Clean body
-	if (/^\s*(<br \/>|<p>&nbsp;<\/p>|<p>&#160;<\/p>|<p><\/p>)\s*$/.test(h))
-		h = '';
-
-	// If preformatted
-	if (s.preformatted) {
-		h = h.replace(/^<pre>/, '');
-		h = h.replace(/<\/pre>$/, '');
-		h = '<pre>' + h + '</pre>';
-	}
-
-	// Gecko specific processing
-	if (tinyMCE.isGecko) {
-		h = h.replace(/<o:p _moz-userdefined="" \/>/g, '');
-		h = h.replace(/<td([^>]*)>\s*<br \/>\s*<\/td>/g, '<td$1>&nbsp;</td>');
-	}
-
-	if (s.force_br_newlines)
-		h = h.replace(/<p>(&nbsp;|&#160;)<\/p>/g, '<br />');
-
-	// Call custom cleanup code
-	h = tinyMCE._customCleanup(inst, on_save ? "get_from_editor" : "insert_to_editor", h);
-
-	// Remove internal classes
-	if (on_save) {
-		h = h.replace(new RegExp(' ?(mceItem[a-zA-Z0-9]*|' + s.visual_table_class + ')', 'g'), '');
-		h = h.replace(new RegExp(' ?class=""', 'g'), '');
-	}
-
-	if (s.remove_linebreaks && !c.settings.indent)
-		h = h.replace(/\n|\r/g, ' ');
-
-	if (d)
-		t4 = new Date().getTime();
-
-	if (on_save && c.settings.indent)
-		h = c.formatHTML(h);
-
-	// If encoding (not recommended option)
-	if (on_submit && (s.encoding == "xml" || s.encoding == "html"))
-		h = c.xmlEncode(h);
-
-	if (d)
-		t5 = new Date().getTime();
-
-	if (c.settings.debug)
-		tinyMCE.debug("Cleanup in ms: Pre=" + (t2-t1) + ", Serialize: " + (t3-t2) + ", Post: " + (t4-t3) + ", Format: " + (t5-t4) + ", Sum: " + (t5-t1) + ".");
-
-	return h;
-};
-
-/**
- * TinyMCE_Cleanup class.
- */
-function TinyMCE_Cleanup() {
-	this.isMSIE = (navigator.appName == "Microsoft Internet Explorer");
-	this.rules = tinyMCE.clearArray(new Array());
-
-	// Default config
-	this.settings = {
-		indent_elements : 'head,table,tbody,thead,tfoot,form,tr,ul,ol,blockquote,object',
-		newline_before_elements : 'h1,h2,h3,h4,h5,h6,pre,address,div,ul,ol,li,meta,option,area,title,link,base,script,td',
-		newline_after_elements : 'br,hr,p,pre,address,div,ul,ol,meta,option,area,link,base,script',
-		newline_before_after_elements : 'html,head,body,table,thead,tbody,tfoot,tr,form,ul,blockquote,p,object,param,hr,div',
-		indent_char : '\t',
-		indent_levels : 1,
-		entity_encoding : 'raw',
-		valid_elements : '*[*]',
-		entities : '',
-		url_converter : '',
-		invalid_elements : '',
-		verify_html : false
-	};
-
-	this.vElements = tinyMCE.clearArray(new Array());
-	this.vElementsRe = '';
-	this.closeElementsRe = /^(IMG|BR|HR|LINK|META|BASE)$/;
-	this.codeElementsRe = /^(SCRIPT|STYLE)$/;
-	this.mceAttribs = {
-		href : 'mce_href',
-		src : 'mce_src',
-		type : 'mce_type'
-	};
-}
-
-TinyMCE_Cleanup.prototype = {
-	/**
-	 * Initializes the cleanup engine with the specified config.
-	 *
-	 * @param {Array} s Name/Value array with config settings.
-	 */
-	init : function(s) {
-		var n, a, i, ir, or, st;
-
-		for (n in s)
-			this.settings[n] = s[n];
-
-		// Setup code formating
-		s = this.settings;
-
-		// Setup regexps
-		this.inRe = this._arrayToRe(s.indent_elements.split(','), '', '^<(', ')[^>]*');
-		this.ouRe = this._arrayToRe(s.indent_elements.split(','), '', '^<\\/(', ')[^>]*');
-		this.nlBeforeRe = this._arrayToRe(s.newline_before_elements.split(','), 'gi', '<(',  ')([^>]*)>');
-		this.nlAfterRe = this._arrayToRe(s.newline_after_elements.split(','), 'gi', '<(',  ')([^>]*)>');
-		this.nlBeforeAfterRe = this._arrayToRe(s.newline_before_after_elements.split(','), 'gi', '<(\\/?)(', ')([^>]*)>');
-
-		if (s.invalid_elements != '')
-			this.iveRe = this._arrayToRe(s.invalid_elements.toUpperCase().split(','), 'g', '^(', ')$');
-		else
-			this.iveRe = null;
-
-		// Setup separator
-		st = '';
-		for (i=0; i<s.indent_levels; i++)
-			st += s.indent_char;
-
-		this.inStr = st;
-
-		// If verify_html if false force *[*]
-		if (!s.verify_html) {
-			s.valid_elements = '*[*]';
-			s.extended_valid_elements = '';
-		}
-
-		// Setup default rule
-		this.addRuleStr(s.valid_elements);
-		this.addRuleStr(s.extended_valid_elements);
-
-		// Setup entities
-		if (s.entity_encoding == "named") {
-			n = tinyMCE.clearArray(new Array());
-			a = this.split(',', s.entities);
-			for (i=0; i<a.length; i+=2)
-				n[a[i]] = a[i+1];
-
-			this.entities = n;
-		}
-
-		this.fillStr = this.xmlEncode(String.fromCharCode(160));
-
-		this.idCount = 0;
-	},
-
-	/**
-	 * Adds a cleanup rule string, for example: a[href|name|title=title|class=class1?class2?class3].
-	 * These rules are then used when serializing the DOM tree as a HTML string, it gives the possibility
-	 * to control the valid elements and attributes and force attribute values or default them.
-	 *
-	 * @param {string} s Rule string to parse and add to the cleanup rules array.
-	 */
-	addRuleStr : function(s) {
-		var r = this.parseRuleStr(s);
-		var n;
-
-		for (n in r) {
-			if (r[n])
-				this.rules[n] = r[n];
-		}
-
-		this.vElements = tinyMCE.clearArray(new Array());
-
-		for (n in this.rules) {
-			if (this.rules[n])
-				this.vElements[this.vElements.length] = this.rules[n].tag;
-		}
-
-		this.vElementsRe = this._arrayToRe(this.vElements, '');
-	},
-
-	/**
-	 * Parses a cleanup rule string, for example: a[href|name|title=title|class=class1?class2?class3].
-	 * These rules are then used when serializing the DOM tree as a HTML string, it gives the possibility
-	 * to control the valid elements and attributes and force attribute values or default them.
-	 *
-	 * @param {string} s Rule string to parse as a name/value rule array.
-	 * @return Parsed name/value rule array.
-	 * @type Array
-	 */
-	parseRuleStr : function(s) {
-		var ta, p, r, a, i, x, px, t, tn, y, av, or = tinyMCE.clearArray(new Array()), dv;
-
-		if (s == null || s.length == 0)
-			return or;
-
-		ta = s.split(',');
-		for (x=0; x<ta.length; x++) {
-			s = ta[x];
-			if (s.length == 0)
-				continue;
-
-			// Split tag/attrs
-			p = this.split(/\[|\]/, s);
-			if (p == null || p.length < 1)
-				t = s.toUpperCase();
-			else
-				t = p[0].toUpperCase();
-
-			// Handle all tag names
-			tn = this.split('/', t);
-			for (y=0; y<tn.length; y++) {
-				r = {};
-
-				r.tag = tn[y];
-				r.forceAttribs = null;
-				r.defaultAttribs = null;
-				r.validAttribValues = null;
-
-				// Handle prefixes
-				px = r.tag.charAt(0);
-				r.forceOpen = px == '+';
-				r.removeEmpty = px == '-';
-				r.fill = px == '#';
-				r.tag = r.tag.replace(/\+|-|#/g, '');
-				r.oTagName = tn[0].replace(/\+|-|#/g, '').toLowerCase();
-				r.isWild = /\*|\?|\+/g.test(r.tag);
-				r.validRe = new RegExp(this._wildcardToRe('^' + r.tag + '$'));
-
-				// Setup valid attributes
-				if (p.length > 1) {
-					r.vAttribsRe = '^(';
-					a = this.split(/\|/, p[1]);
-
-					for (i=0; i<a.length; i++) {
-						t = a[i];
-
-						av = /(=|:|<)(.*?)$/.exec(t);
-						t = t.replace(/(=|:|<).*?$/, '');
-						if (av && av.length > 0) {
-							if (av[0].charAt(0) == ':') {
-								if (!r.forceAttribs)
-									r.forceAttribs = tinyMCE.clearArray(new Array());
-
-								r.forceAttribs[t.toLowerCase()] = av[0].substring(1);
-							} else if (av[0].charAt(0) == '=') {
-								if (!r.defaultAttribs)
-									r.defaultAttribs = tinyMCE.clearArray(new Array());
-
-								dv = av[0].substring(1);
-
-								r.defaultAttribs[t.toLowerCase()] = dv == "" ? "mce_empty" : dv;
-							} else if (av[0].charAt(0) == '<') {
-								if (!r.validAttribValues)
-									r.validAttribValues = tinyMCE.clearArray(new Array());
-
-								r.validAttribValues[t.toLowerCase()] = this._arrayToRe(this.split('?', av[0].substring(1)), '');
-							}
-						}
-
-						r.vAttribsRe += '' + t.toLowerCase() + (i != a.length - 1 ? '|' : '');
-
-						a[i] = t.toLowerCase();
-					}
-
-					r.vAttribsRe += ')$';
-					r.vAttribsRe = this._wildcardToRe(r.vAttribsRe);
-					r.vAttribsReIsWild = /\*|\?|\+/g.test(r.vAttribsRe);
-					r.vAttribsRe = new RegExp(r.vAttribsRe);
-					r.vAttribs = a.reverse();
-
-					//tinyMCE.debug(r.tag, r.oTagName, r.vAttribsRe, r.vAttribsReWC);
-				} else {
-					r.vAttribsRe = '';
-					r.vAttribs = tinyMCE.clearArray(new Array());
-					r.vAttribsReIsWild = false;
-				}
-
-				or[r.tag] = r;
-			}
-		}
-
-		return or;
-	},
-
-	/**
-	 * Serializes the specified node as a HTML string. This uses the XML parser and serializer
-	 * to generate a XHTML string.
-	 *
-	 * @param {HTMLNode} n Node to serialize as a XHTML string.
-	 * @return Serialized XHTML string based on specified node.
-	 * @type string
-	 */
-	serializeNodeAsXML : function(n) {
-		var s, b;
-
-		if (!this.xmlDoc) {
-			if (this.isMSIE) {
-				try {this.xmlDoc = new ActiveXObject('MSXML2.DOMDocument');} catch (e) {}
-
-				if (!this.xmlDoc)
-					try {this.xmlDoc = new ActiveXObject('Microsoft.XmlDom');} catch (e) {}
-			} else
-				this.xmlDoc = document.implementation.createDocument('', '', null);
-
-			if (!this.xmlDoc)
-				alert("Error XML Parser could not be found.");
-		}
-
-		if (this.xmlDoc.firstChild)
-			this.xmlDoc.removeChild(this.xmlDoc.firstChild);
-
-		b = this.xmlDoc.createElement("html");
-		b = this.xmlDoc.appendChild(b);
-
-		this._convertToXML(n, b);
-
-		if (this.isMSIE)
-			return this.xmlDoc.xml;
-		else
-			return new XMLSerializer().serializeToString(this.xmlDoc);
-	},
-
-	/**
-	 * Converts and adds the specified HTML DOM node to a XML DOM node.
-	 *
-	 * @param {HTMLNode} n HTML Node to add as a XML node.
-	 * @param {XMLNode} xn XML Node to add the HTML node to.
-	 * @private
-	 */
-	_convertToXML : function(n, xn) {
-		var xd, el, i, l, cn, at, no, hc = false;
-
-		xd = this.xmlDoc;
-
-		switch (n.nodeType) {
-			case 1: // Element
-				hc = n.hasChildNodes();
-
-				el = xd.createElement(n.nodeName.toLowerCase());
-
-				at = n.attributes;
-				for (i=at.length-1; i>-1; i--) {
-					no = at[i];
-
-					if (no.specified && no.nodeValue)
-						el.setAttribute(no.nodeName.toLowerCase(), no.nodeValue);
-				}
-
-				if (!hc && !this.closeElementsRe.test(n.nodeName))
-					el.appendChild(xd.createTextNode(""));
-
-				xn = xn.appendChild(el);
-				break;
-
-			case 3: // Text
-				xn.appendChild(xd.createTextNode(n.nodeValue));
-				return;
-
-			case 8: // Comment
-				xn.appendChild(xd.createComment(n.nodeValue));
-				return;
-		}
-
-		if (hc) {
-			cn = n.childNodes;
-
-			for (i=0, l=cn.length; i<l; i++)
-				this._convertToXML(cn[i], xn);
-		}
-	},
-
-	/**
-	 * Serializes the specified node as a XHTML string. This uses the TinyMCE serializer logic since it gives more
-	 * control over the output than the build in browser XML serializer.
-	 *
-	 * @param {HTMLNode} n Node to serialize as a XHTML string.
-	 * @return Serialized XHTML string based on specified node.
-	 * @type string
-	 */
-	serializeNodeAsHTML : function(n) {
-		var en, no, h = '', i, l, r, cn, va = false, f = false, at, hc;
-
-		switch (n.nodeType) {
-			case 1: // Element
-				hc = n.hasChildNodes();
-
-				if (this.vElementsRe.test(n.nodeName) && (!this.iveRe || !this.iveRe.test(n.nodeName))) {
-					va = true;
-
-					r = this.rules[n.nodeName];
-					if (!r) {
-						at = this.rules;
-						for (no in at) {
-							if (at[no] && at[no].validRe.test(n.nodeName)) {
-								r = at[no];
-								break;
-							}
-						}
-					}
-
-					en = r.isWild ? n.nodeName.toLowerCase() : r.oTagName;
-					f = r.fill;
-
-					if (r.removeEmpty && !hc)
-						return "";
-
-					h += '<' + en;
-
-					if (r.vAttribsReIsWild) {
-						// Serialize wildcard attributes
-						at = n.attributes;
-						for (i=at.length-1; i>-1; i--) {
-							no = at[i];
-							if (no.specified && r.vAttribsRe.test(no.nodeName))
-								h += this._serializeAttribute(n, r, no.nodeName);
-						}
-					} else {
-						// Serialize specific attributes
-						for (i=r.vAttribs.length-1; i>-1; i--)
-							h += this._serializeAttribute(n, r, r.vAttribs[i]);
-					}
-
-					// Serialize mce_ atts
-					if (!this.settings.on_save) {
-						at = this.mceAttribs;
-
-						for (no in at) {
-							if (at[no])
-								h += this._serializeAttribute(n, r, at[no]);
-						}
-					}
-
-					// Close these
-					if (this.closeElementsRe.test(n.nodeName))
-						return h + ' />';
-
-					h += '>';
-
-					if (this.isMSIE && this.codeElementsRe.test(n.nodeName))
-						h += n.innerHTML;
-				}
-			break;
-
-			case 3: // Text
-				if (n.parentNode && this.codeElementsRe.test(n.parentNode.nodeName))
-					return this.isMSIE ? '' : n.nodeValue;
-
-				return this.xmlEncode(n.nodeValue);
-
-			case 8: // Comment
-				return "<!--" + this._trimComment(n.nodeValue) + "-->";
-		}
-
-		if (hc) {
-			cn = n.childNodes;
-
-			for (i=0, l=cn.length; i<l; i++)
-				h += this.serializeNodeAsHTML(cn[i]);
-		}
-
-		// Fill empty nodes
-		if (f && !hc)
-			h += this.fillStr;
-
-		// End element
-		if (va)
-			h += '</' + en + '>';
-
-		return h;
-	},
-
-	/**
-	 * Serializes the specified attribute as a XHTML string chunk.
-	 *
-	 * @param {HTMLNode} n HTML node to get attribute from.
-	 * @param {TinyMCE_CleanupRule} r Cleanup rule to use in serialization.
-	 * @param {string} an Attribute name to lookfor and serialize.
-	 * @return XHTML chunk containing attribute data if it was found.
-	 * @type string
-	 * @private
-	 */
-	_serializeAttribute : function(n, r, an) {
-		var av = '', t, os = this.settings.on_save;
-
-		if (os && (an.indexOf('mce_') == 0 || an.indexOf('_moz') == 0))
-			return '';
-
-		if (os && this.mceAttribs[an])
-			av = this._getAttrib(n, this.mceAttribs[an]);
-
-		if (av.length == 0)
-			av = this._getAttrib(n, an);
-
-		if (av.length == 0 && r.defaultAttribs && (t = r.defaultAttribs[an])) {
-			av = t;
-
-			if (av == "mce_empty")
-				return " " + an + '=""';
-		}
-
-		if (r.forceAttribs && (t = r.forceAttribs[an]))
-			av = t;
-
-		if (os && av.length != 0 && this.settings.url_converter.length != 0 && /^(src|href|longdesc)$/.test(an))
-			av = eval(this.settings.url_converter + '(this, n, av)');
-
-		if (av.length != 0 && r.validAttribValues && r.validAttribValues[an] && !r.validAttribValues[an].test(av))
-			return "";
-
-		if (av.length != 0 && av == "{$uid}")
-			av = "uid_" + (this.idCount++);
-
-		if (av.length != 0)
-			return " " + an + "=" + '"' + this.xmlEncode(av) + '"';
-
-		return "";
-	},
-
-	/**
-	 * Applies source formatting/indentation on the specified HTML string.
-	 *
-	 * @param {string} h HTML string to apply formatting to.
-	 * @return Formatted HTML string.
-	 * @type string
-	 */
-	formatHTML : function(h) {
-		var s = this.settings, p = '', i = 0, li = 0, o = '', l;
-
-		h = h.replace(/\r/g, ''); // Windows sux, isn't carriage return a thing of the past :)
-		h = '\n' + h;
-		h = h.replace(new RegExp('\\n\\s+', 'gi'), '\n'); // Remove previous formatting
-		h = h.replace(this.nlBeforeRe, '\n<$1$2>');
-		h = h.replace(this.nlAfterRe, '<$1$2>\n');
-		h = h.replace(this.nlBeforeAfterRe, '\n<$1$2$3>\n');
-		h += '\n';
-
-		//tinyMCE.debug(h);
-
-		while ((i = h.indexOf('\n', i + 1)) != -1) {
-			if ((l = h.substring(li + 1, i)).length != 0) {
-				if (this.ouRe.test(l) && p.length >= s.indent_levels)
-					p = p.substring(s.indent_levels);
-
-				o += p + l + '\n';
-	
-				if (this.inRe.test(l))
-					p += this.inStr;
-			}
-
-			li = i;
-		}
-
-		//tinyMCE.debug(h);
-
-		return o;
-	},
-
-	/**
-	 * XML Encodes the specified string based on configured entity encoding. The entity encoding modes
-	 * are raw, numeric and named. Where raw is the fastest and named is default.
-	 *
-	 * @param {string} s String to convert to XML.
-	 * @return Encoded XML string based on configured entity encoding.
-	 * @type string
-	 */
-	xmlEncode : function(s) {
-		var i, l, e, o = '', c;
-
-		switch (this.settings.entity_encoding) {
-			case "raw":
-				s = "" + s;
-				s = s.replace(/&/g, '&amp;');
-				s = s.replace(new RegExp('"', 'g'), '&quot;');
-				s = s.replace(/\'/g, '&#39;'); // &apos; is not working in MSIE
-				s = s.replace(/</g, '&lt;');
-				s = s.replace(/>/g, '&gt;');
-
-				return s;
-
-			case "named":
-				for (i=0, l=s.length; i<l; i++) {
-					c = s.charCodeAt(i);
-					e = this.entities[c];
-
-					// &apos; is not working in MSIE
-					// More info: http://www.w3.org/TR/xhtml1/#C_16
-					if (c == 39) {
-						o += "&#39;";
-						continue;
-					}
-
-					if (e && e != '')
-						o += '&' + e + ';';
-					else
-						o += String.fromCharCode(c);
-				}
-
-				return o;
-
-			case "numeric":
-				for (i=0, l=s.length; i<l; i++) {
-					c = s.charCodeAt(i);
-
-					if (c > 127 || c == 60 || c == 62 || c == 38 || c == 39 || c == 34)
-						o += '&#' + c + ";";
-					else
-						o += String.fromCharCode(c);
-				}
-
-				return o;
-		}
-
-		return s;
-	},
-
-	/**
-	 * Splits the specified string and removed empty chunks.
-	 *
-	 * @param {RegEx} re RegEx to split string by.
-	 * @param {string} s String value to split.
-	 * @return Array with parts from specified string.
-	 * @type string
-	 */
-	split : function(re, s) {
-		var c = s.split(re);
-		var i, l, o = new Array();
-
-		for (i=0, l=c.length; i<l; i++) {
-			if (c[i] != '')
-				o[i] = c[i];
-		}
-
-		return o;
-	},
-
-	/**
-	 * Removes contents that got added by TinyMCE to comments.
-	 *
-	 * @param {string} s Comment string data to trim.
-	 * @return Cleaned string from TinyMCE specific content.
-	 * @type string
-	 * @private
-	 */
-	_trimComment : function(s) {
-		// Make xsrc, xhref as src and href again
-		if (tinyMCE.isGecko) {
-			s = s.replace(/\sxsrc=/gi, " src=");
-			s = s.replace(/\sxhref=/gi, " href=");
-		}
-
-		// Remove mce_src, mce_href
-		s = s.replace(new RegExp('\\smce_src=\"[^\"]*\"', 'gi'), "");
-		s = s.replace(new RegExp('\\smce_href=\"[^\"]*\"', 'gi'), "");
-
-		return s;
-	},
-
-	/**
-	 * Returns the value of the specified attribute name or default value if it wasn't found.
-	 *
-	 * @param {HTMLElement} e HTML element to get attribute from.
-	 * @param {string} n Attribute name to get from element.
-	 * @param {string} d Default value to return if attribute wasn't found.
-	 * @return Attribute value based on specified attribute name.
-	 * @type string
-	 * @private
-	 */
-	_getAttrib : function(e, n, d) {
-		if (typeof(d) == "undefined")
-			d = "";
-
-		if (!e || e.nodeType != 1)
-			return d;
-
-		var v = e.getAttribute(n, 0);
-
-		if (n == "class" && !v)
-			v = e.className;
-
-		if (this.isMSIE && n == "http-equiv")
-			v = e.httpEquiv;
-
-		if (n == "style" && !tinyMCE.isOpera)
-			v = e.style.cssText;
-
-		if (n == 'style')
-			v = tinyMCE.serializeStyle(tinyMCE.parseStyle(v));
-
-		if (this.settings.on_save && n.indexOf('on') != -1 && this.settings.on_save && v && v != "")
-			v = tinyMCE.cleanupEventStr(v);
-
-		return (v && v != "") ? '' + v : d;
-	},
-
-	/**
-	 * Internal URL converter callback function. This simply converts URLs based
-	 * on some settings.
-	 *
-	 * @param {TinyMCE_Cleanup} c Cleanup instance.
-	 * @param {HTMLNode} n HTML node that holds the URL.
-	 * @param {string} v URL value to convert.
-	 * @return Converted URL value.
-	 * @type string
-	 * @private
-	 */
-	_urlConverter : function(c, n, v) {
-		if (!c.settings.on_save)
-			return tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings.base_href, v);
-		else if (tinyMCE.getParam('convert_urls'))
-			return eval(tinyMCE.settings.urlconverter_callback + "(v, n, true);");
-
-		return v;
-	},
-
-	/**
-	 * Converts a array into a regex.
-	 *
-	 * @param {Array} a Array to convert into a regex.
-	 * @param {string} op RegEx options like, gi.
-	 * @param {string} be Before chunk, beginning of expression.
-	 * @param {string} af After chunk, end of expression.
-	 * @return RegEx instance based in input information.
-	 * @type string
-	 * @private
-	 */
-	_arrayToRe : function(a, op, be, af) {
-		var i, r;
-
-		op = typeof(op) == "undefined" ? "gi" : op;
-		be = typeof(be) == "undefined" ? "^(" : be;
-		af = typeof(af) == "undefined" ? ")$" : af;
-
-		r = be;
-
-		for (i=0; i<a.length; i++)
-			r += this._wildcardToRe(a[i]) + (i != a.length-1 ? "|" : "");
-
-		r += af;
-
-		return new RegExp(r, op);
-	},
-
-	/**
-	 * Converts a wildcard string into a regex.
-	 *
-	 * @param {string} s Wildcard string to convert into RegEx.
-	 * @return RegEx string based on input.
-	 * @type string
-	 * @private
-	 */
-	_wildcardToRe : function(s) {
-		s = s.replace(/\?/g, '(\\S?)');
-		s = s.replace(/\+/g, '(\\S+)');
-		s = s.replace(/\*/g, '(\\S*)');
-
-		return s;
-	}
-};
-
-
- - - - - - - - - - - - - - - -
- -
- - -
- - - -
Documentation generated by JSDoc on Fri Feb 24 13:38:20 2006
- - diff --git a/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_Control.class.js.html b/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_Control.class.js.html deleted file mode 100644 index 94a92b4e2e8..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_Control.class.js.html +++ /dev/null @@ -1,1636 +0,0 @@ - - - - - Overview - - - - - - - - - - - - - - - - - - -
- - -
- - -
-
- -

TinyMCE_Control.class.js

- -
- - - - -

Summary

-

- - No overview generated for 'TinyMCE_Control.class.js'

- -

- -
- - - - - - - - - - - - -
- - Class Summary - -
TinyMCE_Control 
-
- - - - - - - -
/**
- * $RCSfile$
- * $Revision$
- * $Date$
- *
- * @author Moxiecode
- * @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
- */
-
-/**
- * This is the TinyMCE editor control instance class. A instance of this class will is made for each
- * converted text area.
- *
- * @constructor
- * @param {Array} settings Name/Value array of instance specific configuration settings.
- */
-function TinyMCE_Control(settings) {
-	var t, i, to, fu, p, x, fn, fu, pn, s = settings;
-
-	this.undoRedoLevel = true;
-	this.isTinyMCE_Control = true;
-
-	// Default settings
-	this.settings = s;
-	this.settings['theme'] = tinyMCE.getParam("theme", "default");
-	this.settings['width'] = tinyMCE.getParam("width", -1);
-	this.settings['height'] = tinyMCE.getParam("height", -1);
-	this.selection = new TinyMCE_Selection(this);
-	this.undoRedo = new TinyMCE_UndoRedo(this);
-	this.cleanup = new TinyMCE_Cleanup();
-	this.shortcuts = new Array();
-	this.hasMouseMoved = false;
-
-	this.cleanup.init({
-		valid_elements : s.valid_elements,
-		extended_valid_elements : s.extended_valid_elements,
-		entities : s.entities,
-		entity_encoding : s.entity_encoding,
-		debug : s.cleanup_debug,
-		url_converter : 'TinyMCE_Cleanup.prototype._urlConverter',
-		indent : s.apply_source_formatting,
-		invalid_elements : s.invalid_elements,
-		verify_html : s.verify_html
-	});
-
-	// Wrap old theme
-	t = this.settings['theme'];
-	if (!tinyMCE.hasTheme(t)) {
-		fn = tinyMCE.callbacks;
-		to = {};
-
-		for (i=0; i<fn.length; i++) {
-			if ((fu = window['TinyMCE_' + t + "_" + fn[i]]))
-				to[fn[i]] = fu;
-		}
-
-		tinyMCE.addTheme(t, to);
-	}
-
-	// Wrap old plugins
-	this.plugins = new Array();
-	p = tinyMCE.getParam('plugins', '', true, ',');
-	if (p.length > 0) {
-		for (i=0; i<p.length; i++) {
-			pn = p[i];
-
-			if (pn.charAt(0) == '-')
-				pn = pn.substring(1);
-
-			if (!tinyMCE.hasPlugin(pn)) {
-				fn = tinyMCE.callbacks;
-				to = {};
-
-				for (x=0; x<fn.length; x++) {
-					if ((fu = window['TinyMCE_' + pn + "_" + fn[x]]))
-						to[fn[x]] = fu;
-				}
-
-				tinyMCE.addPlugin(pn, to);
-			}
-
-			this.plugins[this.plugins.length] = pn; 
-		}
-	}
-};
-
-TinyMCE_Control.prototype = {
-	/**
-	 * Returns true/false if the instance has the current plugin available.
-	 *
-	 * @param {string} n Plugin name to check for.
-	 * @return true/false if the instance has the current plugin available.
-	 * @type boolean
-	 */
-	hasPlugin : function(n) {
-		var i;
-
-		for (i=0; i<this.plugins.length; i++) {
-			if (this.plugins[i] == n)
-				return true;
-		}
-
-		return false;
-	},
-
-	/**
-	 * Adds a plugin to the editor instance. This will also add it globaly.
-	 *
-	 * @param {string} n Plugin name to check for.
-	 * @param {TinyMCE_Plugin} n TinyMCE plugin instance.
-	 */
-	addPlugin : function(n, p) {
-		if (!this.hasPlugin(n)) {
-			tinyMCE.addPlugin(n, p);
-			this.plugins[this.plugins.length] = n;
-		}
-	},
-
-	/**
-	 * Repaints the editarea in Gecko browsers. This method removes ghost resize handlers
-	 * and other trailing graphics.
-	 */
-	repaint : function() {
-		if (tinyMCE.isMSIE && !tinyMCE.isOpera)
-			return;
-
-		try {
-			var s = this.selection;
-			var b = s.getBookmark(true);
-			this.getBody().style.display = 'none';
-			this.getDoc().execCommand('selectall', false, null);
-			this.getSel().collapseToStart();
-			this.getBody().style.display = 'block';
-			s.moveToBookmark(b);
-		} catch (ex) {
-			// Ignore
-		}
-	},
-
-	/**
-	 * Switches the global TinyMCE settings to the current instance settings. This method is
-	 * used to handle multiple configurations.
-	 */
-	switchSettings : function() {
-		if (tinyMCE.configs.length > 1 && tinyMCE.currentConfig != this.settings['index']) {
-			tinyMCE.settings = this.settings;
-			tinyMCE.currentConfig = this.settings['index'];
-		}
-	},
-
-	/**
-	 * Returns the body element of a editor instance.
-	 *
-	 * @return Body element of a editor instance.
-	 * @type HTMLElement
-	 */
-	getBody : function() {
-		return this.getDoc().body;
-	},
-
-	/**
-	 * Returns the DOM document of a editor instance.
-	 *
-	 * @return DOM document of a editor instance.
-	 * @type DOMDocument
-	 */
-	getDoc : function() {
-		return this.contentWindow.document;
-	},
-
-	/**
-	 * Returns the window of a editor instance.
-	 *
-	 * @return Window of a editor instance.
-	 * @type Window
-	 */
-	getWin : function() {
-		return this.contentWindow;
-	},
-
-	/**
-	 * Adds a keyboard shortcut to a specific command. These shortcuts can for example be added
-	 * at the initInstance callback of a plugin. The shortcut description can be a language variable name
-	 * or a string describing the function. If you don't specify a command, the shortcut will simply be a blocker
-	 * shortcut. This enables you to remove built in shortcuts or remove theme specific shortcuts from a plugin.<br />
-	 * Example shortcut inst.addShortcut('ctrl,alt', 'k', 'mceSomeCommand', false, 'somevalue');
-	 * Example blocker inst.addShortcut('ctrl,alt', 'k');
-	 *
-	 * @param {string} m List of shortcut modifiers keys, for example "ctrl,alt".
-	 * @param {Object} k Shortcut key char for example "s" or a keycode value "13".
-	 * @param {string} d Optional Shortcut description, this will be presented in the about dialog.
-	 * @param {string} cmd Optional Command name to execute, for example mceLink or Bold.
-	 * @param {boolean} ui Optional True/false state if a UI (dialog) should be presented or not.
-	 * @param {Object} va Optional command value, this can be anything.
-	 * @return true/false if the shortcut was added or not
-	 * @type boolean
-	 */
-	addShortcut : function(m, k, d, cmd, ui, va) {
-		var n = typeof(k) == "number", ie = tinyMCE.isMSIE, c, sc, i;
-		var scl = this.shortcuts;
-
-		if (!tinyMCE.getParam('custom_shortcuts'))
-			return false;
-
-		m = m.toLowerCase();
-		k = ie && !n ? k.toUpperCase() : k;
-		c = n ? null : k.charCodeAt(0);
-		d = d && d.indexOf('lang_') == 0 ? tinyMCE.getLang(d) : d;
-
-		sc = {
-			alt : m.indexOf('alt') != -1,
-			ctrl : m.indexOf('ctrl') != -1,
-			shift : m.indexOf('shift') != -1,
-			charCode : c,
-			keyCode : n ? k : (ie ? c : null),
-			desc : d,
-			cmd : cmd,
-			ui : ui,
-			val : va
-		};
-
-		for (i=0; i<scl.length; i++) {
-			if (sc.alt == scl[i].alt && sc.ctrl == scl[i].ctrl && sc.shift == scl[i].shift
-				&& sc.charCode == scl[i].charCode && sc.keyCode == scl[i].keyCode) {
-				return false;
-			}
-		}
-
-		scl[scl.length] = sc;
-
-		return true;
-	},
-
-	/**
-	 * Executes shortcuts based on the event information.
-	 *
-	 * @param {DOMEvent} e Keyboard event to handle.
-	 * @return true/false if the shortcut was found and executed or not.
-	 * @type boolean
-	 */
-	handleShortcut : function(e) {
-		var i, s = this.shortcuts, o;
-
-		for (i=0; i<s.length; i++) {
-			o = s[i];
-			if (o.alt == e.altKey && o.ctrl == e.ctrlKey && (o.keyCode == e.keyCode || o.charCode == e.charCode)) {
-				if (o.cmd && (e.type == "keydown" || (e.type == "keypress" && !tinyMCE.isOpera)))
-					tinyMCE.execCommand(o.cmd, o.ui, o.val);
-
-				tinyMCE.cancelEvent(e);
-				return true;
-			}
-		}
-
-		return false;
-	},
-
-	/**
-	 * Auto resets the design mode of the document if it gets lost.
-	 * This is a Gecko specific function since it's a workaround for a bug where Gecko browsers
-	 * loose the designMode state if the editor is hidden and shown in a tab or div.
-	 */
-	autoResetDesignMode : function() {
-		// Add fix for tab/style.display none/block problems in Gecko
-		if (!tinyMCE.isMSIE && this.isHidden() && tinyMCE.getParam('auto_reset_designmode'))
-			eval('try { this.getDoc().designMode = "On"; } catch(e) {}');
-	},
-
-	/**
-	 * Returns if the instance is hidden or not. This is a Gecko specific function
-	 * other browsers will always return false. This function is used to workaround the lost
-	 * designMode bug in Gecko browsers.
-	 *
-	 * @return Returns if the instance is hidden or not.
-	 * @type boolean
-	 */
-	isHidden : function() {
-		if (tinyMCE.isMSIE)
-			return false;
-
-		var s = this.getSel();
-
-		// Weird, wheres that cursor selection?
-		return (!s || !s.rangeCount || s.rangeCount == 0);
-	},
-
-	/**
-	 * Returns true/false if the editor instance is dirty or not. In other words if it has been modified
-	 * or not.
-	 *
-	 * @return Editor instance dirty state.
-	 * @type boolean
-	 */
-	isDirty : function() {
-		// Is content modified and not in a submit procedure
-		return this.startContent != tinyMCE.trim(this.getBody().innerHTML) && !tinyMCE.isNotDirty;
-	},
-
-	/**
-	 * ..
-	 *
-	 * @private
-	 */
-	_mergeElements : function(scmd, pa, ch, override) {
-		if (scmd == "removeformat") {
-			pa.className = "";
-			pa.style.cssText = "";
-			ch.className = "";
-			ch.style.cssText = "";
-			return;
-		}
-
-		var st = tinyMCE.parseStyle(tinyMCE.getAttrib(pa, "style"));
-		var stc = tinyMCE.parseStyle(tinyMCE.getAttrib(ch, "style"));
-		var className = tinyMCE.getAttrib(pa, "class");
-
-		className += " " + tinyMCE.getAttrib(ch, "class");
-
-		if (override) {
-			for (var n in st) {
-				if (typeof(st[n]) == 'function')
-					continue;
-
-				stc[n] = st[n];
-			}
-		} else {
-			for (var n in stc) {
-				if (typeof(stc[n]) == 'function')
-					continue;
-
-				st[n] = stc[n];
-			}
-		}
-
-		tinyMCE.setAttrib(pa, "style", tinyMCE.serializeStyle(st));
-		tinyMCE.setAttrib(pa, "class", tinyMCE.trim(className));
-		ch.className = "";
-		ch.style.cssText = "";
-		ch.removeAttribute("class");
-		ch.removeAttribute("style");
-	},
-
-	/**
-	 * Sets the useCSS mode in Gecko browsers. This will also remove the build in
-	 * inline table editing controls since they are buggy when it comes to col/rowspans.
-	 *
-	 * @param {boolean} b UseCSS state true/false.
-	 * @private
-	 */
-	_setUseCSS : function(b) {
-		var d = this.getDoc();
-
-		try {d.execCommand("useCSS", false, !b);} catch (ex) {}
-		try {d.execCommand("styleWithCSS", false, b);} catch (ex) {}
-
-		if (!tinyMCE.getParam("table_inline_editing"))
-			try {d.execCommand('enableInlineTableEditing', false, "false");} catch (ex) {}
-
-		if (!tinyMCE.getParam("object_resizing"))
-			try {d.execCommand('enableObjectResizing', false, "false");} catch (ex) {}
-	},
-
-	/**
-	 * Executes a command on the current instance. These commands can be TinyMCE internal commands prefixed with "mce" or
-	 * they can be build in browser commands such as "Bold". A compleate list of browser commands is available on MSDN or Mozilla.org.
-	 * This function will dispatch the execCommand function on each plugin, theme or the execcommand_callback option if none of these
-	 * return true it will handle the command as a internal browser command.
-	 *
-	 * @param {string} command Command name to execute, for example mceLink or Bold.
-	 * @param {boolean} user_interface True/false state if a UI (dialog) should be presented or not.
-	 * @param {mixed} value Optional command value, this can be anything.
-	 */
-	execCommand : function(command, user_interface, value) {
-		var doc = this.getDoc();
-		var win = this.getWin();
-		var focusElm = this.getFocusElement();
-
-		// Is non udno specific command
-		if (!new RegExp('mceStartTyping|mceEndTyping|mceBeginUndoLevel|mceEndUndoLevel|mceAddUndoLevel', 'gi').test(command))
-			this.undoBookmark = null;
-
-		if (this.lastSafariSelection && !new RegExp('mceStartTyping|mceEndTyping|mceBeginUndoLevel|mceEndUndoLevel|mceAddUndoLevel', 'gi').test(command)) {
-			this.selection.moveToBookmark(this.lastSafariSelection);
-			tinyMCE.selectedElement = this.lastSafariSelectedElement;
-		}
-
-		// Mozilla issue
-		if (!tinyMCE.isMSIE && !this.useCSS) {
-			this._setUseCSS(false);
-			this.useCSS = true;
-		}
-
-		//debug("command: " + command + ", user_interface: " + user_interface + ", value: " + value);
-		this.contentDocument = doc; // <-- Strange, unless this is applied Mozilla 1.3 breaks
-
-		if (tinyMCE.execCommandCallback(this, 'execcommand_callback', 'execCommand', this.editorId, this.getBody(), command, user_interface, value))
-			return;
-
-		// Fix align on images
-		if (focusElm && focusElm.nodeName == "IMG") {
-			var align = focusElm.getAttribute('align');
-			var img = command == "JustifyCenter" ? focusElm.cloneNode(false) : focusElm;
-
-			switch (command) {
-				case "JustifyLeft":
-					if (align == 'left')
-						img.removeAttribute('align');
-					else
-						img.setAttribute('align', 'left');
-
-					// Remove the div
-					var div = focusElm.parentNode;
-					if (div && div.nodeName == "DIV" && div.childNodes.length == 1 && div.parentNode)
-						div.parentNode.replaceChild(img, div);
-
-					this.selection.selectNode(img);
-					this.repaint();
-					tinyMCE.triggerNodeChange();
-					return;
-
-				case "JustifyCenter":
-					img.removeAttribute('align');
-
-					// Is centered
-					var div = tinyMCE.getParentElement(focusElm, "div");
-					if (div && div.style.textAlign == "center") {
-						// Remove div
-						if (div.nodeName == "DIV" && div.childNodes.length == 1 && div.parentNode)
-							div.parentNode.replaceChild(img, div);
-					} else {
-						// Add div
-						var div = this.getDoc().createElement("div");
-						div.style.textAlign = 'center';
-						div.appendChild(img);
-						focusElm.parentNode.replaceChild(div, focusElm);
-					}
-
-					this.selection.selectNode(img);
-					this.repaint();
-					tinyMCE.triggerNodeChange();
-					return;
-
-				case "JustifyRight":
-					if (align == 'right')
-						img.removeAttribute('align');
-					else
-						img.setAttribute('align', 'right');
-
-					// Remove the div
-					var div = focusElm.parentNode;
-					if (div && div.nodeName == "DIV" && div.childNodes.length == 1 && div.parentNode)
-						div.parentNode.replaceChild(img, div);
-
-					this.selection.selectNode(img);
-					this.repaint();
-					tinyMCE.triggerNodeChange();
-					return;
-			}
-		}
-
-		if (tinyMCE.settings['force_br_newlines']) {
-			var alignValue = "";
-
-			if (doc.selection.type != "Control") {
-				switch (command) {
-						case "JustifyLeft":
-							alignValue = "left";
-							break;
-
-						case "JustifyCenter":
-							alignValue = "center";
-							break;
-
-						case "JustifyFull":
-							alignValue = "justify";
-							break;
-
-						case "JustifyRight":
-							alignValue = "right";
-							break;
-				}
-
-				if (alignValue != "") {
-					var rng = doc.selection.createRange();
-
-					if ((divElm = tinyMCE.getParentElement(rng.parentElement(), "div")) != null)
-						divElm.setAttribute("align", alignValue);
-					else if (rng.pasteHTML && rng.htmlText.length > 0)
-						rng.pasteHTML('<div align="' + alignValue + '">' + rng.htmlText + "</div>");
-
-					tinyMCE.triggerNodeChange();
-					return;
-				}
-			}
-		}
-
-		switch (command) {
-			case "mceRepaint":
-				this.repaint();
-				return true;
-
-			case "InsertUnorderedList":
-			case "InsertOrderedList":
-				var tag = (command == "InsertUnorderedList") ? "ul" : "ol";
-
-				if (tinyMCE.isSafari)
-					this.execCommand("mceInsertContent", false, "<" + tag + "><li>&nbsp;</li><" + tag + ">");
-				else
-					this.getDoc().execCommand(command, user_interface, value);
-
-				tinyMCE.triggerNodeChange();
-				break;
-
-			case "Strikethrough":
-				if (tinyMCE.isSafari)
-					this.execCommand("mceInsertContent", false, "<strike>" + this.selection.getSelectedHTML() + "</strike>");
-				else
-					this.getDoc().execCommand(command, user_interface, value);
-
-				tinyMCE.triggerNodeChange();
-				break;
-
-			case "mceSelectNode":
-				this.selection.selectNode(value);
-				tinyMCE.triggerNodeChange();
-				tinyMCE.selectedNode = value;
-				break;
-
-			case "FormatBlock":
-				if (value == null || value == "") {
-					var elm = tinyMCE.getParentElement(this.getFocusElement(), "p,div,h1,h2,h3,h4,h5,h6,pre,address");
-
-					if (elm)
-						this.execCommand("mceRemoveNode", false, elm);
-				} else {
-					if (value == '<div>' && tinyMCE.isGecko)
-						value = 'div';
-
-					this.getDoc().execCommand("FormatBlock", false, value);
-				}
-
-				tinyMCE.triggerNodeChange();
-
-				break;
-
-			case "mceRemoveNode":
-				if (!value)
-					value = tinyMCE.getParentElement(this.getFocusElement());
-
-				if (tinyMCE.isMSIE) {
-					value.outerHTML = value.innerHTML;
-				} else {
-					var rng = value.ownerDocument.createRange();
-					rng.setStartBefore(value);
-					rng.setEndAfter(value);
-					rng.deleteContents();
-					rng.insertNode(rng.createContextualFragment(value.innerHTML));
-				}
-
-				tinyMCE.triggerNodeChange();
-
-				break;
-
-			case "mceSelectNodeDepth":
-				var parentNode = this.getFocusElement();
-				for (var i=0; parentNode; i++) {
-					if (parentNode.nodeName.toLowerCase() == "body")
-						break;
-
-					if (parentNode.nodeName.toLowerCase() == "#text") {
-						i--;
-						parentNode = parentNode.parentNode;
-						continue;
-					}
-
-					if (i == value) {
-						this.selection.selectNode(parentNode, false);
-						tinyMCE.triggerNodeChange();
-						tinyMCE.selectedNode = parentNode;
-						return;
-					}
-
-					parentNode = parentNode.parentNode;
-				}
-
-				break;
-
-			case "SetStyleInfo":
-				var rng = this.getRng();
-				var sel = this.getSel();
-				var scmd = value['command'];
-				var sname = value['name'];
-				var svalue = value['value'] == null ? '' : value['value'];
-				//var svalue = value['value'] == null ? '' : value['value'];
-				var wrapper = value['wrapper'] ? value['wrapper'] : "span";
-				var parentElm = null;
-				var invalidRe = new RegExp("^BODY|HTML$", "g");
-				var invalidParentsRe = tinyMCE.settings['merge_styles_invalid_parents'] != '' ? new RegExp(tinyMCE.settings['merge_styles_invalid_parents'], "gi") : null;
-
-				// Whole element selected check
-				if (tinyMCE.isMSIE) {
-					// Control range
-					if (rng.item)
-						parentElm = rng.item(0);
-					else {
-						var pelm = rng.parentElement();
-						var prng = doc.selection.createRange();
-						prng.moveToElementText(pelm);
-
-						if (rng.htmlText == prng.htmlText || rng.boundingWidth == 0) {
-							if (invalidParentsRe == null || !invalidParentsRe.test(pelm.nodeName))
-								parentElm = pelm;
-						}
-					}
-				} else {
-					var felm = this.getFocusElement();
-					if (sel.isCollapsed || (/td|tr|tbody|table/ig.test(felm.nodeName) && sel.anchorNode == felm.parentNode))
-						parentElm = felm;
-				}
-
-				// Whole element selected
-				if (parentElm && !invalidRe.test(parentElm.nodeName)) {
-					if (scmd == "setstyle")
-						tinyMCE.setStyleAttrib(parentElm, sname, svalue);
-
-					if (scmd == "setattrib")
-						tinyMCE.setAttrib(parentElm, sname, svalue);
-
-					if (scmd == "removeformat") {
-						parentElm.style.cssText = '';
-						tinyMCE.setAttrib(parentElm, 'class', '');
-					}
-
-					// Remove style/attribs from all children
-					var ch = tinyMCE.getNodeTree(parentElm, new Array(), 1);
-					for (var z=0; z<ch.length; z++) {
-						if (ch[z] == parentElm)
-							continue;
-
-						if (scmd == "setstyle")
-							tinyMCE.setStyleAttrib(ch[z], sname, '');
-
-						if (scmd == "setattrib")
-							tinyMCE.setAttrib(ch[z], sname, '');
-
-						if (scmd == "removeformat") {
-							ch[z].style.cssText = '';
-							tinyMCE.setAttrib(ch[z], 'class', '');
-						}
-					}
-				} else {
-					doc.execCommand("fontname", false, "#mce_temp_font#");
-					var elementArray = tinyMCE.getElementsByAttributeValue(this.getBody(), "font", "face", "#mce_temp_font#");
-
-					// Change them all
-					for (var x=0; x<elementArray.length; x++) {
-						elm = elementArray[x];
-						if (elm) {
-							var spanElm = doc.createElement(wrapper);
-
-							if (scmd == "setstyle")
-								tinyMCE.setStyleAttrib(spanElm, sname, svalue);
-
-							if (scmd == "setattrib")
-								tinyMCE.setAttrib(spanElm, sname, svalue);
-
-							if (scmd == "removeformat") {
-								spanElm.style.cssText = '';
-								tinyMCE.setAttrib(spanElm, 'class', '');
-							}
-
-							if (elm.hasChildNodes()) {
-								for (var i=0; i<elm.childNodes.length; i++)
-									spanElm.appendChild(elm.childNodes[i].cloneNode(true));
-							}
-
-							spanElm.setAttribute("mce_new", "true");
-							elm.parentNode.replaceChild(spanElm, elm);
-
-							// Remove style/attribs from all children
-							var ch = tinyMCE.getNodeTree(spanElm, new Array(), 1);
-							for (var z=0; z<ch.length; z++) {
-								if (ch[z] == spanElm)
-									continue;
-
-								if (scmd == "setstyle")
-									tinyMCE.setStyleAttrib(ch[z], sname, '');
-
-								if (scmd == "setattrib")
-									tinyMCE.setAttrib(ch[z], sname, '');
-
-								if (scmd == "removeformat") {
-									ch[z].style.cssText = '';
-									tinyMCE.setAttrib(ch[z], 'class', '');
-								}
-							}
-						}
-					}
-				}
-
-				// Cleaup wrappers
-				var nodes = doc.getElementsByTagName(wrapper);
-				for (var i=nodes.length-1; i>=0; i--) {
-					var elm = nodes[i];
-					var isNew = tinyMCE.getAttrib(elm, "mce_new") == "true";
-
-					elm.removeAttribute("mce_new");
-
-					// Is only child a element
-					if (elm.childNodes && elm.childNodes.length == 1 && elm.childNodes[0].nodeType == 1) {
-						//tinyMCE.debug("merge1" + isNew);
-						this._mergeElements(scmd, elm, elm.childNodes[0], isNew);
-						continue;
-					}
-
-					// Is I the only child
-					if (elm.parentNode.childNodes.length == 1 && !invalidRe.test(elm.nodeName) && !invalidRe.test(elm.parentNode.nodeName)) {
-						//tinyMCE.debug("merge2" + isNew + "," + elm.nodeName + "," + elm.parentNode.nodeName);
-						if (invalidParentsRe == null || !invalidParentsRe.test(elm.parentNode.nodeName))
-							this._mergeElements(scmd, elm.parentNode, elm, false);
-					}
-				}
-
-				// Remove empty wrappers
-				var nodes = doc.getElementsByTagName(wrapper);
-				for (var i=nodes.length-1; i>=0; i--) {
-					var elm = nodes[i];
-					var isEmpty = true;
-
-					// Check if it has any attribs
-					var tmp = doc.createElement("body");
-					tmp.appendChild(elm.cloneNode(false));
-
-					// Is empty span, remove it
-					tmp.innerHTML = tmp.innerHTML.replace(new RegExp('style=""|class=""', 'gi'), '');
-					//tinyMCE.debug(tmp.innerHTML);
-					if (new RegExp('<span>', 'gi').test(tmp.innerHTML)) {
-						for (var x=0; x<elm.childNodes.length; x++) {
-							if (elm.parentNode != null)
-								elm.parentNode.insertBefore(elm.childNodes[x].cloneNode(true), elm);
-						}
-
-						elm.parentNode.removeChild(elm);
-					}
-				}
-
-				// Re add the visual aids
-				if (scmd == "removeformat")
-					tinyMCE.handleVisualAid(this.getBody(), true, this.visualAid, this);
-
-				tinyMCE.triggerNodeChange();
-
-				break;
-
-			case "FontName":
-				if (value == null) {
-					var s = this.getSel();
-
-					// Find font and select it
-					if (tinyMCE.isGecko && s.isCollapsed) {
-						var f = tinyMCE.getParentElement(this.getFocusElement(), "font");
-
-						if (f != null)
-							this.selection.selectNode(f, false);
-					}
-
-					// Remove format
-					this.getDoc().execCommand("RemoveFormat", false, null);
-
-					// Collapse range if font was found
-					if (f != null && tinyMCE.isGecko) {
-						var r = this.getRng().cloneRange();
-						r.collapse(true);
-						s.removeAllRanges();
-						s.addRange(r);
-					}
-				} else
-					this.getDoc().execCommand('FontName', false, value);
-
-				if (tinyMCE.isGecko)
-					window.setTimeout('tinyMCE.triggerNodeChange(false);', 1);
-
-				return;
-
-			case "FontSize":
-				this.getDoc().execCommand('FontSize', false, value);
-
-				if (tinyMCE.isGecko)
-					window.setTimeout('tinyMCE.triggerNodeChange(false);', 1);
-
-				return;
-
-			case "forecolor":
-				this.getDoc().execCommand('forecolor', false, value);
-				break;
-
-			case "HiliteColor":
-				if (tinyMCE.isGecko) {
-					this._setUseCSS(true);
-					this.getDoc().execCommand('hilitecolor', false, value);
-					this._setUseCSS(false);
-				} else
-					this.getDoc().execCommand('BackColor', false, value);
-				break;
-
-			case "Cut":
-			case "Copy":
-			case "Paste":
-				var cmdFailed = false;
-
-				// Try executing command
-				eval('try {this.getDoc().execCommand(command, user_interface, value);} catch (e) {cmdFailed = true;}');
-
-				if (tinyMCE.isOpera && cmdFailed)
-					alert('Currently not supported by your browser, use keyboard shortcuts instead.');
-
-				// Alert error in gecko if command failed
-				if (tinyMCE.isGecko && cmdFailed) {
-					// Confirm more info
-					if (confirm(tinyMCE.entityDecode(tinyMCE.getLang('lang_clipboard_msg'))))
-						window.open('http://www.mozilla.org/editor/midasdemo/securityprefs.html', 'mceExternal');
-
-					return;
-				} else
-					tinyMCE.triggerNodeChange();
-			break;
-
-			case "mceSetContent":
-				if (!value)
-					value = "";
-
-				// Call custom cleanup code
-				value = tinyMCE.storeAwayURLs(value);
-				value = tinyMCE._customCleanup(this, "insert_to_editor", value);
-				tinyMCE._setHTML(doc, value);
-				tinyMCE.setInnerHTML(doc.body, tinyMCE._cleanupHTML(this, doc, tinyMCE.settings, doc.body));
-				tinyMCE.convertAllRelativeURLs(doc.body);
-				tinyMCE.handleVisualAid(doc.body, true, this.visualAid, this);
-				tinyMCE._setEventsEnabled(doc.body, false);
-				return true;
-
-			case "mceCleanup":
-				var b = this.selection.getBookmark();
-				tinyMCE._setHTML(this.contentDocument, this.getBody().innerHTML);
-				tinyMCE.setInnerHTML(this.getBody(), tinyMCE._cleanupHTML(this, this.contentDocument, this.settings, this.getBody(), this.visualAid));
-				tinyMCE.convertAllRelativeURLs(doc.body);
-				tinyMCE.handleVisualAid(this.getBody(), true, this.visualAid, this);
-				tinyMCE._setEventsEnabled(this.getBody(), false);
-				this.repaint();
-				this.selection.moveToBookmark(b);
-				tinyMCE.triggerNodeChange();
-			break;
-
-			case "mceReplaceContent":
-				// Force empty string
-				if (!value)
-					value = '';
-
-				this.getWin().focus();
-
-				var selectedText = "";
-
-				if (tinyMCE.isMSIE) {
-					var rng = doc.selection.createRange();
-					selectedText = rng.text;
-				} else
-					selectedText = this.getSel().toString();
-
-				if (selectedText.length > 0) {
-					value = tinyMCE.replaceVar(value, "selection", selectedText);
-					tinyMCE.execCommand('mceInsertContent', false, value);
-				}
-
-				tinyMCE.triggerNodeChange();
-			break;
-
-			case "mceSetAttribute":
-				if (typeof(value) == 'object') {
-					var targetElms = (typeof(value['targets']) == "undefined") ? "p,img,span,div,td,h1,h2,h3,h4,h5,h6,pre,address" : value['targets'];
-					var targetNode = tinyMCE.getParentElement(this.getFocusElement(), targetElms);
-
-					if (targetNode) {
-						targetNode.setAttribute(value['name'], value['value']);
-						tinyMCE.triggerNodeChange();
-					}
-				}
-			break;
-
-			case "mceSetCSSClass":
-				this.execCommand("SetStyleInfo", false, {command : "setattrib", name : "class", value : value});
-			break;
-
-			case "mceInsertRawHTML":
-				var key = 'tiny_mce_marker';
-
-				this.execCommand('mceBeginUndoLevel');
-
-				// Insert marker key
-				this.execCommand('mceInsertContent', false, key);
-
-				// Store away scroll pos
-				var scrollX = this.getDoc().body.scrollLeft + this.getDoc().documentElement.scrollLeft;
-				var scrollY = this.getDoc().body.scrollTop + this.getDoc().documentElement.scrollTop;
-
-				// Find marker and replace with RAW HTML
-				var html = this.getBody().innerHTML;
-				if ((pos = html.indexOf(key)) != -1)
-					tinyMCE.setInnerHTML(this.getBody(), html.substring(0, pos) + value + html.substring(pos + key.length));
-
-				// Restore scoll pos
-				this.contentWindow.scrollTo(scrollX, scrollY);
-
-				this.execCommand('mceEndUndoLevel');
-
-				break;
-
-			case "mceInsertContent":
-				// Force empty string
-				if (!value)
-					value = '';
-
-				var insertHTMLFailed = false;
-				this.getWin().focus();
-
-				if (tinyMCE.isGecko || tinyMCE.isOpera) {
-					try {
-						// Is plain text or HTML, &amp;, &nbsp; etc will be encoded wrong in FF
-						if (value.indexOf('<') == -1 && !value.match(/(&#38;|&#160;|&#60;|&#62;)/g)) {
-							var r = this.getRng();
-							var n = this.getDoc().createTextNode(tinyMCE.entityDecode(value));
-							var s = this.getSel();
-							var r2 = r.cloneRange();
-
-							// Insert text at cursor position
-							s.removeAllRanges();
-							r.deleteContents();
-							r.insertNode(n);
-
-							// Move the cursor to the end of text
-							r2.selectNode(n);
-							r2.collapse(false);
-							s.removeAllRanges();
-							s.addRange(r2);
-						} else {
-							value = tinyMCE.fixGeckoBaseHREFBug(1, this.getDoc(), value);
-							this.getDoc().execCommand('inserthtml', false, value);
-							tinyMCE.fixGeckoBaseHREFBug(2, this.getDoc(), value);
-						}
-					} catch (ex) {
-						insertHTMLFailed = true;
-					}
-
-					if (!insertHTMLFailed) {
-						tinyMCE.triggerNodeChange();
-						return;
-					}
-				}
-
-				// Ugly hack in Opera due to non working "inserthtml"
-				if (tinyMCE.isOpera && insertHTMLFailed) {
-					this.getDoc().execCommand("insertimage", false, tinyMCE.uniqueURL);
-					var ar = tinyMCE.getElementsByAttributeValue(this.getBody(), "img", "src", tinyMCE.uniqueURL);
-					ar[0].outerHTML = value;
-					return;
-				}
-
-				if (!tinyMCE.isMSIE) {
-					var isHTML = value.indexOf('<') != -1;
-					var sel = this.getSel();
-					var rng = this.getRng();
-
-					if (isHTML) {
-						if (tinyMCE.isSafari) {
-							var tmpRng = this.getDoc().createRange();
-
-							tmpRng.setStart(this.getBody(), 0);
-							tmpRng.setEnd(this.getBody(), 0);
-
-							value = tmpRng.createContextualFragment(value);
-						} else
-							value = rng.createContextualFragment(value);
-					} else {
-						// Setup text node
-						var el = document.createElement("div");
-						el.innerHTML = value;
-						value = el.firstChild.nodeValue;
-						value = doc.createTextNode(value);
-					}
-
-					// Insert plain text in Safari
-					if (tinyMCE.isSafari && !isHTML) {
-						this.execCommand('InsertText', false, value.nodeValue);
-						tinyMCE.triggerNodeChange();
-						return true;
-					} else if (tinyMCE.isSafari && isHTML) {
-						rng.deleteContents();
-						rng.insertNode(value);
-						tinyMCE.triggerNodeChange();
-						return true;
-					}
-
-					rng.deleteContents();
-
-					// If target node is text do special treatment, (Mozilla 1.3 fix)
-					if (rng.startContainer.nodeType == 3) {
-						var node = rng.startContainer.splitText(rng.startOffset);
-						node.parentNode.insertBefore(value, node); 
-					} else
-						rng.insertNode(value);
-
-					if (!isHTML) {
-						// Removes weird selection trails
-						sel.selectAllChildren(doc.body);
-						sel.removeAllRanges();
-
-						// Move cursor to end of content
-						var rng = doc.createRange();
-
-						rng.selectNode(value);
-						rng.collapse(false);
-
-						sel.addRange(rng);
-					} else
-						rng.collapse(false);
-
-					tinyMCE.fixGeckoBaseHREFBug(2, this.getDoc(), value);
-				} else {
-					var rng = doc.selection.createRange();
-					var c = value.indexOf('<!--') != -1;
-
-					// Fix comment bug, add tag before comments
-					if (c)
-						value = tinyMCE.uniqueTag + value;
-
-					if (rng.item)
-						rng.item(0).outerHTML = value;
-					else
-						rng.pasteHTML(value);
-
-					// Remove unique tag
-					if (c) {
-						var e = this.getDoc().getElementById('mceTMPElement');
-						e.parentNode.removeChild(e);
-					}
-				}
-
-				tinyMCE.triggerNodeChange();
-			break;
-
-			case "mceStartTyping":
-				if (tinyMCE.settings['custom_undo_redo'] && this.undoRedo.typingUndoIndex == -1) {
-					this.undoRedo.typingUndoIndex = this.undoRedo.undoIndex;
-					this.execCommand('mceAddUndoLevel');
-					//tinyMCE.debug("mceStartTyping");
-				}
-				break;
-
-			case "mceEndTyping":
-				if (tinyMCE.settings['custom_undo_redo'] && this.undoRedo.typingUndoIndex != -1) {
-					this.execCommand('mceAddUndoLevel');
-					this.undoRedo.typingUndoIndex = -1;
-					//tinyMCE.debug("mceEndTyping");
-				}
-				break;
-
-			case "mceBeginUndoLevel":
-				this.undoRedoLevel = false;
-				break;
-
-			case "mceEndUndoLevel":
-				this.undoRedoLevel = true;
-				this.execCommand('mceAddUndoLevel');
-				break;
-
-			case "mceAddUndoLevel":
-				if (tinyMCE.settings['custom_undo_redo'] && this.undoRedoLevel) {
-					if (this.undoRedo.add())
-						tinyMCE.triggerNodeChange(false);
-				}
-				break;
-
-			case "Undo":
-				if (tinyMCE.settings['custom_undo_redo']) {
-					tinyMCE.execCommand("mceEndTyping");
-					this.undoRedo.undo();
-					tinyMCE.triggerNodeChange();
-				} else
-					this.getDoc().execCommand(command, user_interface, value);
-				break;
-
-			case "Redo":
-				if (tinyMCE.settings['custom_undo_redo']) {
-					tinyMCE.execCommand("mceEndTyping");
-					this.undoRedo.redo();
-					tinyMCE.triggerNodeChange();
-				} else
-					this.getDoc().execCommand(command, user_interface, value);
-				break;
-
-			case "mceToggleVisualAid":
-				this.visualAid = !this.visualAid;
-				tinyMCE.handleVisualAid(this.getBody(), true, this.visualAid, this);
-				tinyMCE.triggerNodeChange();
-				break;
-
-			case "Indent":
-				this.getDoc().execCommand(command, user_interface, value);
-				tinyMCE.triggerNodeChange();
-				if (tinyMCE.isMSIE) {
-					var n = tinyMCE.getParentElement(this.getFocusElement(), "blockquote");
-					do {
-						if (n && n.nodeName == "BLOCKQUOTE") {
-							n.removeAttribute("dir");
-							n.removeAttribute("style");
-						}
-					} while (n != null && (n = n.parentNode) != null);
-				}
-				break;
-
-			case "removeformat":
-				var text = this.selection.getSelectedText();
-
-				if (tinyMCE.isOpera) {
-					this.getDoc().execCommand("RemoveFormat", false, null);
-					return;
-				}
-
-				if (tinyMCE.isMSIE) {
-					try {
-						var rng = doc.selection.createRange();
-						rng.execCommand("RemoveFormat", false, null);
-					} catch (e) {
-						// Do nothing
-					}
-
-					this.execCommand("SetStyleInfo", false, {command : "removeformat"});
-				} else {
-					this.getDoc().execCommand(command, user_interface, value);
-
-					this.execCommand("SetStyleInfo", false, {command : "removeformat"});
-				}
-
-				// Remove class
-				if (text.length == 0)
-					this.execCommand("mceSetCSSClass", false, "");
-
-				tinyMCE.triggerNodeChange();
-				break;
-
-			default:
-				this.getDoc().execCommand(command, user_interface, value);
-
-				if (tinyMCE.isGecko)
-					window.setTimeout('tinyMCE.triggerNodeChange(false);', 1);
-				else
-					tinyMCE.triggerNodeChange();
-		}
-
-		// Add undo level after modification
-		if (command != "mceAddUndoLevel" && command != "Undo" && command != "Redo" && command != "mceStartTyping" && command != "mceEndTyping")
-			tinyMCE.execCommand("mceAddUndoLevel");
-	},
-
-	/**
-	 * Returns a command specific value, for example the current font size.
-	 *
-	 * @param {string} c Command to query value from.
-	 * @return Command specific value, for example the current font size.
-	 * @type mixed
-	 */
-	queryCommandValue : function(c) {
-		try {
-			return this.getDoc().queryCommandValue(c);
-		} catch (e) {
-			return null;
-		}
-	},
-
-	/**
-	 * Returns a command specific state, for example if bold is enabled or not.
-	 *
-	 * @param {string} c Command to query state from.
-	 * @return Command specific state, for example if bold is enabled or not.
-	 * @type boolean
-	 */
-	queryCommandState : function(c) {
-		return this.getDoc().queryCommandState(c);
-	},
-
-	/**
-	 * Gets executed when the editor control instance is added.
-	 *
-	 * @param {HTMLElement} replace_element Element to replace with a editor instance.
-	 * @param {string} form_element_name Form element name that gets replaced.
-	 * @param {DOMDocument} target_document Target document reference where the element is located.
-	 * @private
-	 */
-	_onAdd : function(replace_element, form_element_name, target_document) {
-		var hc, th, to, editorTemplate;
-
-		th = this.settings['theme'];
-		to = tinyMCE.themes[th];
-
-		var targetDoc = target_document ? target_document : document;
-
-		this.targetDoc = targetDoc;
-
-		tinyMCE.themeURL = tinyMCE.baseURL + "/themes/" + this.settings['theme'];
-		this.settings['themeurl'] = tinyMCE.themeURL;
-
-		if (!replace_element) {
-			alert("Error: Could not find the target element.");
-			return false;
-		}
-
-		if (to.getEditorTemplate)
-			editorTemplate = to.getEditorTemplate(this.settings, this.editorId);
-
-		var deltaWidth = editorTemplate['delta_width'] ? editorTemplate['delta_width'] : 0;
-		var deltaHeight = editorTemplate['delta_height'] ? editorTemplate['delta_height'] : 0;
-		var html = '<span id="' + this.editorId + '_parent">' + editorTemplate['html'];
-
-		html = tinyMCE.replaceVar(html, "editor_id", this.editorId);
-		this.settings['default_document'] = tinyMCE.baseURL + "/blank.htm";
-
-		this.settings['old_width'] = this.settings['width'];
-		this.settings['old_height'] = this.settings['height'];
-
-		// Set default width, height
-		if (this.settings['width'] == -1)
-			this.settings['width'] = replace_element.offsetWidth;
-
-		if (this.settings['height'] == -1)
-			this.settings['height'] = replace_element.offsetHeight;
-
-		// Try the style width
-		if (this.settings['width'] == 0)
-			this.settings['width'] = replace_element.style.width;
-
-		// Try the style height
-		if (this.settings['height'] == 0)
-			this.settings['height'] = replace_element.style.height; 
-
-		// If no width/height then default to 320x240, better than nothing
-		if (this.settings['width'] == 0)
-			this.settings['width'] = 320;
-
-		if (this.settings['height'] == 0)
-			this.settings['height'] = 240;
-
-		this.settings['area_width'] = parseInt(this.settings['width']);
-		this.settings['area_height'] = parseInt(this.settings['height']);
-		this.settings['area_width'] += deltaWidth;
-		this.settings['area_height'] += deltaHeight;
-
-		// Special % handling
-		if (("" + this.settings['width']).indexOf('%') != -1)
-			this.settings['area_width'] = "100%";
-
-		if (("" + this.settings['height']).indexOf('%') != -1)
-			this.settings['area_height'] = "100%";
-
-		if (("" + replace_element.style.width).indexOf('%') != -1) {
-			this.settings['width'] = replace_element.style.width;
-			this.settings['area_width'] = "100%";
-		}
-
-		if (("" + replace_element.style.height).indexOf('%') != -1) {
-			this.settings['height'] = replace_element.style.height;
-			this.settings['area_height'] = "100%";
-		}
-
-		html = tinyMCE.applyTemplate(html);
-
-		this.settings['width'] = this.settings['old_width'];
-		this.settings['height'] = this.settings['old_height'];
-
-		this.visualAid = this.settings['visual'];
-		this.formTargetElementId = form_element_name;
-
-		// Get replace_element contents
-		if (replace_element.nodeName == "TEXTAREA" || replace_element.nodeName == "INPUT")
-			this.startContent = replace_element.value;
-		else
-			this.startContent = replace_element.innerHTML;
-
-		// If not text area or input
-		if (replace_element.nodeName != "TEXTAREA" && replace_element.nodeName != "INPUT") {
-			this.oldTargetElement = replace_element;
-
-			// Debug mode
-			if (tinyMCE.settings['debug']) {
-				hc = '<textarea wrap="off" id="' + form_element_name + '" name="' + form_element_name + '" cols="100" rows="15"></textarea>';
-			} else {
-				hc = '<input type="hidden" type="text" id="' + form_element_name + '" name="' + form_element_name + '" />';
-				this.oldTargetElement.style.display = "none";
-			}
-
-			html += '</span>';
-
-			if (tinyMCE.isGecko)
-				html = hc + html;
-			else
-				html += hc;
-
-			// Output HTML and set editable
-			if (tinyMCE.isGecko) {
-				var rng = replace_element.ownerDocument.createRange();
-				rng.setStartBefore(replace_element);
-
-				var fragment = rng.createContextualFragment(html);
-				tinyMCE.insertAfter(fragment, replace_element);
-			} else
-				replace_element.insertAdjacentHTML("beforeBegin", html);
-		} else {
-			html += '</span>';
-
-			// Just hide the textarea element
-			this.oldTargetElement = replace_element;
-
-			if (!tinyMCE.settings['debug'])
-				this.oldTargetElement.style.display = "none";
-
-			// Output HTML and set editable
-			if (tinyMCE.isGecko) {
-				var rng = replace_element.ownerDocument.createRange();
-				rng.setStartBefore(replace_element);
-
-				var fragment = rng.createContextualFragment(html);
-				tinyMCE.insertAfter(fragment, replace_element);
-			} else
-				replace_element.insertAdjacentHTML("beforeBegin", html);
-		}
-
-		// Setup iframe
-		var dynamicIFrame = false;
-		var tElm = targetDoc.getElementById(this.editorId);
-
-		if (!tinyMCE.isMSIE) {
-			if (tElm && tElm.nodeName.toLowerCase() == "span") {
-				tElm = tinyMCE._createIFrame(tElm);
-				dynamicIFrame = true;
-			}
-
-			this.targetElement = tElm;
-			this.iframeElement = tElm;
-			this.contentDocument = tElm.contentDocument;
-			this.contentWindow = tElm.contentWindow;
-
-			//this.getDoc().designMode = "on";
-		} else {
-			if (tElm && tElm.nodeName.toLowerCase() == "span")
-				tElm = tinyMCE._createIFrame(tElm);
-			else
-				tElm = targetDoc.frames[this.editorId];
-
-			this.targetElement = tElm;
-			this.iframeElement = targetDoc.getElementById(this.editorId);
-
-			if (tinyMCE.isOpera) {
-				this.contentDocument = this.iframeElement.contentDocument;
-				this.contentWindow = this.iframeElement.contentWindow;
-				dynamicIFrame = true;
-			} else {
-				this.contentDocument = tElm.window.document;
-				this.contentWindow = tElm.window;
-			}
-
-			this.getDoc().designMode = "on";
-		}
-
-		// Setup base HTML
-		var doc = this.contentDocument;
-		if (dynamicIFrame) {
-			var html = tinyMCE.getParam('doctype') + '<html><head xmlns="http://www.w3.org/1999/xhtml"><base href="' + tinyMCE.settings['base_href'] + '" /><title>blank_page</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body class="mceContentBody"></body></html>';
-
-			try {
-				if (!this.isHidden())
-					this.getDoc().designMode = "on";
-
-				doc.open();
-				doc.write(html);
-				doc.close();
-			} catch (e) {
-				// Failed Mozilla 1.3
-				this.getDoc().location.href = tinyMCE.baseURL + "/blank.htm";
-			}
-		}
-
-		// This timeout is needed in MSIE 5.5 for some odd reason
-		// it seems that the document.frames isn't initialized yet?
-		if (tinyMCE.isMSIE)
-			window.setTimeout("TinyMCE_Engine.prototype.addEventHandlers('" + this.editorId + "');", 1);
-
-		tinyMCE.setupContent(this.editorId, true);
-
-		return true;
-	},
-
-	/**
-	 * Sets the base href url of the current document instance. This method is used
-	 * to temporarly remove the base url during copy/paste and drag/drop operations
-	 * of relative links from external sites into TinyMCE. MSIE has a bug and converts
-	 * relative links from external sites to absolute links incorrectly.
-	 *
-	 * @param {string} u URL to set as base URL or null to remove it.
-	 */
-	setBaseHREF : function(u) {
-		var h, b, d, nl;
-
-		d = this.getDoc();
-		nl = d.getElementsByTagName("base");
-		b = nl.length > 0 ? nl[0] : null;
-
-		if (!b) {
-			nl = d.getElementsByTagName("head");
-			h = nl.length > 0 ? nl[0] : null;
-
-			b = d.createElement("base");
-			b.setAttribute('href', u);
-			h.appendChild(b);
-		} else {
-			if (u == "" || u == null)
-				b.parentNode.removeChild(b);
-			else
-				b.setAttribute('href', u);
-		}
-	},
-
-	/**
-	 * Returns the currently selected element. This is was added for compatiblity and is deprecated.
-	 * Please use inst.selection.getFocusElement instead.
-	 *
-	 * @return Currently selected element.
-	 * @type HTMLElement
-	 * @deprecated
-	 */
-	getFocusElement : function() {
-		return this.selection.getFocusElement();
-	},
-
-	/**
-	 * Returns the browsers selection instance. This is was added for compatiblity and is deprecated.
-	 * Please use inst.selection.getSel instead.
-	 *
-	 * @return Browser selection instance.
-	 * @type DOMSelection
-	 * @deprecated
-	 */
-	getSel : function() {
-		return this.selection.getSel();
-	},
-
-	/**
-	 * Returns the browsers selections first range instance. This is was added for compatiblity and is deprecated.
-	 * Please use inst.selection.getRng instead.
-	 *
-	 * @return Browsers selections first range instance.
-	 * @type DOMRange
-	 * @deprecated
-	 */
-	getRng : function() {
-		return this.selection.getRng();
-	}
-};
-
-
- - - - - - - - - - - - - - - -
- -
- - -
- - - -
Documentation generated by JSDoc on Fri Feb 24 13:38:20 2006
- - diff --git a/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_DOMUtils.class.js.html b/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_DOMUtils.class.js.html deleted file mode 100644 index 89b8cf1eb87..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_DOMUtils.class.js.html +++ /dev/null @@ -1,525 +0,0 @@ - - - - - Overview - - - - - - - - - - - - - - - - - - -
- - -
- - -
-
- -

TinyMCE_DOMUtils.class.js

- -
- - - - -

Summary

-

- - No overview generated for 'TinyMCE_DOMUtils.class.js'

- -

- -
- - - - - - - - -
/**
- * $RCSfile$
- * $Revision$
- * $Date$
- *
- * @author Moxiecode
- * @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
- */
-
-/* The contents of this file will be wrapped in a class later on */
-
-/**
- * Returns a element by a specific attribute and it's value.
- *
- * @param {HTMLElement} n Element to search in.
- * @param {string} e Element name to search for.
- * @param {string} a Attribute name to search for.
- * @param {string} v Attribute value to search for.
- * @return HTML element that matched the criterias or null on failure.
- * @type HTMLElement
- */
-TinyMCE_Engine.prototype.getElementByAttributeValue = function(n, e, a, v) {
-	return (n = this.getElementsByAttributeValue(n, e, a, v)).length == 0 ? null : n[0];
-};
-
-/**
- * Returns a element array by a specific attribute and it's value.
- *
- * @param {HTMLElement} n Element to search in.
- * @param {string} e Element name to search for.
- * @param {string} a Attribute name to search for.
- * @param {string} v Attribute value to search for.
- * @return HTML element array that matched the criterias or null on failure.
- * @type Array
- */
-TinyMCE_Engine.prototype.getElementsByAttributeValue = function(n, e, a, v) {
-	var i, nl = n.getElementsByTagName(e), o = new Array();
-
-	for (i=0; i<nl.length; i++) {
-		if (tinyMCE.getAttrib(nl[i], a).indexOf(v) != -1)
-			o[o.length] = nl[i];
-	}
-
-	return o;
-};
-
-/**
- * Returns true/false if the specified node is a block element or not.
- *
- * @param {HTMLNode} n Node to verify.
- * @return true/false if the specified node is a block element or not.
- * @type boolean
- */
-TinyMCE_Engine.prototype.isBlockElement = function(n) {
-	return n != null && n.nodeType == 1 && this.blockRegExp.test(n.nodeName);
-};
-
-/**
- * Returns the first block element parent of the specified node.
- *
- * @param {HTMLNode} n Node get parent block element for.
- * @return First block element parent of the specified node or null if it wasn't found.
- * @type HTMLElement
- */
-TinyMCE_Engine.prototype.getParentBlockElement = function(n) {
-	while (n) {
-		if (this.isBlockElement(n))
-			return n;
-
-		n = n.parentNode;
-	}
-
-	return null;
-};
-
-/**
- * Inserts a node after the specific node.
- *
- * @param {HTMLNode} n New node to insert.
- * @param {HTMLNode} r Reference node to insert after.
- */
-TinyMCE_Engine.prototype.insertAfter = function(n, r){
-	if (r.nextSibling)
-		r.parentNode.insertBefore(n, r.nextSibling);
-	else
-		r.parentNode.appendChild(n);
-};
-
-/**
- * Sets the innerHTML property of a element, this function also
- * fixes a MSIE bug where the first comment is removed.
- *
- * @param {HTMLElement} e Element to insert HTML in.
- * @param {string} h HTML code to insert into innerHTML.
- */
-TinyMCE_Engine.prototype.setInnerHTML = function(e, h) {
-	if (tinyMCE.isMSIE && !tinyMCE.isOpera) {
-		e.innerHTML = tinyMCE.uniqueTag + h;
-		e.firstChild.removeNode(true);
-	} else {
-		h = this.fixGeckoBaseHREFBug(1, e, h);
-		e.innerHTML = h;
-		this.fixGeckoBaseHREFBug(2, e, h);
-	}
-};
-
-/**
- * Returns the outer HTML of a element, this uses the outerHTML
- * property in MSIE and Opera and a workaround for Gecko.
- *
- * @param {HTMLElement} e HTML element to get outerHTML from.
- * @return HTML content string.
- * @type string
- */
-TinyMCE_Engine.prototype.getOuterHTML = function(e) {
-	if (tinyMCE.isMSIE)
-		return e.outerHTML;
-
-	var d = e.ownerDocument.createElement("body");
-	d.appendChild(e);
-	return d.innerHTML;
-};
-
-/**
- * Sets the outer HTML of a element, this uses the outerHTML
- * property in MSIE and Opera and a workaround for Gecko.
- *
- * @param {HTMLElement} e HTML element to set outerHTML on.
- * @param {string} h HTML string to set in property.
- */
-TinyMCE_Engine.prototype.setOuterHTML = function(e, h) {
-	if (tinyMCE.isMSIE) {
-		e.outerHTML = h;
-		return;
-	}
-
-	var d = e.ownerDocument.createElement("body");
-	d.innerHTML = h;
-	e.parentNode.replaceChild(d.firstChild, e);
-};
-
-/**
- * Returns a element by id, this will also search the form names to match the id.
- *
- * @param {string} id Id of element.
- * @return HTML element that matches the id.
- * @type HTMLElement
- */
-TinyMCE_Engine.prototype._getElementById = function(id) {
-	var e, i, j, f;
-
-	e = document.getElementById(id);
-	if (!e) {
-		f = document.forms;
-
-		for (i=0; i<f.length; i++) {
-			for (j=0; j<f[i].elements.length; j++) {
-				if (f[i].elements[j].name == id) {
-					e = f[i].elements[j];
-					break;
-				}
-			}
-		}
-	}
-
-	return e;
-};
-
-/**
- * Returns a array of nodes selected retrived from the child nodes of the specified node.
- *
- * @param {HTMLNode} n Node to get children from.
- * @param {Array} na Array to fill with children.
- * @param {int} t Node type to get.
- * @param {string} nn Node name of items to retrive.
- * @return Node array.
- * @type Array
- */
-TinyMCE_Engine.prototype.getNodeTree = function(n, na, t, nn) {
-	var i;
-
-	if (typeof(t) == "undefined" || n.nodeType == t && (typeof(nn) == "undefined" || n.nodeName == nn))
-		na[na.length] = n;
-
-	if (n.hasChildNodes()) {
-		for (i=0; i<n.childNodes.length; i++)
-			tinyMCE.getNodeTree(n.childNodes[i], na, t, nn);
-	}
-
-	return na;
-};
-
-/**
- * Returns the parent element of the specified node based on the search criteria.
- *
- * @param {HTMLNode} node Node to get parent element of.
- * @param {string} names Comma separated list of element names to get.
- * @param {string} attrib_name Optional attribute name to match.
- * @param {string} attrib_value Optional attribute value to match.
- * @return HTMLElement or null based on search criteras.
- * @type HTMLElement
- */
-TinyMCE_Engine.prototype.getParentElement = function(node, names, attrib_name, attrib_value) {
-	if (typeof(names) == "undefined") {
-		if (node.nodeType == 1)
-			return node;
-
-		// Find parent node that is a element
-		while ((node = node.parentNode) != null && node.nodeType != 1) ;
-
-		return node;
-	}
-
-	if (node == null)
-		return null;
-
-	var namesAr = names.toUpperCase().split(',');
-
-	do {
-		for (var i=0; i<namesAr.length; i++) {
-			if (node.nodeName == namesAr[i] || names == "*") {
-				if (typeof(attrib_name) == "undefined")
-					return node;
-				else if (node.getAttribute(attrib_name)) {
-					if (typeof(attrib_value) == "undefined") {
-						if (node.getAttribute(attrib_name) != "")
-							return node;
-					} else if (node.getAttribute(attrib_name) == attrib_value)
-						return node;
-				}
-			}
-		}
-	} while ((node = node.parentNode) != null);
-
-	return null;
-};
-
-/**
- * Returns the attribute value of a element or the default value if it wasn't found.
- *
- * @param {HTMLElement} elm HTML element to get attribute from.
- * @param {string} name Attribute name to retrive.
- * @param {string} default_value Optional default value to return, this value defaults to a empty string.
- * @return Attribute value or default value if it wasn't found in element.
- * @type string
- */
-TinyMCE_Engine.prototype.getAttrib = function(elm, name, default_value) {
-	if (typeof(default_value) == "undefined")
-		default_value = "";
-
-	// Not a element
-	if (!elm || elm.nodeType != 1)
-		return default_value;
-
-	var v = elm.getAttribute(name);
-
-	// Try className for class attrib
-	if (name == "class" && !v)
-		v = elm.className;
-
-	// Workaround for a issue with Firefox 1.5rc2+
-	if (tinyMCE.isGecko && name == "src" && elm.src != null && elm.src != "")
-		v = elm.src;
-
-	// Workaround for a issue with Firefox 1.5rc2+
-	if (tinyMCE.isGecko && name == "href" && elm.href != null && elm.href != "")
-		v = elm.href;
-
-	if (name == "http-equiv" && tinyMCE.isMSIE)
-		v = elm.httpEquiv;
-
-	if (name == "style" && !tinyMCE.isOpera)
-		v = elm.style.cssText;
-
-	return (v && v != "") ? v : default_value;
-};
-
-/**
- * Sets the attribute value for a specific attribute.
- *
- * @param {HTMLElement} element HTML element to set attribute on.
- * @param {string} name Attribute name to set.
- * @param {string} value Attribute value to set.
- * @param {boolean} fix_value Optional fix value state, if true only number data will be accepted.
- */
-TinyMCE_Engine.prototype.setAttrib = function(element, name, value, fix_value) {
-	if (typeof(value) == "number" && value != null)
-		value = "" + value;
-
-	if (fix_value) {
-		if (value == null)
-			value = "";
-
-		var re = new RegExp('[^0-9%]', 'g');
-		value = value.replace(re, '');
-	}
-
-	if (name == "style")
-		element.style.cssText = value;
-
-	if (name == "class")
-		element.className = value;
-
-	if (value != null && value != "" && value != -1)
-		element.setAttribute(name, value);
-	else
-		element.removeAttribute(name);
-};
-
-/**
- * Sets a style attribute item value.
- *
- * @param {HTMLElement} elm HTML element to set style attribute item on.
- * @param {string} name Style item name to set.
- * @param {string} value Style item value to set.
- */
-TinyMCE_Engine.prototype.setStyleAttrib = function(elm, name, value) {
-	eval('elm.style.' + name + '=value;');
-
-	// Style attrib deleted
-	if (tinyMCE.isMSIE && value == null || value == '') {
-		var str = tinyMCE.serializeStyle(tinyMCE.parseStyle(elm.style.cssText));
-		elm.style.cssText = str;
-		elm.setAttribute("style", str);
-	}
-};
-
-/**
- * Switches the CSS class of the specified element. This method also caches the
- * elements in a lookup table for performance. This should only be used for TinyMCE main UI controls
- * like buttons or select elements.
- *
- * @param {HTMLElement} ei Element to set CSS class on.
- * @param {string} c CSS class to set.
- */
-TinyMCE_Engine.prototype.switchClass = function(ei, c) {
-	var e;
-
-	if (tinyMCE.switchClassCache[ei])
-		e = tinyMCE.switchClassCache[ei];
-	else
-		e = tinyMCE.switchClassCache[ei] = document.getElementById(ei);
-
-	if (e) {
-		// Keep tile mode
-		if (tinyMCE.settings.button_tile_map && e.className && e.className.indexOf('mceTiledButton') == 0)
-			c = 'mceTiledButton ' + c;
-
-		e.className = c;
-	}
-};
-
-/**
- * Returns the absolute x, y position of a node. The position will be returned in a object with
- * two properties absLeft and absTop.
- *
- * @param {HTMLNode} n HTML element to get x, y position from.
- * @return Absolute position of the specified element.
- * @type TinyMCE_ElementPosition
- */
-TinyMCE_Engine.prototype.getAbsPosition = function(n) {
-	var p = {absLeft : 0, absTop : 0};
-
-	while (n) {
-		p.absLeft += n.offsetLeft;
-		p.absTop += n.offsetTop;
-		n = n.offsetParent;
-	}
-
-	return p;
-};
-
-
- - - - - - - - - - - - - - - -
- -
- - -
- - - -
Documentation generated by JSDoc on Fri Feb 24 13:38:20 2006
- - diff --git a/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_Debug.class.js.html b/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_Debug.class.js.html deleted file mode 100644 index 4591bfeb336..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_Debug.class.js.html +++ /dev/null @@ -1,193 +0,0 @@ - - - - - Overview - - - - - - - - - - - - - - - - - - -
- - -
- - -
-
- -

TinyMCE_Debug.class.js

- -
- - - - -

Summary

-

- - No overview generated for 'TinyMCE_Debug.class.js'

- -

- -
- - - - - - - - -
/**
- * $RCSfile$
- * $Revision$
- * $Date$
- *
- * @author Moxiecode
- * @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
- */
-
-/* The contents of this file will be wrapped in a class later on */
-
-/**
- * Debugs the specified message to a screen.
- *
- * @param {1..n} Numerous arguments that will be outputed.
- */
-TinyMCE_Engine.prototype.debug = function() {
-	var m = "", e, a, i;
-
-	e = document.getElementById("tinymce_debug");
-	if (!e) {
-		var d = document.createElement("div");
-		d.setAttribute("className", "debugger");
-		d.className = "debugger";
-		d.innerHTML = 'Debug output:<textarea id="tinymce_debug" style="width: 100%; height: 300px" wrap="nowrap" mce_editable="false"></textarea>';
-
-		document.body.appendChild(d);
-		e = document.getElementById("tinymce_debug");
-	}
-
-	a = this.debug.arguments;
-	for (i=0; i<a.length; i++) {
-		m += a[i];
-		if (i<a.length-1)
-			m += ', ';
-	}
-
-	e.value += m + "\n";
-};
-
-
- - - - - - - - - - - - - - - -
- -
- - -
- - - -
Documentation generated by JSDoc on Fri Feb 24 13:38:20 2006
- - diff --git a/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_Engine.class.js.html b/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_Engine.class.js.html deleted file mode 100644 index 5685e523910..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_Engine.class.js.html +++ /dev/null @@ -1,2680 +0,0 @@ - - - - - Overview - - - - - - - - - - - - - - - - - - -
- - -
- - -
-
- -

TinyMCE_Engine.class.js

- -
- - - - -

Summary

-

- - No overview generated for 'TinyMCE_Engine.class.js'

- -

- -
- - - - - - - - - - - - -
- - Class Summary - -
TinyMCE_Engine 
-
- - - - - - - -
/**
- * $RCSfile$
- * $Revision$
- * $Date$
- *
- * @author Moxiecode
- * @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
- */
-
-/**
- * Core engine class for TinyMCE, a instance of this class is available as a global called tinyMCE.
- *
- * @constructor
- */
-function TinyMCE_Engine() {
-	this.majorVersion = "2";
-	this.minorVersion = "0.3";
-	this.releaseDate = "2006-02-13";
-
-	this.instances = new Array();
-	this.switchClassCache = new Array();
-	this.windowArgs = new Array();
-	this.loadedFiles = new Array();
-	this.configs = new Array();
-	this.currentConfig = 0;
-	this.eventHandlers = new Array();
-
-	// Browser check
-	var ua = navigator.userAgent;
-	this.isMSIE = (navigator.appName == "Microsoft Internet Explorer");
-	this.isMSIE5 = this.isMSIE && (ua.indexOf('MSIE 5') != -1);
-	this.isMSIE5_0 = this.isMSIE && (ua.indexOf('MSIE 5.0') != -1);
-	this.isGecko = ua.indexOf('Gecko') != -1;
-	this.isSafari = ua.indexOf('Safari') != -1;
-	this.isOpera = ua.indexOf('Opera') != -1;
-	this.isMac = ua.indexOf('Mac') != -1;
-	this.isNS7 = ua.indexOf('Netscape/7') != -1;
-	this.isNS71 = ua.indexOf('Netscape/7.1') != -1;
-	this.dialogCounter = 0;
-	this.plugins = new Array();
-	this.themes = new Array();
-	this.loadedPlugins = new Array();
-	this.buttonMap = new Array();
-	this.isLoaded = false;
-
-	// Fake MSIE on Opera and if Opera fakes IE, Gecko or Safari cancel those
-	if (this.isOpera) {
-		this.isMSIE = true;
-		this.isGecko = false;
-		this.isSafari =  false;
-	}
-
-	// TinyMCE editor id instance counter
-	this.idCounter = 0;
-};
-
-TinyMCE_Engine.prototype = {
-	/**
-	 * Initializes TinyMCE with the specific configuration settings. This method
-	 * may be called multiple times when multiple instances with diffrent settings is to be created.
-	 *
-	 * @param {Array} Name/Value array of initialization settings.
-	 */
-	init : function(settings) {
-		var theme;
-
-		this.settings = settings;
-
-		// Check if valid browser has execcommand support
-		if (typeof(document.execCommand) == 'undefined')
-			return;
-
-		// Get script base path
-		if (!tinyMCE.baseURL) {
-			var elements = document.getElementsByTagName('script');
-
-			for (var i=0; i<elements.length; i++) {
-				if (elements[i].src && (elements[i].src.indexOf("tiny_mce.js") != -1 || elements[i].src.indexOf("tiny_mce_dev.js") != -1 || elements[i].src.indexOf("tiny_mce_src.js") != -1 || elements[i].src.indexOf("tiny_mce_gzip") != -1)) {
-					var src = elements[i].src;
-
-					tinyMCE.srcMode = (src.indexOf('_src') != -1 || src.indexOf('_dev') != -1) ? '_src' : '';
-					tinyMCE.gzipMode = src.indexOf('_gzip') != -1;
-					src = src.substring(0, src.lastIndexOf('/'));
-
-					if (settings.exec_mode == "src" || settings.exec_mode == "normal")
-						tinyMCE.srcMode = settings.exec_mode == "src" ? '_src' : '';
-
-					tinyMCE.baseURL = src;
-					break;
-				}
-			}
-		}
-
-		// Get document base path
-		this.documentBasePath = document.location.href;
-		if (this.documentBasePath.indexOf('?') != -1)
-			this.documentBasePath = this.documentBasePath.substring(0, this.documentBasePath.indexOf('?'));
-		this.documentURL = this.documentBasePath;
-		this.documentBasePath = this.documentBasePath.substring(0, this.documentBasePath.lastIndexOf('/'));
-
-		// If not HTTP absolute
-		if (tinyMCE.baseURL.indexOf('://') == -1 && tinyMCE.baseURL.charAt(0) != '/') {
-			// If site absolute
-			tinyMCE.baseURL = this.documentBasePath + "/" + tinyMCE.baseURL;
-		}
-
-		// Set default values on settings
-		this._def("mode", "none");
-		this._def("theme", "advanced");
-		this._def("plugins", "", true);
-		this._def("language", "en");
-		this._def("docs_language", this.settings['language']);
-		this._def("elements", "");
-		this._def("textarea_trigger", "mce_editable");
-		this._def("editor_selector", "");
-		this._def("editor_deselector", "mceNoEditor");
-		this._def("valid_elements", "+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]");
-		this._def("extended_valid_elements", "");
-		this._def("invalid_elements", "");
-		this._def("encoding", "");
-		this._def("urlconverter_callback", tinyMCE.getParam("urlconvertor_callback", "TinyMCE_Engine.prototype.convertURL"));
-		this._def("save_callback", "");
-		this._def("debug", false);
-		this._def("force_br_newlines", false);
-		this._def("force_p_newlines", true);
-		this._def("add_form_submit_trigger", true);
-		this._def("relative_urls", true);
-		this._def("remove_script_host", true);
-		this._def("focus_alert", true);
-		this._def("document_base_url", this.documentURL);
-		this._def("visual", true);
-		this._def("visual_table_class", "mceVisualAid");
-		this._def("setupcontent_callback", "");
-		this._def("fix_content_duplication", true);
-		this._def("custom_undo_redo", true);
-		this._def("custom_undo_redo_levels", -1);
-		this._def("custom_undo_redo_keyboard_shortcuts", true);
-		this._def("custom_undo_redo_restore_selection", true);
-		this._def("verify_html", true);
-		this._def("apply_source_formatting", false);
-		this._def("directionality", "ltr");
-		this._def("cleanup_on_startup", false);
-		this._def("inline_styles", false);
-		this._def("convert_newlines_to_brs", false);
-		this._def("auto_reset_designmode", true);
-		this._def("entities", "160,nbsp,161,iexcl,162,cent,163,pound,164,curren,165,yen,166,brvbar,167,sect,168,uml,169,copy,170,ordf,171,laquo,172,not,173,shy,174,reg,175,macr,176,deg,177,plusmn,178,sup2,179,sup3,180,acute,181,micro,182,para,183,middot,184,cedil,185,sup1,186,ordm,187,raquo,188,frac14,189,frac12,190,frac34,191,iquest,192,Agrave,193,Aacute,194,Acirc,195,Atilde,196,Auml,197,Aring,198,AElig,199,Ccedil,200,Egrave,201,Eacute,202,Ecirc,203,Euml,204,Igrave,205,Iacute,206,Icirc,207,Iuml,208,ETH,209,Ntilde,210,Ograve,211,Oacute,212,Ocirc,213,Otilde,214,Ouml,215,times,216,Oslash,217,Ugrave,218,Uacute,219,Ucirc,220,Uuml,221,Yacute,222,THORN,223,szlig,224,agrave,225,aacute,226,acirc,227,atilde,228,auml,229,aring,230,aelig,231,ccedil,232,egrave,233,eacute,234,ecirc,235,euml,236,igrave,237,iacute,238,icirc,239,iuml,240,eth,241,ntilde,242,ograve,243,oacute,244,ocirc,245,otilde,246,ouml,247,divide,248,oslash,249,ugrave,250,uacute,251,ucirc,252,uuml,253,yacute,254,thorn,255,yuml,402,fnof,913,Alpha,914,Beta,915,Gamma,916,Delta,917,Epsilon,918,Zeta,919,Eta,920,Theta,921,Iota,922,Kappa,923,Lambda,924,Mu,925,Nu,926,Xi,927,Omicron,928,Pi,929,Rho,931,Sigma,932,Tau,933,Upsilon,934,Phi,935,Chi,936,Psi,937,Omega,945,alpha,946,beta,947,gamma,948,delta,949,epsilon,950,zeta,951,eta,952,theta,953,iota,954,kappa,955,lambda,956,mu,957,nu,958,xi,959,omicron,960,pi,961,rho,962,sigmaf,963,sigma,964,tau,965,upsilon,966,phi,967,chi,968,psi,969,omega,977,thetasym,978,upsih,982,piv,8226,bull,8230,hellip,8242,prime,8243,Prime,8254,oline,8260,frasl,8472,weierp,8465,image,8476,real,8482,trade,8501,alefsym,8592,larr,8593,uarr,8594,rarr,8595,darr,8596,harr,8629,crarr,8656,lArr,8657,uArr,8658,rArr,8659,dArr,8660,hArr,8704,forall,8706,part,8707,exist,8709,empty,8711,nabla,8712,isin,8713,notin,8715,ni,8719,prod,8721,sum,8722,minus,8727,lowast,8730,radic,8733,prop,8734,infin,8736,ang,8743,and,8744,or,8745,cap,8746,cup,8747,int,8756,there4,8764,sim,8773,cong,8776,asymp,8800,ne,8801,equiv,8804,le,8805,ge,8834,sub,8835,sup,8836,nsub,8838,sube,8839,supe,8853,oplus,8855,otimes,8869,perp,8901,sdot,8968,lceil,8969,rceil,8970,lfloor,8971,rfloor,9001,lang,9002,rang,9674,loz,9824,spades,9827,clubs,9829,hearts,9830,diams,34,quot,38,amp,60,lt,62,gt,338,OElig,339,oelig,352,Scaron,353,scaron,376,Yuml,710,circ,732,tilde,8194,ensp,8195,emsp,8201,thinsp,8204,zwnj,8205,zwj,8206,lrm,8207,rlm,8211,ndash,8212,mdash,8216,lsquo,8217,rsquo,8218,sbquo,8220,ldquo,8221,rdquo,8222,bdquo,8224,dagger,8225,Dagger,8240,permil,8249,lsaquo,8250,rsaquo,8364,euro", true);
-		this._def("entity_encoding", "named");
-		this._def("cleanup_callback", "");
-		this._def("add_unload_trigger", true);
-		this._def("ask", false);
-		this._def("nowrap", false);
-		this._def("auto_resize", false);
-		this._def("auto_focus", false);
-		this._def("cleanup", true);
-		this._def("remove_linebreaks", true);
-		this._def("button_tile_map", false);
-		this._def("submit_patch", true);
-		this._def("browsers", "msie,safari,gecko,opera", true);
-		this._def("dialog_type", "window");
-		this._def("accessibility_warnings", true);
-		this._def("accessibility_focus", true);
-		this._def("merge_styles_invalid_parents", "");
-		this._def("force_hex_style_colors", true);
-		this._def("trim_span_elements", true);
-		this._def("convert_fonts_to_spans", false);
-		this._def("doctype", '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">');
-		this._def("font_size_classes", '');
-		this._def("font_size_style_values", 'xx-small,x-small,small,medium,large,x-large,xx-large', true);
-		this._def("event_elements", 'a,img', true);
-		this._def("convert_urls", true);
-		this._def("table_inline_editing", false);
-		this._def("object_resizing", true);
-		this._def("custom_shortcuts", true);
-
-		// Browser check IE
-		if (this.isMSIE && this.settings['browsers'].indexOf('msie') == -1)
-			return;
-
-		// Browser check Gecko
-		if (this.isGecko && this.settings['browsers'].indexOf('gecko') == -1)
-			return;
-
-		// Browser check Safari
-		if (this.isSafari && this.settings['browsers'].indexOf('safari') == -1)
-			return;
-
-		// Browser check Opera
-		if (this.isOpera && this.settings['browsers'].indexOf('opera') == -1)
-			return;
-
-		// If not super absolute make it so
-		var baseHREF = tinyMCE.settings['document_base_url'];
-		var h = document.location.href;
-		var p = h.indexOf('://');
-		if (p > 0 && document.location.protocol != "file:") {
-			p = h.indexOf('/', p + 3);
-			h = h.substring(0, p);
-
-			if (baseHREF.indexOf('://') == -1)
-				baseHREF = h + baseHREF;
-
-			tinyMCE.settings['document_base_url'] = baseHREF;
-			tinyMCE.settings['document_base_prefix'] = h;
-		}
-
-		// Trim away query part
-		if (baseHREF.indexOf('?') != -1)
-			baseHREF = baseHREF.substring(0, baseHREF.indexOf('?'));
-
-		this.settings['base_href'] = baseHREF.substring(0, baseHREF.lastIndexOf('/')) + "/";
-
-		theme = this.settings['theme'];
-		this.blockRegExp = new RegExp("^(h[1-6]|p|div|address|pre|form|table|li|ol|ul|td|blockquote|center|dl|dir|fieldset|form|noscript|noframes|menu|isindex)$", "i");
-		this.posKeyCodes = new Array(13,45,36,35,33,34,37,38,39,40);
-		this.uniqueURL = 'http://tinymce.moxiecode.cp/mce_temp_url'; // Make unique URL non real URL
-		this.uniqueTag = '<div id="mceTMPElement" style="display: none">TMP</div>';
-		this.callbacks = new Array('onInit', 'getInfo', 'getEditorTemplate', 'setupContent', 'onChange', 'onPageLoad', 'handleNodeChange', 'initInstance', 'execCommand', 'getControlHTML', 'handleEvent', 'cleanup');
-
-		// Theme url
-		this.settings['theme_href'] = tinyMCE.baseURL + "/themes/" + theme;
-
-		if (!tinyMCE.isMSIE)
-			this.settings['force_br_newlines'] = false;
-
-		if (tinyMCE.getParam("content_css", false)) {
-			var cssPath = tinyMCE.getParam("content_css", "");
-
-			// Is relative
-			if (cssPath.indexOf('://') == -1 && cssPath.charAt(0) != '/')
-				this.settings['content_css'] = this.documentBasePath + "/" + cssPath;
-			else
-				this.settings['content_css'] = cssPath;
-		} else
-			this.settings['content_css'] = '';
-
-		if (tinyMCE.getParam("popups_css", false)) {
-			var cssPath = tinyMCE.getParam("popups_css", "");
-
-			// Is relative
-			if (cssPath.indexOf('://') == -1 && cssPath.charAt(0) != '/')
-				this.settings['popups_css'] = this.documentBasePath + "/" + cssPath;
-			else
-				this.settings['popups_css'] = cssPath;
-		} else
-			this.settings['popups_css'] = tinyMCE.baseURL + "/themes/" + theme + "/css/editor_popup.css";
-
-		if (tinyMCE.getParam("editor_css", false)) {
-			var cssPath = tinyMCE.getParam("editor_css", "");
-
-			// Is relative
-			if (cssPath.indexOf('://') == -1 && cssPath.charAt(0) != '/')
-				this.settings['editor_css'] = this.documentBasePath + "/" + cssPath;
-			else
-				this.settings['editor_css'] = cssPath;
-		} else
-			this.settings['editor_css'] = tinyMCE.baseURL + "/themes/" + theme + "/css/editor_ui.css";
-
-		if (tinyMCE.settings['debug']) {
-			var msg = "Debug: \n";
-
-			msg += "baseURL: " + this.baseURL + "\n";
-			msg += "documentBasePath: " + this.documentBasePath + "\n";
-			msg += "content_css: " + this.settings['content_css'] + "\n";
-			msg += "popups_css: " + this.settings['popups_css'] + "\n";
-			msg += "editor_css: " + this.settings['editor_css'] + "\n";
-
-			alert(msg);
-		}
-
-		// Only do this once
-		if (this.configs.length == 0) {
-			// Is Safari enabled
-			if (this.isSafari && this.getParam('safari_warning', false))
-				alert("Safari support is very limited and should be considered experimental.\nSo there is no need to even submit bugreports on this early version.\nYou can disable this message by setting: safari_warning option to false");
-
-			if (typeof(TinyMCECompressed) == "undefined") {
-				tinyMCE.addEvent(window, "DOMContentLoaded", TinyMCE_Engine.prototype.onLoad);
-
-				if (tinyMCE.isMSIE && !tinyMCE.isOpera) {
-					if (document.body)
-						tinyMCE.addEvent(document.body, "readystatechange", TinyMCE_Engine.prototype.onLoad);
-					else
-						tinyMCE.addEvent(document, "readystatechange", TinyMCE_Engine.prototype.onLoad);
-				}
-
-				tinyMCE.addEvent(window, "load", TinyMCE_Engine.prototype.onLoad);
-				tinyMCE._addUnloadEvents();
-			}
-		}
-
-		this.loadScript(tinyMCE.baseURL + '/themes/' + this.settings['theme'] + '/editor_template' + tinyMCE.srcMode + '.js');
-		this.loadScript(tinyMCE.baseURL + '/langs/' + this.settings['language'] +  '.js');
-		this.loadCSS(this.settings['editor_css']);
-
-		// Add plugins
-		var p = tinyMCE.getParam('plugins', '', true, ',');
-		if (p.length > 0) {
-			for (var i=0; i<p.length; i++) {
-				if (p[i].charAt(0) != '-')
-					this.loadScript(tinyMCE.baseURL + '/plugins/' + p[i] + '/editor_plugin' + tinyMCE.srcMode + '.js');
-			}
-		}
-
-		// Setup entities
-		settings['cleanup_entities'] = new Array();
-		var entities = tinyMCE.getParam('entities', '', true, ',');
-		for (var i=0; i<entities.length; i+=2)
-			settings['cleanup_entities']['c' + entities[i]] = entities[i+1];
-
-		// Save away this config
-		settings['index'] = this.configs.length;
-		this.configs[this.configs.length] = settings;
-	},
-
-	/**
-	 * Adds unload event handles to execute triggerSave.
-	 *
-	 * @private
-	 */
-	_addUnloadEvents : function() {
-		if (tinyMCE.isMSIE) {
-			if (tinyMCE.settings['add_unload_trigger']) {
-				tinyMCE.addEvent(window, "unload", TinyMCE_Engine.prototype.unloadHandler);
-				tinyMCE.addEvent(window.document, "beforeunload", TinyMCE_Engine.prototype.unloadHandler);
-			}
-		} else {
-			if (tinyMCE.settings['add_unload_trigger'])
-				tinyMCE.addEvent(window, "unload", function () {tinyMCE.triggerSave(true, true);});
-		}
-	},
-
-	/**
-	 * Assigns a default value for a specific config parameter.
-	 *
-	 * @param {string} key Settings key to add default value to.
-	 * @param {object} def_val Default value to assign if the settings option isn't defined.
-	 * @param {boolean} t Trim all white space, if true all whitespace will be removed from option value.
-	 * @private
-	 */
-	_def : function(key, def_val, t) {
-		var v = tinyMCE.getParam(key, def_val);
-
-		v = t ? v.replace(/\s+/g,"") : v;
-
-		this.settings[key] = v;
-	},
-
-	/**
-	 * Returns true/false if the specified plugin is loaded or not.
-	 *
-	 * @param {string} n Plugin name to look for.
-	 * @return true/false if the specified plugin is loaded or not.
-	 * @type boolean
-	 */
-	hasPlugin : function(n) {
-		return typeof(this.plugins[n]) != "undefined" && this.plugins[n] != null;
-	},
-
-	/**
-	 * Adds the specified plugin to the list of loaded plugins, this will also setup the baseURL
-	 * property of the plugin.
-	 *
-	 * @param {string} Plugin name/id.
-	 * @param {TinyMCE_Plugin} p Plugin instance to add.
-	 */
-	addPlugin : function(n, p) {
-		p.baseURL = tinyMCE.baseURL + "/plugins/" + n;
-		this.plugins[n] = p;
-	},
-
-	/**
-	 * Sets the baseURL of the specified plugin, this is useful if the plugin is loaded from
-	 * a external location.
-	 *
-	 * @param {string} n Plugin name/id to set base URL on. This have to be added before.
-	 * @param {string} u Base URL of plugin, this string should be the URL prefix for the plugin without a trailing slash.
-	 */
-	setPluginBaseURL : function(n, u) {
-		this.plugins[n].baseURL = u;
-	},
-
-	/**
-	 * Returns true/false if the specified theme is loaded or not.
-	 *
-	 * @param {string} n Theme name/id to check for.
-	 * @return true/false if the specified theme is loaded or not.
-	 * @type boolean
-	 */
-	hasTheme : function(n) {
-		return typeof(this.themes[n]) != "undefined" && this.themes[n] != null;
-	},
-
-	/**
-	 * Adds the specified theme in to the list of loaded themes.
-	 *
-	 * @param {string} n Theme name/id to add the object reference to.
-	 * @param {TinyMCE_Theme} t Theme instance to add to the loaded list.
-	 */
-	addTheme : function(n, t) {
-		this.themes[n] = t;
-	},
-
-	/**
-	 * Loads the specified script by writing the a script tag to the current page.
-	 * This will also check if the file has been loaded before. This function should only be used
-	 * when the page is loading.
-	 *
-	 * @param {string} url Script URL to load.
-	 */
-	loadScript : function(url) {
-		if (tinyMCE.gzipMode)
-			return;
-
-		for (var i=0; i<this.loadedFiles.length; i++) {
-			if (this.loadedFiles[i] == url)
-				return;
-		}
-
-		document.write('<sc'+'ript language="javascript" type="text/javascript" src="' + url + '"></script>');
-
-		this.loadedFiles[this.loadedFiles.length] = url;
-	},
-
-	/**
-	 * Loads the specified CSS by writing the a link tag to the current page.
-	 * This will also check if the file has been loaded before. This function should only be used
-	 * when the page is loading.
-	 *
-	 * @param {string} url CSS file URL to load.
-	 */
-	loadCSS : function(url) {
-		for (var i=0; i<this.loadedFiles.length; i++) {
-			if (this.loadedFiles[i] == url)
-				return;
-		}
-
-		document.write('<link href="' + url + '" rel="stylesheet" type="text/css" />');
-
-		this.loadedFiles[this.loadedFiles.length] = url;
-	},
-
-	/**
-	 * Imports a CSS file into a allready loaded document. This will add a link element
-	 * to the head element of the document.
-	 *
-	 * @param {DOMDocument} doc DOM Document to load CSS into.
-	 * @param {string} css_file CSS File URL to load.
-	 */
-	importCSS : function(doc, css_file) {
-		if (css_file == '')
-			return;
-
-		if (typeof(doc.createStyleSheet) == "undefined") {
-			var elm = doc.createElement("link");
-
-			elm.rel = "stylesheet";
-			elm.href = css_file;
-
-			if ((headArr = doc.getElementsByTagName("head")) != null && headArr.length > 0)
-				headArr[0].appendChild(elm);
-		} else
-			var styleSheet = doc.createStyleSheet(css_file);
-	},
-
-	/**
-	 * Displays a confirm dialog when a user clicks/focus a textarea that is to be converted into
-	 * a TinyMCE instance.
-	 *
-	 * @param {DOMEvent} e DOM event instance.
-	 * @param {Array} settings Name/Value array of initialization settings.
-	 */
-	confirmAdd : function(e, settings) {
-		var elm = tinyMCE.isMSIE ? event.srcElement : e.target;
-		var elementId = elm.name ? elm.name : elm.id;
-
-		tinyMCE.settings = settings;
-
-		if (!elm.getAttribute('mce_noask') && confirm(tinyMCELang['lang_edit_confirm']))
-			tinyMCE.addMCEControl(elm, elementId);
-
-		elm.setAttribute('mce_noask', 'true');
-	},
-
-	/**
-	 * Moves the contents from the hidden textarea to the editor that gets inserted.
-	 *
-	 * @param {string} form_element_name Form element name to move contents from.
-	 * @deprecated
-	 */
-	updateContent : function(form_element_name) {
-		// Find MCE instance linked to given form element and copy it's value
-		var formElement = document.getElementById(form_element_name);
-		for (var n in tinyMCE.instances) {
-			var inst = tinyMCE.instances[n];
-			if (!tinyMCE.isInstance(inst))
-				continue;
-
-			inst.switchSettings();
-
-			if (inst.formElement == formElement) {
-				var doc = inst.getDoc();
-		
-				tinyMCE._setHTML(doc, inst.formElement.value);
-
-				if (!tinyMCE.isMSIE)
-					doc.body.innerHTML = tinyMCE._cleanupHTML(inst, doc, this.settings, doc.body, inst.visualAid);
-			}
-		}
-	},
-
-	/**
-	 * Adds a TinyMCE editor control instance to a specific form element.
-	 *
-	 * @param {HTMLElement} replace_element HTML element object to replace.
-	 * @param {string} form_element_name HTML form element name,
-	 * @param {DOMDocument} target_document Target document that holds the element.
-	 */
-	addMCEControl : function(replace_element, form_element_name, target_document) {
-		var id = "mce_editor_" + tinyMCE.idCounter++;
-		var inst = new TinyMCE_Control(tinyMCE.settings);
-
-		inst.editorId = id;
-		this.instances[id] = inst;
-
-		inst._onAdd(replace_element, form_element_name, target_document);
-	},
-
-	/**
-	 * Removes a TinyMCE editor control instance by id.
-	 *
-	 * @param {string} editor_id Id of editor instance to remove.
-	 */
-	removeMCEControl : function(editor_id) {
-		var inst = tinyMCE.getInstanceById(editor_id);
-
-		if (inst) {
-			inst.switchSettings();
-
-			editor_id = inst.editorId;
-			var html = tinyMCE.getContent(editor_id);
-
-			// Remove editor instance from instances array
-			var tmpInstances = new Array();
-			for (var instanceName in tinyMCE.instances) {
-				var instance = tinyMCE.instances[instanceName];
-				if (!tinyMCE.isInstance(instance))
-					continue;
-
-				if (instanceName != editor_id)
-						tmpInstances[instanceName] = instance;
-			}
-			tinyMCE.instances = tmpInstances;
-
-			tinyMCE.selectedElement = null;
-			tinyMCE.selectedInstance = null;
-
-			// Remove element
-			var replaceElement = document.getElementById(editor_id + "_parent");
-			var oldTargetElement = inst.oldTargetElement;
-			var targetName = oldTargetElement.nodeName.toLowerCase();
-
-			if (targetName == "textarea" || targetName == "input") {
-				// Just show the old text area
-				replaceElement.parentNode.removeChild(replaceElement);
-				oldTargetElement.style.display = "inline";
-				oldTargetElement.value = html;
-			} else {
-				oldTargetElement.innerHTML = html;
-				oldTargetElement.style.display = 'block';
-
-				replaceElement.parentNode.insertBefore(oldTargetElement, replaceElement);
-				replaceElement.parentNode.removeChild(replaceElement);
-			}
-		}
-	},
-
-	/**
-	 * Moves the contents from a TinyMCE editor control instance to the hidden textarea
-	 * that got replaced with TinyMCE. This is executed automaticly on for example form submit.
-	 *
-	 * @param {boolean} skip_cleanup Optional Skip cleanup, simply move the contents as fast as possible.
-	 * @param {boolean} skip_callback Optional Skip callback, don't call the save_callback function.
-	 */
-	triggerSave : function(skip_cleanup, skip_callback) {
-		// Cleanup and set all form fields
-		for (var n in tinyMCE.instances) {
-			var inst = tinyMCE.instances[n];
-			if (!tinyMCE.isInstance(inst))
-				continue;
-
-			inst.switchSettings();
-
-			tinyMCE.settings['preformatted'] = false;
-
-			// Default to false
-			if (typeof(skip_cleanup) == "undefined")
-				skip_cleanup = false;
-
-			// Default to false
-			if (typeof(skip_callback) == "undefined")
-				skip_callback = false;
-
-			tinyMCE._setHTML(inst.getDoc(), inst.getBody().innerHTML);
-
-			// Remove visual aids when cleanup is disabled
-			if (inst.settings['cleanup'] == false) {
-				tinyMCE.handleVisualAid(inst.getBody(), true, false, inst);
-				tinyMCE._setEventsEnabled(inst.getBody(), true);
-			}
-
-			tinyMCE._customCleanup(inst, "submit_content_dom", inst.contentWindow.document.body);
-			var htm = skip_cleanup ? inst.getBody().innerHTML : tinyMCE._cleanupHTML(inst, inst.getDoc(), this.settings, inst.getBody(), this.visualAid, true, true);
-			htm = tinyMCE._customCleanup(inst, "submit_content", htm);
-
-			if (!skip_callback && tinyMCE.settings['save_callback'] != "")
-				var content = eval(tinyMCE.settings['save_callback'] + "(inst.formTargetElementId,htm,inst.getBody());");
-
-			// Use callback content if available
-			if ((typeof(content) != "undefined") && content != null)
-				htm = content;
-
-			// Replace some weird entities (Bug: #1056343)
-			htm = tinyMCE.regexpReplace(htm, "&#40;", "(", "gi");
-			htm = tinyMCE.regexpReplace(htm, "&#41;", ")", "gi");
-			htm = tinyMCE.regexpReplace(htm, "&#59;", ";", "gi");
-			htm = tinyMCE.regexpReplace(htm, "&#34;", "&quot;", "gi");
-			htm = tinyMCE.regexpReplace(htm, "&#94;", "^", "gi");
-
-			if (inst.formElement)
-				inst.formElement.value = htm;
-
-			if (tinyMCE.isSafari && inst.formElement)
-				inst.formElement.innerText = htm;
-		}
-	},
-
-	/**
-	 * Resets a forms TinyMCE instances based on form index.
-	 *
-	 * @param {int} form_index Form index to reset.
-	 */
-	resetForm : function(form_index) {
-		var i, inst, n, formObj = document.forms[form_index];
-
-		for (n in tinyMCE.instances) {
-			inst = tinyMCE.instances[n];
-
-			if (!tinyMCE.isInstance(inst))
-				continue;
-
-			inst.switchSettings();
-
-			for (i=0; i<formObj.elements.length; i++) {
-				if (inst.formTargetElementId == formObj.elements[i].name)
-					inst.getBody().innerHTML = inst.startContent;
-			}
-		}
-	},
-
-	/**
-	 * Executes a command on a specific editor instance by id.
-	 *
-	 * @param {string} editor_id TinyMCE editor control instance id to perform comman on.
-	 * @param {string} command Command name to execute, for example mceLink or Bold.
-	 * @param {boolean} user_interface True/false state if a UI (dialog) should be presented or not.
-	 * @param {object} value Optional command value, this can be anything.
-	 * @param {boolean} focus True/false if the editor instance should be focused first.
-	 */
-	execInstanceCommand : function(editor_id, command, user_interface, value, focus) {
-		var inst = tinyMCE.getInstanceById(editor_id);
-		if (inst) {
-			if (typeof(focus) == "undefined")
-				focus = true;
-
-			if (focus)
-				inst.contentWindow.focus();
-
-			// Reset design mode if lost
-			inst.autoResetDesignMode();
-
-			this.selectedElement = inst.getFocusElement();
-			this.selectedInstance = inst;
-			tinyMCE.execCommand(command, user_interface, value);
-
-			// Cancel event so it doesn't call onbeforeonunlaod
-			if (tinyMCE.isMSIE && window.event != null)
-				tinyMCE.cancelEvent(window.event);
-		}
-	},
-
-	/**
-	 * Executes a command on the selected or last selected TinyMCE editor control instance. This function also handles
-	 * some non instance specific commands like mceAddControl, mceRemoveControl, mceHelp or mceFocus.
-	 *
-	 * @param {string} command Command name to execute, for example mceLink or Bold.
-	 * @param {boolean} user_interface True/false state if a UI (dialog) should be presented or not.
-	 * @param {object} value Optional command value, this can be anything.
-	 */
-	execCommand : function(command, user_interface, value) {
-		// Default input
-		user_interface = user_interface ? user_interface : false;
-		value = value ? value : null;
-
-		if (tinyMCE.selectedInstance)
-			tinyMCE.selectedInstance.switchSettings();
-
-		switch (command) {
-			case 'mceHelp':
-				tinyMCE.openWindow({
-					file : 'about.htm',
-					width : 480,
-					height : 380
-				}, {
-					tinymce_version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion,
-					tinymce_releasedate : tinyMCE.releaseDate,
-					inline : "yes"
-				});
-			return;
-
-			case 'mceFocus':
-				var inst = tinyMCE.getInstanceById(value);
-				if (inst)
-					inst.contentWindow.focus();
-			return;
-
-			case "mceAddControl":
-			case "mceAddEditor":
-				tinyMCE.addMCEControl(tinyMCE._getElementById(value), value);
-				return;
-
-			case "mceAddFrameControl":
-				tinyMCE.addMCEControl(tinyMCE._getElementById(value), value['element'], value['document']);
-				return;
-
-			case "mceRemoveControl":
-			case "mceRemoveEditor":
-				tinyMCE.removeMCEControl(value);
-				return;
-
-			case "mceResetDesignMode":
-				// Resets the designmode state of the editors in Gecko
-				if (!tinyMCE.isMSIE) {
-					for (var n in tinyMCE.instances) {
-						if (!tinyMCE.isInstance(tinyMCE.instances[n]))
-							continue;
-
-						try {
-							tinyMCE.instances[n].getDoc().designMode = "on";
-						} catch (e) {
-							// Ignore any errors
-						}
-					}
-				}
-
-				return;
-		}
-
-		if (this.selectedInstance) {
-			this.selectedInstance.execCommand(command, user_interface, value);
-		} else if (tinyMCE.settings['focus_alert'])
-			alert(tinyMCELang['lang_focus_alert']);
-	},
-
-	/**
-	 * Creates a iframe editor container for the specified element.
-	 *
-	 * @param {HTMLElement} replace_element Element to replace with iframe element.
-	 * @private
-	 */
-	_createIFrame : function(replace_element) {
-		var iframe = document.createElement("iframe");
-		var id = replace_element.getAttribute("id");
-		var aw, ah;
-
-		aw = "" + tinyMCE.settings['area_width'];
-		ah = "" + tinyMCE.settings['area_height'];
-
-		if (aw.indexOf('%') == -1) {
-			aw = parseInt(aw);
-			aw = aw < 0 ? 300 : aw;
-			aw = aw + "px";
-		}
-
-		if (ah.indexOf('%') == -1) {
-			ah = parseInt(ah);
-			ah = ah < 0 ? 240 : ah;
-			ah = ah + "px";
-		}
-
-		iframe.setAttribute("id", id);
-		//iframe.setAttribute("className", "mceEditorArea");
-		iframe.setAttribute("border", "0");
-		iframe.setAttribute("frameBorder", "0");
-		iframe.setAttribute("marginWidth", "0");
-		iframe.setAttribute("marginHeight", "0");
-		iframe.setAttribute("leftMargin", "0");
-		iframe.setAttribute("topMargin", "0");
-		iframe.setAttribute("width", aw);
-		iframe.setAttribute("height", ah);
-		iframe.setAttribute("allowtransparency", "true");
-
-		if (tinyMCE.settings["auto_resize"])
-			iframe.setAttribute("scrolling", "no");
-
-		// Must have a src element in MSIE HTTPs breaks aswell as absoute URLs
-		if (tinyMCE.isMSIE && !tinyMCE.isOpera)
-			iframe.setAttribute("src", this.settings['default_document']);
-
-		iframe.style.width = aw;
-		iframe.style.height = ah;
-
-		// MSIE 5.0 issue
-		if (tinyMCE.isMSIE && !tinyMCE.isOpera)
-			replace_element.outerHTML = iframe.outerHTML;
-		else
-			replace_element.parentNode.replaceChild(iframe, replace_element);
-
-		if (tinyMCE.isMSIE)
-			return window.frames[id];
-		else
-			return iframe;
-	},
-
-	/**
-	 * Setups the contents of TinyMCE editor instance and fills it with contents.
-	 *
-	 * @param {string} editor_id TinyMCE editor instance control id to fill.
-	 */
-	setupContent : function(editor_id) {
-		var inst = tinyMCE.instances[editor_id];
-		var doc = inst.getDoc();
-		var head = doc.getElementsByTagName('head').item(0);
-		var content = inst.startContent;
-
-		inst.switchSettings();
-
-		// Not loaded correctly hit it again, Mozilla bug #997860
-		if (!tinyMCE.isMSIE && tinyMCE.getParam("setupcontent_reload", false) && doc.title != "blank_page") {
-			// This part will remove the designMode status
-			// Failes first time in Firefox 1.5b2 on Mac
-			try {doc.location.href = tinyMCE.baseURL + "/blank.htm";} catch (ex) {}
-			window.setTimeout("tinyMCE.setupContent('" + editor_id + "');", 1000);
-			return;
-		}
-
-		if (!head) {
-			window.setTimeout("tinyMCE.setupContent('" + editor_id + "');", 10);
-			return;
-		}
-
-		// Import theme specific content CSS the user specific
-		tinyMCE.importCSS(inst.getDoc(), tinyMCE.baseURL + "/themes/" + inst.settings['theme'] + "/css/editor_content.css");
-		tinyMCE.importCSS(inst.getDoc(), inst.settings['content_css']);
-		tinyMCE.dispatchCallback(inst, 'init_instance_callback', 'initInstance', inst);
-
-		// Setup keyboard shortcuts
-		if (tinyMCE.getParam('custom_undo_redo_keyboard_shortcuts')) {
-			inst.addShortcut('ctrl', 'z', 'lang_undo_desc', 'Undo');
-			inst.addShortcut('ctrl', 'y', 'lang_redo_desc', 'Redo');
-		}
-
-		// Add default shortcuts for gecko
-		if (tinyMCE.isGecko) {
-			inst.addShortcut('ctrl', 'b', 'lang_bold_desc', 'Bold');
-			inst.addShortcut('ctrl', 'i', 'lang_italic_desc', 'Italic');
-			inst.addShortcut('ctrl', 'u', 'lang_underline_desc', 'Underline');
-		}
-
-		// Setup span styles
-		if (tinyMCE.getParam("convert_fonts_to_spans"))
-			inst.getDoc().body.setAttribute('id', 'mceSpanFonts');
-
-		if (tinyMCE.settings['nowrap'])
-			doc.body.style.whiteSpace = "nowrap";
-
-		doc.body.dir = this.settings['directionality'];
-		doc.editorId = editor_id;
-
-		// Add on document element in Mozilla
-		if (!tinyMCE.isMSIE)
-			doc.documentElement.editorId = editor_id;
-
-		inst.setBaseHREF(tinyMCE.settings['base_href']);
-
-		// Replace new line characters to BRs
-		if (tinyMCE.settings['convert_newlines_to_brs']) {
-			content = tinyMCE.regexpReplace(content, "\r\n", "<br />", "gi");
-			content = tinyMCE.regexpReplace(content, "\r", "<br />", "gi");
-			content = tinyMCE.regexpReplace(content, "\n", "<br />", "gi");
-		}
-
-		// Open closed anchors
-	//	content = content.replace(new RegExp('<a(.*?)/>', 'gi'), '<a$1></a>');
-
-		// Call custom cleanup code
-		content = tinyMCE.storeAwayURLs(content);
-		content = tinyMCE._customCleanup(inst, "insert_to_editor", content);
-
-		if (tinyMCE.isMSIE) {
-			// Ugly!!!
-			window.setInterval('try{tinyMCE.getCSSClasses(document.frames["' + editor_id + '"].document, "' + editor_id + '");}catch(e){}', 500);
-
-			if (tinyMCE.settings["force_br_newlines"])
-				document.frames[editor_id].document.styleSheets[0].addRule("p", "margin: 0;");
-
-			var body = document.frames[editor_id].document.body;
-
-			body.editorId = editor_id;
-		}
-
-		content = tinyMCE.cleanupHTMLCode(content);
-
-		// Fix for bug #958637
-		if (!tinyMCE.isMSIE) {
-			var contentElement = inst.getDoc().createElement("body");
-			var doc = inst.getDoc();
-
-			contentElement.innerHTML = content;
-
-			// Remove weridness!
-			if (tinyMCE.isGecko && tinyMCE.settings['remove_lt_gt'])
-				content = content.replace(new RegExp('&lt;&gt;', 'g'), "");
-
-			if (tinyMCE.settings['cleanup_on_startup'])
-				tinyMCE.setInnerHTML(inst.getBody(), tinyMCE._cleanupHTML(inst, doc, this.settings, contentElement));
-			else {
-				// Convert all strong/em to b/i
-				content = tinyMCE.regexpReplace(content, "<strong", "<b", "gi");
-				content = tinyMCE.regexpReplace(content, "<em(/?)>", "<i$1>", "gi");
-				content = tinyMCE.regexpReplace(content, "<em ", "<i ", "gi");
-				content = tinyMCE.regexpReplace(content, "</strong>", "</b>", "gi");
-				content = tinyMCE.regexpReplace(content, "</em>", "</i>", "gi");
-				tinyMCE.setInnerHTML(inst.getBody(), content);
-			}
-
-			tinyMCE.convertAllRelativeURLs(inst.getBody());
-		} else {
-			if (tinyMCE.settings['cleanup_on_startup']) {
-				tinyMCE._setHTML(inst.getDoc(), content);
-
-				// Produces permission denied error in MSIE 5.5
-				eval('try {tinyMCE.setInnerHTML(inst.getBody(), tinyMCE._cleanupHTML(inst, inst.contentDocument, this.settings, inst.getBody()));} catch(e) {}');
-			} else
-				tinyMCE._setHTML(inst.getDoc(), content);
-		}
-
-		// Fix for bug #957681
-		//inst.getDoc().designMode = inst.getDoc().designMode;
-
-		// Setup element references
-		var parentElm = document.getElementById(inst.editorId + '_parent');
-		inst.formElement = tinyMCE.isGecko ? parentElm.previousSibling : parentElm.nextSibling;
-
-		tinyMCE.handleVisualAid(inst.getBody(), true, tinyMCE.settings['visual'], inst);
-		tinyMCE.dispatchCallback(inst, 'setupcontent_callback', 'setupContent', editor_id, inst.getBody(), inst.getDoc());
-
-		// Re-add design mode on mozilla
-		if (!tinyMCE.isMSIE)
-			tinyMCE.addEventHandlers(editor_id);
-
-		// Add blur handler
-		if (tinyMCE.isMSIE) {
-			tinyMCE.addEvent(inst.getBody(), "blur", TinyMCE_Engine.prototype._eventPatch);
-
-			// Workaround for drag drop/copy paste base href bug
-			if (!tinyMCE.isOpera) {
-				tinyMCE.addEvent(doc.body, "mousemove", TinyMCE_Engine.prototype.onMouseMove);
-				tinyMCE.addEvent(doc.body, "beforepaste", TinyMCE_Engine.prototype._eventPatch);
-				tinyMCE.addEvent(doc.body, "drop", TinyMCE_Engine.prototype._eventPatch);
-			}
-		}
-
-		// Trigger node change, this call locks buttons for tables and so forth
-		tinyMCE.selectedInstance = inst;
-		tinyMCE.selectedElement = inst.contentWindow.document.body;
-
-		// Call custom DOM cleanup
-		tinyMCE._customCleanup(inst, "insert_to_editor_dom", inst.getBody());
-		tinyMCE._customCleanup(inst, "setup_content_dom", inst.getBody());
-		tinyMCE._setEventsEnabled(inst.getBody(), false);
-		tinyMCE.cleanupAnchors(inst.getDoc());
-
-		if (tinyMCE.getParam("convert_fonts_to_spans"))
-			tinyMCE.convertSpansToFonts(inst.getDoc());
-
-		inst.startContent = tinyMCE.trim(inst.getBody().innerHTML);
-		inst.undoRedo.add({ content : inst.startContent });
-
-		tinyMCE.selectedInstance = inst;
-		tinyMCE.triggerNodeChange(false, true);
-	},
-
-	/**
-	 * Stores away the src and href attribute values in separate mce_src and mce_href attributes.
-	 * This is needed since both MSIE and Gecko messes with these attributes. The old
-	 * src and href will be intact, this simply adds them to a separate attribute.
-	 *
-	 * @param {string} s HTML string to replace src and href attributes in.
-	 * @return HTML string with replaced src and href attributes.
-	 * @type string
-	 */
-	storeAwayURLs : function(s) {
-		// Remove all mce_src, mce_href and replace them with new ones
-	//	s = s.replace(new RegExp('mce_src\\s*=\\s*\"[^ >\"]*\"', 'gi'), '');
-	//	s = s.replace(new RegExp('mce_href\\s*=\\s*\"[^ >\"]*\"', 'gi'), '');
-
-		if (!s.match(/(mce_src|mce_href)/gi, s)) {
-			s = s.replace(new RegExp('src\\s*=\\s*\"([^ >\"]*)\"', 'gi'), 'src="$1" mce_src="$1"');
-			s = s.replace(new RegExp('href\\s*=\\s*\"([^ >\"]*)\"', 'gi'), 'href="$1" mce_href="$1"');
-		}
-
-		return s;
-	},
-
-	/**
-	 * Removes/disables TinyMCE built in form elements such as select boxes for font sizes etc.
-	 * These are disabled when the user submits a form so they don't get picked up by the backend script
-	 * that intercepts the contents.
-	 *
-	 * @param {HTMLElement} form_obj Form object to loop through for TinyMCE specific form elements.
-	 */
-	removeTinyMCEFormElements : function(form_obj) {
-		// Check if form is valid
-		if (typeof(form_obj) == "undefined" || form_obj == null)
-			return;
-
-		// If not a form, find the form
-		if (form_obj.nodeName != "FORM") {
-			if (form_obj.form)
-				form_obj = form_obj.form;
-			else
-				form_obj = tinyMCE.getParentElement(form_obj, "form");
-		}
-
-		// Still nothing
-		if (form_obj == null)
-			return;
-
-		// Disable all UI form elements that TinyMCE created
-		for (var i=0; i<form_obj.elements.length; i++) {
-			var elementId = form_obj.elements[i].name ? form_obj.elements[i].name : form_obj.elements[i].id;
-
-			if (elementId.indexOf('mce_editor_') == 0)
-				form_obj.elements[i].disabled = true;
-		}
-	},
-
-	/**
-	 * Event handler function that gets executed each time a event occurs in a TinyMCE editor control instance.
-	 * Todo: Fix the return statements so they return true or false.
-	 *
-	 * @param {DOMEvent} e DOM event object reference.
-	 * @return true - if the event is to be chained, false - if the event chain is to be canceled.
-	 * @type boolean
-	 */
-	handleEvent : function(e) {
-		var inst = tinyMCE.selectedInstance;
-
-		// Remove odd, error
-		if (typeof(tinyMCE) == "undefined")
-			return true;
-
-		//tinyMCE.debug(e.type + " " + e.target.nodeName + " " + (e.relatedTarget ? e.relatedTarget.nodeName : ""));
-
-		if (tinyMCE.executeCallback(tinyMCE.selectedInstance, 'handle_event_callback', 'handleEvent', e))
-			return false;
-
-		switch (e.type) {
-			case "blur":
-				if (tinyMCE.selectedInstance)
-					tinyMCE.selectedInstance.execCommand('mceEndTyping');
-
-				return;
-
-			// Workaround for drag drop/copy paste base href bug
-			case "drop":
-			case "beforepaste":
-				if (tinyMCE.selectedInstance)
-					tinyMCE.selectedInstance.setBaseHREF(null);
-
-				window.setTimeout("tinyMCE.selectedInstance.setBaseHREF(tinyMCE.settings['base_href']);", 1);
-				return;
-
-			case "submit":
-				tinyMCE.removeTinyMCEFormElements(tinyMCE.isMSIE ? window.event.srcElement : e.target);
-				tinyMCE.triggerSave();
-				tinyMCE.isNotDirty = true;
-				return;
-
-			case "reset":
-				var formObj = tinyMCE.isMSIE ? window.event.srcElement : e.target;
-
-				for (var i=0; i<document.forms.length; i++) {
-					if (document.forms[i] == formObj)
-						window.setTimeout('tinyMCE.resetForm(' + i + ');', 10);
-				}
-
-				return;
-
-			case "keypress":
-				if (inst && inst.handleShortcut(e))
-					return false;
-
-				if (e.target.editorId) {
-					tinyMCE.selectedInstance = tinyMCE.instances[e.target.editorId];
-				} else {
-					if (e.target.ownerDocument.editorId)
-						tinyMCE.selectedInstance = tinyMCE.instances[e.target.ownerDocument.editorId];
-				}
-
-				if (tinyMCE.selectedInstance)
-					tinyMCE.selectedInstance.switchSettings();
-
-				// Insert P element
-				if (tinyMCE.isGecko && tinyMCE.settings['force_p_newlines'] && e.keyCode == 13 && !e.shiftKey) {
-					// Insert P element instead of BR
-					if (TinyMCE_ForceParagraphs._insertPara(tinyMCE.selectedInstance, e)) {
-						// Cancel event
-						tinyMCE.execCommand("mceAddUndoLevel");
-						tinyMCE.cancelEvent(e);
-						return false;
-					}
-				}
-
-				// Handle backspace
-				if (tinyMCE.isGecko && tinyMCE.settings['force_p_newlines'] && (e.keyCode == 8 || e.keyCode == 46) && !e.shiftKey) {
-					// Insert P element instead of BR
-					if (TinyMCE_ForceParagraphs._handleBackSpace(tinyMCE.selectedInstance, e.type)) {
-						// Cancel event
-						tinyMCE.execCommand("mceAddUndoLevel");
-						tinyMCE.cancelEvent(e);
-						return false;
-					}
-				}
-
-				// Return key pressed
-				if (tinyMCE.isMSIE && tinyMCE.settings['force_br_newlines'] && e.keyCode == 13) {
-					if (e.target.editorId)
-						tinyMCE.selectedInstance = tinyMCE.instances[e.target.editorId];
-
-					if (tinyMCE.selectedInstance) {
-						var sel = tinyMCE.selectedInstance.getDoc().selection;
-						var rng = sel.createRange();
-
-						if (tinyMCE.getParentElement(rng.parentElement(), "li") != null)
-							return false;
-
-						// Cancel event
-						e.returnValue = false;
-						e.cancelBubble = true;
-
-						// Insert BR element
-						rng.pasteHTML("<br />");
-						rng.collapse(false);
-						rng.select();
-
-						tinyMCE.execCommand("mceAddUndoLevel");
-						tinyMCE.triggerNodeChange(false);
-						return false;
-					}
-				}
-
-				// Backspace or delete
-				if (e.keyCode == 8 || e.keyCode == 46) {
-					tinyMCE.selectedElement = e.target;
-					tinyMCE.linkElement = tinyMCE.getParentElement(e.target, "a");
-					tinyMCE.imgElement = tinyMCE.getParentElement(e.target, "img");
-					tinyMCE.triggerNodeChange(false);
-				}
-
-				return false;
-			break;
-
-			case "keyup":
-			case "keydown":
-				tinyMCE.hasMouseMoved = false;
-
-				if (inst && inst.handleShortcut(e))
-					return false;
-
-				if (e.target.editorId)
-					tinyMCE.selectedInstance = tinyMCE.instances[e.target.editorId];
-				else
-					return;
-
-				if (tinyMCE.selectedInstance)
-					tinyMCE.selectedInstance.switchSettings();
-
-				var inst = tinyMCE.selectedInstance;
-
-				// Handle backspace
-				if (tinyMCE.isGecko && tinyMCE.settings['force_p_newlines'] && (e.keyCode == 8 || e.keyCode == 46) && !e.shiftKey) {
-					// Insert P element instead of BR
-					if (TinyMCE_ForceParagraphs._handleBackSpace(tinyMCE.selectedInstance, e.type)) {
-						// Cancel event
-						tinyMCE.execCommand("mceAddUndoLevel");
-						e.preventDefault();
-						return false;
-					}
-				}
-
-				tinyMCE.selectedElement = null;
-				tinyMCE.selectedNode = null;
-				var elm = tinyMCE.selectedInstance.getFocusElement();
-				tinyMCE.linkElement = tinyMCE.getParentElement(elm, "a");
-				tinyMCE.imgElement = tinyMCE.getParentElement(elm, "img");
-				tinyMCE.selectedElement = elm;
-
-				// Update visualaids on tabs
-				if (tinyMCE.isGecko && e.type == "keyup" && e.keyCode == 9)
-					tinyMCE.handleVisualAid(tinyMCE.selectedInstance.getBody(), true, tinyMCE.settings['visual'], tinyMCE.selectedInstance);
-
-				// Fix empty elements on return/enter, check where enter occured
-				if (tinyMCE.isMSIE && e.type == "keydown" && e.keyCode == 13)
-					tinyMCE.enterKeyElement = tinyMCE.selectedInstance.getFocusElement();
-
-				// Fix empty elements on return/enter
-				if (tinyMCE.isMSIE && e.type == "keyup" && e.keyCode == 13) {
-					var elm = tinyMCE.enterKeyElement;
-					if (elm) {
-						var re = new RegExp('^HR|IMG|BR$','g'); // Skip these
-						var dre = new RegExp('^H[1-6]$','g'); // Add double on these
-
-						if (!elm.hasChildNodes() && !re.test(elm.nodeName)) {
-							if (dre.test(elm.nodeName))
-								elm.innerHTML = "&nbsp;&nbsp;";
-							else
-								elm.innerHTML = "&nbsp;";
-						}
-					}
-				}
-
-				// Check if it's a position key
-				var keys = tinyMCE.posKeyCodes;
-				var posKey = false;
-				for (var i=0; i<keys.length; i++) {
-					if (keys[i] == e.keyCode) {
-						posKey = true;
-						break;
-					}
-				}
-
-				// MSIE custom key handling
-				if (tinyMCE.isMSIE && tinyMCE.settings['custom_undo_redo']) {
-					var keys = new Array(8,46); // Backspace,Delete
-					for (var i=0; i<keys.length; i++) {
-						if (keys[i] == e.keyCode) {
-							if (e.type == "keyup")
-								tinyMCE.triggerNodeChange(false);
-						}
-					}
-				}
-
-				// If Ctrl key
-				if (e.keyCode == 17)
-					return true;
-
-				// Handle Undo/Redo when typing content
-
-				// Start typing (non position key)
-				if (!posKey && e.type == "keyup")
-					tinyMCE.execCommand("mceStartTyping");
-
-				// Store undo bookmark
-				if (e.type == "keydown" && (posKey || e.ctrlKey) && inst)
-					inst.undoBookmark = inst.selection.getBookmark();
-
-				// End typing (position key) or some Ctrl event
-				if (e.type == "keyup" && (posKey || e.ctrlKey))
-					tinyMCE.execCommand("mceEndTyping");
-
-				if (posKey && e.type == "keyup")
-					tinyMCE.triggerNodeChange(false);
-
-				if (tinyMCE.isMSIE && e.ctrlKey)
-					window.setTimeout('tinyMCE.triggerNodeChange(false);', 1);
-			break;
-
-			case "mousedown":
-			case "mouseup":
-			case "click":
-			case "focus":
-				if (tinyMCE.selectedInstance) {
-					tinyMCE.selectedInstance.switchSettings();
-					tinyMCE.selectedInstance.isFocused = true;
-				}
-
-				// Check instance event trigged on
-				var targetBody = tinyMCE.getParentElement(e.target, "body");
-				for (var instanceName in tinyMCE.instances) {
-					if (!tinyMCE.isInstance(tinyMCE.instances[instanceName]))
-						continue;
-
-					var inst = tinyMCE.instances[instanceName];
-
-					// Reset design mode if lost (on everything just in case)
-					inst.autoResetDesignMode();
-
-					if (inst.getBody() == targetBody) {
-						tinyMCE.selectedInstance = inst;
-						tinyMCE.selectedElement = e.target;
-						tinyMCE.linkElement = tinyMCE.getParentElement(tinyMCE.selectedElement, "a");
-						tinyMCE.imgElement = tinyMCE.getParentElement(tinyMCE.selectedElement, "img");
-						break;
-					}
-				}
-
-				// Add first bookmark location
-				if (!tinyMCE.selectedInstance.undoRedo.undoLevels[0].bookmark)
-					tinyMCE.selectedInstance.undoRedo.undoLevels[0].bookmark = tinyMCE.selectedInstance.selection.getBookmark();
-
-				if (tinyMCE.isSafari) {
-					tinyMCE.selectedInstance.lastSafariSelection = tinyMCE.selectedInstance.selection.getBookmark();
-					tinyMCE.selectedInstance.lastSafariSelectedElement = tinyMCE.selectedElement;
-
-					var lnk = tinyMCE.getParentElement(tinyMCE.selectedElement, "a");
-
-					// Patch the darned link
-					if (lnk && e.type == "mousedown") {
-						lnk.setAttribute("mce_real_href", lnk.getAttribute("href"));
-						lnk.setAttribute("href", "javascript:void(0);");
-					}
-
-					// Patch back
-					if (lnk && e.type == "click") {
-						window.setTimeout(function() {
-							lnk.setAttribute("href", lnk.getAttribute("mce_real_href"));
-							lnk.removeAttribute("mce_real_href");
-						}, 10);
-					}
-				}
-
-				// Reset selected node
-				if (e.type != "focus")
-					tinyMCE.selectedNode = null;
-
-				tinyMCE.triggerNodeChange(false);
-				tinyMCE.execCommand("mceEndTyping");
-
-				if (e.type == "mouseup")
-					tinyMCE.execCommand("mceAddUndoLevel");
-
-				// Just in case
-				if (!tinyMCE.selectedInstance && e.target.editorId)
-					tinyMCE.selectedInstance = tinyMCE.instances[e.target.editorId];
-
-				return false;
-			break;
-		}
-	},
-
-	/**
-	 * Returns the HTML code for a normal button control.
-	 *
-	 * @param {string} id Button control id, this will be the suffix for the element id, the prefix is the editor id.
-	 * @param {string} lang Language variable key name to insert as the title/alt of the button image.
-	 * @param {string} img Image URL to insert, {$themeurl} and {$pluginurl} will be replaced.
-	 * @param {string} cmd Command to execute when the user clicks the button.
-	 * @param {string} ui Optional user interface boolean for command.
-	 * @param {string} val Optional value for command.
-	 * @return HTML code for a normal button based in input information.
-	 * @type string
-	 */
-	getButtonHTML : function(id, lang, img, cmd, ui, val) {
-		var h = '', m, x;
-
-		cmd = 'tinyMCE.execInstanceCommand(\'{$editor_id}\',\'' + cmd + '\'';
-
-		if (typeof(ui) != "undefined" && ui != null)
-			cmd += ',' + ui;
-
-		if (typeof(val) != "undefined" && val != null)
-			cmd += ",'" + val + "'";
-
-		cmd += ');';
-
-		// Use tilemaps when enabled and found and never in MSIE since it loads the tile each time from cache if cahce is disabled
-		if (tinyMCE.getParam('button_tile_map') && (!tinyMCE.isMSIE || tinyMCE.isOpera) && (m = this.buttonMap[id]) != null && (tinyMCE.getParam("language") == "en" || img.indexOf('$lang') == -1)) {
-			// Tiled button
-			x = 0 - (m * 20) == 0 ? '0' : 0 - (m * 20);
-			h += '<a id="{$editor_id}_' + id + '" href="javascript:' + cmd + '" onclick="' + cmd + 'return false;" onmousedown="return false;" class="mceTiledButton mceButtonNormal" target="_self">';
-			h += '<img src="' + this.themeURL + '/images/spacer.gif" style="background-position: ' + x + 'px 0" title="{$' + lang + '}" />';
-			h += '</a>';
-		} else {
-			// Normal button
-			h += '<a id="{$editor_id}_' + id + '" href="javascript:' + cmd + '" onclick="' + cmd + 'return false;" onmousedown="return false;" class="mceButtonNormal" target="_self">';
-			h += '<img src="' + img + '" title="{$' + lang + '}" />';
-			h += '</a>';
-		}
-
-		return h;
-	},
-
-	/**
-	 * Adds a list of buttons available in the tiled button image used by the button_tile_map option.
-	 *
-	 * @param {string} m Comma separated list of buttons that are available in tiled image.
-	 */
-	addButtonMap : function(m) {
-		var i, a = m.replace(/\s+/, '').split(',');
-
-		for (i=0; i<a.length; i++)
-			this.buttonMap[a[i]] = i;
-	},
-
-	/**
-	 * Piggyback onsubmit event handler function, this will remove/hide the TinyMCE specific form elements
-	 * call triggerSave to fill the textarea with the correct contents then call the old piggy backed event handler.
-	 */
-	submitPatch : function() {
-		tinyMCE.removeTinyMCEFormElements(this);
-		tinyMCE.triggerSave();
-		this.mceOldSubmit();
-		tinyMCE.isNotDirty = true;
-	},
-
-	/**
-	 * Gets executed when the page loads or get intitialized. This function will then convert all textareas/divs that
-	 * is to be converted into TinyMCE editor controls.
-	 *
-	 * @return true - if the event is to be chained, false - if the event chain is to be canceled.
-	 * @type boolean
-	 */
-	onLoad : function() {
-		if (tinyMCE.isMSIE && !tinyMCE.isOpera && window.event.type == "readystatechange" && document.readyState != "complete")
-			return true;
-
-		if (tinyMCE.isLoaded)
-			return true;
-
-		tinyMCE.isLoaded = true;
-
-		tinyMCE.dispatchCallback(null, 'onpageload', 'onPageLoad');
-
-		for (var c=0; c<tinyMCE.configs.length; c++) {
-			tinyMCE.settings = tinyMCE.configs[c];
-
-			var selector = tinyMCE.getParam("editor_selector");
-			var deselector = tinyMCE.getParam("editor_deselector");
-			var elementRefAr = new Array();
-
-			// Add submit triggers
-			if (document.forms && tinyMCE.settings['add_form_submit_trigger'] && !tinyMCE.submitTriggers) {
-				for (var i=0; i<document.forms.length; i++) {
-					var form = document.forms[i];
-
-					tinyMCE.addEvent(form, "submit", TinyMCE_Engine.prototype.handleEvent);
-					tinyMCE.addEvent(form, "reset", TinyMCE_Engine.prototype.handleEvent);
-					tinyMCE.submitTriggers = true; // Do it only once
-
-					// Patch the form.submit function
-					if (tinyMCE.settings['submit_patch']) {
-						try {
-							form.mceOldSubmit = form.submit;
-							form.submit = TinyMCE_Engine.prototype.submitPatch;
-						} catch (e) {
-							// Do nothing
-						}
-					}
-				}
-			}
-
-			// Add editor instances based on mode
-			var mode = tinyMCE.settings['mode'];
-			switch (mode) {
-				case "exact":
-					var elements = tinyMCE.getParam('elements', '', true, ',');
-
-					for (var i=0; i<elements.length; i++) {
-						var element = tinyMCE._getElementById(elements[i]);
-						var trigger = element ? element.getAttribute(tinyMCE.settings['textarea_trigger']) : "";
-
-						if (tinyMCE.getAttrib(element, "class").indexOf(deselector) != -1)
-							continue;
-
-						if (trigger == "false")
-							continue;
-
-						if (tinyMCE.settings['ask'] && element) {
-							elementRefAr[elementRefAr.length] = element;
-							continue;
-						}
-
-						if (element)
-							tinyMCE.addMCEControl(element, elements[i]);
-						else if (tinyMCE.settings['debug'])
-							alert("Error: Could not find element by id or name: " + elements[i]);
-					}
-				break;
-
-				case "specific_textareas":
-				case "textareas":
-					var nodeList = document.getElementsByTagName("textarea");
-
-					for (var i=0; i<nodeList.length; i++) {
-						var elm = nodeList.item(i);
-						var trigger = elm.getAttribute(tinyMCE.settings['textarea_trigger']);
-
-						if (selector != '' && tinyMCE.getAttrib(elm, "class").indexOf(selector) == -1)
-							continue;
-
-						if (selector != '')
-							trigger = selector != "" ? "true" : "";
-
-						if (tinyMCE.getAttrib(elm, "class").indexOf(deselector) != -1)
-							continue;
-
-						if ((mode == "specific_textareas" && trigger == "true") || (mode == "textareas" && trigger != "false"))
-							elementRefAr[elementRefAr.length] = elm;
-					}
-				break;
-			}
-
-			for (var i=0; i<elementRefAr.length; i++) {
-				var element = elementRefAr[i];
-				var elementId = element.name ? element.name : element.id;
-
-				if (tinyMCE.settings['ask']) {
-					// Focus breaks in Mozilla
-					if (tinyMCE.isGecko) {
-						var settings = tinyMCE.settings;
-
-						tinyMCE.addEvent(element, "focus", function (e) {window.setTimeout(function() {TinyMCE_Engine.prototype.confirmAdd(e, settings);}, 10);});
-					} else {
-						var settings = tinyMCE.settings;
-
-						tinyMCE.addEvent(element, "focus", function () { TinyMCE_Engine.prototype.confirmAdd(null, settings); });
-					}
-				} else
-					tinyMCE.addMCEControl(element, elementId);
-			}
-
-			// Handle auto focus
-			if (tinyMCE.settings['auto_focus']) {
-				window.setTimeout(function () {
-					var inst = tinyMCE.getInstanceById(tinyMCE.settings['auto_focus']);
-					inst.selection.selectNode(inst.getBody(), true, true);
-					inst.contentWindow.focus();
-				}, 10);
-			}
-
-			tinyMCE.dispatchCallback(null, 'oninit', 'onInit');
-		}
-	},
-
-	/**
-	 * Returns true/false if a specific object is a TinyMCE_Control instance or not.
-	 *
-	 * @param {object} o Object to check.
-	 * @return true/false if it's a control or not.
-	 * @type boolean
-	 */
-	isInstance : function(o) {
-		return o != null && typeof(o) == "object" && o.isTinyMCE_Control;
-	},
-
-	/**
-	 * Returns a specific configuration setting or the default value if it wasn't found.
-	 *
-	 * @param {string} name Configuration setting to get.
-	 * @param {string} default_value Default value to return if it wasn't found.
-	 * @param {boolean} strip_whitespace Optional remove all whitespace.
-	 * @param {string} split_chr Split char/regex/string.
-	 * @return Number, string or other object based in parameter and default_value.
-	 * @type object
-	 */
-	getParam : function(name, default_value, strip_whitespace, split_chr) {
-		var value = (typeof(this.settings[name]) == "undefined") ? default_value : this.settings[name];
-
-		// Fix bool values
-		if (value == "true" || value == "false")
-			return (value == "true");
-
-		if (strip_whitespace)
-			value = tinyMCE.regexpReplace(value, "[ \t\r\n]", "");
-
-		if (typeof(split_chr) != "undefined" && split_chr != null) {
-			value = value.split(split_chr);
-			var outArray = new Array();
-
-			for (var i=0; i<value.length; i++) {
-				if (value[i] && value[i] != "")
-					outArray[outArray.length] = value[i];
-			}
-
-			value = outArray;
-		}
-
-		return value;
-	},
-
-	/**
-	 * Returns a language variable value from the language packs.
-	 *
-	 * @param {string} name Name of the key to retrive.
-	 * @param {string} default_value Optional default value to return if it wasn't found.
-	 * @param {boolean} parse_entities Is HTML entities to be resolved or not.
-	 * @return Language string value could be a number if it's a relative dimenstion.
-	 * @type object
-	 */
-	getLang : function(name, default_value, parse_entities) {
-		var value = (typeof(tinyMCELang[name]) == "undefined") ? default_value : tinyMCELang[name];
-
-		if (parse_entities)
-			value = tinyMCE.entityDecode(value);
-
-		return value;
-	},
-
-	/**
-	 * HTML entity decode a string, replaces &lt; with <.
-	 *
-	 * @param {string} s Entity string to decode into normal string.
-	 * @return Entity decoded string.
-	 * @type string
-	 */
-	entityDecode : function(s) {
-		var e = document.createElement("div");
-		e.innerHTML = s;
-		return e.innerHTML;
-	},
-
-	/**
-	 * Adds language items to the global language array.
-	 *
-	 * @param {string} prefix Prefix string to add infront of every array item before adding it.
-	 * @param {Array} ar Language item array to add to global language array.
-	 */
-	addToLang : function(prefix, ar) {
-		for (var key in ar) {
-			if (typeof(ar[key]) == 'function')
-				continue;
-
-			tinyMCELang[(key.indexOf('lang_') == -1 ? 'lang_' : '') + (prefix != '' ? (prefix + "_") : '') + key] = ar[key];
-		}
-
-	//	for (var key in ar)
-	//		tinyMCELang[(key.indexOf('lang_') == -1 ? 'lang_' : '') + (prefix != '' ? (prefix + "_") : '') + key] = "|" + ar[key] + "|";
-	},
-
-	/**
-	 * Triggers a nodeChange event to every theme and plugin. This will be executed when the cursor moves or
-	 * when a command that modifies the editor contents is executed.
-	 *
-	 * @param {boolean} focus Optional state if the last selected editor instance is to be focused or not.
-	 * @param {boolean} setup_content Optional state if it's called from setup content function or not.
-	 */
-	triggerNodeChange : function(focus, setup_content) {
-		if (tinyMCE.selectedInstance) {
-			var inst = tinyMCE.selectedInstance;
-			var editorId = inst.editorId;
-			var elm = (typeof(setup_content) != "undefined" && setup_content) ? tinyMCE.selectedElement : inst.getFocusElement();
-			var undoIndex = -1;
-			var undoLevels = -1;
-			var anySelection = false;
-			var selectedText = inst.selection.getSelectedText();
-
-			if (setup_content && tinyMCE.isGecko && inst.isHidden())
-				elm = inst.getBody();
-
-			inst.switchSettings();
-
-			if (tinyMCE.settings["auto_resize"]) {
-				var doc = inst.getDoc();
-
-				inst.iframeElement.style.width = doc.body.offsetWidth + "px";
-				inst.iframeElement.style.height = doc.body.offsetHeight + "px";
-			}
-
-			if (tinyMCE.selectedElement)
-				anySelection = (tinyMCE.selectedElement.nodeName.toLowerCase() == "img") || (selectedText && selectedText.length > 0);
-
-			if (tinyMCE.settings['custom_undo_redo']) {
-				undoIndex = inst.undoRedo.undoIndex;
-				undoLevels = inst.undoRedo.undoLevels.length;
-			}
-
-			tinyMCE.dispatchCallback(inst, 'handle_node_change_callback', 'handleNodeChange', editorId, elm, undoIndex, undoLevels, inst.visualAid, anySelection, setup_content);
-		}
-
-		if (this.selectedInstance && (typeof(focus) == "undefined" || focus))
-			this.selectedInstance.contentWindow.focus();
-	},
-
-	/**
-	 * Executes the custom cleanup functions on the specified content.
-	 *
-	 * @param {TinyMCE_Control} inst TinyMCE editor control instance.
-	 * @param {string} type Event type to call.
-	 * @param {object} content DOM element or string to pass to handlers depending on type.
-	 * @return string or DOM element depending on type.
-	 * @private
-	 */
-	_customCleanup : function(inst, type, content) {
-		var pl, po, i;
-
-		// Call custom cleanup
-		var customCleanup = tinyMCE.settings['cleanup_callback'];
-		if (customCleanup != "" && eval("typeof(" + customCleanup + ")") != "undefined")
-			content = eval(customCleanup + "(type, content, inst);");
-
-		// Trigger plugin cleanups
-		pl = inst.plugins;
-		for (i=0; i<pl.length; i++) {
-			po = tinyMCE.plugins[pl[i]];
-
-			if (po && po.cleanup)
-				content = po.cleanup(type, content, inst);
-		}
-
-		return content;
-	},
-
-	/**
-	 * Sets the HTML contents of the selected editor instance.
-	 *
-	 * @param {string} h HTML contents to set in the selected instance.
-	 * @deprecated
-	 */
-	setContent : function(h) {
-		if (tinyMCE.selectedInstance) {
-			tinyMCE.selectedInstance.execCommand('mceSetContent', false, h);
-			tinyMCE.selectedInstance.repaint();
-		}
-	},
-
-	/**
-	 * Loads a theme specific language pack.
-	 *
-	 * @param {string} name Optional name of the theme to load language pack from.
-	 */
-	importThemeLanguagePack : function(name) {
-		if (typeof(name) == "undefined")
-			name = tinyMCE.settings['theme'];
-
-		tinyMCE.loadScript(tinyMCE.baseURL + '/themes/' + name + '/langs/' + tinyMCE.settings['language'] + '.js');
-	},
-
-	/**
-	 * Loads a plugin specific language pack.
-	 *
-	 * @param {string} name Plugin name/id to load language pack for.
-	 * @param {string} valid_languages Comma separated list of valid languages for the plugin.
-	 */
-	importPluginLanguagePack : function(name, valid_languages) {
-		var lang = "en";
-
-		valid_languages = valid_languages.split(',');
-		for (var i=0; i<valid_languages.length; i++) {
-			if (tinyMCE.settings['language'] == valid_languages[i])
-				lang = tinyMCE.settings['language'];
-		}
-
-		tinyMCE.loadScript(tinyMCE.baseURL + '/plugins/' + name + '/langs/' + lang +  '.js');
-	},
-
-	/**
-	 * Replaces language, args and settings variables in a HTML string.
-	 *
-	 * @param {string} h HTML string to replace language variables in.
-	 * @param {Array} as Optional arguments array to take variables from.
-	 * @return HTML string with replaced varliables.
-	 * @type string
-	 */
-	applyTemplate : function(h, as) {
-		var i, s, ar = h.match(new RegExp('\\{\\$[a-z0-9_]+\\}', 'gi'));
-
-		for (i=ar.length-1; i>=0; i--) {
-			s = ar[i].substring(2, ar[i].length-1);
-
-			if (s.indexOf('lang_') == 0 && tinyMCELang[s])
-				h = tinyMCE.replaceVar(h, s, tinyMCELang[s]);
-			else if (as && as[s])
-				h = tinyMCE.replaceVar(h, s, as[s]);
-			else if (tinyMCE.settings[s])
-				h = tinyMCE.replaceVar(h, s, tinyMCE.settings[s]);
-		}
-
-		h = tinyMCE.replaceVar(h, "themeurl", tinyMCE.themeURL);
-
-		return h;
-	},
-
-	/**
-	 * Replaces a specific variable in the string with a nother string.
-	 *
-	 * @param {string} h String to search in for the variable.
-	 * @param {string} r Variable name to search for.
-	 * @param {string} v Value to insert where a variable is found.
-	 * @return String with replaced variable.
-	 * @type string
-	 */
-	replaceVar : function(h, r, v) {
-		return h.replace(new RegExp('{\\\$' + r + '}', 'g'), v);
-	},
-
-	/**
-	 * Opens a popup window based in the specified input data. This function
-	 * is used for all popup windows in TinyMCE.
-	 *
-	 * These are the current template keys: file, width, height, close_previous.
-	 *
-	 * @param {Array} template Popup template data such as with, height etc.
-	 * @param {Array} args Popup arguments that is to be passed to the popup such as custom data.
-	 */
-	openWindow : function(template, args) {
-		var html, width, height, x, y, resizable, scrollbars, url;
-
-		args['mce_template_file'] = template['file'];
-		args['mce_width'] = template['width'];
-		args['mce_height'] = template['height'];
-		tinyMCE.windowArgs = args;
-
-		html = template['html'];
-		if (!(width = parseInt(template['width'])))
-			width = 320;
-
-		if (!(height = parseInt(template['height'])))
-			height = 200;
-
-		// Add to height in M$ due to SP2 WHY DON'T YOU GUYS IMPLEMENT innerWidth of windows!!
-		if (tinyMCE.isMSIE)
-			height += 40;
-		else
-			height += 20;
-
-		x = parseInt(screen.width / 2.0) - (width / 2.0);
-		y = parseInt(screen.height / 2.0) - (height / 2.0);
-
-		resizable = (args && args['resizable']) ? args['resizable'] : "no";
-		scrollbars = (args && args['scrollbars']) ? args['scrollbars'] : "no";
-
-		if (template['file'].charAt(0) != '/' && template['file'].indexOf('://') == -1)
-			url = tinyMCE.baseURL + "/themes/" + tinyMCE.getParam("theme") + "/" + template['file'];
-		else
-			url = template['file'];
-
-		// Replace all args as variables in URL
-		for (var name in args) {
-			if (typeof(args[name]) == 'function')
-				continue;
-
-			url = tinyMCE.replaceVar(url, name, escape(args[name]));
-		}
-
-		if (html) {
-			html = tinyMCE.replaceVar(html, "css", this.settings['popups_css']);
-			html = tinyMCE.applyTemplate(html, args);
-
-			var win = window.open("", "mcePopup" + new Date().getTime(), "top=" + y + ",left=" + x + ",scrollbars=" + scrollbars + ",dialog=yes,minimizable=" + resizable + ",modal=yes,width=" + width + ",height=" + height + ",resizable=" + resizable);
-			if (win == null) {
-				alert(tinyMCELang['lang_popup_blocked']);
-				return;
-			}
-
-			win.document.write(html);
-			win.document.close();
-			win.resizeTo(width, height);
-			win.focus();
-		} else {
-			if ((tinyMCE.isMSIE && !tinyMCE.isOpera) && resizable != 'yes' && tinyMCE.settings["dialog_type"] == "modal") {
-				height += 10;
-
-				var features = "resizable:" + resizable 
-					+ ";scroll:"
-					+ scrollbars + ";status:yes;center:yes;help:no;dialogWidth:"
-					+ width + "px;dialogHeight:" + height + "px;";
-
-				window.showModalDialog(url, window, features);
-			} else {
-				var modal = (resizable == "yes") ? "no" : "yes";
-
-				if (tinyMCE.isGecko && tinyMCE.isMac)
-					modal = "no";
-
-				if (template['close_previous'] != "no")
-					try {tinyMCE.lastWindow.close();} catch (ex) {}
-
-				var win = window.open(url, "mcePopup" + new Date().getTime(), "top=" + y + ",left=" + x + ",scrollbars=" + scrollbars + ",dialog=" + modal + ",minimizable=" + resizable + ",modal=" + modal + ",width=" + width + ",height=" + height + ",resizable=" + resizable);
-				if (win == null) {
-					alert(tinyMCELang['lang_popup_blocked']);
-					return;
-				}
-
-				if (template['close_previous'] != "no")
-					tinyMCE.lastWindow = win;
-
-				eval('try { win.resizeTo(width, height); } catch(e) { }');
-
-				// Make it bigger if statusbar is forced
-				if (tinyMCE.isGecko) {
-					if (win.document.defaultView.statusbar.visible)
-						win.resizeBy(0, tinyMCE.isMac ? 10 : 24);
-				}
-
-				win.focus();
-			}
-		}
-	},
-
-	/**
-	 * Closes the specified window. This function is deprecated and should be replaced with
-	 * tinyMCEPopup.close();.
-	 *
-	 * @param {DOMWindow} win Window reference to close.
-	 * @deprecated
-	 */
-	closeWindow : function(win) {
-		win.close();
-	},
-
-	/**
-	 * Returns the visual aid class string, this will add/remove the visual aid class.
-	 *
-	 * @param {string} class_name Class name value to add/remove visual aid classes from.
-	 * @param {boolean} state true/false if the classes should be added or removed.
-	 * @return New class value containing the visual aid classes or not.
-	 * @type string
-	 */
-	getVisualAidClass : function(class_name, state) {
-		var aidClass = tinyMCE.settings['visual_table_class'];
-
-		if (typeof(state) == "undefined")
-			state = tinyMCE.settings['visual'];
-
-		// Split
-		var classNames = new Array();
-		var ar = class_name.split(' ');
-		for (var i=0; i<ar.length; i++) {
-			if (ar[i] == aidClass)
-				ar[i] = "";
-
-			if (ar[i] != "")
-				classNames[classNames.length] = ar[i];
-		}
-
-		if (state)
-			classNames[classNames.length] = aidClass;
-
-		// Glue
-		var className = "";
-		for (var i=0; i<classNames.length; i++) {
-			if (i > 0)
-				className += " ";
-
-			className += classNames[i];
-		}
-
-		return className;
-	},
-
-	/**
-	 * Adds visual aid classes to all elements that need them recursive in the DOM tree.
-	 *
-	 * @param {HTMLElement} el HTML element to add visual aid classes to.
-	 * @param {boolean} deep Should they be added to all children aswell.
-	 * @param {boolean} state Should they be added or removed.
-	 * @param {TinyMCE_Control} inst TinyMCE editor control instance to add/remove them to/from.
-	 */
-	handleVisualAid : function(el, deep, state, inst) {
-		if (!el)
-			return;
-
-		var tableElement = null;
-
-		switch (el.nodeName) {
-			case "TABLE":
-				var oldW = el.style.width;
-				var oldH = el.style.height;
-				var bo = tinyMCE.getAttrib(el, "border");
-
-				bo = bo == "" || bo == "0" ? true : false;
-
-				tinyMCE.setAttrib(el, "class", tinyMCE.getVisualAidClass(tinyMCE.getAttrib(el, "class"), state && bo));
-
-				el.style.width = oldW;
-				el.style.height = oldH;
-
-				for (var y=0; y<el.rows.length; y++) {
-					for (var x=0; x<el.rows[y].cells.length; x++) {
-						var cn = tinyMCE.getVisualAidClass(tinyMCE.getAttrib(el.rows[y].cells[x], "class"), state && bo);
-						tinyMCE.setAttrib(el.rows[y].cells[x], "class", cn);
-					}
-				}
-
-				break;
-
-			case "A":
-				var anchorName = tinyMCE.getAttrib(el, "name");
-
-				if (anchorName != '' && state) {
-					el.title = anchorName;
-					el.className = 'mceItemAnchor';
-				} else if (anchorName != '' && !state)
-					el.className = '';
-
-				break;
-		}
-
-		if (deep && el.hasChildNodes()) {
-			for (var i=0; i<el.childNodes.length; i++)
-				tinyMCE.handleVisualAid(el.childNodes[i], deep, state, inst);
-		}
-	},
-
-	/*
-	applyClassesToFonts : function(doc, size) {
-		var f = doc.getElementsByTagName("font");
-		for (var i=0; i<f.length; i++) {
-			var s = tinyMCE.getAttrib(f[i], "size");
-
-			if (s != "")
-				tinyMCE.setAttrib(f[i], 'class', "mceItemFont" + s);
-		}
-
-		if (typeof(size) != "undefined") {
-			var css = "";
-
-			for (var x=0; x<doc.styleSheets.length; x++) {
-				for (var i=0; i<doc.styleSheets[x].rules.length; i++) {
-					if (doc.styleSheets[x].rules[i].selectorText == '#mceSpanFonts .mceItemFont' + size) {
-						css = doc.styleSheets[x].rules[i].style.cssText;
-						break;
-					}
-				}
-
-				if (css != "")
-					break;
-			}
-
-			if (doc.styleSheets[0].rules[0].selectorText == "FONT")
-				doc.styleSheets[0].removeRule(0);
-
-			doc.styleSheets[0].addRule("FONT", css, 0);
-		}
-	},
-	*/
-
-	/**
-	 * Fixes a Gecko specific bug where href, src attribute values gets converted incorrectly
-	 * when inserted into editor. This function will replace all src, href with xsrc and xhref
-	 * to keep the values from chaging when they get inserted.
-	 *
-	 * @param {boolean} m Mode state, true is to replace the src, href attributes to xsrc and xhref.
-	 * @param {HTMLElement} e HTML element to replace them in. (Will be used if m is 0)
-	 * @param {string} h HTML code to replace them in. (Will be used if m is 1)
-	 * @return Converted string or the specified HTML value depending on mode.
-	 * @type string
-	 */
-	fixGeckoBaseHREFBug : function(m, e, h) {
-		var nl, i;
-
-		if (tinyMCE.isGecko) {
-			if (m == 1) {
-				h = h.replace(/\ssrc=/gi, " xsrc=");
-				h = h.replace(/\shref=/gi, " xhref=");
-
-				return h;
-			} else {
-				var el = new Array('a','img','select','area','iframe','base','input','script','embed','object','link');
-
-				for (var a=0; a<el.length; a++) {
-					var n = e.getElementsByTagName(el[a]);
-
-					for (i=0; i<n.length; i++) {
-						var xsrc = tinyMCE.getAttrib(n[i], "xsrc");
-						var xhref = tinyMCE.getAttrib(n[i], "xhref");
-
-						if (xsrc != "") {
-							n[i].src = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xsrc);
-							n[i].removeAttribute("xsrc");
-						}
-
-						if (xhref != "") {
-							n[i].href = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xhref);
-							n[i].removeAttribute("xhref");
-						}
-					}
-				}
-			}
-		}
-
-		return h;
-	},
-
-	/**
-	 * Sets the HTML code of a specific document.
-	 * Todo: Try to merge/remove this one.
-	 *
-	 * @param {DOMDocument} doc DOM document to set the HTML code in.
-	 * @param {string} html_content HTML contents to set in DOM document.
-	 * @private
-	 */
-	_setHTML : function(doc, html_content) {
-		// Force closed anchors open
-		//html_content = html_content.replace(new RegExp('<a(.*?)/>', 'gi'), '<a$1></a>');
-
-		html_content = tinyMCE.cleanupHTMLCode(html_content);
-
-		// Try innerHTML if it fails use pasteHTML in MSIE
-		try {
-			tinyMCE.setInnerHTML(doc.body, html_content);
-		} catch (e) {
-			if (this.isMSIE)
-				doc.body.createTextRange().pasteHTML(html_content);
-		}
-
-		// Content duplication bug fix
-		if (tinyMCE.isMSIE && tinyMCE.settings['fix_content_duplication']) {
-			// Remove P elements in P elements
-			var paras = doc.getElementsByTagName("P");
-			for (var i=0; i<paras.length; i++) {
-				var node = paras[i];
-				while ((node = node.parentNode) != null) {
-					if (node.nodeName == "P")
-						node.outerHTML = node.innerHTML;
-				}
-			}
-
-			// Content duplication bug fix (Seems to be word crap)
-			var html = doc.body.innerHTML;
-/*
-			if (html.indexOf('="mso') != -1) {
-				for (var i=0; i<doc.body.all.length; i++) {
-					var el = doc.body.all[i];
-					el.removeAttribute("className","",0);
-					el.removeAttribute("style","",0);
-				}
-
-				html = doc.body.innerHTML;
-				html = tinyMCE.regexpReplace(html, "<o:p><\/o:p>", "<br />");
-				html = tinyMCE.regexpReplace(html, "<o:p>&nbsp;<\/o:p>", "");
-				html = tinyMCE.regexpReplace(html, "<st1:.*?>", "");
-				html = tinyMCE.regexpReplace(html, "<p><\/p>", "");
-				html = tinyMCE.regexpReplace(html, "<p><\/p>\r\n<p><\/p>", "");
-				html = tinyMCE.regexpReplace(html, "<p>&nbsp;<\/p>", "<br />");
-				html = tinyMCE.regexpReplace(html, "<p>\s*(<p>\s*)?", "<p>");
-				html = tinyMCE.regexpReplace(html, "<\/p>\s*(<\/p>\s*)?", "</p>");
-			}*/
-
-			// Always set the htmlText output
-			tinyMCE.setInnerHTML(doc.body, html);
-		}
-
-		tinyMCE.cleanupAnchors(doc);
-
-		if (tinyMCE.getParam("convert_fonts_to_spans"))
-			tinyMCE.convertSpansToFonts(doc);
-	},
-
-	/**
-	 * Returns the editor instance id of a specific form element.
-	 *
-	 * @param {string} form_element Form element name to get instance id for.
-	 * @return TinyMCE editor instance id or null if it wasn't found.
-	 * @type string
-	 */
-	getEditorId : function(form_element) {
-		var inst = this.getInstanceById(form_element);
-		if (!inst)
-			return null;
-
-		return inst.editorId;
-	},
-
-	/**
-	 * Returns a TinyMCE editor instance by the specified editor id or null if it wasn't found.
-	 *
-	 * @param {string} editor_id Editor id to get instance for.
-	 * @return TinyMCE editor control instance or null if it wasn't found.
-	 * @type TinyMCE_Control
-	 */
-	getInstanceById : function(editor_id) {
-		var inst = this.instances[editor_id];
-		if (!inst) {
-			for (var n in tinyMCE.instances) {
-				var instance = tinyMCE.instances[n];
-				if (!tinyMCE.isInstance(instance))
-					continue;
-
-				if (instance.formTargetElementId == editor_id) {
-					inst = instance;
-					break;
-				}
-			}
-		}
-
-		return inst;
-	},
-
-	/**
-	 * Queries a command value for a specific command on a specific editor instance.
-	 *
-	 * @param {string} editor_id Editor id to query command value on.
-	 * @param {string} command Command to query for.
-	 * @return Command value passed from browser.
-	 * @type object
-	 */
-	queryInstanceCommandValue : function(editor_id, command) {
-		var inst = tinyMCE.getInstanceById(editor_id);
-		if (inst)
-			return inst.queryCommandValue(command);
-
-		return false;
-	},
-
-	/**
-	 * Queries a command state for a specific command on a specific editor instance.
-	 *
-	 * @param {string} editor_id Editor id to query command state on.
-	 * @param {string} command Command to query for.
-	 * @return Command state passed from browser.
-	 * @type boolean
-	 */
-	queryInstanceCommandState : function(editor_id, command) {
-		var inst = tinyMCE.getInstanceById(editor_id);
-		if (inst)
-			return inst.queryCommandState(command);
-
-		return null;
-	},
-
-	/**
-	 * Sets the window argument to be passed to TinyMCE popup.
-	 *
-	 * @param {string} n Window argument name.
-	 * @param {string} v Window argument value.
-	 */
-	setWindowArg : function(n, v) {
-		this.windowArgs[n] = v;
-	},
-
-	/**
-	 * Returns the window argument to be passed to TinyMCE popup.
-	 * Use: tinyMCEPopup.getWindowArg instead.
-	 *
-	 * @param {string} n Window argument name.
-	 * @return Argument value or default value if it wasn't found.
-	 * @deprecated
-	 */
-	getWindowArg : function(n, d) {
-		return (typeof(this.windowArgs[n]) == "undefined") ? d : this.windowArgs[n];
-	},
-
-	/**
-	 * Returns a array of CSS classes that is available in a document.
-	 * Todo: Fix this one, it's so ugly. :)
-	 *
-	 * @param {string} editor_id Editor id to get CSS classes from.
-	 * @param {DOMDocument} doc DOM document to get the CSS classes from.
-	 * @return Array of CSS classes that is available in a document.
-	 * @type Array
-	 */
-	getCSSClasses : function(editor_id, doc) {
-		var output = new Array();
-
-		// Is cached, use that
-		if (typeof(tinyMCE.cssClasses) != "undefined")
-			return tinyMCE.cssClasses;
-
-		if (typeof(editor_id) == "undefined" && typeof(doc) == "undefined") {
-			var instance;
-
-			for (var instanceName in tinyMCE.instances) {
-				instance = tinyMCE.instances[instanceName];
-				if (!tinyMCE.isInstance(instance))
-					continue;
-
-				break;
-			}
-
-			doc = instance.getDoc();
-		}
-
-		if (typeof(doc) == "undefined") {
-			var instance = tinyMCE.getInstanceById(editor_id);
-			doc = instance.getDoc();
-		}
-
-		if (doc) {
-			var styles = tinyMCE.isMSIE ? doc.styleSheets : doc.styleSheets;
-
-			if (styles && styles.length > 0) {
-				for (var x=0; x<styles.length; x++) {
-					var csses = null;
-
-					// Just ignore any errors
-					eval("try {var csses = tinyMCE.isMSIE ? doc.styleSheets(" + x + ").rules : doc.styleSheets[" + x + "].cssRules;} catch(e) {}");
-					if (!csses)
-						return new Array();
-
-					for (var i=0; i<csses.length; i++) {
-						var selectorText = csses[i].selectorText;
-
-						// Can be multiple rules per selector
-						if (selectorText) {
-							var rules = selectorText.split(',');
-							for (var c=0; c<rules.length; c++) {
-								// Invalid rule
-								if (rules[c].indexOf(' ') != -1 || rules[c].indexOf(':') != -1 || rules[c].indexOf('mceItem') != -1)
-									continue;
-
-								if (rules[c] == "." + tinyMCE.settings['visual_table_class'] || rules[c].indexOf('mceEditable') != -1 || rules[c].indexOf('mceNonEditable') != -1)
-									continue;
-
-								// Is class rule
-								if (rules[c].indexOf('.') != -1) {
-									//alert(rules[c].substring(rules[c].indexOf('.')));
-									output[output.length] = rules[c].substring(rules[c].indexOf('.')+1);
-								}
-							}
-						}
-					}
-				}
-			}
-		}
-
-		// Cache em
-		if (output.length > 0)
-			tinyMCE.cssClasses = output;
-
-		return output;
-	},
-
-	/**
-	 * Regexp replaces the contents of a string. Use normal replace instead.
-	 *
-	 * @param {string} in_str String to replace in.
-	 * @param {string} reg_exp Regexp to replace.
-	 * @param {string} replace_str String to replace with.
-	 * @param {string} in_str Optional regexp options like "gi".
-	 * @return Replaced string value.
-	 * @type string
-	 * @deprecated
-	 */
-	regexpReplace : function(in_str, reg_exp, replace_str, opts) {
-		if (in_str == null)
-			return in_str;
-
-		if (typeof(opts) == "undefined")
-			opts = 'g';
-
-		var re = new RegExp(reg_exp, opts);
-		return in_str.replace(re, replace_str);
-	},
-
-	/**
-	 * Removes all prefix, suffix whitespace of a string.
-	 *
-	 * @param {string} s String to replace whitespace in.
-	 * @return Replaced string value.
-	 * @type string
-	 */
-	trim : function(s) {
-		return s.replace(/^\s*|\s*$/g, "");
-	},
-
-	/**
-	 * Removes MSIE 5.5 specific event wrapper function form a event string.
-	 * This will also remove the event blocker if it's added in front of the event.
-	 *
-	 * @param {string} s String to replace event data in.
-	 * @return Replaced string value.
-	 * @type string
-	 */
-	cleanupEventStr : function(s) {
-		s = "" + s;
-		s = s.replace('function anonymous()\n{\n', '');
-		s = s.replace('\n}', '');
-		s = s.replace(/^return true;/gi, ''); // Remove event blocker
-
-		return s;
-	},
-
-	/**
-	 * Returns the HTML for the specified control this will loop through
-	 * the theme and all plugins inorder to find the control. The callback for each
-	 * theme and plugin is called getControlHTML.
-	 *
-	 * @param {string} c Control name/id to get HTML code for.
-	 * @return HTML code for the specified control or empty string if it wasn't found.
-	 * @type string
-	 */
-	getControlHTML : function(c) {
-		var i, l, n, o, v;
-
-		l = tinyMCE.plugins;
-		for (n in l) {
-			o = l[n];
-
-			if (o.getControlHTML && (v = o.getControlHTML(c)) != '')
-				return tinyMCE.replaceVar(v, "pluginurl", o.baseURL);
-		}
-
-		o = tinyMCE.themes[tinyMCE.settings['theme']];
-		if (o.getControlHTML && (v = o.getControlHTML(c)) != '')
-			return v;
-
-		return '';
-	},
-
-	/**
-	 * Evaluates the specified function and uses the array of arguments.
-	 *
-	 * @param {string} f Function reference to execute.
-	 * @param {int} idx Index in array to start grabbing arguments from.
-	 * @param {Array} a Array of function arguments.
-	 * @return Value returned from the evaluated function.
-	 * @type object
-	 */
-	evalFunc : function(f, idx, a) {
-		var s = '(', i;
-
-		for (i=idx; i<a.length; i++) {
-			s += 'a[' + i + ']';
-
-			if (i < a.length-1)
-				s += ',';
-		}
-
-		s += ');';
-
-		return eval("f" + s);
-	},
-
-	/**
-	 * Dispatches the specified callback on all options, plugins and themes. This will not
-	 * chain them, so all functions callbacks will be executed regardless if the return true/false.
-	 *
-	 * @param {TinyMCE_Control} i TinyMCE editor control instance to execute callback on.
-	 * @param {string} p TinyMCE callback parameter to execute.
-	 * @param {string} n Function name to execute.
-	 * @return true/false if they where dispatched.
-	 */
-	dispatchCallback : function(i, p, n) {
-		return this.callFunc(i, p, n, 0, this.dispatchCallback.arguments);
-	},
-
-	/**
-	 * Executes the specified callback on all options, plugins and themes. This will
-	 * chain them, so callback chain will be broken if one function returns false.
-	 *
-	 * @param {TinyMCE_Control} i TinyMCE editor control instance to execute callback on.
-	 * @param {string} p TinyMCE callback parameter to execute.
-	 * @param {string} n Function name to execute.
-	 * @return true/false if a callback was executed.
-	 */
-	executeCallback : function(i, p, n) {
-		return this.callFunc(i, p, n, 1, this.executeCallback.arguments);
-	},
-
-	/**
-	 * Executes the specified execcommand callback on all options, plugins and themes. This will
-	 * chain them, so callback chain will be broken if one function returns true.
-	 *
-	 * @param {TinyMCE_Control} i TinyMCE editor control instance to execute callback on.
-	 * @param {string} p TinyMCE callback parameter to execute.
-	 * @param {string} n Function name to execute.
-	 * @return true/false if a callback was executed.
-	 */
-	execCommandCallback : function(i, p, n) {
-		return this.callFunc(i, p, n, 2, this.execCommandCallback.arguments);
-	},
-
-	/**
-	 * Executes callback chain. Callback order: Option, Plugins, Themes.
-	 *
-	 * @param {TinyMCE_Control} ins TinyMCE editor control instance to execute callback on.
-	 * @param {string} p TinyMCE callback parameter name.
-	 * @param {string} n Function name to execute.
-	 * @param {int} m Execution mode value, 0 = no chain, 1 = event chain, 2 = execcommand chain.
-	 * @param {Array} a Array with function arguments.
-	 * @return true - if the callback was executed, false if it wasn't.
-	 * @type boolean
-	 */
-	callFunc : function(ins, p, n, m, a) {
-		var l, i, on, o, s, v;
-
-		s = m == 2;
-
-		l = tinyMCE.getParam(p, '');
-		if (l != '' && (v = tinyMCE.evalFunc(typeof(l) == "function" ? l : window[l], 3, a)) == s && m > 0)
-			return true;
-
-		if (ins != null) {
-			for (i=0, l = ins.plugins; i<l.length; i++) {
-				o = tinyMCE.plugins[l[i]];
-
-				if (o[n] && (v = tinyMCE.evalFunc(o[n], 3, a)) == s && m > 0)
-					return true;
-			}
-		}
-
-		l = tinyMCE.themes;
-		for (on in l) {
-			o = l[on];
-
-			if (o[n] && (v = tinyMCE.evalFunc(o[n], 3, a)) == s && m > 0)
-				return true;
-		}
-
-		return false;
-	}
-};
-
-// Global instances
-var TinyMCE = TinyMCE_Engine; // Compatiblity with gzip compressors
-var tinyMCE = new TinyMCE_Engine();
-var tinyMCELang = {};
-
-
- - - - - - - - - - - - - - - -
- -
- - -
- - - -
Documentation generated by JSDoc on Fri Feb 24 13:38:20 2006
- - diff --git a/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_Event.class.js.html b/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_Event.class.js.html deleted file mode 100644 index 58ff2571e20..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_Event.class.js.html +++ /dev/null @@ -1,381 +0,0 @@ - - - - - Overview - - - - - - - - - - - - - - - - - - -
- - -
- - -
-
- -

TinyMCE_Event.class.js

- -
- - - - -

Summary

-

- - No overview generated for 'TinyMCE_Event.class.js'

- -

- -
- - - - - - - - -
/**
- * $RCSfile$
- * $Revision$
- * $Date$
- *
- * @author Moxiecode
- * @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
- */
-
-/* The contents of this file will be wrapped in a class later on */
-
-/**
- * Sets the enabled/disabled state of build in events on the specific node.
- * This function is needed since some events gets executed in WYSIWYG mode.
- *
- * @param {HTMLNode} node HTML node to enable/disable events on.
- * @param {boolean} state true/false state if the events should be disabled or enabled.
- * @private
- */
-TinyMCE_Engine.prototype._setEventsEnabled = function(node, state) {
-	var events = new Array('onfocus','onblur','onclick','ondblclick',
-				'onmousedown','onmouseup','onmouseover','onmousemove',
-				'onmouseout','onkeypress','onkeydown','onkeydown','onkeyup');
-
-	var evs = tinyMCE.settings['event_elements'].split(',');
-	for (var y=0; y<evs.length; y++){
-		var elms = node.getElementsByTagName(evs[y]);
-		for (var i=0; i<elms.length; i++) {
-			var event = "";
-
-			for (var x=0; x<events.length; x++) {
-				if ((event = tinyMCE.getAttrib(elms[i], events[x])) != '') {
-					event = tinyMCE.cleanupEventStr("" + event);
-
-					if (!state)
-						event = "return true;" + event;
-					else
-						event = event.replace(/^return true;/gi, '');
-
-					elms[i].removeAttribute(events[x]);
-					elms[i].setAttribute(events[x], event);
-				}
-			}
-		}
-	}
-};
-
-/**
- * Patch function for MSIE specific events, this one simply grabs the window.event object and
- * passes it as a argument to the handleEvent function of the TinyMCE_Engine class.
- *
- * @param {string} editor_id Editor id to patch.
- * @private
- */
-TinyMCE_Engine.prototype._eventPatch = function(editor_id) {
-	// Remove odd, error
-	if (typeof(tinyMCE) == "undefined")
-		return true;
-
-	for (var i=0; i<document.frames.length; i++) {
-		try {
-			if (document.frames[i].event) {
-				var event = document.frames[i].event;
-
-				if (!event.target)
-					event.target = event.srcElement;
-
-				TinyMCE_Engine.prototype.handleEvent(event);
-				return;
-			}
-		} catch (ex) {
-			// Ignore error if iframe is pointing to external URL
-		}
-	}
-};
-
-/**
- * Unload document event handler function. This function will be executed when the
- * page is unloaded, this will automaticly move the current editor contents to the textarea element this enables
- * the editor to restore it's state when the user presses the back button in the browser.
- * This will execute the triggerSave function.
- */
-TinyMCE_Engine.prototype.unloadHandler = function() {
-	tinyMCE.triggerSave(true, true);
-};
-
-/**
- * Adds the handleEvent function to the specified editor instance.
- *
- * @param {string} editor_id Editor control instance to add event handler to.
- */
-TinyMCE_Engine.prototype.addEventHandlers = function(editor_id) {
-	if (tinyMCE.isMSIE) {
-		var doc = document.frames[editor_id].document;
-
-		// Event patch
-		tinyMCE.addEvent(doc, "keypress", TinyMCE_Engine.prototype._eventPatch);
-		tinyMCE.addEvent(doc, "keyup", TinyMCE_Engine.prototype._eventPatch);
-		tinyMCE.addEvent(doc, "keydown", TinyMCE_Engine.prototype._eventPatch);
-		tinyMCE.addEvent(doc, "mouseup", TinyMCE_Engine.prototype._eventPatch);
-		tinyMCE.addEvent(doc, "click", TinyMCE_Engine.prototype._eventPatch);
-	} else {
-		var inst = tinyMCE.instances[editor_id];
-		var doc = inst.getDoc();
-
-		inst.switchSettings();
-
-		tinyMCE.addEvent(doc, "keypress", tinyMCE.handleEvent);
-		tinyMCE.addEvent(doc, "keydown", tinyMCE.handleEvent);
-		tinyMCE.addEvent(doc, "keyup", tinyMCE.handleEvent);
-		tinyMCE.addEvent(doc, "click", tinyMCE.handleEvent);
-		tinyMCE.addEvent(doc, "mouseup", tinyMCE.handleEvent);
-		tinyMCE.addEvent(doc, "mousedown", tinyMCE.handleEvent);
-		tinyMCE.addEvent(doc, "focus", tinyMCE.handleEvent);
-		tinyMCE.addEvent(doc, "blur", tinyMCE.handleEvent);
-
-		eval('try { doc.designMode = "On"; } catch(e) {}');
-	}
-};
-
-/**
- * Mouse move handler function, this will be executed each time
- * the mouse is moved within a editor instance. This function stores away the current selection in MSIE
- * this will then be used when a undo/redo level is added.
- */
-TinyMCE_Engine.prototype.onMouseMove = function() {
-	var inst;
-
-	if (!tinyMCE.hasMouseMoved) {
-		inst = tinyMCE.selectedInstance;
-
-		// Workaround for bug #1437457 (Odd MSIE bug)
-		if (inst.isFocused) {
-			inst.undoBookmark = inst.selection.getBookmark();
-			tinyMCE.hasMouseMoved = true;
-		}
-	}
-
-//	tinyMCE.cancelEvent(inst.getWin().event);
-//	return false;
-};
-
-/**
- * Cancels the specified event, this will disable the event from be passed to other listeners in event chain.
- *
- * @param {DOMEvent} e Event to cancel.
- */
-TinyMCE_Engine.prototype.cancelEvent = function(e) {
-	if (tinyMCE.isMSIE) {
-		e.returnValue = false;
-		e.cancelBubble = true;
-	} else
-		e.preventDefault();
-};
-
-/**
- * Adds a event handler function to the specified object.
- *
- * @param {HTMLElement} o Object to add event handler to.
- * @param {string} n Event name to listen to for example "click".
- * @param {function} h Function handler to execute when event occurs.
- */
-TinyMCE_Engine.prototype.addEvent = function(o, n, h) {
-	if (o.attachEvent)
-		o.attachEvent("on" + n, h);
-	else
-		o.addEventListener(n, h, false);
-};
-
-/**
- * Adds accessibility keydown handler to the specified select element.
- *
- * @param {DOMEvent} e Event that gets passed when the element is focused.
- * @param {HTMLElement} s Select element that the keydown handler gets added to.
- * @param {DOMWindow} w DOM window reference to add.
- */
-TinyMCE_Engine.prototype.addSelectAccessibility = function(e, s, w) {
-	// Add event handlers 
-	if (!s._isAccessible) {
-		s.onkeydown = tinyMCE.accessibleEventHandler;
-		s.onblur = tinyMCE.accessibleEventHandler;
-		s._isAccessible = true;
-		s._win = w;
-	}
-
-	return false;
-};
-
-/**
- * Accessibility handler that gets executed when the user hits a key in a select element.
- * This handler trams the enter/return or space key and then executes the onchange event handler.
- *
- * @param {DOMEvent} e DOM event object instance.
- */
-TinyMCE_Engine.prototype.accessibleEventHandler = function(e) {
-	var win = this._win;
-	e = tinyMCE.isMSIE ? win.event : e;
-	var elm = tinyMCE.isMSIE ? e.srcElement : e.target;
-
-	// Unpiggyback onchange on blur
-	if (e.type == "blur") {
-		if (elm.oldonchange) {
-			elm.onchange = elm.oldonchange;
-			elm.oldonchange = null;
-		}
-
-		return true;
-	}
-
-	// Piggyback onchange
-	if (elm.nodeName == "SELECT" && !elm.oldonchange) {
-		elm.oldonchange = elm.onchange;
-		elm.onchange = null;
-	}
-
-	// Execute onchange and remove piggyback
-	if (e.keyCode == 13 || e.keyCode == 32) {
-		elm.onchange = elm.oldonchange;
-		elm.onchange();
-		elm.oldonchange = null;
-
-		tinyMCE.cancelEvent(e);
-		return false;
-	}
-
-	return true;
-};
-
-
- - - - - - - - - - - - - - - -
- -
- - -
- - - -
Documentation generated by JSDoc on Fri Feb 24 13:38:20 2006
- - diff --git a/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_ForceParagraphs.class.js.html b/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_ForceParagraphs.class.js.html deleted file mode 100644 index 770d8522a9f..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_ForceParagraphs.class.js.html +++ /dev/null @@ -1,445 +0,0 @@ - - - - - Overview - - - - - - - - - - - - - - - - - - -
- - -
- - -
-
- -

TinyMCE_ForceParagraphs.class.js

- -
- - - - -

Summary

-

- - No overview generated for 'TinyMCE_ForceParagraphs.class.js'

- -

- -
- - - - - - - - -
/**
- * $RCSfile$
- * $Revision$
- * $Date$
- *
- * @author Moxiecode
- * @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
- */
-
-/**
- * Forces P tags on return/enter in Gecko browsers.
- */
-var TinyMCE_ForceParagraphs = {
-	/**
-	 * Inserts a paragraph at the current cursor location.
-	 *
-	 * @param {TinyMCE_Control} inst TinyMCE editor control instance.
-	 * @param {DOMEvent} e DOM event object.
-	 * @return true on success or false if it fails.
-	 * @type boolean
-	 * @private
-	 */
-	_insertPara : function(inst, e) {
-		function isEmpty(para) {
-			function isEmptyHTML(html) {
-				return html.replace(new RegExp('[ \t\r\n]+', 'g'), '').toLowerCase() == "";
-			}
-
-			// Check for images
-			if (para.getElementsByTagName("img").length > 0)
-				return false;
-
-			// Check for tables
-			if (para.getElementsByTagName("table").length > 0)
-				return false;
-
-			// Check for HRs
-			if (para.getElementsByTagName("hr").length > 0)
-				return false;
-
-			// Check all textnodes
-			var nodes = tinyMCE.getNodeTree(para, new Array(), 3);
-			for (var i=0; i<nodes.length; i++) {
-				if (!isEmptyHTML(nodes[i].nodeValue))
-					return false;
-			}
-
-			// No images, no tables, no hrs, no text content then it's empty
-			return true;
-		}
-
-		var doc = inst.getDoc();
-		var sel = inst.getSel();
-		var win = inst.contentWindow;
-		var rng = sel.getRangeAt(0);
-		var body = doc.body;
-		var rootElm = doc.documentElement;
-		var blockName = "P";
-
-	//	tinyMCE.debug(body.innerHTML);
-
-	//	debug(e.target, sel.anchorNode.nodeName, sel.focusNode.nodeName, rng.startContainer, rng.endContainer, rng.commonAncestorContainer, sel.anchorOffset, sel.focusOffset, rng.toString());
-
-		// Setup before range
-		var rngBefore = doc.createRange();
-		rngBefore.setStart(sel.anchorNode, sel.anchorOffset);
-		rngBefore.collapse(true);
-
-		// Setup after range
-		var rngAfter = doc.createRange();
-		rngAfter.setStart(sel.focusNode, sel.focusOffset);
-		rngAfter.collapse(true);
-
-		// Setup start/end points
-		var direct = rngBefore.compareBoundaryPoints(rngBefore.START_TO_END, rngAfter) < 0;
-		var startNode = direct ? sel.anchorNode : sel.focusNode;
-		var startOffset = direct ? sel.anchorOffset : sel.focusOffset;
-		var endNode = direct ? sel.focusNode : sel.anchorNode;
-		var endOffset = direct ? sel.focusOffset : sel.anchorOffset;
-
-		startNode = startNode.nodeName == "BODY" ? startNode.firstChild : startNode;
-		endNode = endNode.nodeName == "BODY" ? endNode.firstChild : endNode;
-
-		// tinyMCE.debug(startNode, endNode);
-
-		// Get block elements
-		var startBlock = tinyMCE.getParentBlockElement(startNode);
-		var endBlock = tinyMCE.getParentBlockElement(endNode);
-
-		// Use current block name
-		if (startBlock != null) {
-			blockName = startBlock.nodeName;
-
-			// Use P instead
-			if (blockName == "TD" || blockName == "TABLE" || (blockName == "DIV" && new RegExp('left|right', 'gi').test(startBlock.style.cssFloat)))
-				blockName = "P";
-		}
-
-		// Within a list use normal behaviour
-		if (tinyMCE.getParentElement(startBlock, "OL,UL") != null)
-			return false;
-
-		// Within a table create new paragraphs
-		if ((startBlock != null && startBlock.nodeName == "TABLE") || (endBlock != null && endBlock.nodeName == "TABLE"))
-			startBlock = endBlock = null;
-
-		// Setup new paragraphs
-		var paraBefore = (startBlock != null && startBlock.nodeName == blockName) ? startBlock.cloneNode(false) : doc.createElement(blockName);
-		var paraAfter = (endBlock != null && endBlock.nodeName == blockName) ? endBlock.cloneNode(false) : doc.createElement(blockName);
-
-		// Is header, then force paragraph under
-		if (/^(H[1-6])$/.test(blockName))
-			paraAfter = doc.createElement("p");
-
-		// Setup chop nodes
-		var startChop = startNode;
-		var endChop = endNode;
-
-		// Get startChop node
-		node = startChop;
-		do {
-			if (node == body || node.nodeType == 9 || tinyMCE.isBlockElement(node))
-				break;
-
-			startChop = node;
-		} while ((node = node.previousSibling ? node.previousSibling : node.parentNode));
-
-		// Get endChop node
-		node = endChop;
-		do {
-			if (node == body || node.nodeType == 9 || tinyMCE.isBlockElement(node))
-				break;
-
-			endChop = node;
-		} while ((node = node.nextSibling ? node.nextSibling : node.parentNode));
-
-		// Fix when only a image is within the TD
-		if (startChop.nodeName == "TD")
-			startChop = startChop.firstChild;
-
-		if (endChop.nodeName == "TD")
-			endChop = endChop.lastChild;
-
-		// If not in a block element
-		if (startBlock == null) {
-			// Delete selection
-			rng.deleteContents();
-			sel.removeAllRanges();
-
-			if (startChop != rootElm && endChop != rootElm) {
-				// Insert paragraph before
-				rngBefore = rng.cloneRange();
-
-				if (startChop == body)
-					rngBefore.setStart(startChop, 0);
-				else
-					rngBefore.setStartBefore(startChop);
-
-				paraBefore.appendChild(rngBefore.cloneContents());
-
-				// Insert paragraph after
-				if (endChop.parentNode.nodeName == blockName)
-					endChop = endChop.parentNode;
-
-				// If not after image
-				//if (rng.startContainer.nodeName != "BODY" && rng.endContainer.nodeName != "BODY")
-					rng.setEndAfter(endChop);
-
-				if (endChop.nodeName != "#text" && endChop.nodeName != "BODY")
-					rngBefore.setEndAfter(endChop);
-
-				var contents = rng.cloneContents();
-				if (contents.firstChild && (contents.firstChild.nodeName == blockName || contents.firstChild.nodeName == "BODY"))
-					paraAfter.innerHTML = contents.firstChild.innerHTML;
-				else
-					paraAfter.appendChild(contents);
-
-				// Check if it's a empty paragraph
-				if (isEmpty(paraBefore))
-					paraBefore.innerHTML = "&nbsp;";
-
-				// Check if it's a empty paragraph
-				if (isEmpty(paraAfter))
-					paraAfter.innerHTML = "&nbsp;";
-
-				// Delete old contents
-				rng.deleteContents();
-				rngAfter.deleteContents();
-				rngBefore.deleteContents();
-
-				// Insert new paragraphs
-				paraAfter.normalize();
-				rngBefore.insertNode(paraAfter);
-				paraBefore.normalize();
-				rngBefore.insertNode(paraBefore);
-
-				// tinyMCE.debug("1: ", paraBefore.innerHTML, paraAfter.innerHTML);
-			} else {
-				body.innerHTML = "<" + blockName + ">&nbsp;</" + blockName + "><" + blockName + ">&nbsp;</" + blockName + ">";
-				paraAfter = body.childNodes[1];
-			}
-
-			inst.selection.selectNode(paraAfter, true, true);
-
-			return true;
-		}
-
-		// Place first part within new paragraph
-		if (startChop.nodeName == blockName)
-			rngBefore.setStart(startChop, 0);
-		else
-			rngBefore.setStartBefore(startChop);
-
-		rngBefore.setEnd(startNode, startOffset);
-		paraBefore.appendChild(rngBefore.cloneContents());
-
-		// Place secound part within new paragraph
-		rngAfter.setEndAfter(endChop);
-		rngAfter.setStart(endNode, endOffset);
-		var contents = rngAfter.cloneContents();
-
-		if (contents.firstChild && contents.firstChild.nodeName == blockName) {
-	/*		var nodes = contents.firstChild.childNodes;
-			for (var i=0; i<nodes.length; i++) {
-				//tinyMCE.debug(nodes[i].nodeName);
-				if (nodes[i].nodeName != "BODY")
-					paraAfter.appendChild(nodes[i]);
-			}
-	*/
-			paraAfter.innerHTML = contents.firstChild.innerHTML;
-		} else
-			paraAfter.appendChild(contents);
-
-		// Check if it's a empty paragraph
-		if (isEmpty(paraBefore))
-			paraBefore.innerHTML = "&nbsp;";
-
-		// Check if it's a empty paragraph
-		if (isEmpty(paraAfter))
-			paraAfter.innerHTML = "&nbsp;";
-
-		// Create a range around everything
-		var rng = doc.createRange();
-
-		if (!startChop.previousSibling && startChop.parentNode.nodeName.toUpperCase() == blockName) {
-			rng.setStartBefore(startChop.parentNode);
-		} else {
-			if (rngBefore.startContainer.nodeName.toUpperCase() == blockName && rngBefore.startOffset == 0)
-				rng.setStartBefore(rngBefore.startContainer);
-			else
-				rng.setStart(rngBefore.startContainer, rngBefore.startOffset);
-		}
-
-		if (!endChop.nextSibling && endChop.parentNode.nodeName.toUpperCase() == blockName)
-			rng.setEndAfter(endChop.parentNode);
-		else
-			rng.setEnd(rngAfter.endContainer, rngAfter.endOffset);
-
-		// Delete all contents and insert new paragraphs
-		rng.deleteContents();
-		rng.insertNode(paraAfter);
-		rng.insertNode(paraBefore);
-		//tinyMCE.debug("2", paraBefore.innerHTML, paraAfter.innerHTML);
-
-		// Normalize
-		paraAfter.normalize();
-		paraBefore.normalize();
-
-		inst.selection.selectNode(paraAfter, true, true);
-
-		return true;
-	},
-
-	/**
-	 * Handles the backspace action in Gecko. This will remove the weird BR element
-	 * that gets generated when a user hits backspace in the beginning of a paragraph.
-	 *
-	 * @param {TinyMCE_Control} inst TinyMCE editor control instance.
-	 * @return true/false if the event should be canceled or not.
-	 * @type
-	 */
-	_handleBackSpace : function(inst) {
-		var r = inst.getRng();
-		var sn = r.startContainer;
-
-		if (sn && sn.nextSibling && sn.nextSibling.nodeName == "BR")
-			sn.nextSibling.parentNode.removeChild(sn.nextSibling);
-
-		return false;
-	}
-};
-
-
- - - - - - - - - - - - - - - -
- -
- - -
- - - -
Documentation generated by JSDoc on Fri Feb 24 13:38:20 2006
- - diff --git a/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_Selection.class.js.html b/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_Selection.class.js.html deleted file mode 100644 index 368226a8006..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_Selection.class.js.html +++ /dev/null @@ -1,633 +0,0 @@ - - - - - Overview - - - - - - - - - - - - - - - - - - -
- - -
- - -
-
- -

TinyMCE_Selection.class.js

- -
- - - - -

Summary

-

- - No overview generated for 'TinyMCE_Selection.class.js'

- -

- -
- - - - - - - - - - - - -
- - Class Summary - -
TinyMCE_Selection 
-
- - - - - - - -
/**
- * $RCSfile$
- * $Revision$
- * $Date$
- *
- * @author Moxiecode
- * @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
- */
-
-/**
- * Constructs a Selection instance and binds it to the specificed TinyMCE editor control.
- *
- * @param {TinyMCE_Control} inst TinyMCE editor control instance.
- * @constructor
- */
-function TinyMCE_Selection(inst) {
-	this.instance = inst;
-};
-
-TinyMCE_Selection.prototype = {
-	/**
-	 * Returns the selected HTML code.
-	 *
-	 * @return Selected HTML contents.
-	 * @type string
-	 */
-	getSelectedHTML : function() {
-		var inst = this.instance;
-		var e, r = this.getRng();
-
-		if (tinyMCE.isSafari) {
-			// Not realy perfect!!
-			return r.toString();
-		}
-
-		e = document.createElement("body");
-
-		if (tinyMCE.isGecko)
-			e.appendChild(r.cloneContents());
-		else
-			e.innerHTML = r.htmlText;
-
-		return tinyMCE._cleanupHTML(inst, inst.contentDocument, inst.settings, e, inst.visualAid);
-	},
-
-	/**
-	 * Returns the selected text.
-	 *
-	 * @return Selected text contents.
-	 * @type string
-	 */
-	getSelectedText : function() {
-		var inst = this.instance;
-		var d, r, s, t;
-
-		if (tinyMCE.isMSIE) {
-			d = inst.getDoc();
-
-			if (d.selection.type == "Text") {
-				r = d.selection.createRange();
-				t = r.text;
-			} else
-				t = '';
-		} else {
-			s = this.getSel();
-
-			if (s && s.toString)
-				t = s.toString();
-			else
-				t = '';
-		}
-
-		return t;
-	},
-
-	/**
-	 * Returns a selection bookmark that can be restored later with moveToBookmark.
-	 * This acts much like the one MSIE has built in but this one is persistent if between DOM
-	 * tree rewritings. The simple mode enables a quicker and non persistent bookmark.
-	 *
-	 * @param {boolean} simple If this is set to true, the selection bookmark will not me dom persistent.
-	 * @return Selection bookmark that can be restored later with moveToBookmark.
-	 * @type TinyMCE_Bookmark
-	 */
-	getBookmark : function(simple) {
-		var rng = this.getRng();
-		var doc = this.instance.getDoc();
-		var sp, le, s, e, nl, i, si, ei;
-		var trng, sx, sy, xx = -999999999;
-
-		// Skip Opera for now
-		if (tinyMCE.isOpera)
-			return null;
-
-		sx = doc.body.scrollLeft + doc.documentElement.scrollLeft;
-		sy = doc.body.scrollTop + doc.documentElement.scrollTop;
-
-		if (tinyMCE.isSafari || tinyMCE.isGecko)
-			return {rng : rng, scrollX : sx, scrollY : sy};
-
-		if (tinyMCE.isMSIE) {
-			if (simple)
-				return {rng : rng};
-
-			if (rng.item) {
-				e = rng.item(0);
-
-				nl = doc.getElementsByTagName(e.nodeName);
-				for (i=0; i<nl.length; i++) {
-					if (e == nl[i]) {
-						sp = i;
-						break;
-					}
-				}
-
-				return {
-					tag : e.nodeName,
-					index : sp,
-					scrollX : sx,
-					scrollY : sy
-				};
-			} else {
-				trng = rng.duplicate();
-				trng.collapse(true);
-				sp = Math.abs(trng.move('character', xx));
-
-				trng = rng.duplicate();
-				trng.collapse(false);
-				le = Math.abs(trng.move('character', xx)) - sp;
-
-				return {
-					start : sp,
-					length : le,
-					scrollX : sx,
-					scrollY : sy
-				};
-			}
-		}
-
-		if (tinyMCE.isGecko) {
-			s = tinyMCE.getParentElement(rng.startContainer);
-			for (si=0; si<s.childNodes.length && s.childNodes[si] != rng.startContainer; si++) ;
-
-			nl = doc.getElementsByTagName(s.nodeName);
-			for (i=0; i<nl.length; i++) {
-					if (s == nl[i]) {
-						sp = i;
-						break;
-					}
-			}
-
-			e = tinyMCE.getParentElement(rng.endContainer);
-			for (ei=0; ei<e.childNodes.length && e.childNodes[ei] != rng.endContainer; ei++) ;
-
-			nl = doc.getElementsByTagName(e.nodeName);
-			for (i=0; i<nl.length; i++) {
-					if (e == nl[i]) {
-						le = i;
-						break;
-					}
-			}
-
-			//tinyMCE.debug(s.nodeName, sp, rng.startOffset, '-' , e.nodeName, le, rng.endOffset);
-			//tinyMCE.debug(sx, sy);
-
-			return {
-				startTag : s.nodeName,
-				start : sp,
-				startIndex : si,
-				endTag : e.nodeName,
-				end : le,
-				endIndex : ei,
-				startOffset : rng.startOffset,
-				endOffset : rng.endOffset,
-				scrollX : sx,
-				scrollY : sy
-			};
-		}
-
-		return null;
-	},
-
-	/**
-	 * Restores the selection to the specified bookmark.
-	 *
-	 * @param {TinyMCE_Bookmark} bookmark Bookmark to restore selection from.
-	 * @return true/false if it was successful or not.
-	 * @type boolean
-	 */
-	moveToBookmark : function(bookmark) {
-		var rng, nl, i;
-		var inst = this.instance;
-		var doc = inst.getDoc();
-		var win = inst.getWin();
-		var sel = this.getSel();
-
-		if (!bookmark)
-			return false;
-
-		if (tinyMCE.isSafari) {
-			sel.setBaseAndExtent(bookmark.startContainer, bookmark.startOffset, bookmark.endContainer, bookmark.endOffset);
-			return true;
-		}
-
-		if (tinyMCE.isMSIE) {
-			if (bookmark.rng) {
-				bookmark.rng.select();
-				return true;
-			}
-
-			if (bookmark.tag) {
-				rng = inst.getBody().createControlRange();
-
-				nl = doc.getElementsByTagName(bookmark.tag);
-
-				if (nl.length > bookmark.index)
-					rng.addElement(nl[bookmark.index]);
-			} else {
-				rng = inst.getSel().createRange();
-				rng.moveToElementText(inst.getBody());
-				rng.collapse(true);
-				rng.moveStart('character', bookmark.start);
-				rng.moveEnd('character', bookmark.length);
-			}
-
-			rng.select();
-
-			win.scrollTo(bookmark.scrollX, bookmark.scrollY);
-			return true;
-		}
-
-		if (tinyMCE.isGecko && bookmark.rng) {
-			sel.removeAllRanges();
-			sel.addRange(bookmark.rng);
-			win.scrollTo(bookmark.scrollX, bookmark.scrollY);
-			return true;
-		}
-
-		if (tinyMCE.isGecko) {
-	//		try {
-				rng = doc.createRange();
-
-				nl = doc.getElementsByTagName(bookmark.startTag);
-				if (nl.length > bookmark.start)
-					rng.setStart(nl[bookmark.start].childNodes[bookmark.startIndex], bookmark.startOffset);
-
-				nl = doc.getElementsByTagName(bookmark.endTag);
-				if (nl.length > bookmark.end)
-					rng.setEnd(nl[bookmark.end].childNodes[bookmark.endIndex], bookmark.endOffset);
-
-				sel.removeAllRanges();
-				sel.addRange(rng);
-	/*		} catch {
-				// Ignore
-			}*/
-
-			win.scrollTo(bookmark.scrollX, bookmark.scrollY);
-			return true;
-		}
-
-		return false;
-	},
-
-	/**
-	 * Selects the specified node.
-	 *
-	 * @param {HTMLNode} node Node object to move selection to.
-	 * @param {boolean} collapse True/false if it will be collasped.
-	 * @param {boolean} select_text_node True/false if the text contents should be selected or not.
-	 * @param {boolean} to_start True/false if the collapse should be to start or end of range.
-	 */
-	selectNode : function(node, collapse, select_text_node, to_start) {
-		var inst = this.instance, sel, rng, nodes;
-
-		if (!node)
-			return;
-
-		if (typeof(collapse) == "undefined")
-			collapse = true;
-
-		if (typeof(select_text_node) == "undefined")
-			select_text_node = false;
-
-		if (typeof(to_start) == "undefined")
-			to_start = true;
-
-		if (tinyMCE.isMSIE) {
-			rng = inst.getBody().createTextRange();
-
-			try {
-				rng.moveToElementText(node);
-
-				if (collapse)
-					rng.collapse(to_start);
-
-				rng.select();
-			} catch (e) {
-				// Throws illigal agrument in MSIE some times
-			}
-		} else {
-			sel = this.getSel();
-
-			if (!sel)
-				return;
-
-			if (tinyMCE.isSafari) {
-				sel.setBaseAndExtent(node, 0, node, node.innerText.length);
-
-				if (collapse) {
-					if (to_start)
-						sel.collapseToStart();
-					else
-						sel.collapseToEnd();
-				}
-
-				this.scrollToNode(node);
-
-				return;
-			}
-
-			rng = inst.getDoc().createRange();
-
-			if (select_text_node) {
-				// Find first textnode in tree
-				nodes = tinyMCE.getNodeTree(node, new Array(), 3);
-				if (nodes.length > 0)
-					rng.selectNodeContents(nodes[0]);
-				else
-					rng.selectNodeContents(node);
-			} else
-				rng.selectNode(node);
-
-			if (collapse) {
-				// Special treatment of textnode collapse
-				if (!to_start && node.nodeType == 3) {
-					rng.setStart(node, node.nodeValue.length);
-					rng.setEnd(node, node.nodeValue.length);
-				} else
-					rng.collapse(to_start);
-			}
-
-			sel.removeAllRanges();
-			sel.addRange(rng);
-		}
-
-		this.scrollToNode(node);
-
-		// Set selected element
-		tinyMCE.selectedElement = null;
-		if (node.nodeType == 1)
-			tinyMCE.selectedElement = node;
-	},
-
-	/**
-	 * Scrolls to the specified node location.
-	 *
-	 * @param {HTMLNode} node Node to scroll to.
-	 */
-	scrollToNode : function(node) {
-		var inst = this.instance;
-		var pos, doc, scrollX, scrollY, height;
-
-		// Scroll to node position
-		pos = tinyMCE.getAbsPosition(node);
-		doc = inst.getDoc();
-		scrollX = doc.body.scrollLeft + doc.documentElement.scrollLeft;
-		scrollY = doc.body.scrollTop + doc.documentElement.scrollTop;
-		height = tinyMCE.isMSIE ? document.getElementById(inst.editorId).style.pixelHeight : inst.targetElement.clientHeight;
-
-		// Only scroll if out of visible area
-		if (!tinyMCE.settings['auto_resize'] && !(pos.absTop > scrollY && pos.absTop < (scrollY - 25 + height)))
-			inst.contentWindow.scrollTo(pos.absLeft, pos.absTop - height + 25); 
-	},
-
-	/**
-	 * Returns the browsers selection instance.
-	 *
-	 * @return Browser selection instance.
-	 * @type DOMSelection
-	 */
-	getSel : function() {
-		var inst = this.instance;
-
-		if (tinyMCE.isMSIE && !tinyMCE.isOpera)
-			return inst.getDoc().selection;
-
-		return inst.contentWindow.getSelection();
-	},
-
-	/**
-	 * Returns the browsers selections first range instance.
-	 *
-	 * @return Browsers selections first range instance.
-	 * @type DOMRange
-	 */
-	getRng : function() {
-		var inst = this.instance;
-		var sel = this.getSel();
-
-		if (sel == null)
-			return null;
-
-		if (tinyMCE.isMSIE && !tinyMCE.isOpera)
-			return sel.createRange();
-
-		if (tinyMCE.isSafari && !sel.getRangeAt)
-			return '' + window.getSelection();
-
-		return sel.getRangeAt(0);
-	},
-
-	/**
-	 * Returns the currently selected/focused element.
-	 *
-	 * @return Currently selected element.
-	 * @type HTMLElement
-	 */
-	getFocusElement : function() {
-		var inst = this.instance;
-
-		if (tinyMCE.isMSIE && !tinyMCE.isOpera) {
-			var doc = inst.getDoc();
-			var rng = doc.selection.createRange();
-
-	//		if (rng.collapse)
-	//			rng.collapse(true);
-
-			var elm = rng.item ? rng.item(0) : rng.parentElement();
-		} else {
-			if (inst.isHidden())
-				return inst.getBody();
-
-			var sel = this.getSel();
-			var rng = this.getRng();
-
-			if (!sel || !rng)
-				return null;
-
-			var elm = rng.commonAncestorContainer;
-			//var elm = (sel && sel.anchorNode) ? sel.anchorNode : null;
-
-			// Handle selection a image or other control like element such as anchors
-			if (!rng.collapsed) {
-				// Is selection small
-				if (rng.startContainer == rng.endContainer) {
-					if (rng.startOffset - rng.endOffset < 2) {
-						if (rng.startContainer.hasChildNodes())
-							elm = rng.startContainer.childNodes[rng.startOffset];
-					}
-				}
-			}
-
-			// Get the element parent of the node
-			elm = tinyMCE.getParentElement(elm);
-
-			//if (tinyMCE.selectedElement != null && tinyMCE.selectedElement.nodeName.toLowerCase() == "img")
-			//	elm = tinyMCE.selectedElement;
-		}
-
-		return elm;
-	}
-};
-
-
- - - - - - - - - - - - - - - -
- -
- - -
- - - -
Documentation generated by JSDoc on Fri Feb 24 13:38:20 2006
- - diff --git a/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_URL.class.js.html b/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_URL.class.js.html deleted file mode 100644 index 4ab201ea78f..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_URL.class.js.html +++ /dev/null @@ -1,530 +0,0 @@ - - - - - Overview - - - - - - - - - - - - - - - - - - -
- - -
- - -
-
- -

TinyMCE_URL.class.js

- -
- - - - -

Summary

-

- - No overview generated for 'TinyMCE_URL.class.js'

- -

- -
- - - - - - - - -
/**
- * $RCSfile$
- * $Revision$
- * $Date$
- *
- * @author Moxiecode
- * @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
- */
-
-/* The contents of this file will be wrapped in a class later on */
-
-/**
- * Parses a URL in to its diffrent components.
- *
- * @param {string} url_str URL string to parse into a URL object.
- * @return URL object based on input string.
- * @type TinyMCE_URL_Item
- */
-TinyMCE_Engine.prototype.parseURL = function(url_str) {
-	var urlParts = new Array();
-
-	if (url_str) {
-		var pos, lastPos;
-
-		// Parse protocol part
-		pos = url_str.indexOf('://');
-		if (pos != -1) {
-			urlParts['protocol'] = url_str.substring(0, pos);
-			lastPos = pos + 3;
-		}
-
-		// Find port or path start
-		for (var i=lastPos; i<url_str.length; i++) {
-			var chr = url_str.charAt(i);
-
-			if (chr == ':')
-				break;
-
-			if (chr == '/')
-				break;
-		}
-		pos = i;
-
-		// Get host
-		urlParts['host'] = url_str.substring(lastPos, pos);
-
-		// Get port
-		urlParts['port'] = "";
-		lastPos = pos;
-		if (url_str.charAt(pos) == ':') {
-			pos = url_str.indexOf('/', lastPos);
-			urlParts['port'] = url_str.substring(lastPos+1, pos);
-		}
-
-		// Get path
-		lastPos = pos;
-		pos = url_str.indexOf('?', lastPos);
-
-		if (pos == -1)
-			pos = url_str.indexOf('#', lastPos);
-
-		if (pos == -1)
-			pos = url_str.length;
-
-		urlParts['path'] = url_str.substring(lastPos, pos);
-
-		// Get query
-		lastPos = pos;
-		if (url_str.charAt(pos) == '?') {
-			pos = url_str.indexOf('#');
-			pos = (pos == -1) ? url_str.length : pos;
-			urlParts['query'] = url_str.substring(lastPos+1, pos);
-		}
-
-		// Get anchor
-		lastPos = pos;
-		if (url_str.charAt(pos) == '#') {
-			pos = url_str.length;
-			urlParts['anchor'] = url_str.substring(lastPos+1, pos);
-		}
-	}
-
-	return urlParts;
-};
-
-/**
- * Serializes the specified URL object into a string.
- *
- * @param {TinyMCE_URL_Item} up URL object to serialize.
- * @return Serialized URL object.
- * @type string
- */
-TinyMCE_Engine.prototype.serializeURL = function(up) {
-	var o = "";
-
-	if (up['protocol'])
-		o += up['protocol'] + "://";
-
-	if (up['host'])
-		o += up['host'];
-
-	if (up['port'])
-		o += ":" + up['port'];
-
-	if (up['path'])
-		o += up['path'];
-
-	if (up['query'])
-		o += "?" + up['query'];
-
-	if (up['anchor'])
-		o += "#" + up['anchor'];
-
-	return o;
-};
-
-/**
- * Converts an absolute path to relative path.
- *
- * @param {string} base_url URL to make as a base path, URLs will be converted relative from this point.
- * @param {string} url_to_relative URL to convert into a relative URL.
- * @return Relative URL based in input.
- * @type string
- */
-TinyMCE_Engine.prototype.convertAbsoluteURLToRelativeURL = function(base_url, url_to_relative) {
-	var baseURL = this.parseURL(base_url);
-	var targetURL = this.parseURL(url_to_relative);
-	var strTok1;
-	var strTok2;
-	var breakPoint = 0;
-	var outPath = "";
-	var forceSlash = false;
-
-	if (targetURL.path == "")
-		targetURL.path = "/";
-	else
-		forceSlash = true;
-
-	// Crop away last path part
-	base_url = baseURL.path.substring(0, baseURL.path.lastIndexOf('/'));
-	strTok1 = base_url.split('/');
-	strTok2 = targetURL.path.split('/');
-
-	if (strTok1.length >= strTok2.length) {
-		for (var i=0; i<strTok1.length; i++) {
-			if (i >= strTok2.length || strTok1[i] != strTok2[i]) {
-				breakPoint = i + 1;
-				break;
-			}
-		}
-	}
-
-	if (strTok1.length < strTok2.length) {
-		for (var i=0; i<strTok2.length; i++) {
-			if (i >= strTok1.length || strTok1[i] != strTok2[i]) {
-				breakPoint = i + 1;
-				break;
-			}
-		}
-	}
-
-	if (breakPoint == 1)
-		return targetURL.path;
-
-	for (var i=0; i<(strTok1.length-(breakPoint-1)); i++)
-		outPath += "../";
-
-	for (var i=breakPoint-1; i<strTok2.length; i++) {
-		if (i != (breakPoint-1))
-			outPath += "/" + strTok2[i];
-		else
-			outPath += strTok2[i];
-	}
-
-	targetURL.protocol = null;
-	targetURL.host = null;
-	targetURL.port = null;
-	targetURL.path = outPath == "" && forceSlash ? "/" : outPath;
-
-	// Remove document prefix from local anchors
-	var fileName = baseURL.path;
-	var pos;
-
-	if ((pos = fileName.lastIndexOf('/')) != -1)
-		fileName = fileName.substring(pos + 1);
-
-	// Is local anchor
-	if (fileName == targetURL.path && targetURL.anchor != "")
-		targetURL.path = "";
-
-	// If empty and not local anchor force slash
-	if (targetURL.path == "" && !targetURL.anchor)
-		targetURL.path = "/";
-
-	return this.serializeURL(targetURL);
-};
-
-/**
- * Converts an relative path to absolute path.
- *
- * @param {string} base_url URL to make as a base path, URLs will be converted absolute from this point.
- * @param {string} relative_url URL to convert into a absolute URL.
- * @return Absolute URL based in input.
- * @type string
- */
-TinyMCE_Engine.prototype.convertRelativeToAbsoluteURL = function(base_url, relative_url) {
-	var baseURL = this.parseURL(base_url);
-	var relURL = this.parseURL(relative_url);
-
-	if (relative_url == "" || relative_url.charAt(0) == '/' || relative_url.indexOf('://') != -1 || relative_url.indexOf('mailto:') != -1 || relative_url.indexOf('javascript:') != -1)
-		return relative_url;
-
-	// Split parts
-	baseURLParts = baseURL['path'].split('/');
-	relURLParts = relURL['path'].split('/');
-
-	// Remove empty chunks
-	var newBaseURLParts = new Array();
-	for (var i=baseURLParts.length-1; i>=0; i--) {
-		if (baseURLParts[i].length == 0)
-			continue;
-
-		newBaseURLParts[newBaseURLParts.length] = baseURLParts[i];
-	}
-	baseURLParts = newBaseURLParts.reverse();
-
-	// Merge relURLParts chunks
-	var newRelURLParts = new Array();
-	var numBack = 0;
-	for (var i=relURLParts.length-1; i>=0; i--) {
-		if (relURLParts[i].length == 0 || relURLParts[i] == ".")
-			continue;
-
-		if (relURLParts[i] == '..') {
-			numBack++;
-			continue;
-		}
-
-		if (numBack > 0) {
-			numBack--;
-			continue;
-		}
-
-		newRelURLParts[newRelURLParts.length] = relURLParts[i];
-	}
-
-	relURLParts = newRelURLParts.reverse();
-
-	// Remove end from absolute path
-	var len = baseURLParts.length-numBack;
-	var absPath = (len <= 0 ? "" : "/") + baseURLParts.slice(0, len).join('/') + "/" + relURLParts.join('/');
-	var start = "", end = "";
-
-	// Build output URL
-	relURL.protocol = baseURL.protocol;
-	relURL.host = baseURL.host;
-	relURL.port = baseURL.port;
-
-	// Re-add trailing slash if it's removed
-	if (relURL.path.charAt(relURL.path.length-1) == "/")
-		absPath += "/";
-
-	relURL.path = absPath;
-
-	return this.serializeURL(relURL);
-};
-
-/**
- * Converts the specified URL based in TinyMCE configuration settings.
- *
- * @param {string} url URL to convert based on config.
- * @param {HTMLElement} node HTML element that holds the URL.
- * @param {boolean} on_save Is this convertion the final output URL.
- * @return Converted URL string.
- * @type string
- */
-TinyMCE_Engine.prototype.convertURL = function(url, node, on_save) {
-	var prot = document.location.protocol;
-	var host = document.location.hostname;
-	var port = document.location.port;
-
-	// Pass through file protocol
-	if (prot == "file:")
-		return url;
-
-	// Something is wrong, remove weirdness
-	url = tinyMCE.regexpReplace(url, '(http|https):///', '/');
-
-	// Mailto link or anchor (Pass through)
-	if (url.indexOf('mailto:') != -1 || url.indexOf('javascript:') != -1 || tinyMCE.regexpReplace(url,'[ \t\r\n\+]|%20','').charAt(0) == "#")
-		return url;
-
-	// Fix relative/Mozilla
-	if (!tinyMCE.isMSIE && !on_save && url.indexOf("://") == -1 && url.charAt(0) != '/')
-		return tinyMCE.settings['base_href'] + url;
-
-	// Handle relative URLs
-	if (on_save && tinyMCE.getParam('relative_urls')) {
-		var curl = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], url);
-		if (curl.charAt(0) == '/')
-			curl = tinyMCE.settings['document_base_prefix'] + curl;
-
-		var urlParts = tinyMCE.parseURL(curl);
-		var tmpUrlParts = tinyMCE.parseURL(tinyMCE.settings['document_base_url']);
-
-		// Force relative
-		if (urlParts['host'] == tmpUrlParts['host'] && (urlParts['port'] == tmpUrlParts['port']))
-			return tinyMCE.convertAbsoluteURLToRelativeURL(tinyMCE.settings['document_base_url'], curl);
-	}
-
-	// Handle absolute URLs
-	if (!tinyMCE.getParam('relative_urls')) {
-		var urlParts = tinyMCE.parseURL(url);
-		var baseUrlParts = tinyMCE.parseURL(tinyMCE.settings['base_href']);
-
-		// Force absolute URLs from relative URLs
-		url = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], url);
-
-		// If anchor and path is the same page
-		if (urlParts['anchor'] && urlParts['path'] == baseUrlParts['path'])
-			return "#" + urlParts['anchor'];
-	}
-
-	// Remove current domain
-	if (tinyMCE.getParam('remove_script_host')) {
-		var start = "", portPart = "";
-
-		if (port != "")
-			portPart = ":" + port;
-
-		start = prot + "//" + host + portPart + "/";
-
-		if (url.indexOf(start) == 0)
-			url = url.substring(start.length-1);
-	}
-
-	return url;
-};
-
-/**
- * Converts all img and a element URLs to absolute URLs. This will use the mce_src or mce_href attribute values
- * if they are provided. This function is used when the editor is initialized.
- *
- * @param {HTMLElement} body HTML element to convert all URLs in.
- */
-TinyMCE_Engine.prototype.convertAllRelativeURLs = function(body) {
-	// Convert all image URL:s to absolute URL
-	var elms = body.getElementsByTagName("img");
-	for (var i=0; i<elms.length; i++) {
-		var src = tinyMCE.getAttrib(elms[i], 'src');
-
-		var msrc = tinyMCE.getAttrib(elms[i], 'mce_src');
-		if (msrc != "")
-			src = msrc;
-
-		if (src != "") {
-			src = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], src);
-			elms[i].setAttribute("src", src);
-		}
-	}
-
-	// Convert all link URL:s to absolute URL
-	var elms = body.getElementsByTagName("a");
-	for (var i=0; i<elms.length; i++) {
-		var href = tinyMCE.getAttrib(elms[i], 'href');
-
-		var mhref = tinyMCE.getAttrib(elms[i], 'mce_href');
-		if (mhref != "")
-			href = mhref;
-
-		if (href && href != "") {
-			href = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], href);
-			elms[i].setAttribute("href", href);
-		}
-	}
-};
-
-
- - - - - - - - - - - - - - - -
- -
- - -
- - - -
Documentation generated by JSDoc on Fri Feb 24 13:38:20 2006
- - diff --git a/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_UndoRedo.class.js.html b/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_UndoRedo.class.js.html deleted file mode 100644 index 35027a63d25..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/overview-summary-TinyMCE_UndoRedo.class.js.html +++ /dev/null @@ -1,296 +0,0 @@ - - - - - Overview - - - - - - - - - - - - - - - - - - -
- - -
- - -
-
- -

TinyMCE_UndoRedo.class.js

- -
- - - - -

Summary

-

- - No overview generated for 'TinyMCE_UndoRedo.class.js'

- -

- -
- - - - - - - - - - - - -
- - Class Summary - -
TinyMCE_UndoRedo 
-
- - - - - - - -
/**
- * $RCSfile$
- * $Revision$
- * $Date$
- *
- * @author Moxiecode
- * @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
- */
-
-/**
- * Constructs a undo redo instance, this instance handles the custom undo/redo handeling in TinyMCE.
- *
- * @param {TinyMCE_Control} inst TinyMCE editor control instance.
- * @constructor
- */
-function TinyMCE_UndoRedo(inst) {
-	this.instance = inst;
-	this.undoLevels = new Array();
-	this.undoIndex = 0;
-	this.typingUndoIndex = -1;
-	this.undoRedo = true;
-};
-
-TinyMCE_UndoRedo.prototype = {
-	/**
-	 * Adds a new undo level, this will take a snapshot of the current instance HTML or use the specified level.
-	 *
-	 * @param {TinyMCE_UndoRedoLevel} l Optional undo/redo level to add.
-	 * @return true/false on success or failure.
-	 * @type boolean
-	 */
-	add : function(l) {
-		var b;
-
-		if (l) {
-			this.undoLevels[this.undoLevels.length] = l;
-			return true;
-		}
-
-		var inst = this.instance;
-
-		if (this.typingUndoIndex != -1) {
-			this.undoIndex = this.typingUndoIndex;
-			// tinyMCE.debug("Override: " + this.undoIndex);
-		}
-
-		var newHTML = tinyMCE.trim(inst.getBody().innerHTML);
-		if (this.undoLevels[this.undoIndex] && newHTML != this.undoLevels[this.undoIndex].content) {
-			//tinyMCE.debug(newHTML, this.undoLevels[this.undoIndex]);
-
-			tinyMCE.dispatchCallback(inst, 'onchange_callback', 'onChange', inst);
-
-			// Time to compress
-			var customUndoLevels = tinyMCE.settings['custom_undo_redo_levels'];
-			if (customUndoLevels != -1 && this.undoLevels.length > customUndoLevels) {
-				for (var i=0; i<this.undoLevels.length-1; i++) {
-					//tinyMCE.debug(this.undoLevels[i] + "=" + this.undoLevels[i+1]);
-					this.undoLevels[i] = this.undoLevels[i+1];
-				}
-
-				this.undoLevels.length--;
-				this.undoIndex--;
-			}
-
-			b = inst.undoBookmark;
-			if (!b)
-				b = inst.selection.getBookmark();
-
-			this.undoIndex++;
-			this.undoLevels[this.undoIndex] = {
-				content : newHTML,
-				bookmark : b
-			};
-
-			this.undoLevels.length = this.undoIndex + 1;
-
-			//tinyMCE.debug("level added" + this.undoIndex);
-			return true;
-
-			// tinyMCE.debug(this.undoIndex + "," + (this.undoLevels.length-1));
-		}
-
-		return false;
-	},
-
-	/**
-	 * Performes a undo action, this will restore the HTML contents of the editor to a former state.
-	 */
-	undo : function() {
-		var inst = this.instance;
-
-		// Do undo
-		if (this.undoIndex > 0) {
-			this.undoIndex--;
-			tinyMCE.setInnerHTML(inst.getBody(), this.undoLevels[this.undoIndex].content);
-			inst.repaint();
-			if (inst.settings.custom_undo_redo_restore_selection)
-				inst.selection.moveToBookmark(this.undoLevels[this.undoIndex].bookmark);
-		}
-
-		// tinyMCE.debug("Undo - undo levels:" + this.undoLevels.length + ", undo index: " + this.undoIndex);
-	},
-
-	/**
-	 * Performes a undo action, this will restore the HTML contents of the editor to a former undoed state.
-	 */
-	redo : function() {
-		var inst = this.instance;
-
-		tinyMCE.execCommand("mceEndTyping");
-
-		if (this.undoIndex < (this.undoLevels.length-1)) {
-			this.undoIndex++;
-			tinyMCE.setInnerHTML(inst.getBody(), this.undoLevels[this.undoIndex].content);
-			inst.repaint();
-//					if (this.undoIndex > 0)
-//						inst.selection.moveToBookmark(this.undoLevels[this.undoIndex-1].bookmark);
-			if (inst.settings.custom_undo_redo_restore_selection)
-				inst.selection.moveToBookmark(this.undoLevels[this.undoIndex].bookmark);
-			// tinyMCE.debug("Redo - undo levels:" + this.undoLevels.length + ", undo index: " + this.undoIndex);
-		}
-
-		tinyMCE.triggerNodeChange();
-	}
-};
-
-
- - - - - - - - - - - - - - - -
- -
- - -
- - - -
Documentation generated by JSDoc on Fri Feb 24 13:38:20 2006
- - diff --git a/lib/editor/tinymce/docs/tinymce_api/overview-summary.html b/lib/editor/tinymce/docs/tinymce_api/overview-summary.html deleted file mode 100644 index f952a6e1cfd..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/overview-summary.html +++ /dev/null @@ -1,216 +0,0 @@ - - - - - Overview - - - - - - - - - - - - - - - - - - -
- - -
- - -
-
- -

JSDoc Documentation

- -
- - -

Summary

-

- - No summary generated for these documents. - -

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - File Summary - -
TinyMCE_Array.class.js 
TinyMCE_Cleanup.class.js 
TinyMCE_Control.class.js 
TinyMCE_Debug.class.js 
TinyMCE_DOMUtils.class.js 
TinyMCE_Engine.class.js 
TinyMCE_Event.class.js 
TinyMCE_ForceParagraphs.class.js 
TinyMCE_Selection.class.js 
TinyMCE_UndoRedo.class.js 
TinyMCE_URL.class.js 
-
- - - - - - - - - - - - - - - - - - - - - -
- -
- - -
- - - -
Documentation generated by JSDoc on Fri Feb 24 13:38:20 2006
- - diff --git a/lib/editor/tinymce/docs/tinymce_api/overview-tree.html b/lib/editor/tinymce/docs/tinymce_api/overview-tree.html deleted file mode 100644 index 553e0697584..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/overview-tree.html +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - Class Hierarchy - - - - - - - - - - - - - - - - - - -
- -
- - -
-

Class Hierarchy

- - - -
- - - - - - - - - - - - - -
- -
- - -
- - - -
Documentation generated by JSDoc on Fri Feb 24 13:38:20 2006
- - diff --git a/lib/editor/tinymce/docs/tinymce_api/stylesheet.css b/lib/editor/tinymce/docs/tinymce_api/stylesheet.css deleted file mode 100644 index 7a35c0c1848..00000000000 --- a/lib/editor/tinymce/docs/tinymce_api/stylesheet.css +++ /dev/null @@ -1,39 +0,0 @@ -/* JSDoc style sheet */ - -/* Define colors, fonts and other style attributes here to override the defaults */ - -/* Page background color */ -body { background-color: #FFFFFF } - -/* Table colors */ -.TableHeadingColor { background: #CCCCFF } /* Dark mauve */ -.TableSubHeadingColor { background: #EEEEFF } /* Light mauve */ -.TableRowColor { background: #FFFFFF } /* White */ - -/* Font used in left-hand frame lists */ -.FrameTitleFont { font-size: 10pt; font-family: Helvetica, Arial, san-serif } -.FrameHeadingFont { font-size: 10pt; font-family: Helvetica, Arial, san-serif } -.FrameItemFont { font-size: 10pt; font-family: Helvetica, Arial, san-serif } - -/* Example of smaller, sans-serif font in frames */ -/* .FrameItemFont { font-size: 10pt; font-family: Helvetica, Arial, sans-serif } */ - -/* Navigation bar fonts and colors */ -.NavBarCell1 { background-color:#EEEEFF;}/* Light mauve */ -.NavBarCell1Rev { background-color:#00008B;}/* Dark Blue */ -.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;} -.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;} - -.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} -.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} - -.jsdoc_ctime { font-family: Arial, Helvetica, sans-serif; font-size: 9pt; - text-align: right } - -/* Sourcecode view */ -.sourceview { background: #FFFFFF } -.attrib { color: #DD7777 } -.comment { color: #55AA55 } -.reserved { color: #FF5555 } -.literal { color: #5555FF } -