From 71ac07361b314ab5c9d0a822e541645cdb135c63 Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Sat, 12 Jun 2010 19:35:00 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=B0=20trunk?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit +YUCHENG HU+ git-svn-id: https://svn.code.sf.net/p/hawebs/svn@187 a2543c7e-f6e9-4f8a-8bff-1ffc34733512 --- .../jscripts/tiny_mce/plugins/index.html | 1 + .../plugins/visualchars/editor_plugin.js | 1 + .../plugins/visualchars/editor_plugin_src.js | 73 ++++++ .../plugins/visualchars/images/index.html | 1 + .../visualchars/images/visualchars.gif | Bin 0 -> 134 bytes .../tiny_mce/plugins/visualchars/index.html | 1 + .../tiny_mce/plugins/visualchars/langs/en.js | 5 + .../plugins/visualchars/langs/index.html | 1 + .../tiny_mce/plugins/xhtmlxtras/abbr.htm | 148 +++++++++++ .../tiny_mce/plugins/xhtmlxtras/acronym.htm | 148 +++++++++++ .../plugins/xhtmlxtras/attributes.htm | 153 +++++++++++ .../tiny_mce/plugins/xhtmlxtras/cite.htm | 148 +++++++++++ .../plugins/xhtmlxtras/css/attributes.css | 11 + .../plugins/xhtmlxtras/css/index.html | 1 + .../tiny_mce/plugins/xhtmlxtras/css/popup.css | 9 + .../plugins/xhtmlxtras/css/xhtmlxtras.css | 24 ++ .../tiny_mce/plugins/xhtmlxtras/del.htm | 169 ++++++++++++ .../plugins/xhtmlxtras/editor_plugin.js | 1 + .../plugins/xhtmlxtras/editor_plugin_src.js | 136 ++++++++++ .../plugins/xhtmlxtras/images/abbr.gif | Bin 0 -> 144 bytes .../plugins/xhtmlxtras/images/acronym.gif | Bin 0 -> 138 bytes .../plugins/xhtmlxtras/images/attribs.gif | Bin 0 -> 601 bytes .../plugins/xhtmlxtras/images/cite.gif | Bin 0 -> 313 bytes .../plugins/xhtmlxtras/images/date_time.gif | Bin 0 -> 287 bytes .../plugins/xhtmlxtras/images/del.gif | Bin 0 -> 222 bytes .../plugins/xhtmlxtras/images/index.html | 1 + .../plugins/xhtmlxtras/images/ins.gif | Bin 0 -> 231 bytes .../xhtmlxtras/images/remove_button_bg.gif | Bin 0 -> 433 bytes .../tiny_mce/plugins/xhtmlxtras/index.html | 1 + .../tiny_mce/plugins/xhtmlxtras/ins.htm | 169 ++++++++++++ .../tiny_mce/plugins/xhtmlxtras/js/abbr.js | 25 ++ .../tiny_mce/plugins/xhtmlxtras/js/acronym.js | 25 ++ .../plugins/xhtmlxtras/js/attributes.js | 123 +++++++++ .../tiny_mce/plugins/xhtmlxtras/js/cite.js | 25 ++ .../tiny_mce/plugins/xhtmlxtras/js/del.js | 60 +++++ .../plugins/xhtmlxtras/js/element_common.js | 231 +++++++++++++++++ .../tiny_mce/plugins/xhtmlxtras/js/index.html | 1 + .../tiny_mce/plugins/xhtmlxtras/js/ins.js | 59 +++++ .../plugins/xhtmlxtras/jscripts/abbr.js | 29 +++ .../plugins/xhtmlxtras/jscripts/acronym.js | 29 +++ .../plugins/xhtmlxtras/jscripts/attributes.js | 130 ++++++++++ .../plugins/xhtmlxtras/jscripts/cite.js | 29 +++ .../plugins/xhtmlxtras/jscripts/del.js | 54 ++++ .../xhtmlxtras/jscripts/element_common.js | 241 ++++++++++++++++++ .../plugins/xhtmlxtras/jscripts/index.html | 1 + .../plugins/xhtmlxtras/jscripts/ins.js | 53 ++++ .../tiny_mce/plugins/xhtmlxtras/langs/en.js | 42 +++ .../plugins/xhtmlxtras/langs/en_dlg.js | 32 +++ .../plugins/xhtmlxtras/langs/index.html | 1 + .../tiny_mce/plugins/zoom/editor_plugin.js | 1 + .../plugins/zoom/editor_plugin_src.js | 56 ++++ .../jscripts/tiny_mce/plugins/zoom/index.html | 1 + .../jscripts/tiny_mce/plugins/zoom/readme.txt | 1 + 53 files changed, 2451 insertions(+) create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/index.html create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/visualchars/editor_plugin.js create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/visualchars/editor_plugin_src.js create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/visualchars/images/index.html create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/visualchars/images/visualchars.gif create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/visualchars/index.html create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/visualchars/langs/en.js create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/visualchars/langs/index.html create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/abbr.htm create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/acronym.htm create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/attributes.htm create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/cite.htm create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/index.html create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/popup.css create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/xhtmlxtras.css create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/del.htm create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/abbr.gif create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/acronym.gif create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/attribs.gif create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/cite.gif create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/date_time.gif create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/del.gif create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/index.html create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/ins.gif create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/remove_button_bg.gif create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/index.html create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/ins.htm create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/cite.js create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/del.js create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/index.html create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/ins.js create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/jscripts/abbr.js create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/jscripts/acronym.js create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/jscripts/attributes.js create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/jscripts/cite.js create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/jscripts/del.js create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/jscripts/element_common.js create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/jscripts/index.html create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/jscripts/ins.js create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/langs/en.js create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/langs/index.html create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/zoom/editor_plugin.js create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/zoom/editor_plugin_src.js create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/zoom/index.html create mode 100644 oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/zoom/readme.txt diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/index.html b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/visualchars/editor_plugin.js b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/visualchars/editor_plugin.js new file mode 100644 index 00000000..53d31c44 --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/visualchars/editor_plugin.js @@ -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$1');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$1'); + 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 \ No newline at end of file diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/visualchars/images/visualchars.gif b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/visualchars/images/visualchars.gif new file mode 100644 index 0000000000000000000000000000000000000000..3b4293e066841e75c4cbe1e7f08d70770fc889d8 GIT binary patch literal 134 zcmZ?wbhEHb6k!ly*v!Si%gfu^(ll{G-;~J{tt>69tt_pqET>MMXlZG|z`*eT|9>Ef z3>1H|FfuT3G3bB \ No newline at end of file diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/visualchars/langs/en.js b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/visualchars/langs/en.js new file mode 100644 index 00000000..a82a4ee5 --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/visualchars/langs/en.js @@ -0,0 +1,5 @@ +// EN lang variables + +tinyMCE.addToLang('visualchars',{ +desc : 'Visual control characters on/off.' +}); diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/visualchars/langs/index.html b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/visualchars/langs/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/visualchars/langs/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/abbr.htm b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/abbr.htm new file mode 100644 index 00000000..3928a17e --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/abbr.htm @@ -0,0 +1,148 @@ + + + + {#xhtmlxtras_dlg.title_abbr_element} + + + + + + + + + +
+ + +
+
+
+ {#xhtmlxtras_dlg.fieldset_attrib_tab} + + + + + + + + + + + + + + + + + + + + + + + + + +
:
:
: + +
:
: + +
: + +
+
+
+
+
+ {#xhtmlxtras_dlg.fieldset_events_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
:
:
:
:
:
:
:
:
:
:
:
:
+
+
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+ + diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/acronym.htm b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/acronym.htm new file mode 100644 index 00000000..4d4ebaac --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/acronym.htm @@ -0,0 +1,148 @@ + + + + {#xhtmlxtras_dlg.title_acronym_element} + + + + + + + + + +
+ + +
+
+
+ {#xhtmlxtras_dlg.fieldset_attrib_tab} + + + + + + + + + + + + + + + + + + + + + + + + + +
:
:
: + +
:
: + +
: + +
+
+
+
+
+ {#xhtmlxtras_dlg.fieldset_events_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
:
:
:
:
:
:
:
:
:
:
:
:
+
+
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+ + diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/attributes.htm b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/attributes.htm new file mode 100644 index 00000000..322b468e --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/attributes.htm @@ -0,0 +1,153 @@ + + + + {#xhtmlxtras_dlg.attribs_title} + + + + + + + + +
+ + +
+
+
+ {#xhtmlxtras_dlg.attribute_attrib_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
:
:
+ +
:
: + +
: + +
+
+
+
+
+ {#xhtmlxtras_dlg.attribute_events_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
:
:
:
:
:
:
:
:
:
:
:
:
+
+
+
+
+
+ +
+
+ +
+
+ +
+ + diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/cite.htm b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/cite.htm new file mode 100644 index 00000000..cdfaf4e8 --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/cite.htm @@ -0,0 +1,148 @@ + + + + {#xhtmlxtras_dlg.title_cite_element} + + + + + + + + + +
+ + +
+
+
+ {#xhtmlxtras_dlg.fieldset_attrib_tab} + + + + + + + + + + + + + + + + + + + + + + + + + +
:
:
: + +
:
: + +
: + +
+
+
+
+
+ {#xhtmlxtras_dlg.fieldset_events_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
:
:
:
:
:
:
:
:
:
:
:
:
+
+
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+ + diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css new file mode 100644 index 00000000..9a6a235c --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css @@ -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; +} diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/index.html b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/popup.css b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/popup.css new file mode 100644 index 00000000..e67114db --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/popup.css @@ -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;} diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/xhtmlxtras.css b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/xhtmlxtras.css new file mode 100644 index 00000000..6838d902 --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/xhtmlxtras.css @@ -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; +} diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/del.htm b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/del.htm new file mode 100644 index 00000000..f45676e3 --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/del.htm @@ -0,0 +1,169 @@ + + + + {#xhtmlxtras_dlg.title_del_element} + + + + + + + + + +
+ + +
+
+
+ {#xhtmlxtras_dlg.fieldset_general_tab} + + + + + + + + + +
: + + + + + +
+
:
+
+
+ {#xhtmlxtras_dlg.fieldset_attrib_tab} + + + + + + + + + + + + + + + + + + + + + + + + + +
:
:
: + +
:
: + +
: + +
+
+
+
+
+ {#xhtmlxtras_dlg.fieldset_events_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
:
:
:
:
:
:
:
:
:
:
:
:
+
+
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+ + + diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js new file mode 100644 index 00000000..8c7f48e6 --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.XHTMLXtrasPlugin",{init:function(b,c){b.addCommand("mceCite",function(){b.windowManager.open({file:c+"/cite.htm",width:350+parseInt(b.getLang("xhtmlxtras.cite_delta_width",0)),height:250+parseInt(b.getLang("xhtmlxtras.cite_delta_height",0)),inline:1},{plugin_url:c})});b.addCommand("mceAcronym",function(){b.windowManager.open({file:c+"/acronym.htm",width:350+parseInt(b.getLang("xhtmlxtras.acronym_delta_width",0)),height:250+parseInt(b.getLang("xhtmlxtras.acronym_delta_width",0)),inline:1},{plugin_url:c})});b.addCommand("mceAbbr",function(){b.windowManager.open({file:c+"/abbr.htm",width:350+parseInt(b.getLang("xhtmlxtras.abbr_delta_width",0)),height:250+parseInt(b.getLang("xhtmlxtras.abbr_delta_width",0)),inline:1},{plugin_url:c})});b.addCommand("mceDel",function(){b.windowManager.open({file:c+"/del.htm",width:340+parseInt(b.getLang("xhtmlxtras.del_delta_width",0)),height:310+parseInt(b.getLang("xhtmlxtras.del_delta_width",0)),inline:1},{plugin_url:c})});b.addCommand("mceIns",function(){b.windowManager.open({file:c+"/ins.htm",width:340+parseInt(b.getLang("xhtmlxtras.ins_delta_width",0)),height:310+parseInt(b.getLang("xhtmlxtras.ins_delta_width",0)),inline:1},{plugin_url:c})});b.addCommand("mceAttributes",function(){b.windowManager.open({file:c+"/attributes.htm",width:380,height:370,inline:1},{plugin_url:c})});b.addButton("cite",{title:"xhtmlxtras.cite_desc",cmd:"mceCite"});b.addButton("acronym",{title:"xhtmlxtras.acronym_desc",cmd:"mceAcronym"});b.addButton("abbr",{title:"xhtmlxtras.abbr_desc",cmd:"mceAbbr"});b.addButton("del",{title:"xhtmlxtras.del_desc",cmd:"mceDel"});b.addButton("ins",{title:"xhtmlxtras.ins_desc",cmd:"mceIns"});b.addButton("attribs",{title:"xhtmlxtras.attribs_desc",cmd:"mceAttributes"});if(tinymce.isIE){function a(d,e){if(e.set){e.content=e.content.replace(/]+)>/gi,"");e.content=e.content.replace(/<\/abbr>/gi,"")}}b.onBeforeSetContent.add(a);b.onPostProcess.add(a)}b.onNodeChange.add(function(e,d,g,f){g=e.dom.getParent(g,"CITE,ACRONYM,ABBR,DEL,INS");d.setDisabled("cite",f);d.setDisabled("acronym",f);d.setDisabled("abbr",f);d.setDisabled("del",f);d.setDisabled("ins",f);d.setDisabled("attribs",g&&g.nodeName=="BODY");d.setActive("cite",0);d.setActive("acronym",0);d.setActive("abbr",0);d.setActive("del",0);d.setActive("ins",0);if(g){do{d.setDisabled(g.nodeName.toLowerCase(),0);d.setActive(g.nodeName.toLowerCase(),1)}while(g=g.parentNode)}})},getInfo:function(){return{longname:"XHTML Xtras Plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/xhtmlxtras",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("xhtmlxtras",tinymce.plugins.XHTMLXtrasPlugin)})(); \ No newline at end of file diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js new file mode 100644 index 00000000..bef06f2d --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js @@ -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(/]+)>/gi, ''); + o.content = o.content.replace(/<\/abbr>/gi, ''); + } + }; + + 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); +})(); \ No newline at end of file diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/abbr.gif b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/abbr.gif new file mode 100644 index 0000000000000000000000000000000000000000..d00d83017ffb2281edf45b1165ef4b961b2be99e GIT binary patch literal 144 zcmZ?wbhEHb6k!ly*v!k|U%gi+V3KX>ay5@GMW>dqmSYB?)19){1~(isiJGJA+U{1c zDW?1E|Ns9Pz(DaQ3nK#qFM|$<2Qq_!#dgC<&((V^UZ36lKS86YOGIK)fd@m9;Mof- tzLz-8USjYK6y&<8x%Jl0x{Z-Hq)#3^1VhlZBCifrmi{BmgplfyI2nNzc`LEnc79{XapYh@F)uv@wKH*@q$7=ZL7x j`jVinSD*FV@VS({Q=&_uYvY6!5}gxEyw)};F<1itEOIa5 literal 0 HcmV?d00001 diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/attribs.gif b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/attribs.gif new file mode 100644 index 0000000000000000000000000000000000000000..fe4a3b68ec90c8c2ef2e997d9cb2273664098c00 GIT binary patch literal 601 zcmd7PyH6BB90%~(z2k8bV8!(jJYWwDo(j6+>kxy34_K~o3kzd4CTC2H#gpBaw@3gM_Z@;}3DdV5%>Q{qD^@YX9VdKfuper|V?&`I^QbPAW>&)>{{fb^3I5u$kNV(qe zbs9S-^-CAJXM>|BemGlO`QiTdJwJny&EI*WP3_%YY;~@8x7QFhQ10QvztWc%H>UEf p2aTTXdva}lzGc)Y-VBx}!vjkX%x^=D_2=c8vD@n(?=E9Bu>+$a$R+>) literal 0 HcmV?d00001 diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/cite.gif b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/cite.gif new file mode 100644 index 0000000000000000000000000000000000000000..585bcd1ee2be031a09af278c58028a04ad68bf44 GIT binary patch literal 313 zcmZ?wbhEHb6k!lyxT?-z964LZf1-8r(&WA~F1hOq+t+Z^fkB-? z2V@?|PYi5f2PPMI=t%XSSWZZ@gDK678!stn`YI(o7YwT7lYDe=lZ>E- zGaqA9KpsoQNzP{Rib<*rO$>Zo%?#Y0jNMXB3f+v}tgJ4=oB=at&YB(I$Y2cs;JIsj literal 0 HcmV?d00001 diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/date_time.gif b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/date_time.gif new file mode 100644 index 0000000000000000000000000000000000000000..8ad424d3d19b07b05a9a5e6828325dba602bf0ac GIT binary patch literal 287 zcmZ?wbhEHb6k!lyxFW>B%FNo-)U@-!h1l*#K+sgxG=KdOCpWJH7oK&k{F0QClRxK; zUGY6FBdaM3*DEP01;r*^y7l_cpMSIV{WJ1PdiCl@R#_1PZlL&+g^__loIwYq1Y{=z z>zoIweJPpqGFHv=ysdZmz?n>=yO($C_`KCy7oKxXT2e)*CXcnVec1bGEwlY~SW1Ph9k_!1Zx z0ux!;MFks`CnShAGcoZo@HNcp=UBithl#7ca+x@v$Yzn%>>L$UeQJCwVwdu5(%iJ= N=w|H`C)E@gtO1pRV_^UQ literal 0 HcmV?d00001 diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/del.gif b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/del.gif new file mode 100644 index 0000000000000000000000000000000000000000..ba494082d4b25fa73e1187f88c427d74db369577 GIT binary patch literal 222 zcmZ?wbhEHb6k!lyI3mkn5HMlgwzEnOg`tJZW-i$`W8u!MmhCRd3r(XY1r%&hvdUVs z<aiyLdox@}$ATHGEp3PuDox-^Icas*9hOfg=xgSG3Z W<_84=E_6{9I25SH}zF5=% literal 0 HcmV?d00001 diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/index.html b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/ins.gif b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/ins.gif new file mode 100644 index 0000000000000000000000000000000000000000..277a364b26545defce337729f806cb0b154b4ee9 GIT binary patch literal 231 zcmVuei^Bjjcvqb#REl zqpZb1SfBua0RR90A^8LW0018VEC2ui02BZe000GK;3tk`X`X1RuI&08ZMh{^EMiH5 z*xzv=0*MV_U1{y2qvw;L*#U@EFDIK5m*#BtIB`?flw9zYswHXkSYa0$}(7J hMwvLEpg0*Q1Oy`r1Pz9LBp!;3jE#yskdZ1O06TIDUCICe literal 0 HcmV?d00001 diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/remove_button_bg.gif b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/images/remove_button_bg.gif new file mode 100644 index 0000000000000000000000000000000000000000..5a069a8ce0da45f32363fb590f02e9eb8dcd3da0 GIT binary patch literal 433 zcmZ?wbhEHbjA9UFIKsg2|NsAg|Ni~`3nG9N82|kP0>6KQ@b6#0e*FZ2Utsw22MB!s z4#Yt6`}c3(zJ31u`Q5vBuV24@`t<382M?}XxpL;rnVBOPrKVYqt@TZ z`P?L!xGJhEVvX+XcCml&P)#O8q>u=ggfqf5E~W4q?J~2?cKNk zz`;X@j~qRA{NSqH(wt|{vR}A(>GGAU*Dmb4e(UyC{!?-?GOTy5vORnL;^nK?&n`ZH z_vYi(he{7$vi|t_>-V3(|Nj5D!YkpiVZp&>wwH~M1r{tk+%BN(HOFJ)qNCk{qD3!& z9zWJD>)a*dY4qgyBn@A^pgS6in2%2}NIo^kbMms&)AWj8-8s2=`T6+{&0MTq#Val@ T_L$6;dvMFj%gg \ No newline at end of file diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/ins.htm b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/ins.htm new file mode 100644 index 00000000..9fa21c43 --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/ins.htm @@ -0,0 +1,169 @@ + + + + {#xhtmlxtras_dlg.title_ins_element} + + + + + + + + + +
+ + +
+
+
+ {#xhtmlxtras_dlg.fieldset_general_tab} + + + + + + + + + +
: + + + + + +
+
:
+
+
+ {#xhtmlxtras_dlg.fieldset_attrib_tab} + + + + + + + + + + + + + + + + + + + + + + + + + +
:
:
: + +
:
: + +
: + +
+
+
+
+
+ {#xhtmlxtras_dlg.fieldset_events_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
:
:
:
:
:
:
:
:
:
:
:
:
+
+
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+ + + diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js new file mode 100644 index 00000000..e84b6a83 --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js @@ -0,0 +1,25 @@ + /** + * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $ + * + * @author Moxiecode - based on work by Andrew Tetlaw + * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. + */ + +function init() { + SXE.initElementDialog('abbr'); + if (SXE.currentAction == "update") { + SXE.showRemoveButton(); + } +} + +function insertAbbr() { + SXE.insertElement(tinymce.isIE ? 'html:abbr' : 'abbr'); + tinyMCEPopup.close(); +} + +function removeAbbr() { + SXE.removeElement('abbr'); + tinyMCEPopup.close(); +} + +tinyMCEPopup.onInit.add(init); diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js new file mode 100644 index 00000000..933d122c --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js @@ -0,0 +1,25 @@ + /** + * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $ + * + * @author Moxiecode - based on work by Andrew Tetlaw + * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. + */ + +function init() { + SXE.initElementDialog('acronym'); + if (SXE.currentAction == "update") { + SXE.showRemoveButton(); + } +} + +function insertAcronym() { + SXE.insertElement('acronym'); + tinyMCEPopup.close(); +} + +function removeAcronym() { + SXE.removeElement('acronym'); + tinyMCEPopup.close(); +} + +tinyMCEPopup.onInit.add(init); diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js new file mode 100644 index 00000000..23c7fa4c --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js @@ -0,0 +1,123 @@ + /** + * $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 init() { + tinyMCEPopup.resizeToInnerSize(); + var inst = tinyMCEPopup.editor; + var dom = inst.dom; + var elm = inst.selection.getNode(); + var f = document.forms[0]; + var onclick = dom.getAttrib(elm, 'onclick'); + + setFormValue('title', dom.getAttrib(elm, 'title')); + setFormValue('id', dom.getAttrib(elm, 'id')); + setFormValue('style', dom.getAttrib(elm, "style")); + setFormValue('dir', dom.getAttrib(elm, 'dir')); + setFormValue('lang', dom.getAttrib(elm, 'lang')); + setFormValue('tabindex', dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : "")); + setFormValue('accesskey', dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : "")); + setFormValue('onfocus', dom.getAttrib(elm, 'onfocus')); + setFormValue('onblur', dom.getAttrib(elm, 'onblur')); + setFormValue('onclick', onclick); + setFormValue('ondblclick', dom.getAttrib(elm, 'ondblclick')); + setFormValue('onmousedown', dom.getAttrib(elm, 'onmousedown')); + setFormValue('onmouseup', dom.getAttrib(elm, 'onmouseup')); + setFormValue('onmouseover', dom.getAttrib(elm, 'onmouseover')); + setFormValue('onmousemove', dom.getAttrib(elm, 'onmousemove')); + setFormValue('onmouseout', dom.getAttrib(elm, 'onmouseout')); + setFormValue('onkeypress', dom.getAttrib(elm, 'onkeypress')); + setFormValue('onkeydown', dom.getAttrib(elm, 'onkeydown')); + setFormValue('onkeyup', dom.getAttrib(elm, 'onkeyup')); + className = dom.getAttrib(elm, 'class'); + + addClassesToList('classlist', 'advlink_styles'); + selectByValue(f, 'classlist', className, true); + + TinyMCE_EditableSelects.init(); +} + +function setFormValue(name, value) { + if(value && document.forms[0].elements[name]){ + document.forms[0].elements[name].value = value; + } +} + +function insertAction() { + var inst = tinyMCEPopup.editor; + var elm = inst.selection.getNode(); + + tinyMCEPopup.execCommand("mceBeginUndoLevel"); + setAllAttribs(elm); + tinyMCEPopup.execCommand("mceEndUndoLevel"); + tinyMCEPopup.close(); +} + +function setAttrib(elm, attrib, value) { + var formObj = document.forms[0]; + var valueElm = formObj.elements[attrib.toLowerCase()]; + var inst = tinyMCEPopup.editor; + var dom = inst.dom; + + if (typeof(value) == "undefined" || value == null) { + value = ""; + + if (valueElm) + value = valueElm.value; + } + + if (value != "") { + dom.setAttrib(elm, attrib.toLowerCase(), value); + + if (attrib == "style") + attrib = "style.cssText"; + + if (attrib.substring(0, 2) == 'on') + value = 'return true;' + value; + + if (attrib == "class") + attrib = "className"; + + elm[attrib]=value; + } else + elm.removeAttribute(attrib); +} + +function setAllAttribs(elm) { + var f = document.forms[0]; + + setAttrib(elm, 'title'); + setAttrib(elm, 'id'); + setAttrib(elm, 'style'); + setAttrib(elm, 'class', getSelectValue(f, 'classlist')); + setAttrib(elm, 'dir'); + setAttrib(elm, 'lang'); + setAttrib(elm, 'tabindex'); + setAttrib(elm, 'accesskey'); + setAttrib(elm, 'onfocus'); + setAttrib(elm, 'onblur'); + setAttrib(elm, 'onclick'); + setAttrib(elm, 'ondblclick'); + setAttrib(elm, 'onmousedown'); + setAttrib(elm, 'onmouseup'); + setAttrib(elm, 'onmouseover'); + setAttrib(elm, 'onmousemove'); + setAttrib(elm, 'onmouseout'); + setAttrib(elm, 'onkeypress'); + setAttrib(elm, 'onkeydown'); + setAttrib(elm, 'onkeyup'); + + // Refresh in old MSIE +// if (tinyMCE.isMSIE5) +// elm.outerHTML = elm.outerHTML; +} + +function insertAttribute() { + tinyMCEPopup.close(); +} + +tinyMCEPopup.onInit.add(init); +tinyMCEPopup.requireLangPack(); diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/cite.js b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/cite.js new file mode 100644 index 00000000..c36f7fd8 --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/cite.js @@ -0,0 +1,25 @@ + /** + * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $ + * + * @author Moxiecode - based on work by Andrew Tetlaw + * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. + */ + +function init() { + SXE.initElementDialog('cite'); + if (SXE.currentAction == "update") { + SXE.showRemoveButton(); + } +} + +function insertCite() { + SXE.insertElement('cite'); + tinyMCEPopup.close(); +} + +function removeCite() { + SXE.removeElement('cite'); + tinyMCEPopup.close(); +} + +tinyMCEPopup.onInit.add(init); diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/del.js b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/del.js new file mode 100644 index 00000000..7049f2be --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/del.js @@ -0,0 +1,60 @@ + /** + * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $ + * + * @author Moxiecode - based on work by Andrew Tetlaw + * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. + */ + +function init() { + SXE.initElementDialog('del'); + if (SXE.currentAction == "update") { + setFormValue('datetime', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'datetime')); + setFormValue('cite', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'cite')); + SXE.showRemoveButton(); + } +} + +function setElementAttribs(elm) { + setAllCommonAttribs(elm); + setAttrib(elm, 'datetime'); + setAttrib(elm, 'cite'); +} + +function insertDel() { + var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'DEL'); + + tinyMCEPopup.execCommand('mceBeginUndoLevel'); + if (elm == null) { + var s = SXE.inst.selection.getContent(); + if(s.length > 0) { + insertInlineElement('del'); + var elementArray = tinymce.grep(SXE.inst.dom.select('del'), function(n) {return n.id == '#sxe_temp_del#';}); + for (var i=0; i 0) { + tagName = element_name; + + if (tinymce.isIE && element_name.indexOf('html:') == 0) + element_name = element_name.substring(5).toLowerCase(); + + insertInlineElement(element_name); + var elementArray = tinymce.grep(SXE.inst.dom.select(element_name)); + for (var i=0; i -1) ? true : false; +} + +SXE.removeClass = function(elm,cl) { + if(elm.className == null || elm.className == "" || !SXE.containsClass(elm,cl)) { + return true; + } + var classNames = elm.className.split(" "); + var newClassNames = ""; + for (var x = 0, cnl = classNames.length; x < cnl; x++) { + if (classNames[x] != cl) { + newClassNames += (classNames[x] + " "); + } + } + elm.className = newClassNames.substring(0,newClassNames.length-1); //removes extra space at the end +} + +SXE.addClass = function(elm,cl) { + if(!SXE.containsClass(elm,cl)) elm.className ? elm.className += " " + cl : elm.className = cl; + return true; +} + +function insertInlineElement(en) { + var ed = tinyMCEPopup.editor, dom = ed.dom; + + ed.getDoc().execCommand('FontName', false, 'mceinline'); + tinymce.each(dom.select('span,font'), function(n) { + if (n.style.fontFamily == 'mceinline' || n.face == 'mceinline') + dom.replace(dom.create(en, {_mce_new : 1}), n, 1); + }); +} diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/index.html b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/ins.js b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/ins.js new file mode 100644 index 00000000..4fcc9982 --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/ins.js @@ -0,0 +1,59 @@ + /** + * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $ + * + * @author Moxiecode - based on work by Andrew Tetlaw + * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. + */ + +function init() { + SXE.initElementDialog('ins'); + if (SXE.currentAction == "update") { + setFormValue('datetime', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'datetime')); + setFormValue('cite', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'cite')); + SXE.showRemoveButton(); + } +} + +function setElementAttribs(elm) { + setAllCommonAttribs(elm); + setAttrib(elm, 'datetime'); + setAttrib(elm, 'cite'); +} + +function insertIns() { + var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'INS'); + tinyMCEPopup.execCommand('mceBeginUndoLevel'); + if (elm == null) { + var s = SXE.inst.selection.getContent(); + if(s.length > 0) { + insertInlineElement('INS'); + var elementArray = tinymce.grep(SXE.inst.dom.select('ins'), function(n) {return n.id == '#sxe_temp_ins#';}); + for (var i=0; i 0) { + tinyMCEPopup.execCommand('mceInsertContent', false, '' + s + ''); + var elementArray = tinyMCE.getElementsByAttributeValue(SXE.inst.getBody(), 'del', 'id', '#sxe_temp_del#'); + for (var i=0; i 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 + ''; + + tinyMCEPopup.execCommand('mceInsertContent', false, h); + + var elementArray = tinyMCE.getElementsByAttributeValue(SXE.inst.getBody(), element_name, 'id', '#sxe_temp_' + element_name + '#'); + for (var i=0; i -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; +} \ No newline at end of file diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/jscripts/index.html b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/jscripts/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/jscripts/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/jscripts/ins.js b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/jscripts/ins.js new file mode 100644 index 00000000..8fdc3649 --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/jscripts/ins.js @@ -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, '' + s + ''); + var elementArray = tinyMCE.getElementsByAttributeValue(SXE.inst.getBody(), 'ins', 'id', '#sxe_temp_ins#'); + for (var i=0; i \ No newline at end of file diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/zoom/editor_plugin.js b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/zoom/editor_plugin.js new file mode 100644 index 00000000..ee3dd8ef --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/zoom/editor_plugin.js @@ -0,0 +1 @@ +var TinyMCE_ZoomPlugin={getInfo:function(){return{longname:'Zoom',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/zoom',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},getControlHTML:function(control_name){if(!tinyMCE.isMSIE||tinyMCE.isMSIE5_0||tinyMCE.isOpera)return"";switch(control_name){case"zoom":return''}return""},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mceZoom":tinyMCE.getInstanceById(editor_id).contentDocument.body.style.zoom=value;tinyMCE.getInstanceById(editor_id).contentDocument.body.style.mozZoom=value;return true}return false}};tinyMCE.addPlugin("zoom",TinyMCE_ZoomPlugin); \ No newline at end of file diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/zoom/editor_plugin_src.js b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/zoom/editor_plugin_src.js new file mode 100644 index 00000000..5399d665 --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/zoom/editor_plugin_src.js @@ -0,0 +1,56 @@ +/** + * $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z spocke $ + * + * @author Moxiecode + * @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved. + */ + +var TinyMCE_ZoomPlugin = { + getInfo : function() { + return { + longname : 'Zoom', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/zoom', + version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion + }; + }, + + /** + * Returns the HTML contents of the zoom control. + */ + getControlHTML : function(control_name) { + if (!tinyMCE.isMSIE || tinyMCE.isMSIE5_0 || tinyMCE.isOpera) + return ""; + + switch (control_name) { + case "zoom": + return ''; + } + + return ""; + }, + + /** + * Executes the mceZoom command. + */ + execCommand : function(editor_id, element, command, user_interface, value) { + // Handle commands + switch (command) { + case "mceZoom": + tinyMCE.getInstanceById(editor_id).contentDocument.body.style.zoom = value; + tinyMCE.getInstanceById(editor_id).contentDocument.body.style.mozZoom = value; + return true; + } + + // Pass to next handler in chain + return false; + } +}; + +tinyMCE.addPlugin("zoom", TinyMCE_ZoomPlugin); diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/zoom/index.html b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/zoom/index.html new file mode 100644 index 00000000..fa6d84e8 --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/zoom/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/zoom/readme.txt b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/zoom/readme.txt new file mode 100644 index 00000000..4fdb78ae --- /dev/null +++ b/oss/joomla/trunk/plugins/editors/tinymce/jscripts/tiny_mce/plugins/zoom/readme.txt @@ -0,0 +1 @@ +Check the TinyMCE documentation for details on this plugin.