From b207d2501334d02ae154a555d77a1afe4accd4e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Thu, 15 Dec 2011 16:13:26 +0000 Subject: [PATCH] =?UTF-8?q?WYSIWYG=20Editor=20XBL=20f=C3=BCr=20Notizen=20i?= =?UTF-8?q?m=20Planner?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/bindings.css | 7 +- content/bindings.xml.php | 157 +++++++++++++++++++++ content/notiz.xml.php | 12 +- content/projekt/projekttask.overlay.js.php | 1 + include/js/jqSOAPClient.js | 5 +- skin/images/bold.png | Bin 0 -> 179 bytes skin/images/italic.png | Bin 0 -> 198 bytes skin/images/justifycenter.png | Bin 0 -> 175 bytes skin/images/justifyleft.png | Bin 0 -> 174 bytes skin/images/justifyright.png | Bin 0 -> 175 bytes skin/images/underline.png | Bin 0 -> 190 bytes 11 files changed, 171 insertions(+), 11 deletions(-) create mode 100644 skin/images/bold.png create mode 100644 skin/images/italic.png create mode 100644 skin/images/justifycenter.png create mode 100644 skin/images/justifyleft.png create mode 100644 skin/images/justifyright.png create mode 100644 skin/images/underline.png diff --git a/content/bindings.css b/content/bindings.css index 81c0cf2c5..bf653ce6d 100644 --- a/content/bindings.css +++ b/content/bindings.css @@ -30,4 +30,9 @@ box.Notiz box.Ressource { -moz-binding: url('projekt/ressource.xml.php#Ressource'); -} \ No newline at end of file +} + +box.WYSIWYG +{ + -moz-binding: url('bindings.xml.php#wysiwyg'); +} diff --git a/content/bindings.xml.php b/content/bindings.xml.php index 0ac99d8f2..83ca2c9af 100644 --- a/content/bindings.xml.php +++ b/content/bindings.xml.php @@ -588,4 +588,161 @@ echo ''; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + return this.disabled_state; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + //Intialisierung des Editors im Konstruktor funktioniert nicht immer + //deshalb wird er erst bei der ersten Verwendung initialisiert + + + + + diff --git a/content/notiz.xml.php b/content/notiz.xml.php index 6feb1f1a8..19d372ccd 100755 --- a/content/notiz.xml.php +++ b/content/notiz.xml.php @@ -146,9 +146,9 @@ echo ''; - + - + @@ -336,7 +336,7 @@ echo ''; var notiz = new SOAPObject("notiz"); notiz.appendChild(new SOAPObject("notiz_id")).val(notiz_id); notiz.appendChild(new SOAPObject("titel")).val(titel); - notiz.appendChild(new SOAPObject("text")).val(text); + notiz.appendChild(new SOAPObject("text")).cdataval(text); notiz.appendChild(new SOAPObject("verfasser_uid")).val(verfasser_uid); notiz.appendChild(new SOAPObject("bearbeiter_uid")).val(bearbeiter_uid); notiz.appendChild(new SOAPObject("start")).val(start); @@ -391,14 +391,9 @@ echo ''; soap/notiz.soap.php?"+gettimestamp(); ]]> @@ -825,6 +820,7 @@ echo ''; + //debug('load notiz:'+this.getAttribute('id')); this.DisableControls(true); this.DisableDetails(true); var projekt_kurzbz = this.getAttribute('projekt_kurzbz'); diff --git a/content/projekt/projekttask.overlay.js.php b/content/projekt/projekttask.overlay.js.php index c91da6a18..21cdc0109 100755 --- a/content/projekt/projekttask.overlay.js.php +++ b/content/projekt/projekttask.overlay.js.php @@ -609,6 +609,7 @@ function ProjekttaskLoadCategories(project_id) { if(project_id!='') { + netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); //Kategorien zu diesem Projekt laden menulist = document.getElementById('menulist-projekttask-mantis-issue_category'); var url = 'rdf/mantis_categories.rdf.php?project_id='+project_id+'&'+gettimestamp(); diff --git a/include/js/jqSOAPClient.js b/include/js/jqSOAPClient.js index 971dd275c..dda34a346 100644 --- a/include/js/jqSOAPClient.js +++ b/include/js/jqSOAPClient.js @@ -150,10 +150,11 @@ var SOAPObject = function(name) { this.name=name; this.attributes=[]; this.children=[]; - this.value=null; + this.value=null;v this.attr=function(name, value){this.attributes.push({"name":name, "value":value});return this;}; this.appendChild=function(obj){this.children.push(obj);return obj;}; this.hasChildren=function(){return (this.children.length > 0)?true:false;}; this.val=function(v){if(!v){return this.value;}else{this.value=v;return this;}}; + this.cdataval=function(v){if(!v){return this.value;}else{this.value='';return this;}}; this.toString=function(){return SOAPClient.ToXML(this);}; -}; \ No newline at end of file +}; diff --git a/skin/images/bold.png b/skin/images/bold.png new file mode 100644 index 0000000000000000000000000000000000000000..7d8b04413e481e75f26e4303642f3a109eb5daae GIT binary patch literal 179 zcmeAS@N?(olHy`uVBq!ia0vp^qChOd$P6SSTAvgEDaPU;cPEB*=VV?2IcxzwA+84w z8~`%4uP3p^r=85p>QL70(Y)*K0-AbW|Y zuPgg)9)3BK(1ufI^y{E{-7_*OLY~RmH;&|c)I$ztaD0e0szF#FI@lt literal 0 HcmV?d00001 diff --git a/skin/images/justifycenter.png b/skin/images/justifycenter.png new file mode 100644 index 0000000000000000000000000000000000000000..fe60bca42b23482fa07da5335e4bb5c69fb9e39a GIT binary patch literal 175 zcmeAS@N?(olHy`uVBq!ia0vp^qChOd$P6SSTAvgEDaPU;cPEB*=VV?2IcxzwA+84w z8~`%4uP3p^r=85p>QL70(Y)*K0-AbW|Y zuPgg)9)3=9ku{sX+yx4Wdb&73p^r=85p>QL70(Y)*K0-AbW|Y zuPgg)9)3=9)?-Xp^npSmo-U3d9M_W*9GJiTU-*Un(T@xU1`}g;kM2E>)PeF0p00i_ I>zopr03L@cC;$Ke literal 0 HcmV?d00001 diff --git a/skin/images/justifyright.png b/skin/images/justifyright.png new file mode 100644 index 0000000000000000000000000000000000000000..cffbf78d07d8b7a8183f21fa7a5b8fefa999cb80 GIT binary patch literal 175 zcmeAS@N?(olHy`uVBq!ia0vp^qChOd$P6SSTAvgEDaPU;cPEB*=VV?2IcxzwA+84w z8~`%4uP3p^r=85p>QL70(Y)*K0-AbW|Y zuPgg)9)3