/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css |
---|
New file |
0,0 → 1,11 |
.panel_wrapper div.current { |
height: 290px; |
} |
#id, #style, #title, #dir, #hreflang, #lang, #classlist, #tabindex, #accesskey { |
width: 200px; |
} |
#events_panel input { |
width: 200px; |
} |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/css/xhtmlxtras.css |
---|
New file |
0,0 → 1,24 |
ins { |
border-bottom: 1px solid green; |
text-decoration: none; |
color: green; |
} |
del { |
color: Red; |
text-decoration: line-through; |
} |
cite { |
border-bottom: 1px dashed blue; |
} |
acronym { |
border-bottom: 1px dotted #CCC; |
cursor: help; |
} |
abbr, html\:abbr { |
border-bottom: 1px dashed #CCC; |
cursor: help; |
} |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/css/popup.css |
---|
New file |
0,0 → 1,46 |
a.mceButtonNormal img, a.mceButtonSelected img {border: 1px solid #F0F0EE !important;} |
a.mceButtonNormal img:hover, a.mceButtonSelected img:hover {border: 1px solid #0A246A !important; cursor: default; background-color: #B6BDD2;} |
img { |
border: 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; |
} |
#remove { |
font-weight: bold; |
width: 90px; |
height: 21px; |
border: 0px; |
background-image: url('../images/remove_button_bg.gif'); |
cursor: pointer; |
margin-left: 3px; |
} |
.panel_wrapper div.current { |
height: 160px; |
} |
#xhtmlxtrasdel .panel_wrapper div.current, #xhtmlxtrasins .panel_wrapper div.current { |
height: 220px; |
} |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/cite.htm |
---|
New file |
0,0 → 1,148 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head> |
<title>{$lang_xhtmlxtras_title_cite_element}</title> |
<script language="javascript" type="text/javascript" src="../../tiny_mce_popup.js"></script> |
<script language="javascript" type="text/javascript" src="../../utils/mctabs.js"></script> |
<script language="javascript" type="text/javascript" src="../../utils/form_utils.js"></script> |
<script language="javascript" type="text/javascript" src="../../utils/editable_selects.js"></script> |
<script language="javascript" type="text/javascript" src="jscripts/element_common.js"></script> |
<script language="javascript" type="text/javascript" src="jscripts/cite.js"></script> |
<link rel="stylesheet" type="text/css" href="css/popup.css" /> |
<base target="_self" /> |
</head> |
<body onload="tinyMCEPopup.executeOnLoad('init();');" 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;">{$lang_xhtmlxtras_general_tab}</a></span></li> |
<!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{$lang_xhtmlxtras_events_tab}</a></span></li> --> |
</ul> |
</div> |
<div class="panel_wrapper"> |
<div id="general_panel" class="panel current"> |
<fieldset> |
<legend>{$lang_xhtmlxtras_fieldset_attrib_tab}</legend> |
<table border="0" cellpadding="0" cellspacing="4"> |
<tr> |
<td class="label"><label id="titlelabel" for="title">{$lang_xhtmlxtras_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">{$lang_xhtmlxtras_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">{$lang_xhtmlxtras_attribute_label_class}</label>:</td> |
<td> |
<select id="class" name="class" class="field mceEditableSelect"> |
<option value="">{$lang_xhtmlxtras_not_set}</option> |
</select> |
</td> |
</tr> |
<tr> |
<td class="label"><label id="stylelabel" for="class">{$lang_xhtmlxtras_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">{$lang_xhtmlxtras_attribute_label_langdir}</label>:</td> |
<td> |
<select id="dir" name="dir" class="field"> |
<option value="">{$lang_xhtmlxtras_not_set}</option> |
<option value="ltr">{$lang_xhtmlxtras_attribute_option_ltr}</option> |
<option value="rtl">{$lang_xhtmlxtras_attribute_option_rtl}</option> |
</select> |
</td> |
</tr> |
<tr> |
<td class="label"><label id="langlabel" for="lang">{$lang_xhtmlxtras_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>{$lang_xhtmlxtras_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"> |
<div style="float: left"> |
<input type="button" id="insert" name="insert" value="{$lang_update}" onclick="insertCite();" /> |
</div> |
<div style="float: left"> |
<input type="button" id="remove" name="remove" value="{$lang_xhtmlxtras_remove}" onclick="removeCite();" style="display: none;" /> |
</div> |
<div style="float: right"> |
<input type="button" id="cancel" name="cancel" value="{$lang_cancel}" onclick="tinyMCEPopup.close();" /> |
</div> |
</div> |
</form> |
</body> |
</html> |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/del.htm |
---|
New file |
0,0 → 1,169 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head> |
<title>{$lang_xhtmlxtras_title_del_element}</title> |
<script language="javascript" type="text/javascript" src="../../tiny_mce_popup.js"></script> |
<script language="javascript" type="text/javascript" src="../../utils/mctabs.js"></script> |
<script language="javascript" type="text/javascript" src="../../utils/form_utils.js"></script> |
<script language="javascript" type="text/javascript" src="../../utils/editable_selects.js"></script> |
<script language="javascript" type="text/javascript" src="jscripts/element_common.js"></script> |
<script language="javascript" type="text/javascript" src="jscripts/del.js"></script> |
<link rel="stylesheet" type="text/css" href="css/popup.css" /> |
<base target="_self" /> |
</head> |
<body id="xhtmlxtrasins" onload="tinyMCEPopup.executeOnLoad('init();');" 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;">{$lang_xhtmlxtras_general_tab}</a></span></li> |
<!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{$lang_xhtmlxtras_events_tab}</a></span></li> --> |
</ul> |
</div> |
<div class="panel_wrapper"> |
<div id="general_panel" class="panel current"> |
<fieldset> |
<legend>{$lang_xhtmlxtras_fieldset_general_tab}</legend> |
<table border="0" cellpadding="0" cellspacing="4"> |
<tr> |
<td class="label"><label id="datetimelabel" for="datetime">{$lang_xhtmlxtras_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" /></td> |
<td><a href="javascript:insertDateTime('datetime');" class="mceButtonNormal"><img src="images/date_time.gif" class="picker" alt="{$lang_xhtmlxtras_insert_date}" title="{$lang_xhtmlxtras_insert_date}" /></a></td> |
</tr> |
</table> |
</td> |
</tr> |
<tr> |
<td class="label"><label id="citelabel" for="cite">{$lang_xhtmlxtras_attribute_label_cite}</label>:</td> |
<td><input id="cite" name="cite" type="text" value="" class="field" /></td> |
</tr> |
</table> |
</fieldset> |
<fieldset> |
<legend>{$lang_xhtmlxtras_fieldset_attrib_tab}</legend> |
<table border="0" cellpadding="0" cellspacing="4"> |
<tr> |
<td class="label"><label id="titlelabel" for="title">{$lang_xhtmlxtras_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">{$lang_xhtmlxtras_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">{$lang_xhtmlxtras_attribute_label_class}</label>:</td> |
<td> |
<select id="class" name="class" class="field mceEditableSelect"> |
<option value="">{$lang_xhtmlxtras_not_set}</option> |
</select> |
</td> |
</tr> |
<tr> |
<td class="label"><label id="stylelabel" for="class">{$lang_xhtmlxtras_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">{$lang_xhtmlxtras_attribute_label_langdir}</label>:</td> |
<td> |
<select id="dir" name="dir" class="field"> |
<option value="">{$lang_xhtmlxtras_not_set}</option> |
<option value="ltr">{$lang_xhtmlxtras_attribute_option_ltr}</option> |
<option value="rtl">{$lang_xhtmlxtras_attribute_option_rtl}</option> |
</select> |
</td> |
</tr> |
<tr> |
<td class="label"><label id="langlabel" for="lang">{$lang_xhtmlxtras_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>{$lang_xhtmlxtras_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"> |
<div style="float: left"> |
<input type="button" id="insert" name="insert" value="{$lang_update}" onclick="insertDel();" /> |
</div> |
<div style="float: left"> |
<input type="button" id="remove" name="remove" value="{$lang_xhtmlxtras_remove}" onclick="removeDel();" style="display: none;" /> |
</div> |
<div style="float: right"> |
<input type="button" id="cancel" name="cancel" value="{$lang_cancel}" onclick="tinyMCEPopup.close();" /> |
</div> |
</div> |
</form> |
</body> |
</html> |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/abbr.htm |
---|
New file |
0,0 → 1,148 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head> |
<title>{$lang_xhtmlxtras_title_abbr_element}</title> |
<script language="javascript" type="text/javascript" src="../../tiny_mce_popup.js"></script> |
<script language="javascript" type="text/javascript" src="../../utils/mctabs.js"></script> |
<script language="javascript" type="text/javascript" src="../../utils/form_utils.js"></script> |
<script language="javascript" type="text/javascript" src="../../utils/editable_selects.js"></script> |
<script language="javascript" type="text/javascript" src="jscripts/element_common.js"></script> |
<script language="javascript" type="text/javascript" src="jscripts/abbr.js"></script> |
<link rel="stylesheet" type="text/css" href="css/popup.css" /> |
<base target="_self" /> |
</head> |
<body onload="tinyMCEPopup.executeOnLoad('init();');" 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;">{$lang_xhtmlxtras_general_tab}</a></span></li> |
<!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{$lang_xhtmlxtras_events_tab}</a></span></li> --> |
</ul> |
</div> |
<div class="panel_wrapper"> |
<div id="general_panel" class="panel current"> |
<fieldset> |
<legend>{$lang_xhtmlxtras_fieldset_attrib_tab}</legend> |
<table border="0" cellpadding="0" cellspacing="4"> |
<tr> |
<td class="label"><label id="titlelabel" for="title">{$lang_xhtmlxtras_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">{$lang_xhtmlxtras_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">{$lang_xhtmlxtras_attribute_label_class}</label>:</td> |
<td> |
<select id="class" name="class" class="field mceEditableSelect"> |
<option value="">{$lang_xhtmlxtras_not_set}</option> |
</select> |
</td> |
</tr> |
<tr> |
<td class="label"><label id="stylelabel" for="class">{$lang_xhtmlxtras_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">{$lang_xhtmlxtras_attribute_label_langdir}</label>:</td> |
<td> |
<select id="dir" name="dir" class="field"> |
<option value="">{$lang_xhtmlxtras_not_set}</option> |
<option value="ltr">{$lang_xhtmlxtras_attribute_option_ltr}</option> |
<option value="rtl">{$lang_xhtmlxtras_attribute_option_rtl}</option> |
</select> |
</td> |
</tr> |
<tr> |
<td class="label"><label id="langlabel" for="lang">{$lang_xhtmlxtras_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>{$lang_xhtmlxtras_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"> |
<div style="float: left"> |
<input type="button" id="insert" name="insert" value="{$lang_update}" onclick="insertAbbr();" /> |
</div> |
<div style="float: left"> |
<input type="button" id="remove" name="remove" value="{$lang_xhtmlxtras_remove}" onclick="removeAbbr();" style="display: none;" /> |
</div> |
<div style="float: right"> |
<input type="button" id="cancel" name="cancel" value="{$lang_cancel}" onclick="tinyMCEPopup.close();" /> |
</div> |
</div> |
</form> |
</body> |
</html> |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/attributes.htm |
---|
New file |
0,0 → 1,153 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head> |
<title>{$lang_xhtmlxtras_attribs_title}</title> |
<script language="javascript" type="text/javascript" src="../../tiny_mce_popup.js"></script> |
<script language="javascript" type="text/javascript" src="../../utils/mctabs.js"></script> |
<script language="javascript" type="text/javascript" src="../../utils/editable_selects.js"></script> |
<script language="javascript" type="text/javascript" src="../../utils/form_utils.js"></script> |
<script language="javascript" type="text/javascript" src="jscripts/attributes.js"></script> |
<link rel="stylesheet" type="text/css" href="css/attributes.css" /> |
<base target="_self" /> |
</head> |
<body onload="tinyMCEPopup.executeOnLoad('init();');" 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;">{$lang_xhtmlxtras_attribute_attrib_tab}</a></span></li> |
<li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{$lang_xhtmlxtras_attribute_events_tab}</a></span></li> |
</ul> |
</div> |
<div class="panel_wrapper"> |
<div id="general_panel" class="panel current"> |
<fieldset> |
<legend>{$lang_xhtmlxtras_attribute_attrib_tab}</legend> |
<table border="0" cellpadding="0" cellspacing="4"> |
<tr> |
<td class="label"><label id="titlelabel" for="title">{$lang_xhtmlxtras_attribute_label_title}</label>:</td> |
<td><input id="title" name="title" type="text" value="" /></td> |
</tr> |
<tr> |
<td class="label"><label id="idlabel" for="id">{$lang_xhtmlxtras_attribute_label_id}</label>:</td> |
<td><input id="id" name="id" type="text" value="" /></td> |
</tr> |
<tr> |
<td><label id="classlabel" for="classlist">{$lang_class_name}</label></td> |
<td> |
<select id="classlist" name="classlist" class="mceEditableSelect"> |
<option value="" selected>{$lang_not_set}</option> |
</select> |
</td> |
</tr> |
<tr> |
<td class="label"><label id="stylelabel" for="class">{$lang_xhtmlxtras_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">{$lang_xhtmlxtras_attribute_label_langdir}</label>:</td> |
<td> |
<select id="dir" name="dir"> |
<option value="">{$lang_xhtmlxtras_not_set}</option> |
<option value="ltr">{$lang_xhtmlxtras_option_ltr}</option> |
<option value="rtl">{$lang_xhtmlxtras_option_rtl}</option> |
</select> |
</td> |
</tr> |
<tr> |
<td class="label"><label id="langlabel" for="lang">{$lang_xhtmlxtras_attribute_label_langcode}</label>:</td> |
<td> |
<input id="lang" name="lang" type="text" value="" /> |
</td> |
</tr> |
<tr> |
<td><label id="tabindexlabel" for="tabindex">{$lang_xhtmlxtras_attribute_label_tabindex}</label></td> |
<td><input type="text" id="tabindex" name="tabindex" value="" /></td> |
</tr> |
<tr> |
<td><label id="accesskeylabel" for="accesskey">{$lang_xhtmlxtras_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>{$lang_xhtmlxtras_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"> |
<div style="float: left"> |
<input type="button" id="insert" name="insert" value="{$lang_insert}" onclick="insertAction();" /> |
</div> |
<div style="float: right"> |
<input type="button" id="cancel" name="cancel" value="{$lang_cancel}" onclick="tinyMCEPopup.close();" /> |
</div> |
</div> |
</form> |
</body> |
</html> |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/acronym.htm |
---|
New file |
0,0 → 1,148 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head> |
<title>{$lang_xhtmlxtras_title_acronym_element}</title> |
<script language="javascript" type="text/javascript" src="../../tiny_mce_popup.js"></script> |
<script language="javascript" type="text/javascript" src="../../utils/mctabs.js"></script> |
<script language="javascript" type="text/javascript" src="../../utils/form_utils.js"></script> |
<script language="javascript" type="text/javascript" src="../../utils/editable_selects.js"></script> |
<script language="javascript" type="text/javascript" src="jscripts/element_common.js"></script> |
<script language="javascript" type="text/javascript" src="jscripts/acronym.js"></script> |
<link rel="stylesheet" type="text/css" href="css/popup.css" /> |
<base target="_self" /> |
</head> |
<body onload="tinyMCEPopup.executeOnLoad('init();');" 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;">{$lang_xhtmlxtras_general_tab}</a></span></li> |
<!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{$lang_xhtmlxtras_events_tab}</a></span></li> --> |
</ul> |
</div> |
<div class="panel_wrapper"> |
<div id="general_panel" class="panel current"> |
<fieldset> |
<legend>{$lang_xhtmlxtras_fieldset_attrib_tab}</legend> |
<table border="0" cellpadding="0" cellspacing="4"> |
<tr> |
<td class="label"><label id="titlelabel" for="title">{$lang_xhtmlxtras_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">{$lang_xhtmlxtras_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">{$lang_xhtmlxtras_attribute_label_class}</label>:</td> |
<td> |
<select id="class" name="class" class="field mceEditableSelect"> |
<option value="">{$lang_xhtmlxtras_not_set}</option> |
</select> |
</td> |
</tr> |
<tr> |
<td class="label"><label id="stylelabel" for="class">{$lang_xhtmlxtras_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">{$lang_xhtmlxtras_attribute_label_langdir}</label>:</td> |
<td> |
<select id="dir" name="dir" class="field"> |
<option value="">{$lang_xhtmlxtras_not_set}</option> |
<option value="ltr">{$lang_xhtmlxtras_attribute_option_ltr}</option> |
<option value="rtl">{$lang_xhtmlxtras_attribute_option_rtl}</option> |
</select> |
</td> |
</tr> |
<tr> |
<td class="label"><label id="langlabel" for="lang">{$lang_xhtmlxtras_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>{$lang_xhtmlxtras_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"> |
<div style="float: left"> |
<input type="button" id="insert" name="insert" value="{$lang_update}" onclick="insertAcronym();" /> |
</div> |
<div style="float: left"> |
<input type="button" id="remove" name="remove" value="{$lang_xhtmlxtras_remove}" onclick="removeAcronym();" style="display: none;" /> |
</div> |
<div style="float: right"> |
<input type="button" id="cancel" name="cancel" value="{$lang_cancel}" onclick="tinyMCEPopup.close();" /> |
</div> |
</div> |
</form> |
</body> |
</html> |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js |
---|
New file |
0,0 → 1,0 |
tinyMCE.importPluginLanguagePack('xhtmlxtras');var TinyMCE_XHTMLXtrasPlugin={getInfo:function(){return{longname:'XHTML Xtras Plugin',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/xhtmlxtras',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},initInstance:function(inst){tinyMCE.importCSS(inst.getDoc(),tinyMCE.baseURL+"/plugins/xhtmlxtras/css/xhtmlxtras.css")},getControlHTML:function(cn){switch(cn){case"cite":return tinyMCE.getButtonHTML(cn,'lang_xhtmlxtras_cite_desc','{$pluginurl}/images/cite.gif','mceCite',true);case"acronym":return tinyMCE.getButtonHTML(cn,'lang_xhtmlxtras_acronym_desc','{$pluginurl}/images/acronym.gif','mceAcronym',true);case"abbr":return tinyMCE.getButtonHTML(cn,'lang_xhtmlxtras_abbr_desc','{$pluginurl}/images/abbr.gif','mceAbbr',true);case"del":return tinyMCE.getButtonHTML(cn,'lang_xhtmlxtras_del_desc','{$pluginurl}/images/del.gif','mceDel',true);case"ins":return tinyMCE.getButtonHTML(cn,'lang_xhtmlxtras_ins_desc','{$pluginurl}/images/ins.gif','mceIns',true);case"attribs":return tinyMCE.getButtonHTML(cn,'lang_xhtmlxtras_attribs_desc','{$pluginurl}/images/attribs.gif','mceAttributes',true)}return""},execCommand:function(editor_id,element,command,user_interface,value){var template,inst,elm;switch(command){case"mceCite":if(!this._anySel(editor_id))return true;template=new Array();template['file']='../../plugins/xhtmlxtras/cite.htm';template['width']=350;template['height']=250;tinyMCE.openWindow(template,{editor_id:editor_id});return true;case"mceAcronym":if(!this._anySel(editor_id))return true;template=new Array();template['file']='../../plugins/xhtmlxtras/acronym.htm';template['width']=350;template['height']=250;tinyMCE.openWindow(template,{editor_id:editor_id});return true;case"mceAbbr":if(!this._anySel(editor_id))return true;template=new Array();template['file']='../../plugins/xhtmlxtras/abbr.htm';template['width']=350;template['height']=250;tinyMCE.openWindow(template,{editor_id:editor_id});return true;case"mceIns":if(!this._anySel(editor_id))return true;template=new Array();template['file']='../../plugins/xhtmlxtras/ins.htm';template['width']=350;template['height']=310;tinyMCE.openWindow(template,{editor_id:editor_id});return true;case"mceDel":if(!this._anySel(editor_id))return true;template=new Array();template['file']='../../plugins/xhtmlxtras/del.htm';template['width']=350;template['height']=310;tinyMCE.openWindow(template,{editor_id:editor_id});return true;case"mceAttributes":inst=tinyMCE.getInstanceById(editor_id);elm=inst.getFocusElement();if(elm&&elm.nodeName!=='BODY'&&elm.className.indexOf('mceItem')==-1){tinyMCE.openWindow({file:'../../plugins/xhtmlxtras/attributes.htm',width:380,height:370},{editor_id:editor_id})}return true}return false},cleanup:function(type,content,inst){if(type=='insert_to_editor'&&tinyMCE.isIE&&!tinyMCE.isOpera){content=content.replace(/<abbr([^>]+)>/gi,'<html:ABBR $1>');content=content.replace(/<\/abbr>/gi,'</html:ABBR>')}return content},handleNodeChange:function(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){var elm=tinyMCE.getParentElement(node);if(node==null)return;tinyMCE.switchClass(editor_id+'_attribs','mceButtonDisabled');if(!any_selection){tinyMCE.switchClass(editor_id+'_cite','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_acronym','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_abbr','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_del','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_ins','mceButtonDisabled')}else{tinyMCE.switchClass(editor_id+'_cite','mceButtonNormal');tinyMCE.switchClass(editor_id+'_acronym','mceButtonNormal');tinyMCE.switchClass(editor_id+'_abbr','mceButtonNormal');tinyMCE.switchClass(editor_id+'_del','mceButtonNormal');tinyMCE.switchClass(editor_id+'_ins','mceButtonNormal')}if(elm&&elm.nodeName!='BODY'&&elm.className.indexOf('mceItem')==-1)tinyMCE.switchClass(editor_id+'_attribs','mceButtonNormal');switch(node.nodeName){case"CITE":tinyMCE.switchClass(editor_id+'_cite','mceButtonSelected');return true;case"ACRONYM":tinyMCE.switchClass(editor_id+'_acronym','mceButtonSelected');return true;case"abbr":case"HTML:ABBR":case"ABBR":tinyMCE.switchClass(editor_id+'_abbr','mceButtonSelected');return true;case"DEL":tinyMCE.switchClass(editor_id+'_del','mceButtonSelected');return true;case"INS":tinyMCE.switchClass(editor_id+'_ins','mceButtonSelected');return true}return true},_anySel:function(editor_id){var inst=tinyMCE.getInstanceById(editor_id),t=inst.selection.getSelectedText(),pe;pe=tinyMCE.getParentElement(inst.getFocusElement(),'CITE,ACRONYM,ABBR,HTML:ABBR,DEL,INS');return pe||inst.getFocusElement().nodeName=="IMG"||(t&&t.length>0)}};tinyMCE.addPlugin("xhtmlxtras",TinyMCE_XHTMLXtrasPlugin); |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/ins.htm |
---|
New file |
0,0 → 1,169 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head> |
<title>{$lang_xhtmlxtras_title_ins_element}</title> |
<script language="javascript" type="text/javascript" src="../../tiny_mce_popup.js"></script> |
<script language="javascript" type="text/javascript" src="../../utils/mctabs.js"></script> |
<script language="javascript" type="text/javascript" src="../../utils/form_utils.js"></script> |
<script language="javascript" type="text/javascript" src="../../utils/editable_selects.js"></script> |
<script language="javascript" type="text/javascript" src="jscripts/element_common.js"></script> |
<script language="javascript" type="text/javascript" src="jscripts/ins.js"></script> |
<link rel="stylesheet" type="text/css" href="css/popup.css" /> |
<base target="_self" /> |
</head> |
<body id="xhtmlxtrasins" onload="tinyMCEPopup.executeOnLoad('init();');" 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;">{$lang_xhtmlxtras_general_tab}</a></span></li> |
<!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{$lang_xhtmlxtras_events_tab}</a></span></li> --> |
</ul> |
</div> |
<div class="panel_wrapper"> |
<div id="general_panel" class="panel current"> |
<fieldset> |
<legend>{$lang_xhtmlxtras_fieldset_general_tab}</legend> |
<table border="0" cellpadding="0" cellspacing="4"> |
<tr> |
<td class="label"><label id="datetimelabel" for="datetime">{$lang_xhtmlxtras_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" /></td> |
<td><a href="javascript:insertDateTime('datetime');" class="mceButtonNormal"><img src="images/date_time.gif" class="picker" alt="{$lang_xhtmlxtras_insert_date}" title="{$lang_xhtmlxtras_insert_date}" /></a></td> |
</tr> |
</table> |
</td> |
</tr> |
<tr> |
<td class="label"><label id="citelabel" for="cite">{$lang_xhtmlxtras_attribute_label_cite}</label>:</td> |
<td><input id="cite" name="cite" type="text" value="" class="field" /></td> |
</tr> |
</table> |
</fieldset> |
<fieldset> |
<legend>{$lang_xhtmlxtras_fieldset_attrib_tab}</legend> |
<table border="0" cellpadding="0" cellspacing="4"> |
<tr> |
<td class="label"><label id="titlelabel" for="title">{$lang_xhtmlxtras_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">{$lang_xhtmlxtras_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">{$lang_xhtmlxtras_attribute_label_class}</label>:</td> |
<td> |
<select id="class" name="class" class="field mceEditableSelect"> |
<option value="">{$lang_xhtmlxtras_not_set}</option> |
</select> |
</td> |
</tr> |
<tr> |
<td class="label"><label id="stylelabel" for="class">{$lang_xhtmlxtras_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">{$lang_xhtmlxtras_attribute_label_langdir}</label>:</td> |
<td> |
<select id="dir" name="dir" class="field"> |
<option value="">{$lang_xhtmlxtras_not_set}</option> |
<option value="ltr">{$lang_xhtmlxtras_attribute_option_ltr}</option> |
<option value="rtl">{$lang_xhtmlxtras_attribute_option_rtl}</option> |
</select> |
</td> |
</tr> |
<tr> |
<td class="label"><label id="langlabel" for="lang">{$lang_xhtmlxtras_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>{$lang_xhtmlxtras_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"> |
<div style="float: left"> |
<input type="button" id="insert" name="insert" value="{$lang_update}" onclick="insertIns();" /> |
</div> |
<div style="float: left"> |
<input type="button" id="remove" name="remove" value="{$lang_xhtmlxtras_remove}" onclick="removeIns();" style="display: none;" /> |
</div> |
<div style="float: right"> |
<input type="button" id="cancel" name="cancel" value="{$lang_cancel}" onclick="tinyMCEPopup.close();" /> |
</div> |
</div> |
</form> |
</body> |
</html> |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/jscripts/element_common.js |
---|
New file |
0,0 → 1,241 |
/** |
* $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $ |
* |
* @author Moxiecode - based on work by Andrew Tetlaw |
* @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved. |
*/ |
function initCommonAttributes(elm) { |
var formObj = document.forms[0]; |
// Setup form data for common element attributes |
setFormValue('title', tinyMCE.getAttrib(elm, 'title')); |
setFormValue('id', tinyMCE.getAttrib(elm, 'id')); |
selectByValue(formObj, 'class', tinyMCE.getAttrib(elm, 'class'), true); |
setFormValue('style', tinyMCE.getAttrib(elm, 'style')); |
selectByValue(formObj, 'dir', tinyMCE.getAttrib(elm, 'dir')); |
setFormValue('lang', tinyMCE.getAttrib(elm, 'lang')); |
setFormValue('onfocus', tinyMCE.getAttrib(elm, 'onfocus')); |
setFormValue('onblur', tinyMCE.getAttrib(elm, 'onblur')); |
setFormValue('onclick', tinyMCE.getAttrib(elm, 'onclick')); |
setFormValue('ondblclick', tinyMCE.getAttrib(elm, 'ondblclick')); |
setFormValue('onmousedown', tinyMCE.getAttrib(elm, 'onmousedown')); |
setFormValue('onmouseup', tinyMCE.getAttrib(elm, 'onmouseup')); |
setFormValue('onmouseover', tinyMCE.getAttrib(elm, 'onmouseover')); |
setFormValue('onmousemove', tinyMCE.getAttrib(elm, 'onmousemove')); |
setFormValue('onmouseout', tinyMCE.getAttrib(elm, 'onmouseout')); |
setFormValue('onkeypress', tinyMCE.getAttrib(elm, 'onkeypress')); |
setFormValue('onkeydown', tinyMCE.getAttrib(elm, 'onkeydown')); |
setFormValue('onkeyup', tinyMCE.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()]; |
if (typeof(value) == "undefined" || value == null) { |
value = ""; |
if (valueElm) |
value = valueElm.value; |
} |
if (value != "") { |
if (attrib == "style") |
attrib = "style.cssText"; |
if (attrib.substring(0, 2) == 'on') |
value = 'return true;' + value; |
if (attrib == "class") { |
tinyMCE.addCSSClass(elm, value); |
return; |
} |
elm.setAttribute(attrib.toLowerCase(), value); |
} else |
elm.removeAttribute(attrib); |
} |
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 : tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id')), |
updateElement : null |
} |
SXE.focusElement = SXE.inst.getFocusElement(); |
SXE.initElementDialog = function(element_name) { |
addClassesToList('class', 'xhtmlxtras_styles'); |
TinyMCE_EditableSelects.init(); |
element_name = element_name.toLowerCase(); |
var elm = tinyMCE.getParentElement(SXE.focusElement, element_name); |
if (elm != null && elm.nodeName == element_name.toUpperCase()) { |
SXE.currentAction = "update"; |
} |
if (SXE.currentAction == "update") { |
initCommonAttributes(elm); |
SXE.updateElement = elm; |
} |
document.forms[0].insert.value = tinyMCE.getLang('lang_' + SXE.currentAction, 'Insert', true); |
} |
SXE.insertElement = function(element_name) { |
var elm = tinyMCE.getParentElement(SXE.focusElement, element_name), h, tagName; |
tinyMCEPopup.execCommand('mceBeginUndoLevel'); |
if (elm == null) { |
var s = SXE.inst.selection.getSelectedHTML(); |
if(s.length > 0) { |
tagName = element_name; |
if (tinyMCE.isIE && !tinyMCE.isOpera && element_name.indexOf('html:') == 0) |
element_name = element_name.substring(5).toLowerCase(); |
h = '<' + tagName + ' id="#sxe_temp_' + element_name + '#">' + s + '</' + tagName + '>'; |
tinyMCEPopup.execCommand('mceInsertContent', false, h); |
var elementArray = tinyMCE.getElementsByAttributeValue(SXE.inst.getBody(), element_name, 'id', '#sxe_temp_' + element_name + '#'); |
for (var i=0; i<elementArray.length; i++) { |
var elm = elementArray[i]; |
elm.id = ''; |
elm.setAttribute('id', ''); |
elm.removeAttribute('id'); |
setAllCommonAttribs(elm); |
} |
} |
} else { |
setAllCommonAttribs(elm); |
} |
tinyMCE.triggerNodeChange(); |
tinyMCEPopup.execCommand('mceEndUndoLevel'); |
} |
SXE.removeElement = function(element_name){ |
element_name = element_name.toLowerCase(); |
elm = tinyMCE.getParentElement(SXE.focusElement, element_name); |
if(elm && elm.nodeName == element_name.toUpperCase()){ |
tinyMCEPopup.execCommand('mceBeginUndoLevel'); |
tinyMCE.execCommand('mceRemoveNode', false, elm); |
tinyMCE.triggerNodeChange(); |
tinyMCEPopup.execCommand('mceEndUndoLevel'); |
} |
} |
SXE.showRemoveButton = function() { |
document.getElementById("remove").style.display = 'block'; |
} |
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; |
} |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/jscripts/cite.js |
---|
New file |
0,0 → 1,29 |
/** |
* $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $ |
* |
* @author Moxiecode - based on work by Andrew Tetlaw |
* @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved. |
*/ |
function preinit() { |
// Initialize |
tinyMCE.setWindowArg('mce_windowresize', false); |
} |
function init() { |
tinyMCEPopup.resizeToInnerSize(); |
SXE.initElementDialog('cite'); |
if (SXE.currentAction == "update") { |
SXE.showRemoveButton(); |
} |
} |
function insertCite() { |
SXE.insertElement('cite'); |
tinyMCEPopup.close(); |
} |
function removeCite() { |
SXE.removeElement('cite'); |
tinyMCEPopup.close(); |
} |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/jscripts/del.js |
---|
New file |
0,0 → 1,54 |
/** |
* $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $ |
* |
* @author Moxiecode - based on work by Andrew Tetlaw |
* @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved. |
*/ |
function preinit() { |
// Initialize |
tinyMCE.setWindowArg('mce_windowresize', false); |
} |
function init() { |
tinyMCEPopup.resizeToInnerSize(); |
SXE.initElementDialog('del'); |
if (SXE.currentAction == "update") { |
setFormValue('datetime', tinyMCE.getAttrib(SXE.updateElement, 'datetime')); |
setFormValue('cite', tinyMCE.getAttrib(SXE.updateElement, 'cite')); |
SXE.showRemoveButton(); |
} |
} |
function setElementAttribs(elm) { |
setAllCommonAttribs(elm); |
setAttrib(elm, 'datetime'); |
setAttrib(elm, 'cite'); |
} |
function insertDel() { |
var elm = tinyMCE.getParentElement(SXE.focusElement, 'del'); |
tinyMCEPopup.execCommand('mceBeginUndoLevel'); |
if (elm == null) { |
var s = SXE.inst.selection.getSelectedHTML(); |
if(s.length > 0) { |
tinyMCEPopup.execCommand('mceInsertContent', false, '<del id="#sxe_temp_del#">' + s + '</del>'); |
var elementArray = tinyMCE.getElementsByAttributeValue(SXE.inst.getBody(), 'del', 'id', '#sxe_temp_del#'); |
for (var i=0; i<elementArray.length; i++) { |
var elm = elementArray[i]; |
setElementAttribs(elm); |
} |
} |
} else { |
setElementAttribs(elm); |
} |
tinyMCE.triggerNodeChange(); |
tinyMCEPopup.execCommand('mceEndUndoLevel'); |
tinyMCEPopup.close(); |
} |
function removeDel() { |
SXE.removeElement('del'); |
tinyMCEPopup.close(); |
} |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/jscripts/abbr.js |
---|
New file |
0,0 → 1,29 |
/** |
* $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $ |
* |
* @author Moxiecode - based on work by Andrew Tetlaw |
* @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved. |
*/ |
function preinit() { |
// Initialize |
tinyMCE.setWindowArg('mce_windowresize', false); |
} |
function init() { |
tinyMCEPopup.resizeToInnerSize(); |
SXE.initElementDialog('abbr'); |
if (SXE.currentAction == "update") { |
SXE.showRemoveButton(); |
} |
} |
function insertAbbr() { |
SXE.insertElement(tinyMCE.isIE && !tinyMCE.isOpera ? 'html:ABBR' : 'abbr'); |
tinyMCEPopup.close(); |
} |
function removeAbbr() { |
SXE.removeElement('abbr'); |
tinyMCEPopup.close(); |
} |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/jscripts/attributes.js |
---|
New file |
0,0 → 1,130 |
/** |
* $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $ |
* |
* @author Moxiecode - based on work by Andrew Tetlaw |
* @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved. |
*/ |
function preinit() { |
// Initialize |
tinyMCE.setWindowArg('mce_windowresize', false); |
} |
function init() { |
tinyMCEPopup.resizeToInnerSize(); |
var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id')); |
var elm = inst.getFocusElement(); |
var f = document.forms[0]; |
var onclick = tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onclick')); |
setFormValue('title', tinyMCE.getAttrib(elm, 'title')); |
setFormValue('id', tinyMCE.getAttrib(elm, 'id')); |
setFormValue('style', tinyMCE.serializeStyle(tinyMCE.parseStyle(tinyMCE.getAttrib(elm, "style")))); |
setFormValue('dir', tinyMCE.getAttrib(elm, 'dir')); |
setFormValue('lang', tinyMCE.getAttrib(elm, 'lang')); |
setFormValue('tabindex', tinyMCE.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : "")); |
setFormValue('accesskey', tinyMCE.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : "")); |
setFormValue('onfocus', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onfocus'))); |
setFormValue('onblur', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onblur'))); |
setFormValue('onclick', onclick); |
setFormValue('ondblclick', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'ondblclick'))); |
setFormValue('onmousedown', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmousedown'))); |
setFormValue('onmouseup', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmouseup'))); |
setFormValue('onmouseover', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmouseover'))); |
setFormValue('onmousemove', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmousemove'))); |
setFormValue('onmouseout', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmouseout'))); |
setFormValue('onkeypress', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onkeypress'))); |
setFormValue('onkeydown', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onkeydown'))); |
setFormValue('onkeyup', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onkeyup'))); |
className = tinyMCE.getVisualAidClass(tinyMCE.getAttrib(elm, 'class'), false); |
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 = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id')); |
var elm = inst.getFocusElement(); |
tinyMCEPopup.execCommand("mceBeginUndoLevel"); |
tinyMCEPopup.restoreSelection(); |
setAllAttribs(elm); |
tinyMCE.handleVisualAid(inst.getBody(), true, inst.visualAid, inst); |
tinyMCE._setEventsEnabled(inst.getBody(), false); |
tinyMCEPopup.execCommand("mceEndUndoLevel"); |
tinyMCEPopup.close(); |
} |
function setAttrib(elm, attrib, value) { |
var formObj = document.forms[0]; |
var valueElm = formObj.elements[attrib.toLowerCase()]; |
if (typeof(value) == "undefined" || value == null) { |
value = ""; |
if (valueElm) |
value = valueElm.value; |
} |
if (value != "") { |
tinyMCE.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"; |
eval('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(); |
} |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/jscripts/acronym.js |
---|
New file |
0,0 → 1,29 |
/** |
* $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $ |
* |
* @author Moxiecode - based on work by Andrew Tetlaw |
* @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved. |
*/ |
function preinit() { |
// Initialize |
tinyMCE.setWindowArg('mce_windowresize', false); |
} |
function init() { |
tinyMCEPopup.resizeToInnerSize(); |
SXE.initElementDialog('acronym'); |
if (SXE.currentAction == "update") { |
SXE.showRemoveButton(); |
} |
} |
function insertAcronym() { |
SXE.insertElement('acronym'); |
tinyMCEPopup.close(); |
} |
function removeAcronym() { |
SXE.removeElement('acronym'); |
tinyMCEPopup.close(); |
} |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/jscripts/ins.js |
---|
New file |
0,0 → 1,53 |
/** |
* $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $ |
* |
* @author Moxiecode - based on work by Andrew Tetlaw |
* @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved. |
*/ |
function preinit() { |
// Initialize |
tinyMCE.setWindowArg('mce_windowresize', false); |
} |
function init() { |
tinyMCEPopup.resizeToInnerSize(); |
SXE.initElementDialog('ins'); |
if (SXE.currentAction == "update") { |
setFormValue('datetime', tinyMCE.getAttrib(SXE.updateElement, 'datetime')); |
setFormValue('cite', tinyMCE.getAttrib(SXE.updateElement, 'cite')); |
SXE.showRemoveButton(); |
} |
} |
function setElementAttribs(elm) { |
setAllCommonAttribs(elm); |
setAttrib(elm, 'datetime'); |
setAttrib(elm, 'cite'); |
} |
function insertIns() { |
var elm = tinyMCE.getParentElement(SXE.focusElement, 'ins'); |
tinyMCEPopup.execCommand('mceBeginUndoLevel'); |
if (elm == null) { |
var s = SXE.inst.selection.getSelectedHTML(); |
if(s.length > 0) { |
tinyMCEPopup.execCommand('mceInsertContent', false, '<ins id="#sxe_temp_ins#">' + s + '</ins>'); |
var elementArray = tinyMCE.getElementsByAttributeValue(SXE.inst.getBody(), 'ins', 'id', '#sxe_temp_ins#'); |
for (var i=0; i<elementArray.length; i++) { |
var elm = elementArray[i]; |
setElementAttribs(elm); |
} |
} |
} else { |
setElementAttribs(elm); |
} |
tinyMCE.triggerNodeChange(); |
tinyMCEPopup.execCommand('mceEndUndoLevel'); |
tinyMCEPopup.close(); |
} |
function removeIns() { |
SXE.removeElement('ins'); |
tinyMCEPopup.close(); |
} |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/langs/fr.js |
---|
New file |
0,0 → 1,43 |
// FR lang variables |
// Modified by shadow walker, last updated 2007-03-16 |
tinyMCE.addToLang('xhtmlxtras',{ |
cite_desc : 'Citation', |
abbr_desc : 'Abréviation', |
acronym_desc : 'Acronyme', |
del_desc : 'Effacer', |
ins_desc : 'Insertion', |
attribute_label_title : 'Titre', |
attribute_label_id : 'ID', |
attribute_label_class : 'Classe', |
attribute_label_style : 'Style', |
attribute_label_cite : 'Cite', |
attribute_label_datetime : 'Date/Heure', |
attribute_label_langdir : 'Text Direction', |
attribute_option_ltr : 'De gauche à droite', |
attribute_option_rtl : 'De droite à gauche', |
attribute_label_langcode : 'Langues', |
attribute_label_tabindex : 'TabIndex', |
attribute_label_accesskey : 'AccessKey', |
attribute_label_cite : 'Cite', |
attribute_events_tab : 'Evenement', |
attribute_attrib_tab : 'Attribus', |
general_tab : 'Générale', |
attrib_tab : 'Attribus', |
events_tab : 'Evenement', |
fieldset_general_tab : 'General Settings', |
fieldset_attrib_tab : 'Attributs de l\'élément', |
fieldset_events_tab : 'Element Events', |
title_ins_element : 'Insertion de l\'élément', |
title_del_element : 'Effacement de l\'élément', |
title_acronym_element : 'Acronyme de l\'élément', |
title_abbr_element : 'Abréviation de l\'élément', |
title_cite_element : 'Citation Element', |
remove : 'Enlever', |
not_set : '--Non définit--', |
insert_date : 'Insérer la date/heure actuelle', |
option_ltr : 'De gauche à droite', |
option_rtl : 'De droite à gauche', |
attribs_desc : 'Insérer/Editer un attribut', |
attribs_title : 'Insérer/Editer un attribut' |
}); |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/langs/en.js |
---|
New file |
0,0 → 1,42 |
// UK lang variables |
tinyMCE.addToLang('xhtmlxtras',{ |
cite_desc : 'Citation', |
abbr_desc : 'Abbreviation', |
acronym_desc : 'Acronym', |
del_desc : 'Deletion', |
ins_desc : 'Insertion', |
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_label_cite : 'Cite', |
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', |
not_set : '--not set--', |
insert_date : 'Insert current date/time', |
option_ltr : 'Left to right', |
option_rtl : 'Right to left', |
attribs_desc : 'Insert/Edit Attributes', |
attribs_title : 'Insert/Edit Attributes' |
}); |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/images/abbr.gif |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/images/abbr.gif |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/images/acronym.gif |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/images/acronym.gif |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/images/attribs.gif |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/images/attribs.gif |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/images/ins.gif |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/images/ins.gif |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/images/date_time.gif |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/images/date_time.gif |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/images/remove_button_bg.gif |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/images/remove_button_bg.gif |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/images/cite.gif |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/images/cite.gif |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/images/del.gif |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/images/del.gif |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/branches/v4.0-livraison/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js |
---|
New file |
0,0 → 1,199 |
/** |
* $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $ |
* |
* @author Moxiecode - based on work by Andrew Tetlaw |
* @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved. |
*/ |
/* Import plugin specific language pack */ |
tinyMCE.importPluginLanguagePack('xhtmlxtras'); |
var TinyMCE_XHTMLXtrasPlugin = { |
getInfo : function() { |
return { |
longname : 'XHTML Xtras Plugin', |
author : 'Moxiecode Systems AB', |
authorurl : 'http://tinymce.moxiecode.com', |
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/xhtmlxtras', |
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion |
}; |
}, |
initInstance : function(inst) { |
tinyMCE.importCSS(inst.getDoc(), tinyMCE.baseURL + "/plugins/xhtmlxtras/css/xhtmlxtras.css"); |
}, |
getControlHTML : function(cn) { |
switch (cn) { |
case "cite": |
return tinyMCE.getButtonHTML(cn, 'lang_xhtmlxtras_cite_desc', '{$pluginurl}/images/cite.gif', 'mceCite', true); |
case "acronym": |
return tinyMCE.getButtonHTML(cn, 'lang_xhtmlxtras_acronym_desc', '{$pluginurl}/images/acronym.gif', 'mceAcronym', true); |
case "abbr": |
return tinyMCE.getButtonHTML(cn, 'lang_xhtmlxtras_abbr_desc', '{$pluginurl}/images/abbr.gif', 'mceAbbr', true); |
case "del": |
return tinyMCE.getButtonHTML(cn, 'lang_xhtmlxtras_del_desc', '{$pluginurl}/images/del.gif', 'mceDel', true); |
case "ins": |
return tinyMCE.getButtonHTML(cn, 'lang_xhtmlxtras_ins_desc', '{$pluginurl}/images/ins.gif', 'mceIns', true); |
case "attribs": |
return tinyMCE.getButtonHTML(cn, 'lang_xhtmlxtras_attribs_desc', '{$pluginurl}/images/attribs.gif', 'mceAttributes', true); |
} |
return ""; |
}, |
execCommand : function(editor_id, element, command, user_interface, value) { |
var template, inst, elm; |
switch (command) { |
case "mceCite": |
if (!this._anySel(editor_id)) |
return true; |
template = new Array(); |
template['file'] = '../../plugins/xhtmlxtras/cite.htm'; |
template['width'] = 350; |
template['height'] = 250; |
tinyMCE.openWindow(template, {editor_id : editor_id}); |
return true; |
case "mceAcronym": |
if (!this._anySel(editor_id)) |
return true; |
template = new Array(); |
template['file'] = '../../plugins/xhtmlxtras/acronym.htm'; |
template['width'] = 350; |
template['height'] = 250; |
tinyMCE.openWindow(template, {editor_id : editor_id}); |
return true; |
case "mceAbbr": |
if (!this._anySel(editor_id)) |
return true; |
template = new Array(); |
template['file'] = '../../plugins/xhtmlxtras/abbr.htm'; |
template['width'] = 350; |
template['height'] = 250; |
tinyMCE.openWindow(template, {editor_id : editor_id}); |
return true; |
case "mceIns": |
if (!this._anySel(editor_id)) |
return true; |
template = new Array(); |
template['file'] = '../../plugins/xhtmlxtras/ins.htm'; |
template['width'] = 350; |
template['height'] = 310; |
tinyMCE.openWindow(template, {editor_id : editor_id}); |
return true; |
case "mceDel": |
if (!this._anySel(editor_id)) |
return true; |
template = new Array(); |
template['file'] = '../../plugins/xhtmlxtras/del.htm'; |
template['width'] = 350; |
template['height'] = 310; |
tinyMCE.openWindow(template, {editor_id : editor_id}); |
return true; |
case "mceAttributes": |
inst = tinyMCE.getInstanceById(editor_id); |
elm = inst.getFocusElement(); |
if (elm && elm.nodeName !== 'BODY' && elm.className.indexOf('mceItem') == -1) { |
tinyMCE.openWindow({ |
file : '../../plugins/xhtmlxtras/attributes.htm', |
width : 380, |
height : 370 |
}, {editor_id : editor_id}); |
} |
return true; |
} |
return false; |
}, |
cleanup : function(type, content, inst) { |
if (type == 'insert_to_editor' && tinyMCE.isIE && !tinyMCE.isOpera) { |
content = content.replace(/<abbr([^>]+)>/gi, '<html:ABBR $1>'); |
content = content.replace(/<\/abbr>/gi, '</html:ABBR>'); |
} |
return content; |
}, |
handleNodeChange : function(editor_id, node, undo_index,undo_levels, visual_aid, any_selection) { |
var elm = tinyMCE.getParentElement(node); |
if (node == null) |
return; |
tinyMCE.switchClass(editor_id + '_attribs', 'mceButtonDisabled'); |
if (!any_selection) { |
// Disable the buttons |
tinyMCE.switchClass(editor_id + '_cite', 'mceButtonDisabled'); |
tinyMCE.switchClass(editor_id + '_acronym', 'mceButtonDisabled'); |
tinyMCE.switchClass(editor_id + '_abbr', 'mceButtonDisabled'); |
tinyMCE.switchClass(editor_id + '_del', 'mceButtonDisabled'); |
tinyMCE.switchClass(editor_id + '_ins', 'mceButtonDisabled'); |
} else { |
// A selection means the buttons should be active. |
tinyMCE.switchClass(editor_id + '_cite', 'mceButtonNormal'); |
tinyMCE.switchClass(editor_id + '_acronym', 'mceButtonNormal'); |
tinyMCE.switchClass(editor_id + '_abbr', 'mceButtonNormal'); |
tinyMCE.switchClass(editor_id + '_del', 'mceButtonNormal'); |
tinyMCE.switchClass(editor_id + '_ins', 'mceButtonNormal'); |
} |
if (elm && elm.nodeName != 'BODY' && elm.className.indexOf('mceItem') == -1) |
tinyMCE.switchClass(editor_id + '_attribs', 'mceButtonNormal'); |
switch (node.nodeName) { |
case "CITE": |
tinyMCE.switchClass(editor_id + '_cite', 'mceButtonSelected'); |
return true; |
case "ACRONYM": |
tinyMCE.switchClass(editor_id + '_acronym', 'mceButtonSelected'); |
return true; |
case "abbr": // IE |
case "HTML:ABBR": // FF |
case "ABBR": |
tinyMCE.switchClass(editor_id + '_abbr', 'mceButtonSelected'); |
return true; |
case "DEL": |
tinyMCE.switchClass(editor_id + '_del', 'mceButtonSelected'); |
return true; |
case "INS": |
tinyMCE.switchClass(editor_id + '_ins', 'mceButtonSelected'); |
return true; |
} |
return true; |
}, |
_anySel : function(editor_id) { |
var inst = tinyMCE.getInstanceById(editor_id), t = inst.selection.getSelectedText(), pe; |
pe = tinyMCE.getParentElement(inst.getFocusElement(), 'CITE,ACRONYM,ABBR,HTML:ABBR,DEL,INS'); |
return pe || inst.getFocusElement().nodeName == "IMG" || (t && t.length > 0); |
} |
}; |
tinyMCE.addPlugin("xhtmlxtras", TinyMCE_XHTMLXtrasPlugin); |