aboutsummaryrefslogtreecommitdiffstats
path: root/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras
diff options
context:
space:
mode:
Diffstat (limited to 'tinymce/jscripts/tiny_mce/plugins/xhtmlxtras')
-rw-r--r--tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/abbr.htm141
-rw-r--r--tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/acronym.htm141
-rw-r--r--tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/attributes.htm148
-rw-r--r--tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/cite.htm141
-rw-r--r--tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css11
-rw-r--r--tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/popup.css9
-rw-r--r--tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/del.htm161
-rw-r--r--tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js1
-rw-r--r--tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js144
-rw-r--r--tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/ins.htm161
-rw-r--r--tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js28
-rw-r--r--tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js28
-rw-r--r--tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js126
-rw-r--r--tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/cite.js28
-rw-r--r--tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/del.js63
-rw-r--r--tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js231
-rw-r--r--tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/ins.js62
-rw-r--r--tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js32
18 files changed, 0 insertions, 1656 deletions
diff --git a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/abbr.htm b/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/abbr.htm
deleted file mode 100644
index 3aeac0deb..000000000
--- a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/abbr.htm
+++ /dev/null
@@ -1,141 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>{#xhtmlxtras_dlg.title_abbr_element}</title>
- <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
- <script type="text/javascript" src="../../utils/mctabs.js"></script>
- <script type="text/javascript" src="../../utils/form_utils.js"></script>
- <script type="text/javascript" src="../../utils/editable_selects.js"></script>
- <script type="text/javascript" src="js/element_common.js"></script>
- <script type="text/javascript" src="js/abbr.js"></script>
- <link rel="stylesheet" type="text/css" href="css/popup.css" />
-</head>
-<body style="display: none">
-<form onsubmit="insertAbbr();return false;" action="#">
- <div class="tabs">
- <ul>
- <li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li>
- <!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> -->
- </ul>
- </div>
-
- <div class="panel_wrapper">
- <div id="general_panel" class="panel current">
- <fieldset>
- <legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend>
- <table border="0" cellpadding="0" cellspacing="4">
- <tr>
- <td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td>
- <td><input id="title" name="title" type="text" value="" class="field mceFocus" /></td>
- </tr>
- <tr>
- <td class="label"><label id="idlabel" for="id">{#xhtmlxtras_dlg.attribute_label_id}</label>:</td>
- <td><input id="id" name="id" type="text" value="" class="field" /></td>
- </tr>
- <tr>
- <td class="label"><label id="classlabel" for="class">{#xhtmlxtras_dlg.attribute_label_class}</label>:</td>
- <td>
- <select id="class" name="class" class="field mceEditableSelect">
- <option value="">{#not_set}</option>
- </select>
- </td>
- </tr>
- <tr>
- <td class="label"><label id="stylelabel" for="class">{#xhtmlxtras_dlg.attribute_label_style}</label>:</td>
- <td><input id="style" name="style" type="text" value="" class="field" /></td>
- </tr>
- <tr>
- <td class="label"><label id="dirlabel" for="dir">{#xhtmlxtras_dlg.attribute_label_langdir}</label>:</td>
- <td>
- <select id="dir" name="dir" class="field">
- <option value="">{#not_set}</option>
- <option value="ltr">{#xhtmlxtras_dlg.attribute_option_ltr}</option>
- <option value="rtl">{#xhtmlxtras_dlg.attribute_option_rtl}</option>
- </select>
- </td>
- </tr>
- <tr>
- <td class="label"><label id="langlabel" for="lang">{#xhtmlxtras_dlg.attribute_label_langcode}</label>:</td>
- <td>
- <input id="lang" name="lang" type="text" value="" class="field" />
- </td>
- </tr>
- </table>
- </fieldset>
- </div>
- <div id="events_panel" class="panel">
- <fieldset>
- <legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend>
-
- <table border="0" cellpadding="0" cellspacing="4">
- <tr>
- <td class="label"><label for="onfocus">onfocus</label>:</td>
- <td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onblur">onblur</label>:</td>
- <td><input id="onblur" name="onblur" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onclick">onclick</label>:</td>
- <td><input id="onclick" name="onclick" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="ondblclick">ondblclick</label>:</td>
- <td><input id="ondblclick" name="ondblclick" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmousedown">onmousedown</label>:</td>
- <td><input id="onmousedown" name="onmousedown" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmouseup">onmouseup</label>:</td>
- <td><input id="onmouseup" name="onmouseup" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmouseover">onmouseover</label>:</td>
- <td><input id="onmouseover" name="onmouseover" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmousemove">onmousemove</label>:</td>
- <td><input id="onmousemove" name="onmousemove" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmouseout">onmouseout</label>:</td>
- <td><input id="onmouseout" name="onmouseout" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onkeypress">onkeypress</label>:</td>
- <td><input id="onkeypress" name="onkeypress" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onkeydown">onkeydown</label>:</td>
- <td><input id="onkeydown" name="onkeydown" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onkeyup">onkeyup</label>:</td>
- <td><input id="onkeyup" name="onkeyup" type="text" value="" class="field" /></td>
- </tr>
- </table>
- </fieldset>
- </div>
- </div>
- <div class="mceActionPanel">
- <input type="submit" id="insert" name="insert" value="{#update}" />
- <input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeAbbr();" style="display: none;" />
- <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
- </div>
-</form>
-</body>
-</html>
diff --git a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/acronym.htm b/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/acronym.htm
deleted file mode 100644
index 31ee7b70f..000000000
--- a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/acronym.htm
+++ /dev/null
@@ -1,141 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>{#xhtmlxtras_dlg.title_acronym_element}</title>
- <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
- <script type="text/javascript" src="../../utils/mctabs.js"></script>
- <script type="text/javascript" src="../../utils/form_utils.js"></script>
- <script type="text/javascript" src="../../utils/editable_selects.js"></script>
- <script type="text/javascript" src="js/element_common.js"></script>
- <script type="text/javascript" src="js/acronym.js"></script>
- <link rel="stylesheet" type="text/css" href="css/popup.css" />
-</head>
-<body style="display: none">
-<form onsubmit="insertAcronym();return false;" action="#">
- <div class="tabs">
- <ul>
- <li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li>
- <!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> -->
- </ul>
- </div>
-
- <div class="panel_wrapper">
- <div id="general_panel" class="panel current">
- <fieldset>
- <legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend>
- <table border="0" cellpadding="0" cellspacing="4">
- <tr>
- <td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td>
- <td><input id="title" name="title" type="text" value="" class="field mceFocus" /></td>
- </tr>
- <tr>
- <td class="label"><label id="idlabel" for="id">{#xhtmlxtras_dlg.attribute_label_id}</label>:</td>
- <td><input id="id" name="id" type="text" value="" class="field" /></td>
- </tr>
- <tr>
- <td class="label"><label id="classlabel" for="class">{#xhtmlxtras_dlg.attribute_label_class}</label>:</td>
- <td>
- <select id="class" name="class" class="field mceEditableSelect">
- <option value="">{#not_set}</option>
- </select>
- </td>
- </tr>
- <tr>
- <td class="label"><label id="stylelabel" for="class">{#xhtmlxtras_dlg.attribute_label_style}</label>:</td>
- <td><input id="style" name="style" type="text" value="" class="field" /></td>
- </tr>
- <tr>
- <td class="label"><label id="dirlabel" for="dir">{#xhtmlxtras_dlg.attribute_label_langdir}</label>:</td>
- <td>
- <select id="dir" name="dir" class="field">
- <option value="">{#not_set}</option>
- <option value="ltr">{#xhtmlxtras_dlg.attribute_option_ltr}</option>
- <option value="rtl">{#xhtmlxtras_dlg.attribute_option_rtl}</option>
- </select>
- </td>
- </tr>
- <tr>
- <td class="label"><label id="langlabel" for="lang">{#xhtmlxtras_dlg.attribute_label_langcode}</label>:</td>
- <td>
- <input id="lang" name="lang" type="text" value="" class="field" />
- </td>
- </tr>
- </table>
- </fieldset>
- </div>
- <div id="events_panel" class="panel">
- <fieldset>
- <legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend>
-
- <table border="0" cellpadding="0" cellspacing="4">
- <tr>
- <td class="label"><label for="onfocus">onfocus</label>:</td>
- <td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onblur">onblur</label>:</td>
- <td><input id="onblur" name="onblur" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onclick">onclick</label>:</td>
- <td><input id="onclick" name="onclick" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="ondblclick">ondblclick</label>:</td>
- <td><input id="ondblclick" name="ondblclick" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmousedown">onmousedown</label>:</td>
- <td><input id="onmousedown" name="onmousedown" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmouseup">onmouseup</label>:</td>
- <td><input id="onmouseup" name="onmouseup" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmouseover">onmouseover</label>:</td>
- <td><input id="onmouseover" name="onmouseover" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmousemove">onmousemove</label>:</td>
- <td><input id="onmousemove" name="onmousemove" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmouseout">onmouseout</label>:</td>
- <td><input id="onmouseout" name="onmouseout" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onkeypress">onkeypress</label>:</td>
- <td><input id="onkeypress" name="onkeypress" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onkeydown">onkeydown</label>:</td>
- <td><input id="onkeydown" name="onkeydown" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onkeyup">onkeyup</label>:</td>
- <td><input id="onkeyup" name="onkeyup" type="text" value="" class="field" /></td>
- </tr>
- </table>
- </fieldset>
- </div>
- </div>
- <div class="mceActionPanel">
- <input type="submit" id="insert" name="insert" value="{#update}" />
- <input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeAcronym();" style="display: none;" />
- <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
- </div>
-</form>
-</body>
-</html>
diff --git a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/attributes.htm b/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/attributes.htm
deleted file mode 100644
index 17054da3e..000000000
--- a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/attributes.htm
+++ /dev/null
@@ -1,148 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>{#xhtmlxtras_dlg.attribs_title}</title>
- <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
- <script type="text/javascript" src="../../utils/mctabs.js"></script>
- <script type="text/javascript" src="../../utils/editable_selects.js"></script>
- <script type="text/javascript" src="../../utils/form_utils.js"></script>
- <script type="text/javascript" src="js/attributes.js"></script>
- <link rel="stylesheet" type="text/css" href="css/attributes.css" />
-</head>
-<body style="display: none">
-<form onsubmit="insertAction();return false;" action="#">
- <div class="tabs">
- <ul>
- <li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.attribute_attrib_tab}</a></span></li>
- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.attribute_events_tab}</a></span></li>
- </ul>
- </div>
-
- <div class="panel_wrapper">
- <div id="general_panel" class="panel current">
- <fieldset>
- <legend>{#xhtmlxtras_dlg.attribute_attrib_tab}</legend>
- <table border="0" cellpadding="0" cellspacing="4">
- <tr>
- <td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td>
- <td><input id="title" name="title" type="text" value="" class="mceFocus" /></td>
- </tr>
- <tr>
- <td class="label"><label id="idlabel" for="id">{#xhtmlxtras_dlg.attribute_label_id}</label>:</td>
- <td><input id="id" name="id" type="text" value="" /></td>
- </tr>
- <tr>
- <td><label id="classlabel" for="classlist">{#class_name}</label></td>
- <td>
- <select id="classlist" name="classlist" class="mceEditableSelect">
- <option value="" selected="selected">{#not_set}</option>
- </select>
- </td>
- </tr>
- <tr>
- <td class="label"><label id="stylelabel" for="style">{#xhtmlxtras_dlg.attribute_label_style}</label>:</td>
- <td><input id="style" name="style" type="text" value="" /></td>
- </tr>
- <tr>
- <td class="label"><label id="dirlabel" for="dir">{#xhtmlxtras_dlg.attribute_label_langdir}</label>:</td>
- <td>
- <select id="dir" name="dir">
- <option value="">{#not_set}</option>
- <option value="ltr">{#xhtmlxtras_dlg.option_ltr}</option>
- <option value="rtl">{#xhtmlxtras_dlg.option_rtl}</option>
- </select>
- </td>
- </tr>
- <tr>
- <td class="label"><label id="langlabel" for="lang">{#xhtmlxtras_dlg.attribute_label_langcode}</label>:</td>
- <td>
- <input id="lang" name="lang" type="text" value="" />
- </td>
- </tr>
- <tr>
- <td><label id="tabindexlabel" for="tabindex">{#xhtmlxtras_dlg.attribute_label_tabindex}</label></td>
- <td><input type="text" id="tabindex" name="tabindex" value="" /></td>
- </tr>
-
- <tr>
- <td><label id="accesskeylabel" for="accesskey">{#xhtmlxtras_dlg.attribute_label_accesskey}</label></td>
- <td><input type="text" id="accesskey" name="accesskey" value="" /></td>
- </tr>
- </table>
- </fieldset>
- </div>
- <div id="events_panel" class="panel">
- <fieldset>
- <legend>{#xhtmlxtras_dlg.attribute_events_tab}</legend>
-
- <table border="0" cellpadding="0" cellspacing="4">
- <tr>
- <td class="label"><label for="onfocus">onfocus</label>:</td>
- <td><input id="onfocus" name="onfocus" type="text" value="" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onblur">onblur</label>:</td>
- <td><input id="onblur" name="onblur" type="text" value="" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onclick">onclick</label>:</td>
- <td><input id="onclick" name="onclick" type="text" value="" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="ondblclick">ondblclick</label>:</td>
- <td><input id="ondblclick" name="ondblclick" type="text" value="" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmousedown">onmousedown</label>:</td>
- <td><input id="onmousedown" name="onmousedown" type="text" value="" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmouseup">onmouseup</label>:</td>
- <td><input id="onmouseup" name="onmouseup" type="text" value="" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmouseover">onmouseover</label>:</td>
- <td><input id="onmouseover" name="onmouseover" type="text" value="" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmousemove">onmousemove</label>:</td>
- <td><input id="onmousemove" name="onmousemove" type="text" value="" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmouseout">onmouseout</label>:</td>
- <td><input id="onmouseout" name="onmouseout" type="text" value="" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onkeypress">onkeypress</label>:</td>
- <td><input id="onkeypress" name="onkeypress" type="text" value="" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onkeydown">onkeydown</label>:</td>
- <td><input id="onkeydown" name="onkeydown" type="text" value="" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onkeyup">onkeyup</label>:</td>
- <td><input id="onkeyup" name="onkeyup" type="text" value="" /></td>
- </tr>
- </table>
- </fieldset>
- </div>
- </div>
- <div class="mceActionPanel">
- <input type="submit" id="insert" name="insert" value="{#insert}" />
- <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
- </div>
-</form>
-</body>
-</html>
diff --git a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/cite.htm b/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/cite.htm
deleted file mode 100644
index d0a3e3a8e..000000000
--- a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/cite.htm
+++ /dev/null
@@ -1,141 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>{#xhtmlxtras_dlg.title_cite_element}</title>
- <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
- <script type="text/javascript" src="../../utils/mctabs.js"></script>
- <script type="text/javascript" src="../../utils/form_utils.js"></script>
- <script type="text/javascript" src="../../utils/editable_selects.js"></script>
- <script type="text/javascript" src="js/element_common.js"></script>
- <script type="text/javascript" src="js/cite.js"></script>
- <link rel="stylesheet" type="text/css" href="css/popup.css" />
-</head>
-<body style="display: none">
-<form onsubmit="insertCite();return false;" action="#">
- <div class="tabs">
- <ul>
- <li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li>
- <!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> -->
- </ul>
- </div>
-
- <div class="panel_wrapper">
- <div id="general_panel" class="panel current">
- <fieldset>
- <legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend>
- <table border="0" cellpadding="0" cellspacing="4">
- <tr>
- <td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td>
- <td><input id="title" name="title" type="text" value="" class="field mceFocus" /></td>
- </tr>
- <tr>
- <td class="label"><label id="idlabel" for="id">{#xhtmlxtras_dlg.attribute_label_id}</label>:</td>
- <td><input id="id" name="id" type="text" value="" class="field" /></td>
- </tr>
- <tr>
- <td class="label"><label id="classlabel" for="class">{#xhtmlxtras_dlg.attribute_label_class}</label>:</td>
- <td>
- <select id="class" name="class" class="field mceEditableSelect">
- <option value="">{#not_set}</option>
- </select>
- </td>
- </tr>
- <tr>
- <td class="label"><label id="stylelabel" for="class">{#xhtmlxtras_dlg.attribute_label_style}</label>:</td>
- <td><input id="style" name="style" type="text" value="" class="field" /></td>
- </tr>
- <tr>
- <td class="label"><label id="dirlabel" for="dir">{#xhtmlxtras_dlg.attribute_label_langdir}</label>:</td>
- <td>
- <select id="dir" name="dir" class="field">
- <option value="">{#not_set}</option>
- <option value="ltr">{#xhtmlxtras_dlg.attribute_option_ltr}</option>
- <option value="rtl">{#xhtmlxtras_dlg.attribute_option_rtl}</option>
- </select>
- </td>
- </tr>
- <tr>
- <td class="label"><label id="langlabel" for="lang">{#xhtmlxtras_dlg.attribute_label_langcode}</label>:</td>
- <td>
- <input id="lang" name="lang" type="text" value="" class="field" />
- </td>
- </tr>
- </table>
- </fieldset>
- </div>
- <div id="events_panel" class="panel">
- <fieldset>
- <legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend>
-
- <table border="0" cellpadding="0" cellspacing="4">
- <tr>
- <td class="label"><label for="onfocus">onfocus</label>:</td>
- <td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onblur">onblur</label>:</td>
- <td><input id="onblur" name="onblur" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onclick">onclick</label>:</td>
- <td><input id="onclick" name="onclick" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="ondblclick">ondblclick</label>:</td>
- <td><input id="ondblclick" name="ondblclick" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmousedown">onmousedown</label>:</td>
- <td><input id="onmousedown" name="onmousedown" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmouseup">onmouseup</label>:</td>
- <td><input id="onmouseup" name="onmouseup" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmouseover">onmouseover</label>:</td>
- <td><input id="onmouseover" name="onmouseover" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmousemove">onmousemove</label>:</td>
- <td><input id="onmousemove" name="onmousemove" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmouseout">onmouseout</label>:</td>
- <td><input id="onmouseout" name="onmouseout" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onkeypress">onkeypress</label>:</td>
- <td><input id="onkeypress" name="onkeypress" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onkeydown">onkeydown</label>:</td>
- <td><input id="onkeydown" name="onkeydown" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onkeyup">onkeyup</label>:</td>
- <td><input id="onkeyup" name="onkeyup" type="text" value="" class="field" /></td>
- </tr>
- </table>
- </fieldset>
- </div>
- </div>
- <div class="mceActionPanel">
- <input type="submit" id="insert" name="insert" value="{#update}" />
- <input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeCite();" style="display: none;" />
- <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
- </div>
-</form>
-</body>
-</html>
diff --git a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css b/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css
deleted file mode 100644
index 9a6a235c3..000000000
--- a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css
+++ /dev/null
@@ -1,11 +0,0 @@
-.panel_wrapper div.current {
- height: 290px;
-}
-
-#id, #style, #title, #dir, #hreflang, #lang, #classlist, #tabindex, #accesskey {
- width: 200px;
-}
-
-#events_panel input {
- width: 200px;
-}
diff --git a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/popup.css b/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/popup.css
deleted file mode 100644
index e67114dba..000000000
--- a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/popup.css
+++ /dev/null
@@ -1,9 +0,0 @@
-input.field, select.field {width:200px;}
-input.picker {width:179px; margin-left: 5px;}
-input.disabled {border-color:#F2F2F2;}
-img.picker {vertical-align:text-bottom; cursor:pointer;}
-h1 {padding: 0 0 5px 0;}
-.panel_wrapper div.current {height:160px;}
-#xhtmlxtrasdel .panel_wrapper div.current, #xhtmlxtrasins .panel_wrapper div.current {height: 230px;}
-a.browse span {display:block; width:20px; height:20px; background:url('../../../themes/advanced/img/icons.gif') -140px -20px;}
-#datetime {width:180px;}
diff --git a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/del.htm b/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/del.htm
deleted file mode 100644
index 8b07fa842..000000000
--- a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/del.htm
+++ /dev/null
@@ -1,161 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>{#xhtmlxtras_dlg.title_del_element}</title>
- <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
- <script type="text/javascript" src="../../utils/mctabs.js"></script>
- <script type="text/javascript" src="../../utils/form_utils.js"></script>
- <script type="text/javascript" src="../../utils/editable_selects.js"></script>
- <script type="text/javascript" src="js/element_common.js"></script>
- <script type="text/javascript" src="js/del.js"></script>
- <link rel="stylesheet" type="text/css" href="css/popup.css" />
-</head>
-<body id="xhtmlxtrasins" style="display: none">
-<form onsubmit="insertDel();return false;" action="#">
- <div class="tabs">
- <ul>
- <li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li>
- <!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> -->
- </ul>
- </div>
-
- <div class="panel_wrapper">
- <div id="general_panel" class="panel current">
- <fieldset>
- <legend>{#xhtmlxtras_dlg.fieldset_general_tab}</legend>
- <table border="0" cellpadding="0" cellspacing="4">
- <tr>
- <td class="label"><label id="datetimelabel" for="datetime">{#xhtmlxtras_dlg.attribute_label_datetime}</label>:</td>
- <td>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td><input id="datetime" name="datetime" type="text" value="" maxlength="19" class="field mceFocus" /></td>
- <td><a href="javascript:insertDateTime('datetime');" onmousedown="return false;" class="browse"><span class="datetime" title="{#xhtmlxtras_dlg.insert_date}"></span></a></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td class="label"><label id="citelabel" for="cite">{#xhtmlxtras_dlg.attribute_label_cite}</label>:</td>
- <td><input id="cite" name="cite" type="text" value="" class="field" /></td>
- </tr>
- </table>
- </fieldset>
- <fieldset>
- <legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend>
- <table border="0" cellpadding="0" cellspacing="4">
- <tr>
- <td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td>
- <td><input id="title" name="title" type="text" value="" class="field" /></td>
- </tr>
- <tr>
- <td class="label"><label id="idlabel" for="id">{#xhtmlxtras_dlg.attribute_label_id}</label>:</td>
- <td><input id="id" name="id" type="text" value="" class="field" /></td>
- </tr>
- <tr>
- <td class="label"><label id="classlabel" for="class">{#xhtmlxtras_dlg.attribute_label_class}</label>:</td>
- <td>
- <select id="class" name="class" class="field mceEditableSelect">
- <option value="">{#not_set}</option>
- </select>
- </td>
- </tr>
- <tr>
- <td class="label"><label id="stylelabel" for="class">{#xhtmlxtras_dlg.attribute_label_style}</label>:</td>
- <td><input id="style" name="style" type="text" value="" class="field" /></td>
- </tr>
- <tr>
- <td class="label"><label id="dirlabel" for="dir">{#xhtmlxtras_dlg.attribute_label_langdir}</label>:</td>
- <td>
- <select id="dir" name="dir" class="field">
- <option value="">{#not_set}</option>
- <option value="ltr">{#xhtmlxtras_dlg.attribute_option_ltr}</option>
- <option value="rtl">{#xhtmlxtras_dlg.attribute_option_rtl}</option>
- </select>
- </td>
- </tr>
- <tr>
- <td class="label"><label id="langlabel" for="lang">{#xhtmlxtras_dlg.attribute_label_langcode}</label>:</td>
- <td>
- <input id="lang" name="lang" type="text" value="" class="field" />
- </td>
- </tr>
- </table>
- </fieldset>
- </div>
- <div id="events_panel" class="panel">
- <fieldset>
- <legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend>
-
- <table border="0" cellpadding="0" cellspacing="4">
- <tr>
- <td class="label"><label for="onfocus">onfocus</label>:</td>
- <td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onblur">onblur</label>:</td>
- <td><input id="onblur" name="onblur" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onclick">onclick</label>:</td>
- <td><input id="onclick" name="onclick" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="ondblclick">ondblclick</label>:</td>
- <td><input id="ondblclick" name="ondblclick" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmousedown">onmousedown</label>:</td>
- <td><input id="onmousedown" name="onmousedown" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmouseup">onmouseup</label>:</td>
- <td><input id="onmouseup" name="onmouseup" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmouseover">onmouseover</label>:</td>
- <td><input id="onmouseover" name="onmouseover" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmousemove">onmousemove</label>:</td>
- <td><input id="onmousemove" name="onmousemove" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmouseout">onmouseout</label>:</td>
- <td><input id="onmouseout" name="onmouseout" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onkeypress">onkeypress</label>:</td>
- <td><input id="onkeypress" name="onkeypress" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onkeydown">onkeydown</label>:</td>
- <td><input id="onkeydown" name="onkeydown" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onkeyup">onkeyup</label>:</td>
- <td><input id="onkeyup" name="onkeyup" type="text" value="" class="field" /></td>
- </tr>
- </table>
- </fieldset>
- </div>
- </div>
- <div class="mceActionPanel">
- <input type="submit" id="insert" name="insert" value="{#update}" />
- <input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeDel();" style="display: none;" />
- <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
- </div>
-</form>
-</body>
-</html>
diff --git a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js b/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js
deleted file mode 100644
index e5195265e..000000000
--- a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js
+++ /dev/null
@@ -1 +0,0 @@
-(function(){tinymce.create("tinymce.plugins.XHTMLXtrasPlugin",{init:function(b,c){b.addCommand("mceCite",function(){b.windowManager.open({file:c+"/cite.htm",width:350+parseInt(b.getLang("xhtmlxtras.cite_delta_width",0)),height:250+parseInt(b.getLang("xhtmlxtras.cite_delta_height",0)),inline:1},{plugin_url:c})});b.addCommand("mceAcronym",function(){b.windowManager.open({file:c+"/acronym.htm",width:350+parseInt(b.getLang("xhtmlxtras.acronym_delta_width",0)),height:250+parseInt(b.getLang("xhtmlxtras.acronym_delta_width",0)),inline:1},{plugin_url:c})});b.addCommand("mceAbbr",function(){b.windowManager.open({file:c+"/abbr.htm",width:350+parseInt(b.getLang("xhtmlxtras.abbr_delta_width",0)),height:250+parseInt(b.getLang("xhtmlxtras.abbr_delta_width",0)),inline:1},{plugin_url:c})});b.addCommand("mceDel",function(){b.windowManager.open({file:c+"/del.htm",width:340+parseInt(b.getLang("xhtmlxtras.del_delta_width",0)),height:310+parseInt(b.getLang("xhtmlxtras.del_delta_width",0)),inline:1},{plugin_url:c})});b.addCommand("mceIns",function(){b.windowManager.open({file:c+"/ins.htm",width:340+parseInt(b.getLang("xhtmlxtras.ins_delta_width",0)),height:310+parseInt(b.getLang("xhtmlxtras.ins_delta_width",0)),inline:1},{plugin_url:c})});b.addCommand("mceAttributes",function(){b.windowManager.open({file:c+"/attributes.htm",width:380,height:370,inline:1},{plugin_url:c})});b.addButton("cite",{title:"xhtmlxtras.cite_desc",cmd:"mceCite"});b.addButton("acronym",{title:"xhtmlxtras.acronym_desc",cmd:"mceAcronym"});b.addButton("abbr",{title:"xhtmlxtras.abbr_desc",cmd:"mceAbbr"});b.addButton("del",{title:"xhtmlxtras.del_desc",cmd:"mceDel"});b.addButton("ins",{title:"xhtmlxtras.ins_desc",cmd:"mceIns"});b.addButton("attribs",{title:"xhtmlxtras.attribs_desc",cmd:"mceAttributes"});if(tinymce.isIE){function a(d,e){if(e.set){e.content=e.content.replace(/<abbr([^>]+)>/gi,"<html:abbr $1>");e.content=e.content.replace(/<\/abbr>/gi,"</html:abbr>")}}b.onBeforeSetContent.add(a);b.onPostProcess.add(a)}b.onNodeChange.add(function(e,d,g,f){g=e.dom.getParent(g,"CITE,ACRONYM,ABBR,DEL,INS");d.setDisabled("cite",f);d.setDisabled("acronym",f);d.setDisabled("abbr",f);d.setDisabled("del",f);d.setDisabled("ins",f);d.setDisabled("attribs",g&&g.nodeName=="BODY");d.setActive("cite",0);d.setActive("acronym",0);d.setActive("abbr",0);d.setActive("del",0);d.setActive("ins",0);if(g){do{d.setDisabled(g.nodeName.toLowerCase(),0);d.setActive(g.nodeName.toLowerCase(),1)}while(g=g.parentNode)}});b.onPreInit.add(function(){b.dom.create("abbr")})},getInfo:function(){return{longname:"XHTML Xtras Plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/xhtmlxtras",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("xhtmlxtras",tinymce.plugins.XHTMLXtrasPlugin)})(); \ No newline at end of file
diff --git a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js b/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js
deleted file mode 100644
index 9b51b8368..000000000
--- a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js
+++ /dev/null
@@ -1,144 +0,0 @@
-/**
- * editor_plugin_src.js
- *
- * Copyright 2009, Moxiecode Systems AB
- * Released under LGPL License.
- *
- * License: http://tinymce.moxiecode.com/license
- * Contributing: http://tinymce.moxiecode.com/contributing
- */
-
-(function() {
- tinymce.create('tinymce.plugins.XHTMLXtrasPlugin', {
- init : function(ed, url) {
- // Register commands
- ed.addCommand('mceCite', function() {
- ed.windowManager.open({
- file : url + '/cite.htm',
- width : 350 + parseInt(ed.getLang('xhtmlxtras.cite_delta_width', 0)),
- height : 250 + parseInt(ed.getLang('xhtmlxtras.cite_delta_height', 0)),
- inline : 1
- }, {
- plugin_url : url
- });
- });
-
- ed.addCommand('mceAcronym', function() {
- ed.windowManager.open({
- file : url + '/acronym.htm',
- width : 350 + parseInt(ed.getLang('xhtmlxtras.acronym_delta_width', 0)),
- height : 250 + parseInt(ed.getLang('xhtmlxtras.acronym_delta_width', 0)),
- inline : 1
- }, {
- plugin_url : url
- });
- });
-
- ed.addCommand('mceAbbr', function() {
- ed.windowManager.open({
- file : url + '/abbr.htm',
- width : 350 + parseInt(ed.getLang('xhtmlxtras.abbr_delta_width', 0)),
- height : 250 + parseInt(ed.getLang('xhtmlxtras.abbr_delta_width', 0)),
- inline : 1
- }, {
- plugin_url : url
- });
- });
-
- ed.addCommand('mceDel', function() {
- ed.windowManager.open({
- file : url + '/del.htm',
- width : 340 + parseInt(ed.getLang('xhtmlxtras.del_delta_width', 0)),
- height : 310 + parseInt(ed.getLang('xhtmlxtras.del_delta_width', 0)),
- inline : 1
- }, {
- plugin_url : url
- });
- });
-
- ed.addCommand('mceIns', function() {
- ed.windowManager.open({
- file : url + '/ins.htm',
- width : 340 + parseInt(ed.getLang('xhtmlxtras.ins_delta_width', 0)),
- height : 310 + parseInt(ed.getLang('xhtmlxtras.ins_delta_width', 0)),
- inline : 1
- }, {
- plugin_url : url
- });
- });
-
- ed.addCommand('mceAttributes', function() {
- ed.windowManager.open({
- file : url + '/attributes.htm',
- width : 380,
- height : 370,
- inline : 1
- }, {
- plugin_url : url
- });
- });
-
- // Register buttons
- ed.addButton('cite', {title : 'xhtmlxtras.cite_desc', cmd : 'mceCite'});
- ed.addButton('acronym', {title : 'xhtmlxtras.acronym_desc', cmd : 'mceAcronym'});
- ed.addButton('abbr', {title : 'xhtmlxtras.abbr_desc', cmd : 'mceAbbr'});
- ed.addButton('del', {title : 'xhtmlxtras.del_desc', cmd : 'mceDel'});
- ed.addButton('ins', {title : 'xhtmlxtras.ins_desc', cmd : 'mceIns'});
- ed.addButton('attribs', {title : 'xhtmlxtras.attribs_desc', cmd : 'mceAttributes'});
-
- if (tinymce.isIE) {
- function fix(ed, o) {
- if (o.set) {
- o.content = o.content.replace(/<abbr([^>]+)>/gi, '<html:abbr $1>');
- o.content = o.content.replace(/<\/abbr>/gi, '</html:abbr>');
- }
- };
-
- ed.onBeforeSetContent.add(fix);
- ed.onPostProcess.add(fix);
- }
-
- ed.onNodeChange.add(function(ed, cm, n, co) {
- n = ed.dom.getParent(n, 'CITE,ACRONYM,ABBR,DEL,INS');
-
- cm.setDisabled('cite', co);
- cm.setDisabled('acronym', co);
- cm.setDisabled('abbr', co);
- cm.setDisabled('del', co);
- cm.setDisabled('ins', co);
- cm.setDisabled('attribs', n && n.nodeName == 'BODY');
- cm.setActive('cite', 0);
- cm.setActive('acronym', 0);
- cm.setActive('abbr', 0);
- cm.setActive('del', 0);
- cm.setActive('ins', 0);
-
- // Activate all
- if (n) {
- do {
- cm.setDisabled(n.nodeName.toLowerCase(), 0);
- cm.setActive(n.nodeName.toLowerCase(), 1);
- } while (n = n.parentNode);
- }
- });
-
- ed.onPreInit.add(function() {
- // Fixed IE issue where it can't handle these elements correctly
- ed.dom.create('abbr');
- });
- },
-
- getInfo : function() {
- return {
- longname : 'XHTML Xtras Plugin',
- author : 'Moxiecode Systems AB',
- authorurl : 'http://tinymce.moxiecode.com',
- infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/xhtmlxtras',
- version : tinymce.majorVersion + "." + tinymce.minorVersion
- };
- }
- });
-
- // Register plugin
- tinymce.PluginManager.add('xhtmlxtras', tinymce.plugins.XHTMLXtrasPlugin);
-})(); \ No newline at end of file
diff --git a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/ins.htm b/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/ins.htm
deleted file mode 100644
index 6c5470cfc..000000000
--- a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/ins.htm
+++ /dev/null
@@ -1,161 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>{#xhtmlxtras_dlg.title_ins_element}</title>
- <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
- <script type="text/javascript" src="../../utils/mctabs.js"></script>
- <script type="text/javascript" src="../../utils/form_utils.js"></script>
- <script type="text/javascript" src="../../utils/editable_selects.js"></script>
- <script type="text/javascript" src="js/element_common.js"></script>
- <script type="text/javascript" src="js/ins.js"></script>
- <link rel="stylesheet" type="text/css" href="css/popup.css" />
-</head>
-<body id="xhtmlxtrasins" style="display: none">
-<form onsubmit="insertIns();return false;" action="#">
- <div class="tabs">
- <ul>
- <li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li>
- <!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> -->
- </ul>
- </div>
-
- <div class="panel_wrapper">
- <div id="general_panel" class="panel current">
- <fieldset>
- <legend>{#xhtmlxtras_dlg.fieldset_general_tab}</legend>
- <table border="0" cellpadding="0" cellspacing="4">
- <tr>
- <td class="label"><label id="datetimelabel" for="datetime">{#xhtmlxtras_dlg.attribute_label_datetime}</label>:</td>
- <td>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td><input id="datetime" name="datetime" type="text" value="" maxlength="19" class="field mceFocus" /></td>
- <td><a href="javascript:insertDateTime('datetime');" onmousedown="return false;" class="browse"><span class="datetime" title="{#xhtmlxtras_dlg.insert_date}"></span></a></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td class="label"><label id="citelabel" for="cite">{#xhtmlxtras_dlg.attribute_label_cite}</label>:</td>
- <td><input id="cite" name="cite" type="text" value="" class="field" /></td>
- </tr>
- </table>
- </fieldset>
- <fieldset>
- <legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend>
- <table border="0" cellpadding="0" cellspacing="4">
- <tr>
- <td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td>
- <td><input id="title" name="title" type="text" value="" class="field" /></td>
- </tr>
- <tr>
- <td class="label"><label id="idlabel" for="id">{#xhtmlxtras_dlg.attribute_label_id}</label>:</td>
- <td><input id="id" name="id" type="text" value="" class="field" /></td>
- </tr>
- <tr>
- <td class="label"><label id="classlabel" for="class">{#xhtmlxtras_dlg.attribute_label_class}</label>:</td>
- <td>
- <select id="class" name="class" class="field mceEditableSelect">
- <option value="">{#not_set}</option>
- </select>
- </td>
- </tr>
- <tr>
- <td class="label"><label id="stylelabel" for="class">{#xhtmlxtras_dlg.attribute_label_style}</label>:</td>
- <td><input id="style" name="style" type="text" value="" class="field" /></td>
- </tr>
- <tr>
- <td class="label"><label id="dirlabel" for="dir">{#xhtmlxtras_dlg.attribute_label_langdir}</label>:</td>
- <td>
- <select id="dir" name="dir" class="field">
- <option value="">{#not_set}</option>
- <option value="ltr">{#xhtmlxtras_dlg.attribute_option_ltr}</option>
- <option value="rtl">{#xhtmlxtras_dlg.attribute_option_rtl}</option>
- </select>
- </td>
- </tr>
- <tr>
- <td class="label"><label id="langlabel" for="lang">{#xhtmlxtras_dlg.attribute_label_langcode}</label>:</td>
- <td>
- <input id="lang" name="lang" type="text" value="" class="field" />
- </td>
- </tr>
- </table>
- </fieldset>
- </div>
- <div id="events_panel" class="panel">
- <fieldset>
- <legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend>
-
- <table border="0" cellpadding="0" cellspacing="4">
- <tr>
- <td class="label"><label for="onfocus">onfocus</label>:</td>
- <td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onblur">onblur</label>:</td>
- <td><input id="onblur" name="onblur" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onclick">onclick</label>:</td>
- <td><input id="onclick" name="onclick" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="ondblclick">ondblclick</label>:</td>
- <td><input id="ondblclick" name="ondblclick" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmousedown">onmousedown</label>:</td>
- <td><input id="onmousedown" name="onmousedown" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmouseup">onmouseup</label>:</td>
- <td><input id="onmouseup" name="onmouseup" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmouseover">onmouseover</label>:</td>
- <td><input id="onmouseover" name="onmouseover" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmousemove">onmousemove</label>:</td>
- <td><input id="onmousemove" name="onmousemove" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onmouseout">onmouseout</label>:</td>
- <td><input id="onmouseout" name="onmouseout" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onkeypress">onkeypress</label>:</td>
- <td><input id="onkeypress" name="onkeypress" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onkeydown">onkeydown</label>:</td>
- <td><input id="onkeydown" name="onkeydown" type="text" value="" class="field" /></td>
- </tr>
-
- <tr>
- <td class="label"><label for="onkeyup">onkeyup</label>:</td>
- <td><input id="onkeyup" name="onkeyup" type="text" value="" class="field" /></td>
- </tr>
- </table>
- </fieldset>
- </div>
- </div>
- <div class="mceActionPanel">
- <input type="submit" id="insert" name="insert" value="{#update}" />
- <input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeIns();" style="display: none;" />
- <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
- </div>
-</form>
-</body>
-</html>
diff --git a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js b/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js
deleted file mode 100644
index 4b51a2572..000000000
--- a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * abbr.js
- *
- * Copyright 2009, Moxiecode Systems AB
- * Released under LGPL License.
- *
- * License: http://tinymce.moxiecode.com/license
- * Contributing: http://tinymce.moxiecode.com/contributing
- */
-
-function init() {
- SXE.initElementDialog('abbr');
- if (SXE.currentAction == "update") {
- SXE.showRemoveButton();
- }
-}
-
-function insertAbbr() {
- SXE.insertElement('abbr');
- tinyMCEPopup.close();
-}
-
-function removeAbbr() {
- SXE.removeElement('abbr');
- tinyMCEPopup.close();
-}
-
-tinyMCEPopup.onInit.add(init);
diff --git a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js b/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js
deleted file mode 100644
index 6ec2f8871..000000000
--- a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * acronym.js
- *
- * Copyright 2009, Moxiecode Systems AB
- * Released under LGPL License.
- *
- * License: http://tinymce.moxiecode.com/license
- * Contributing: http://tinymce.moxiecode.com/contributing
- */
-
-function init() {
- SXE.initElementDialog('acronym');
- if (SXE.currentAction == "update") {
- SXE.showRemoveButton();
- }
-}
-
-function insertAcronym() {
- SXE.insertElement('acronym');
- tinyMCEPopup.close();
-}
-
-function removeAcronym() {
- SXE.removeElement('acronym');
- tinyMCEPopup.close();
-}
-
-tinyMCEPopup.onInit.add(init);
diff --git a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js b/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js
deleted file mode 100644
index d62a219e6..000000000
--- a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js
+++ /dev/null
@@ -1,126 +0,0 @@
-/**
- * attributes.js
- *
- * Copyright 2009, Moxiecode Systems AB
- * Released under LGPL License.
- *
- * License: http://tinymce.moxiecode.com/license
- * Contributing: http://tinymce.moxiecode.com/contributing
- */
-
-function init() {
- tinyMCEPopup.resizeToInnerSize();
- var inst = tinyMCEPopup.editor;
- var dom = inst.dom;
- var elm = inst.selection.getNode();
- var f = document.forms[0];
- var onclick = dom.getAttrib(elm, 'onclick');
-
- setFormValue('title', dom.getAttrib(elm, 'title'));
- setFormValue('id', dom.getAttrib(elm, 'id'));
- setFormValue('style', dom.getAttrib(elm, "style"));
- setFormValue('dir', dom.getAttrib(elm, 'dir'));
- setFormValue('lang', dom.getAttrib(elm, 'lang'));
- setFormValue('tabindex', dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : ""));
- setFormValue('accesskey', dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : ""));
- setFormValue('onfocus', dom.getAttrib(elm, 'onfocus'));
- setFormValue('onblur', dom.getAttrib(elm, 'onblur'));
- setFormValue('onclick', onclick);
- setFormValue('ondblclick', dom.getAttrib(elm, 'ondblclick'));
- setFormValue('onmousedown', dom.getAttrib(elm, 'onmousedown'));
- setFormValue('onmouseup', dom.getAttrib(elm, 'onmouseup'));
- setFormValue('onmouseover', dom.getAttrib(elm, 'onmouseover'));
- setFormValue('onmousemove', dom.getAttrib(elm, 'onmousemove'));
- setFormValue('onmouseout', dom.getAttrib(elm, 'onmouseout'));
- setFormValue('onkeypress', dom.getAttrib(elm, 'onkeypress'));
- setFormValue('onkeydown', dom.getAttrib(elm, 'onkeydown'));
- setFormValue('onkeyup', dom.getAttrib(elm, 'onkeyup'));
- className = dom.getAttrib(elm, 'class');
-
- addClassesToList('classlist', 'advlink_styles');
- selectByValue(f, 'classlist', className, true);
-
- TinyMCE_EditableSelects.init();
-}
-
-function setFormValue(name, value) {
- if(value && document.forms[0].elements[name]){
- document.forms[0].elements[name].value = value;
- }
-}
-
-function insertAction() {
- var inst = tinyMCEPopup.editor;
- var elm = inst.selection.getNode();
-
- tinyMCEPopup.execCommand("mceBeginUndoLevel");
- setAllAttribs(elm);
- tinyMCEPopup.execCommand("mceEndUndoLevel");
- tinyMCEPopup.close();
-}
-
-function setAttrib(elm, attrib, value) {
- var formObj = document.forms[0];
- var valueElm = formObj.elements[attrib.toLowerCase()];
- var inst = tinyMCEPopup.editor;
- var dom = inst.dom;
-
- if (typeof(value) == "undefined" || value == null) {
- value = "";
-
- if (valueElm)
- value = valueElm.value;
- }
-
- if (value != "") {
- dom.setAttrib(elm, attrib.toLowerCase(), value);
-
- if (attrib == "style")
- attrib = "style.cssText";
-
- if (attrib.substring(0, 2) == 'on')
- value = 'return true;' + value;
-
- if (attrib == "class")
- attrib = "className";
-
- elm[attrib]=value;
- } else
- elm.removeAttribute(attrib);
-}
-
-function setAllAttribs(elm) {
- var f = document.forms[0];
-
- setAttrib(elm, 'title');
- setAttrib(elm, 'id');
- setAttrib(elm, 'style');
- setAttrib(elm, 'class', getSelectValue(f, 'classlist'));
- setAttrib(elm, 'dir');
- setAttrib(elm, 'lang');
- setAttrib(elm, 'tabindex');
- setAttrib(elm, 'accesskey');
- setAttrib(elm, 'onfocus');
- setAttrib(elm, 'onblur');
- setAttrib(elm, 'onclick');
- setAttrib(elm, 'ondblclick');
- setAttrib(elm, 'onmousedown');
- setAttrib(elm, 'onmouseup');
- setAttrib(elm, 'onmouseover');
- setAttrib(elm, 'onmousemove');
- setAttrib(elm, 'onmouseout');
- setAttrib(elm, 'onkeypress');
- setAttrib(elm, 'onkeydown');
- setAttrib(elm, 'onkeyup');
-
- // Refresh in old MSIE
-// if (tinyMCE.isMSIE5)
-// elm.outerHTML = elm.outerHTML;
-}
-
-function insertAttribute() {
- tinyMCEPopup.close();
-}
-
-tinyMCEPopup.onInit.add(init);
-tinyMCEPopup.requireLangPack();
diff --git a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/cite.js b/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/cite.js
deleted file mode 100644
index 009b71546..000000000
--- a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/cite.js
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * cite.js
- *
- * Copyright 2009, Moxiecode Systems AB
- * Released under LGPL License.
- *
- * License: http://tinymce.moxiecode.com/license
- * Contributing: http://tinymce.moxiecode.com/contributing
- */
-
-function init() {
- SXE.initElementDialog('cite');
- if (SXE.currentAction == "update") {
- SXE.showRemoveButton();
- }
-}
-
-function insertCite() {
- SXE.insertElement('cite');
- tinyMCEPopup.close();
-}
-
-function removeCite() {
- SXE.removeElement('cite');
- tinyMCEPopup.close();
-}
-
-tinyMCEPopup.onInit.add(init);
diff --git a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/del.js b/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/del.js
deleted file mode 100644
index 9e5d8c571..000000000
--- a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/del.js
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * del.js
- *
- * Copyright 2009, Moxiecode Systems AB
- * Released under LGPL License.
- *
- * License: http://tinymce.moxiecode.com/license
- * Contributing: http://tinymce.moxiecode.com/contributing
- */
-
-function init() {
- SXE.initElementDialog('del');
- if (SXE.currentAction == "update") {
- setFormValue('datetime', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'datetime'));
- setFormValue('cite', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'cite'));
- SXE.showRemoveButton();
- }
-}
-
-function setElementAttribs(elm) {
- setAllCommonAttribs(elm);
- setAttrib(elm, 'datetime');
- setAttrib(elm, 'cite');
-}
-
-function insertDel() {
- var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'DEL');
-
- tinyMCEPopup.execCommand('mceBeginUndoLevel');
- if (elm == null) {
- var s = SXE.inst.selection.getContent();
- if(s.length > 0) {
- insertInlineElement('del');
- var elementArray = tinymce.grep(SXE.inst.dom.select('del'), function(n) {return n.id == '#sxe_temp_del#';});
- for (var i=0; i<elementArray.length; i++) {
- var elm = elementArray[i];
- setElementAttribs(elm);
- }
- }
- } else {
- setElementAttribs(elm);
- }
- tinyMCEPopup.editor.nodeChanged();
- tinyMCEPopup.execCommand('mceEndUndoLevel');
- tinyMCEPopup.close();
-}
-
-function insertInlineElement(en) {
- var ed = tinyMCEPopup.editor, dom = ed.dom;
-
- ed.getDoc().execCommand('FontName', false, 'mceinline');
- tinymce.each(dom.select(tinymce.isWebKit ? 'span' : 'font'), function(n) {
- if (n.style.fontFamily == 'mceinline' || n.face == 'mceinline')
- dom.replace(dom.create(en), n, 1);
- });
-}
-
-function removeDel() {
- SXE.removeElement('del');
- tinyMCEPopup.close();
-}
-
-tinyMCEPopup.onInit.add(init);
diff --git a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js b/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js
deleted file mode 100644
index 5b494a566..000000000
--- a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js
+++ /dev/null
@@ -1,231 +0,0 @@
-/**
- * element_common.js
- *
- * Copyright 2009, Moxiecode Systems AB
- * Released under LGPL License.
- *
- * License: http://tinymce.moxiecode.com/license
- * Contributing: http://tinymce.moxiecode.com/contributing
- */
-
-tinyMCEPopup.requireLangPack();
-
-function initCommonAttributes(elm) {
- var formObj = document.forms[0], dom = tinyMCEPopup.editor.dom;
-
- // Setup form data for common element attributes
- setFormValue('title', dom.getAttrib(elm, 'title'));
- setFormValue('id', dom.getAttrib(elm, 'id'));
- selectByValue(formObj, 'class', dom.getAttrib(elm, 'class'), true);
- setFormValue('style', dom.getAttrib(elm, 'style'));
- selectByValue(formObj, 'dir', dom.getAttrib(elm, 'dir'));
- setFormValue('lang', dom.getAttrib(elm, 'lang'));
- setFormValue('onfocus', dom.getAttrib(elm, 'onfocus'));
- setFormValue('onblur', dom.getAttrib(elm, 'onblur'));
- setFormValue('onclick', dom.getAttrib(elm, 'onclick'));
- setFormValue('ondblclick', dom.getAttrib(elm, 'ondblclick'));
- setFormValue('onmousedown', dom.getAttrib(elm, 'onmousedown'));
- setFormValue('onmouseup', dom.getAttrib(elm, 'onmouseup'));
- setFormValue('onmouseover', dom.getAttrib(elm, 'onmouseover'));
- setFormValue('onmousemove', dom.getAttrib(elm, 'onmousemove'));
- setFormValue('onmouseout', dom.getAttrib(elm, 'onmouseout'));
- setFormValue('onkeypress', dom.getAttrib(elm, 'onkeypress'));
- setFormValue('onkeydown', dom.getAttrib(elm, 'onkeydown'));
- setFormValue('onkeyup', dom.getAttrib(elm, 'onkeyup'));
-}
-
-function setFormValue(name, value) {
- if(document.forms[0].elements[name]) document.forms[0].elements[name].value = value;
-}
-
-function insertDateTime(id) {
- document.getElementById(id).value = getDateTime(new Date(), "%Y-%m-%dT%H:%M:%S");
-}
-
-function getDateTime(d, fmt) {
- fmt = fmt.replace("%D", "%m/%d/%y");
- fmt = fmt.replace("%r", "%I:%M:%S %p");
- fmt = fmt.replace("%Y", "" + d.getFullYear());
- fmt = fmt.replace("%y", "" + d.getYear());
- fmt = fmt.replace("%m", addZeros(d.getMonth()+1, 2));
- fmt = fmt.replace("%d", addZeros(d.getDate(), 2));
- fmt = fmt.replace("%H", "" + addZeros(d.getHours(), 2));
- fmt = fmt.replace("%M", "" + addZeros(d.getMinutes(), 2));
- fmt = fmt.replace("%S", "" + addZeros(d.getSeconds(), 2));
- fmt = fmt.replace("%I", "" + ((d.getHours() + 11) % 12 + 1));
- fmt = fmt.replace("%p", "" + (d.getHours() < 12 ? "AM" : "PM"));
- fmt = fmt.replace("%%", "%");
-
- return fmt;
-}
-
-function addZeros(value, len) {
- var i;
-
- value = "" + value;
-
- if (value.length < len) {
- for (i=0; i<(len-value.length); i++)
- value = "0" + value;
- }
-
- return value;
-}
-
-function selectByValue(form_obj, field_name, value, add_custom, ignore_case) {
- if (!form_obj || !form_obj.elements[field_name])
- return;
-
- var sel = form_obj.elements[field_name];
-
- var found = false;
- for (var i=0; i<sel.options.length; i++) {
- var option = sel.options[i];
-
- if (option.value == value || (ignore_case && option.value.toLowerCase() == value.toLowerCase())) {
- option.selected = true;
- found = true;
- } else
- option.selected = false;
- }
-
- if (!found && add_custom && value != '') {
- var option = new Option('Value: ' + value, value);
- option.selected = true;
- sel.options[sel.options.length] = option;
- }
-
- return found;
-}
-
-function setAttrib(elm, attrib, value) {
- var formObj = document.forms[0];
- var valueElm = formObj.elements[attrib.toLowerCase()];
- tinyMCEPopup.editor.dom.setAttrib(elm, attrib, value || valueElm.value);
-}
-
-function setAllCommonAttribs(elm) {
- setAttrib(elm, 'title');
- setAttrib(elm, 'id');
- setAttrib(elm, 'class');
- setAttrib(elm, 'style');
- setAttrib(elm, 'dir');
- setAttrib(elm, 'lang');
- /*setAttrib(elm, 'onfocus');
- setAttrib(elm, 'onblur');
- setAttrib(elm, 'onclick');
- setAttrib(elm, 'ondblclick');
- setAttrib(elm, 'onmousedown');
- setAttrib(elm, 'onmouseup');
- setAttrib(elm, 'onmouseover');
- setAttrib(elm, 'onmousemove');
- setAttrib(elm, 'onmouseout');
- setAttrib(elm, 'onkeypress');
- setAttrib(elm, 'onkeydown');
- setAttrib(elm, 'onkeyup');*/
-}
-
-SXE = {
- currentAction : "insert",
- inst : tinyMCEPopup.editor,
- updateElement : null
-}
-
-SXE.focusElement = SXE.inst.selection.getNode();
-
-SXE.initElementDialog = function(element_name) {
- addClassesToList('class', 'xhtmlxtras_styles');
- TinyMCE_EditableSelects.init();
-
- element_name = element_name.toLowerCase();
- var elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase());
- if (elm != null && elm.nodeName.toUpperCase() == element_name.toUpperCase()) {
- SXE.currentAction = "update";
- }
-
- if (SXE.currentAction == "update") {
- initCommonAttributes(elm);
- SXE.updateElement = elm;
- }
-
- document.forms[0].insert.value = tinyMCEPopup.getLang(SXE.currentAction, 'Insert', true);
-}
-
-SXE.insertElement = function(element_name) {
- var elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase()), h, tagName;
-
- tinyMCEPopup.execCommand('mceBeginUndoLevel');
- if (elm == null) {
- var s = SXE.inst.selection.getContent();
- if(s.length > 0) {
- tagName = element_name;
-
- insertInlineElement(element_name);
- var elementArray = tinymce.grep(SXE.inst.dom.select(element_name));
- for (var i=0; i<elementArray.length; i++) {
- var elm = elementArray[i];
-
- if (SXE.inst.dom.getAttrib(elm, '_mce_new')) {
- elm.id = '';
- elm.setAttribute('id', '');
- elm.removeAttribute('id');
- elm.removeAttribute('_mce_new');
-
- setAllCommonAttribs(elm);
- }
- }
- }
- } else {
- setAllCommonAttribs(elm);
- }
- SXE.inst.nodeChanged();
- tinyMCEPopup.execCommand('mceEndUndoLevel');
-}
-
-SXE.removeElement = function(element_name){
- element_name = element_name.toLowerCase();
- elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase());
- if(elm && elm.nodeName.toUpperCase() == element_name.toUpperCase()){
- tinyMCEPopup.execCommand('mceBeginUndoLevel');
- tinyMCE.execCommand('mceRemoveNode', false, elm);
- SXE.inst.nodeChanged();
- tinyMCEPopup.execCommand('mceEndUndoLevel');
- }
-}
-
-SXE.showRemoveButton = function() {
- document.getElementById("remove").style.display = '';
-}
-
-SXE.containsClass = function(elm,cl) {
- return (elm.className.indexOf(cl) > -1) ? true : false;
-}
-
-SXE.removeClass = function(elm,cl) {
- if(elm.className == null || elm.className == "" || !SXE.containsClass(elm,cl)) {
- return true;
- }
- var classNames = elm.className.split(" ");
- var newClassNames = "";
- for (var x = 0, cnl = classNames.length; x < cnl; x++) {
- if (classNames[x] != cl) {
- newClassNames += (classNames[x] + " ");
- }
- }
- elm.className = newClassNames.substring(0,newClassNames.length-1); //removes extra space at the end
-}
-
-SXE.addClass = function(elm,cl) {
- if(!SXE.containsClass(elm,cl)) elm.className ? elm.className += " " + cl : elm.className = cl;
- return true;
-}
-
-function insertInlineElement(en) {
- var ed = tinyMCEPopup.editor, dom = ed.dom;
-
- ed.getDoc().execCommand('FontName', false, 'mceinline');
- tinymce.each(dom.select('span,font'), function(n) {
- if (n.style.fontFamily == 'mceinline' || n.face == 'mceinline')
- dom.replace(dom.create(en, {_mce_new : 1}), n, 1);
- });
-}
diff --git a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/ins.js b/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/ins.js
deleted file mode 100644
index 3774f0a18..000000000
--- a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/ins.js
+++ /dev/null
@@ -1,62 +0,0 @@
-/**
- * ins.js
- *
- * Copyright 2009, Moxiecode Systems AB
- * Released under LGPL License.
- *
- * License: http://tinymce.moxiecode.com/license
- * Contributing: http://tinymce.moxiecode.com/contributing
- */
-
-function init() {
- SXE.initElementDialog('ins');
- if (SXE.currentAction == "update") {
- setFormValue('datetime', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'datetime'));
- setFormValue('cite', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'cite'));
- SXE.showRemoveButton();
- }
-}
-
-function setElementAttribs(elm) {
- setAllCommonAttribs(elm);
- setAttrib(elm, 'datetime');
- setAttrib(elm, 'cite');
-}
-
-function insertIns() {
- var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'INS');
- tinyMCEPopup.execCommand('mceBeginUndoLevel');
- if (elm == null) {
- var s = SXE.inst.selection.getContent();
- if(s.length > 0) {
- insertInlineElement('INS');
- var elementArray = tinymce.grep(SXE.inst.dom.select('ins'), function(n) {return n.id == '#sxe_temp_ins#';});
- for (var i=0; i<elementArray.length; i++) {
- var elm = elementArray[i];
- setElementAttribs(elm);
- }
- }
- } else {
- setElementAttribs(elm);
- }
- tinyMCEPopup.editor.nodeChanged();
- tinyMCEPopup.execCommand('mceEndUndoLevel');
- tinyMCEPopup.close();
-}
-
-function removeIns() {
- SXE.removeElement('ins');
- tinyMCEPopup.close();
-}
-
-function insertInlineElement(en) {
- var ed = tinyMCEPopup.editor, dom = ed.dom;
-
- ed.getDoc().execCommand('FontName', false, 'mceinline');
- tinymce.each(dom.select(tinymce.isWebKit ? 'span' : 'font'), function(n) {
- if (n.style.fontFamily == 'mceinline' || n.face == 'mceinline')
- dom.replace(dom.create(en), n, 1);
- });
-}
-
-tinyMCEPopup.onInit.add(init);
diff --git a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js b/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js
deleted file mode 100644
index 45b6b267b..000000000
--- a/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js
+++ /dev/null
@@ -1,32 +0,0 @@
-tinyMCE.addI18n('en.xhtmlxtras_dlg',{
-attribute_label_title:"Title",
-attribute_label_id:"ID",
-attribute_label_class:"Class",
-attribute_label_style:"Style",
-attribute_label_cite:"Cite",
-attribute_label_datetime:"Date/Time",
-attribute_label_langdir:"Text Direction",
-attribute_option_ltr:"Left to right",
-attribute_option_rtl:"Right to left",
-attribute_label_langcode:"Language",
-attribute_label_tabindex:"TabIndex",
-attribute_label_accesskey:"AccessKey",
-attribute_events_tab:"Events",
-attribute_attrib_tab:"Attributes",
-general_tab:"General",
-attrib_tab:"Attributes",
-events_tab:"Events",
-fieldset_general_tab:"General Settings",
-fieldset_attrib_tab:"Element Attributes",
-fieldset_events_tab:"Element Events",
-title_ins_element:"Insertion Element",
-title_del_element:"Deletion Element",
-title_acronym_element:"Acronym Element",
-title_abbr_element:"Abbreviation Element",
-title_cite_element:"Citation Element",
-remove:"Remove",
-insert_date:"Insert current date/time",
-option_ltr:"Left to right",
-option_rtl:"Right to left",
-attribs_title:"Insert/Edit Attributes"
-}); \ No newline at end of file