添加到 trunk
+YUCHENG HU+ git-svn-id: https://svn.code.sf.net/p/hawebs/svn@187 a2543c7e-f6e9-4f8a-8bff-1ffc34733512
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
@@ -0,0 +1 @@
|
||||
(function(){tinymce.create("tinymce.plugins.VisualChars",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceVisualChars",c._toggleVisualChars,c);a.addButton("visualchars",{title:"visualchars.desc",cmd:"mceVisualChars"});a.onBeforeGetContent.add(function(d,e){if(c.state){c.state=true;c._toggleVisualChars()}})},getInfo:function(){return{longname:"Visual characters",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/visualchars",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_toggleVisualChars:function(){var m=this,g=m.editor,a,e,f,k=g.getDoc(),l=g.getBody(),j,n=g.selection,c;m.state=!m.state;g.controlManager.setActive("visualchars",m.state);if(m.state){a=[];tinymce.walk(l,function(b){if(b.nodeType==3&&b.nodeValue&&b.nodeValue.indexOf("\u00a0")!=-1){a.push(b)}},"childNodes");for(e=0;e<a.length;e++){j=a[e].nodeValue;j=j.replace(/(\u00a0+)/g,'<span class="mceItemHidden mceVisualNbsp">$1</span>');j=j.replace(/\u00a0/g,"\u00b7");g.dom.setOuterHTML(a[e],j,k)}}else{a=tinymce.grep(g.dom.select("span",l),function(b){return g.dom.hasClass(b,"mceVisualNbsp")});for(e=0;e<a.length;e++){g.dom.setOuterHTML(a[e],a[e].innerHTML.replace(/(·|\u00b7)/g," "),k)}}}});tinymce.PluginManager.add("visualchars",tinymce.plugins.VisualChars)})();
|
||||
@@ -0,0 +1,73 @@
|
||||
/**
|
||||
* $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z spocke $
|
||||
*
|
||||
* @author Moxiecode
|
||||
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
|
||||
*/
|
||||
|
||||
(function() {
|
||||
tinymce.create('tinymce.plugins.VisualChars', {
|
||||
init : function(ed, url) {
|
||||
var t = this;
|
||||
|
||||
t.editor = ed;
|
||||
|
||||
// Register commands
|
||||
ed.addCommand('mceVisualChars', t._toggleVisualChars, t);
|
||||
|
||||
// Register buttons
|
||||
ed.addButton('visualchars', {title : 'visualchars.desc', cmd : 'mceVisualChars'});
|
||||
|
||||
ed.onBeforeGetContent.add(function(ed, o) {
|
||||
if (t.state) {
|
||||
t.state = true;
|
||||
t._toggleVisualChars();
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
getInfo : function() {
|
||||
return {
|
||||
longname : 'Visual characters',
|
||||
author : 'Moxiecode Systems AB',
|
||||
authorurl : 'http://tinymce.moxiecode.com',
|
||||
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/visualchars',
|
||||
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
||||
};
|
||||
},
|
||||
|
||||
// Private methods
|
||||
|
||||
_toggleVisualChars : function() {
|
||||
var t = this, ed = t.editor, nl, i, h, d = ed.getDoc(), b = ed.getBody(), nv, s = ed.selection, bo;
|
||||
|
||||
t.state = !t.state;
|
||||
ed.controlManager.setActive('visualchars', t.state);
|
||||
|
||||
if (t.state) {
|
||||
nl = [];
|
||||
tinymce.walk(b, function(n) {
|
||||
if (n.nodeType == 3 && n.nodeValue && n.nodeValue.indexOf('\u00a0') != -1)
|
||||
nl.push(n);
|
||||
}, 'childNodes');
|
||||
|
||||
for (i=0; i<nl.length; i++) {
|
||||
nv = nl[i].nodeValue;
|
||||
nv = nv.replace(/(\u00a0+)/g, '<span class="mceItemHidden mceVisualNbsp">$1</span>');
|
||||
nv = nv.replace(/\u00a0/g, '\u00b7');
|
||||
ed.dom.setOuterHTML(nl[i], nv, d);
|
||||
}
|
||||
} else {
|
||||
nl = tinymce.grep(ed.dom.select('span', b), function(n) {
|
||||
return ed.dom.hasClass(n, 'mceVisualNbsp');
|
||||
});
|
||||
|
||||
for (i=0; i<nl.length; i++)
|
||||
ed.dom.setOuterHTML(nl[i], nl[i].innerHTML.replace(/(·|\u00b7)/g, ' '), d);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Register plugin
|
||||
tinymce.PluginManager.add('visualchars', tinymce.plugins.VisualChars);
|
||||
})();
|
||||
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
|
After Width: | Height: | Size: 134 B |
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
@@ -0,0 +1,5 @@
|
||||
// EN lang variables
|
||||
|
||||
tinyMCE.addToLang('visualchars',{
|
||||
desc : 'Visual control characters on/off.'
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
@@ -0,0 +1,148 @@
|
||||
<!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">
|
||||
<div style="float: left">
|
||||
<input type="submit" id="insert" name="insert" value="{#update}" />
|
||||
</div>
|
||||
<div style="float: left">
|
||||
<input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeAbbr();" style="display: none;" />
|
||||
</div>
|
||||
<div style="float: right">
|
||||
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,148 @@
|
||||
<!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">
|
||||
<div style="float: left">
|
||||
<input type="submit" id="insert" name="insert" value="{#update}" />
|
||||
</div>
|
||||
<div style="float: left">
|
||||
<input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeAcronym();" style="display: none;" />
|
||||
</div>
|
||||
<div style="float: right">
|
||||
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,153 @@
|
||||
<!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">
|
||||
<div style="float: left">
|
||||
<input type="submit" id="insert" name="insert" value="{#insert}" />
|
||||
</div>
|
||||
<div style="float: right">
|
||||
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,148 @@
|
||||
<!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">
|
||||
<div style="float: left">
|
||||
<input type="submit" id="insert" name="insert" value="{#update}" />
|
||||
</div>
|
||||
<div style="float: left">
|
||||
<input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeCite();" style="display: none;" />
|
||||
</div>
|
||||
<div style="float: right">
|
||||
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -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;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
@@ -0,0 +1,9 @@
|
||||
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;}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -0,0 +1,169 @@
|
||||
<!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">
|
||||
<div style="float: left">
|
||||
<input type="submit" id="insert" name="insert" value="{#update}" />
|
||||
</div>
|
||||
<div style="float: left">
|
||||
<input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeDel();" style="display: none;" />
|
||||
</div>
|
||||
<div style="float: right">
|
||||
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,136 @@
|
||||
/**
|
||||
* $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z spocke $
|
||||
*
|
||||
* @author Moxiecode
|
||||
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
|
||||
*/
|
||||
|
||||
(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);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
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);
|
||||
})();
|
||||
|
After Width: | Height: | Size: 144 B |
|
After Width: | Height: | Size: 138 B |
|
After Width: | Height: | Size: 601 B |
|
After Width: | Height: | Size: 313 B |
|
After Width: | Height: | Size: 287 B |
|
After Width: | Height: | Size: 222 B |
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
|
After Width: | Height: | Size: 231 B |
|
After Width: | Height: | Size: 433 B |
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
@@ -0,0 +1,169 @@
|
||||
<!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">
|
||||
<div style="float: left">
|
||||
<input type="submit" id="insert" name="insert" value="{#update}" />
|
||||
</div>
|
||||
<div style="float: left">
|
||||
<input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeIns();" style="display: none;" />
|
||||
</div>
|
||||
<div style="float: right">
|
||||
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||