From 1423f948ee3fc6f66fdfd77fc5f60eef335135b4 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Wed, 9 Dec 2009 23:07:02 +0000 Subject: [PATCH] A patch from Erwan de FERRIERES " Update and correction for the visual HTML editor" (https://issues.apache.org/jira/browse/OFBIZ-3317) - OFBIZ-3317 The visual editor is using this line to fix a minimum height for the textarea box. if (!o(idTa).rows < 5) o(idTa).rows='15';//IE won't use % from style No matter the size we give it, it stays at 15. So I commented the line in the .js file. While I was at it, I updated whizzywig.js to the last version (55i ->59) and put the new toolbar icons system git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889014 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/ofbiz/base/util/ObjectType.java | 1 + .../images/htmledit/add_column_after.gif | Bin 119 -> 0 bytes .../images/htmledit/add_column_before.gif | Bin 119 -> 0 bytes .../webapp/images/htmledit/add_row_above.gif | Bin 118 -> 0 bytes .../webapp/images/htmledit/add_row_below.gif | Bin 138 -> 0 bytes .../images/webapp/images/htmledit/back.gif | Bin 146 -> 0 bytes .../images/webapp/images/htmledit/bold.gif | Bin 124 -> 0 bytes .../images/webapp/images/htmledit/bullet.gif | Bin 124 -> 0 bytes .../images/webapp/images/htmledit/cal.gif | Bin 127 -> 0 bytes .../images/webapp/images/htmledit/center.gif | Bin 117 -> 0 bytes .../images/webapp/images/htmledit/clean.gif | Bin 170 -> 0 bytes .../images/webapp/images/htmledit/color.gif | Bin 141 -> 0 bytes .../webapp/images/htmledit/compressed.gif | Bin 142 -> 0 bytes .../webapp/images/htmledit/delete_column.gif | Bin 118 -> 0 bytes .../webapp/images/htmledit/delete_row.gif | Bin 120 -> 0 bytes .../images/webapp/images/htmledit/dir.gif | Bin 136 -> 0 bytes .../images/webapp/images/htmledit/doc.gif | Bin 140 -> 0 bytes .../images/webapp/images/htmledit/generic.gif | Bin 138 -> 0 bytes .../images/webapp/images/htmledit/hilite.gif | Bin 129 -> 0 bytes .../images/webapp/images/htmledit/html.gif | Bin 132 -> 0 bytes .../images/webapp/images/htmledit/image.gif | Bin 176 -> 0 bytes .../images/webapp/images/htmledit/indent.gif | Bin 131 -> 0 bytes .../images/webapp/images/htmledit/italic.gif | Bin 119 -> 0 bytes .../images/webapp/images/htmledit/justify.gif | Bin 117 -> 0 bytes .../images/webapp/images/htmledit/left.gif | Bin 117 -> 0 bytes .../images/webapp/images/htmledit/link.gif | Bin 190 -> 0 bytes .../images/webapp/images/htmledit/number.gif | Bin 125 -> 0 bytes .../images/webapp/images/htmledit/outdent.gif | Bin 131 -> 0 bytes .../images/webapp/images/htmledit/pdf.gif | Bin 153 -> 0 bytes .../images/webapp/images/htmledit/ppt.gif | Bin 139 -> 0 bytes .../images/webapp/images/htmledit/redo.gif | Bin 124 -> 0 bytes .../images/webapp/images/htmledit/right.gif | Bin 117 -> 0 bytes .../images/webapp/images/htmledit/rtf.gif | Bin 131 -> 0 bytes .../images/webapp/images/htmledit/rule.gif | Bin 108 -> 0 bytes .../webapp/images/htmledit/spellcheck.gif | Bin 119 -> 0 bytes .../images/webapp/images/htmledit/table.gif | Bin 130 -> 0 bytes .../webapp/images/htmledit/table_in_cell.gif | Bin 139 -> 0 bytes .../images/webapp/images/htmledit/text.gif | Bin 132 -> 0 bytes .../webapp/images/htmledit/underline.gif | Bin 129 -> 0 bytes .../images/webapp/images/htmledit/undo.gif | Bin 125 -> 0 bytes .../images/webapp/images/htmledit/unknown.gif | Bin 138 -> 0 bytes .../images/webapp/images/htmledit/web.gif | Bin 155 -> 0 bytes .../webapp/images/htmledit/whizzywig.js | 428 +++++++++--------- .../images/webapp/images/htmledit/xls.gif | Bin 138 -> 0 bytes 44 files changed, 212 insertions(+), 217 deletions(-) delete mode 100644 framework/images/webapp/images/htmledit/add_column_after.gif delete mode 100644 framework/images/webapp/images/htmledit/add_column_before.gif delete mode 100644 framework/images/webapp/images/htmledit/add_row_above.gif delete mode 100644 framework/images/webapp/images/htmledit/add_row_below.gif delete mode 100644 framework/images/webapp/images/htmledit/back.gif delete mode 100644 framework/images/webapp/images/htmledit/bold.gif delete mode 100644 framework/images/webapp/images/htmledit/bullet.gif delete mode 100644 framework/images/webapp/images/htmledit/cal.gif delete mode 100644 framework/images/webapp/images/htmledit/center.gif delete mode 100644 framework/images/webapp/images/htmledit/clean.gif delete mode 100644 framework/images/webapp/images/htmledit/color.gif delete mode 100644 framework/images/webapp/images/htmledit/compressed.gif delete mode 100644 framework/images/webapp/images/htmledit/delete_column.gif delete mode 100644 framework/images/webapp/images/htmledit/delete_row.gif delete mode 100644 framework/images/webapp/images/htmledit/dir.gif delete mode 100644 framework/images/webapp/images/htmledit/doc.gif delete mode 100644 framework/images/webapp/images/htmledit/generic.gif delete mode 100644 framework/images/webapp/images/htmledit/hilite.gif delete mode 100644 framework/images/webapp/images/htmledit/html.gif delete mode 100644 framework/images/webapp/images/htmledit/image.gif delete mode 100644 framework/images/webapp/images/htmledit/indent.gif delete mode 100644 framework/images/webapp/images/htmledit/italic.gif delete mode 100644 framework/images/webapp/images/htmledit/justify.gif delete mode 100644 framework/images/webapp/images/htmledit/left.gif delete mode 100644 framework/images/webapp/images/htmledit/link.gif delete mode 100644 framework/images/webapp/images/htmledit/number.gif delete mode 100644 framework/images/webapp/images/htmledit/outdent.gif delete mode 100644 framework/images/webapp/images/htmledit/pdf.gif delete mode 100644 framework/images/webapp/images/htmledit/ppt.gif delete mode 100644 framework/images/webapp/images/htmledit/redo.gif delete mode 100644 framework/images/webapp/images/htmledit/right.gif delete mode 100644 framework/images/webapp/images/htmledit/rtf.gif delete mode 100644 framework/images/webapp/images/htmledit/rule.gif delete mode 100644 framework/images/webapp/images/htmledit/spellcheck.gif delete mode 100644 framework/images/webapp/images/htmledit/table.gif delete mode 100644 framework/images/webapp/images/htmledit/table_in_cell.gif delete mode 100644 framework/images/webapp/images/htmledit/text.gif delete mode 100644 framework/images/webapp/images/htmledit/underline.gif delete mode 100644 framework/images/webapp/images/htmledit/undo.gif delete mode 100644 framework/images/webapp/images/htmledit/unknown.gif delete mode 100644 framework/images/webapp/images/htmledit/web.gif delete mode 100644 framework/images/webapp/images/htmledit/xls.gif diff --git a/framework/base/src/org/ofbiz/base/util/ObjectType.java b/framework/base/src/org/ofbiz/base/util/ObjectType.java index cd0cb5d762..0a8666a62c 100644 --- a/framework/base/src/org/ofbiz/base/util/ObjectType.java +++ b/framework/base/src/org/ofbiz/base/util/ObjectType.java @@ -765,6 +765,7 @@ public class ObjectType { // These types would flood the log if (value instanceof Boolean) return false; if (value instanceof Integer) return false; + if (value instanceof Long) return false; if (value instanceof java.math.BigDecimal) return false; if (value instanceof java.sql.Timestamp) return false; diff --git a/framework/images/webapp/images/htmledit/add_column_after.gif b/framework/images/webapp/images/htmledit/add_column_after.gif deleted file mode 100644 index f34b5e4161af53a13098b966a13d3f14b9449fa1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 119 zcmZ?wbhEHb6k!lySi}GV|NsAIU}ykQAO;jD{$ycfU|?a;0r5d<9hhxAcHQ~s>%i2s zwmi$=5CgwLpR!^m-}A;7i|XDgohi;>m5_U1<6pTecIn}+iCw#c``J!f2A-3?R5tNf I04IYr08w}-!~g&Q diff --git a/framework/images/webapp/images/htmledit/add_column_before.gif b/framework/images/webapp/images/htmledit/add_column_before.gif deleted file mode 100644 index f1cc5408853e357742124226593157ff0b98233f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 119 zcmZ?wbhEHb6k!lySi}GV|NsAIU}ykQAO;jD{$ycfU|?a;0r5d<9hhxAcHKGm$dkQk z?e|7Owi!VzJt`{;cHQw)bo;Ps zuOA1i+XrT4--t{jDfYTY9y60a%qywQV_EQi+B4?)3dzS03zq7hC6)^uGppvG-1T71E&Uj-Nq+H6_ZSYGV(E98qIN@Dui9#AiPu^$ HB?fB%7*Qev diff --git a/framework/images/webapp/images/htmledit/back.gif b/framework/images/webapp/images/htmledit/back.gif deleted file mode 100644 index 0e6f97d00b64aee9ddd5493357ffdc2685934734..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 146 zcmZ?wbhEHb6krfwSj52a|Ns9tH)sC;f9A?+y;ldqOK!NUbxZyKKU4813nK#%=zs{2 zS_bBDj$Hw2I_na$CT`3UF4)|f9CJD$Z($f)Qv%;&VctW9Tby#vl<_ZLc1h7eBgl!B xG0`<)tJ@q0cSD75eQk#~xvaS9a!GUR?bRaeo7E(cEGY0;;=;gS4FD719rgeK diff --git a/framework/images/webapp/images/htmledit/bullet.gif b/framework/images/webapp/images/htmledit/bullet.gif deleted file mode 100644 index dfeaac9d7ccf5997fec49f437877b7492a2c690a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 124 zcmZ?wbhEHb6lD-$*v!Dd!oDe9t*lxb6P~O0 lTD(4M{3Ai4?1@TOYUMfyuTArBA6&8LV%fU)dqf!-tN~MR8odAj diff --git a/framework/images/webapp/images/htmledit/clean.gif b/framework/images/webapp/images/htmledit/clean.gif deleted file mode 100644 index fcb6d923bb9d7910e531eb93d6d3531f26392d32..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 170 zcmZ?wbhEHb6lD-$*v!E29|Ra6;7nSYv9U1_pP4x`%{Xo5%$aA-oMB){V_=y1|38of z0mYvzj0_A+3_2hV$P8wd@PHGZtM^)DTOQkYcvD66^VTyFa;F+~G-vWQCTVwCU3Qpo zXH!?_RE{roTuu{=5^i=KpQadWp~7I1+z=2EyP4&Pdq60I)WeNSZdsIE6>53NyZ-k3 KA2w=C4Auaf3_mRZ diff --git a/framework/images/webapp/images/htmledit/color.gif b/framework/images/webapp/images/htmledit/color.gif deleted file mode 100644 index bdf2a885c04e200a35ed2cb8dbc64d2c9fb49f14..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 141 zcmZ?wbhEHb6lD-$*v!E2hl!@h6P~O0 zT0}3{%-~ecxFn)BCBrLqXPwTDNn36o4A#2ESXC@CCClaX)dua$g_Uaz=AV$*;yF`q Kazro-gEatsnj^UY diff --git a/framework/images/webapp/images/htmledit/compressed.gif b/framework/images/webapp/images/htmledit/compressed.gif deleted file mode 100644 index 1a604cbbab8c8f654af2a4b18580bda18f387dc4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 142 zcmZ?wbhEHb6krfwSj52a|NsBhxxCeTK0f~X|H?|aKTlfKGmmqqCoBGBVPpUT9S{Lh z%fKAWvFlRa>IsoYb{v*#f%s+cGTc4FHPBIb#3- diff --git a/framework/images/webapp/images/htmledit/delete_column.gif b/framework/images/webapp/images/htmledit/delete_column.gif deleted file mode 100644 index d36c933ef819cd050a49a79ea820a0d17e6a4458..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 118 zcmZ?wbhEHb6k!lySi}GV|NsAIU}ykQAO;jD{$ycfU|?a;0r5d<9hj{>cHMcG(84$` z^pTN3)touYb#G?GIn45!5|t@mn&cFFu3}#)qk8LJ_6ye^?+uvzpr^uQ=d9(@=a#KL IC&XY40AzV8SO5S3 diff --git a/framework/images/webapp/images/htmledit/delete_row.gif b/framework/images/webapp/images/htmledit/delete_row.gif deleted file mode 100644 index d210a8bf2f4040bece46c3bb4780b80d49504f87..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 120 zcmZ?wbhEHb6k!lySi}GV|NsAIU}ykQAO;jD{$ycfU|?a;0r5d<9hhxBcHQw)KBCDS z;I!wg=Z^(fH5Ds*Uxd}AyYE$+Xqr9e-Ve4nfBLTJ`sKfvY^k+@QQ>fkK>LixS}Urb Kt-H>`U=0AoeJe-+ diff --git a/framework/images/webapp/images/htmledit/dir.gif b/framework/images/webapp/images/htmledit/dir.gif deleted file mode 100644 index 3ad2482817c98c902caa7b5c223d064c864733b3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 136 zcmZ?wbhEHb6krfwSj52a|NsA)X$)s(8gFfq{eLD6$ODR`rKKtUWMO0g0v!+mQp>>X z%dzW@cEAp`9@8eDfNuR`3Vr9l$6hPYXcFJM_=KQnSJT0XTbFr??2J9ne&u4@{II+N j6^r?PPa7>Y92N#Sz&!j38PEM1a&XFb8r(-B~9f z;-szX+_}+OUVLI>m}-FYugbUwLXNvS)7@DO+^;+kczi%4cPsO=3PZ+o-@Cq6ObJ$v hTxHO_dd-(B#klI j^M5)anP=k?&2H9g+seI8_s=(9niV}^eH5<;1A{dHz)vr( diff --git a/framework/images/webapp/images/htmledit/hilite.gif b/framework/images/webapp/images/htmledit/hilite.gif deleted file mode 100644 index 246bb4b7d8f5e0fe63f6f2cce883f715b4123253..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 129 zcmZ?wbhEHb6lD-$Sj5io|3Aa;-wzqM85kJ;&zw2)|NpfA|7QX@ia%Kx85r0ZbbxFI zkXi<2w~AeN{u!LoY+ZV`O>u*eqe6k4hLCI;SBB++wN`r!Q}?ZuZQGd}J9%#64s9vs gE{24YIabqKpA_Hfk(&~-N_2K@)Z}>uDvS))0DSx}D*ylh diff --git a/framework/images/webapp/images/htmledit/html.gif b/framework/images/webapp/images/htmledit/html.gif deleted file mode 100644 index d93b8ec62dfcbc4f9913dc00a7160dda182c22c1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 132 zcmZ?wbhEHb6lD-$Sj5io|Ns9p|IYxy%ri5Az<8!HLmC4RDE?$&WME)t&;fBkY8jY4 zD|X%aXK>1MwU8r2wTt0A$DE*yhWnNdjD_=DrmgDzAjMpHmL*x5l`*A2%YbS7jQlj4 eU2)2nJ%42EU2^J@y2+!2qB$EXeDs`!7_0$M{xF{a diff --git a/framework/images/webapp/images/htmledit/image.gif b/framework/images/webapp/images/htmledit/image.gif deleted file mode 100644 index 4390f260bc28d28ab9532402fb224a843530d34f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 176 zcmZ?wbhEHb6lD-$*v!D->A^eOtt|B``Lr`ES2!$>rudx9DN|yw1^{f39*+P3 diff --git a/framework/images/webapp/images/htmledit/italic.gif b/framework/images/webapp/images/htmledit/italic.gif deleted file mode 100644 index 57751634790ffbab1de6fc360904f208debacaef..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 119 zcmZ?wbhEHb6lD-$*v!Dd!oxb6P~O0 lTD<1n_5Z$FSi;NRjD%S)cT8LRqsh>Ge(AdRHTkX#)&OfY8%F>D diff --git a/framework/images/webapp/images/htmledit/left.gif b/framework/images/webapp/images/htmledit/left.gif deleted file mode 100644 index dea96ee2d2168d91c85b7a1dae2ccf402a668f0b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 117 zcmZ?wbhEHb6lD-$*v!Dd!oxb6P~O0 lTD(4M{3Ai4EJdL!HEZ6QT^kp8A6owAV%fU)e?%A=tN~;G8w&sc diff --git a/framework/images/webapp/images/htmledit/link.gif b/framework/images/webapp/images/htmledit/link.gif deleted file mode 100644 index 8e6cf4592bf1fcdbc5a1c1eb038a99f7ffc0f2a6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 190 zcmZ?wbhEHb6lD-$*v!Dd!oBUE+T-r%Z{#8UTLWAAA4+ diff --git a/framework/images/webapp/images/htmledit/pdf.gif b/framework/images/webapp/images/htmledit/pdf.gif deleted file mode 100644 index 7add95a1c15c7c0a6715bd60cdc93442d3ce10c8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 153 zcmZ?wbhEHb6krfwSj52a|Ns9xw{O1<4&J|i|7}JVRaMoQGiSbk|6cJY3nK#%=zs{2 zS_bAg4yojS$}2eA_UcJ+w)~e*l$rHJFr%yQN!hBGlMj93B8IyrLv7ISHz|0J2H?YHcbrGUdyrfGsdbZ6JQ_g;C~;(n`jPhGr(3Il^R E0KA1f3IG5A diff --git a/framework/images/webapp/images/htmledit/ppt.gif b/framework/images/webapp/images/htmledit/ppt.gif deleted file mode 100644 index fa1d615226b0a6c343a5c8694b2dfb35d966a3e8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 139 zcmZ?wbhEHb6krfwSj52a|NsAn28II%4ln@OP;LW|t@x9L5lAuUfC!LU2Ic^ctUK!j zW;ki5cCnl--_gog6XqJ=Y&BiR3$KmawI(Zj=zCL6$>+Ge)9}1Sl`xvbLX>;`1 hN*6|>R^1nQ3^UK9oz^aQyjyno#f^wXS-XW9tN}t(Hh};D diff --git a/framework/images/webapp/images/htmledit/redo.gif b/framework/images/webapp/images/htmledit/redo.gif deleted file mode 100644 index 49c43763554a57fa48ace2790ab80f4cbdff250b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 124 zcmZ?wbhEHb6lD-$*v!Ci;J^U}h6W&DAPy-0WMKrU)BzD7GniR41x|Rb-fQvt?C$?_ l1bPmt2R#l+$_`zo!yT{dmA1S#y^-PHfdvH~IzdVd)&M1A8+`x( diff --git a/framework/images/webapp/images/htmledit/right.gif b/framework/images/webapp/images/htmledit/right.gif deleted file mode 100644 index f7e3044f80b70ea983ffb039cc07e1fec7c913ea..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 117 zcmZ?wbhEHb6lD-$*v!Dd!oxb6P~O0 lTD(4M`XfQ2EJd{|wS1k!tWEQGA6&8KP}#coe?%A=tN}ji8f^do diff --git a/framework/images/webapp/images/htmledit/rtf.gif b/framework/images/webapp/images/htmledit/rtf.gif deleted file mode 100644 index f0c590a46c98999eb54e70fe9ee056acdada30ac..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 131 zcmZ?wbhEHb6krfwSj52a|NsAnhKBzPKmZ~R95?`CGB7CqWC7DUAQGgOf!Tv&+|z`(+w1LA|!IxxF??7HKZ zaKclw!h-qW?(f%`SPnW&TOQdKsXa-H>#&Z={Z9ezq54+|z`(+w1LA|!GB5{t?7E|C zaLRLTZBxV9-Rvw&0+%p!Ie5;M6ks{becJF$R=(}?pS(N=76iO_ELqSp%eMkTXH4B0jgAQNq+7*2G2HXvv|g&rd9Tv}HQ-hMT`_-)0$ jX$G7zvegz2xsq2|XCA%rFyV!e=$*&sUTatjF<1itTnjb7 diff --git a/framework/images/webapp/images/htmledit/underline.gif b/framework/images/webapp/images/htmledit/underline.gif deleted file mode 100644 index 209f90e4d828dc81a0889dcf55ae2ea22147c174..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 129 zcmZ?wbhEHb6lD-$*v!Dd!ow n3T#bcK1!}>FEe*u?>M;r&n9KwH3|wZ_AV&!(2+6}WUvMRMHn17 diff --git a/framework/images/webapp/images/htmledit/unknown.gif b/framework/images/webapp/images/htmledit/unknown.gif deleted file mode 100644 index 1212f30518a170e249b528c4d7227492de584a1c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 138 zcmZ?wbhEHb6krfwSj52a9|RZ}7-j;g1_lOWW8;pFjvF^_DE?$&1PU|gfC!LU24;Vb zZFkrNW;th@s;)X%ZSJgAsS?();Iat2m4uVRnG(T1gSEHyJowh$W)o2;U~!Pkb1>lI j^M5)anP=k?&2H9g+seI8_s=(9niV}^eH5<;1A{dHz)vr( diff --git a/framework/images/webapp/images/htmledit/web.gif b/framework/images/webapp/images/htmledit/web.gif deleted file mode 100644 index bae40594e9e8bc0e42a6895d1af5723749c7d4d2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 155 zcmZ?wbhEHb6krfwSj52a|Nno7l+KRT_dfspzva>g<2i34r|p?JbEe`?7Dfgj&;b!3 zwG7M&99nmBTs#%p_8#uASgp##D0(Mp&hr44H-$4;0!5BJ5Y#h0SN!*>sbj-}SG7#- z3i*~Y0u#1LW}i~B; fix user but bug; -//Copyright � 2005-2007 John Goodman - john.goodman(at)unverse.net *date 070324 +var whizzywig_version='Whizzywig v59'; //briefer whereami, xC(); paNode=>pa; hilite in FF; whizzybrowse; +//Copyright © 2005-2009 John Goodman - www.unverse.net *date 091104 //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -var buttonPath; //path to toolbar button images; unset or "textbuttons" means don't use images -var buttonStrip=[]; //object containing button strip information (optional) +//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +var btn=[]; //object containing button strip information + btn._w=16; btn._h=16; btn._f="/images/htmledit/WhizzywigToolbar.png"; //set to path to toolbar image +var buttonPath; //path to custom toolbar button images; "textbuttons" means don't use images; default tries btn[_f] +var buttonExt; //extension (e.g. .png) for toolbar button images; default '.gif' var cssFile; //url of CSS stylesheet to attach to edit area var imageBrowse; //path to page for image browser var linkBrowse; //path to page for link browser -var idTa; //id of the textarea to whizzywig (param to makeWhizzyWig) -var gentleClean = "true"; //true: cleanUp preserves spans, inline styles and classes; false: deletes same; ask: asks. +var idTa; //id of the textarea (param to makeWhizzyWig) //OTHER GLOBALS -var oW, sel, rng, papa, trail, ppw; //Whizzy contentWindow, current sel, range, parent, DOM path, popwindow; -var sels = ''; -var buts = ''; -var vals = new Array(); -var opts = new Array(); -var dobut = new Array(); -var whizzies = new Array(); +var oW, sel, rng, papa, trail, ppw, wn=window; //Whizzy contentWindow, current sel, range, parent, DOM path, popwindow; +var sels=''; +var buts=''; +var vals=new Array(); +var opts=new Array(); +var dobut=new Array(); +var whizzies=new Array(); function makeWhizzyWig(txtArea, controls){ // make a WhizzyWig from the textarea - idTa = txtArea; + idTa=txtArea; whizzies[whizzies.length]=idTa; - if (!document.designMode) {// (Safari ???) + if (!document.designMode) { if (idTa.nodeName=="TEXTAREA") tagButs(); alert("Whizzywig "+t("editor not available for your browser")); return; } - var taContent = o(idTa).defaultValue ? o(idTa).defaultValue : o(idTa).innerHTML ? o(idTa).innerHTML: ''; //anything in the textarea? - if (!o(idTa).rows < 5) o(idTa).rows='15';//IE won't use % from style - taWidth = o(idTa).style.width ? o(idTa).style.width : o(idTa).cols + "ex"; //grab the width and... - taHeight = o(idTa).style.height ? o(idTa).style.height : o(idTa).rows + "em"; //...height from the textarea + var taContent=o(idTa).defaultValue ? o(idTa).defaultValue : o(idTa).innerHTML ? o(idTa).innerHTML: ''; //anything in the textarea? + //this line is commented as it is not allowing bigger textarea than rows + //if (!o(idTa).rows < 5) o(idTa).rows='15';//IE won't use % from style + taWidth=o(idTa).style.width ? o(idTa).style.width : o(idTa).cols + "ex"; //grab the width and... + taHeight=o(idTa).style.height ? o(idTa).style.height : o(idTa).rows + "em"; //...height from the textarea if (o(idTa).nodeName=="TEXTAREA"){ - o(idTa).style.color = '#060'; - o(idTa).style.zIndex = '2'; + o(idTa).style.color='#060'; + o(idTa).style.zIndex='2'; } else w(''); h(idTa); var frm=o(idTa).parentNode; while (frm.nodeName != 'FORM') frm=frm.parentNode;//if not form, keep trying addEvt(frm,"submit",syncTextarea); w(''); - var dsels = 'fontname fontsize formatblock'; - var dbuts = ' bold italic underline | left center right | number bullet indent outdent | undo redo | color hilite rule | link image table | word clean html spellcheck '; - var tbuts = ' tstart add_row_above add_row_below delete_row | add_column_before add_column_after delete_column | table_in_cell'; - var t_end = ''; //table controls end, if needed - controls = controls ? controls.toLowerCase() : "all"; - if (controls=="all") controls = dsels +' newline '+ dbuts + tbuts; + var dsels='formatblock'; + if (!navigator.userAgent.match('AppleWebKit')){dsels+=' fontname fontsize'} //Font u/s on Chrome/Safari + var dbuts=' bold italic underline | left center right justify | number bullet indent outdent | undo redo | color hilite rule | link image table | clean html spellcheck '; + btns=dbuts.split(' '); + for (var i=0, pos=0; i < btns.length; i++) { + if(btns[i] && btns[i]!='|') {btn[btns[i]]=btn._w*pos++}; + } + var tbuts=' tstart add_row_above add_row_below delete_row | add_column_before add_column_after delete_column | table_in_cell'; + var t_end=''; //table controls end, if needed + controls=controls ? controls.toLowerCase() : "all"; + if (controls == "all") controls=dsels +' newline '+ buts + dbuts + tbuts; else controls += tbuts; w('
'); - gizmos = controls.split(' '); - for (var i = 0; i < gizmos.length; i++) { + gizmos=controls.split(' '); + for (var i=0; i < gizmos.length; i++) { if (gizmos[i]){ //make buttons and selects for toolbar, in order requested if (gizmos[i] == 'tstart') { w(''; + t_end='
'; } else if (gizmos[i] == '|') w(' | '); else if (gizmos[i] == 'newline') w('
'); @@ -71,12 +79,12 @@ function makeWhizzyWig(txtArea, controls){ // make a WhizzyWig from the textarea w(t('Image address (URL)')+':
'+t("Align")+': '+t("Border")+': '+t("Margin")+':'+fNo(t("Insert Image"),"insertImage()"));//IMAGE_FORM end w(fGo('TABLE')+t("Rows")+': '+t("Columns")+': '+t("Border width")+': '+fNo(t("Insert Table"),"makeTable()"));//TABLE_FORM end w(fGo('COLOR')+'

'+t("click below or enter a")+' '+t("color name")+'
'+"\n"); - var wC = new Array("00","33","66","99","CC","FF") //color table + var wC=new Array("00","33","66","99","CC","FF") //color table for (i=0; i"); for (j=0; j'+"\n"); } } @@ -87,38 +95,34 @@ function makeWhizzyWig(txtArea, controls){ // make a WhizzyWig from the textarea w(''+"\n"); - + w(''+"\n"); - var startHTML = "\n\n"; + var startHTML="\n\n"; if (cssFile) startHTML += '\n'; - startHTML += '\n\n'+tidyD(taContent)+'\n'; - oW = o("whizzy"+idTa).contentWindow; + startHTML += '\n\n'+tidyD(taContent)+'\n'; + oW=o("whizzy"+idTa).contentWindow; var d=oW.document; - try{d.designMode = "on";} catch(e){ setTimeout('oW.designMode = "on";', 100);} - d.open(); - d.write(startHTML); - d.close(); + try{d.designMode="on";} catch(e){ setTimeout('oW.designMode="on";', 100);} + d.open(); d.write(startHTML); d.close(); if (oW.addEventListener) oW.addEventListener("keypress", kb_handler, true); //keyboard shortcuts for Moz else {d.body.attachEvent("onpaste",function(){setTimeout('cleanUp()',10);});} - addEvt(d,"mouseup", whereAmI); - addEvt(d,"keyup", whereAmI); - addEvt(d,"dblclick", doDbl); + addEvt(d,"mouseup", whereAmI); addEvt(d,"keyup", whereAmI); addEvt(d,"dblclick", doDbl); idTa=null; } //end makeWhizzyWig -function addEvt(o,e,f){ if(window.addEventListener) o.addEventListener(e, f, false); else o.attachEvent("on"+e,f);} +function addEvt(o,e,f){ if(wn.addEventListener) o.addEventListener(e, f, false); else o.attachEvent("on"+e,f);} function doDbl(){if (papa.nodeName == 'IMG') doImage(); else if (papa.nodeName == 'A') doLink();} function makeButton(button){ // assemble the button requested - var butHTML, ucBut = button.substring(0,1).toUpperCase(); + var butHTML, ucBut=button.substring(0,1).toUpperCase(); ucBut += button.substring(1); - ucBut = t(ucBut.replace(/_/g,' ')); - if (!document.frames && (button=="word" ||button=="spellcheck")) return; //Not allowed from Firefox - if (o(idTa).nodeName!="TEXTAREA" && button=="html") return; - if (!buttonPath || buttonPath == "textbuttons") - butHTML = '\n"; - else butHTML = ''; - //if space in name include text as well + ucBut=t(ucBut.replace(/_/g,' ')); + if (!document.frames && (button=="spellcheck")) return; //Not allowed from Firefox + if (o(idTa).nodeName!="TEXTAREA" && button=="html") return; + if (!buttonExt) buttonExt='.gif'; + if (buttonPath == "textbuttons") + butHTML='\n"; + else butHTML='\n'; w(butHTML); } function fGo(id){ return '
'; for (var i=1; i <= rows; i++) { @@ -302,7 +308,7 @@ function makeTable() { //insert a table } } function doWin(URL) { //popup for browse function - ppw=window.open(URL,'popWhizz','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=640,height=480,top=100'); + ppw=wn.open(URL,'popWhizz','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=640,height=480,top=100'); ppw.focus(); } function spellCheck() { //check spelling with ieSpell if available @@ -312,96 +318,89 @@ function spellCheck() { //check spelling with ieSpell if available } catch(e) { if(e.number==-2146827859) { if (confirm("ieSpell is not installed on your computer. \n Click [OK] to go to download page.")) - window.open("http://www.iespell.com/download.php","DownLoad"); + wn.open("http://www.iespell.com/download.php","DownLoad"); } else { alert("Error Loading ieSpell: Exception " + e.number); } } } -function cleanUp(){ //clean up crud inserted by Micro$oft Orifice - oW.document.execCommand("removeformat",false,null); - var h=oW.document.body.innerHTML; - var vicious=false; - if (gentleClean=="ask") vicious=confirm(t('Remove all styles and classes?')); - if (!gentleClean || vicious){ - h=h.replace(/<\/?(SPAN|DEL|INS|U|DIR)[^>]*>/gi, "") - .replace(/\b(CLASS|STYLE)=\"[^\"]*\"/gi, "") - .replace(/\b(CLASS|STYLE)=\w+/gi, ""); - } - if(!o('fontname'+idTa) || !o('fontsize'+idTa)) h=h.replace(/<\?FONT[^>]*>/gi, ""); - h=h.replace(/<\/?(FONT|SPAN|COL|XML|ST1|SHAPE|V:|O:|F:|F |PATH|LOCK|IMAGEDATA|STROKE|FORMULAS)[^>]*>/gi, "") - .replace(/\bCLASS=\"?MSO\w*\"?/gi, "") - .replace(/[�]/g,'-') //long � - .replace(/[��]/g, "'") //single smartquotes �� - .replace(/[��]/g, '"') //double smartquotes �� - .replace(/align="?justify"?/gi, "") //justify sends some browsers mad - .replace(/<(TABLE|TD|TH|COL)(.*)(WIDTH|HEIGHT)=["'0-9A-Z]*/gi, "<$1$2") //no fixed size tables (%OK) [^A-Za-z>] - .replace(/<([^>]+)>\s*<\/\1>/gi, ""); //empty tag - oW.document.body.innerHTML=h; -} function hideDialogs() { - h('LINK_FORM'+idTa); - h('IMAGE_FORM'+idTa); - h('COLOR_FORM'+idTa); - h('TABLE_FORM'+idTa); - h('TABLE_CONTROLS'+idTa); + h('LINK_FORM'+idTa); h('IMAGE_FORM'+idTa); h('COLOR_FORM'+idTa); h('TABLE_FORM'+idTa); h('TABLE_CONTROLS'+idTa); } function showDesign() { oW.document.body.innerHTML=tidyD(o(idTa).value); - h(idTa); - h('showWYSIWYG'+idTa); - s('CONTROLS'+idTa); - s('whizzy'+idTa); + h(idTa); h('showWYSIWYG'+idTa); s('CONTROLS'+idTa); s('whizzy'+idTa); if(o("whizzy"+idTa).contentDocument) o("whizzy"+idTa).contentDocument.designMode="on"; //FF loses it on hide oW.focus(); } -function showHTML() { - var t=(window.get_xhtml) ? get_xhtml(oW.document.body) : oW.document.body.innerHTML; - o(idTa).value=tidyH(t); - h('CONTROLS'+idTa); - h('whizzy'+idTa); - s(idTa); - s('showWYSIWYG'+idTa); +function showHTML() { + o(idTa).value=tidyH(oW.document); + h('CONTROLS'+idTa); h('whizzy'+idTa); s(idTa); s('showWYSIWYG'+idTa); o(idTa).focus(); } function syncTextarea() { //tidy up before we go-go for (var i=0;i,... - h=h.replace(/<(\/?)strong([^>]*)>/gi, "<$1B$2>"); - h=h.replace(/<(\/?)em([^>]*)>/gi, "<$1I$2>"); + h=h.replace(/<(\/?)strong([^>]*)>/gi, "<$1B$2>"); + h=h.replace(/<(\/?)em>/gi, "<$1I>"); return h; } -function tidyH(h){ //...but , deprecated - h=h.replace(/<(\w+)[^>]*>\s*<\/\1>/gi, ""); //empty tag <([^>]+)>\s*<\/\1> - h=h.replace(/(<\/?)[Bb]>/g, "$1strong>"); - h=h.replace(/(<\/?)[Ii]>/g, "$1em>"); - h=h.replace(/(<\/?)[Bb](\s+[^>]*)>/g, "$1strong$2>"); - h=h.replace(/(<\/?)[Ii](\s+[^>]*)>/g, "$1em$2>"); - h=h.replace(location.href+'#','#'); //IE anchor bug - return h; +function tidyH(d){ //attempt valid xhtml + function lc(str){return str.toLowerCase()} + function qa(str){return str.replace(/(\s+\w+=)([^"][^>\s]*)/gi,'$1"$2"');} + function sa(str){return str.replace(/("|;)\s*[A-Z-]+\s*:/g,lc);} + var sz=new Array('medium','xx-small','x-small','small','medium','large','x-large','xx-large'); + fs=d.getElementsByTagName("FONT"); + for (var i=0;i]*)/gi,"$1span$2") + .replace(/(<\/?)[Bb](\s+[^>]*)?>/g, "$1strong$2>") + .replace(/(<\/?)[Ii](\s+[^>]*)?>/g, "$1em$2>") + .replace(/<\/?(COL|XML|ST1|SHAPE|V:|O:|F:|F |PATH|LOCK|IMAGEDATA|STROKE|FORMULAS)[^>]*>/gi, "") + .replace(/\bCLASS="?(MSOw*|Apple-style-span)"?/gi,"") + .replace(/<[^>]+=[^>]+>/g,qa) //quote all atts + .replace(/[–]/g,'-') //long – + .replace(/[‘’]/g, "'") //single smartquotes ‘’ + .replace(/[“�]/g, '"') //double smartquotes “� + .replace(/<(TABLE|TD|TH|COL)(.*)(WIDTH|HEIGHT)=["'0-9A-Z]*/gi, "<$1$2") //no fixed size tables (%OK) [^A-Za-z>] + .replace(/<([^>]+)>\s*<\/\1>/gi, "") //empty tag + .replace(/>(<\/?[C-Z])/gi,">\n$1") //newline adjacent tags + .replace(/(
)([^\r\n])/gi,"$1\n$2") //newline on BR + .replace(/([^\n])<(P|DIV|TABLE|FORM)/gi,"$1\n\n<$2") //add white space + .replace(/\n<(LI|OPTION|TR|INPUT)/gi,"\n <$1") //indent.. + .replace(/\n<(TD|TH)/gi,"\n <$1") //..more + .replace(location.href+'#','#') //IE anchor bug + .replace(/<(IMG|INPUT|BR|HR|LINK|META)([^>]*)>/gi,"<$1$2 />") //self-close tags + .replace(/(<\/?[A-Z]*)/g,lc) //lowercase tags... + .replace(/style="[^"]*"/gi,sa) //and style atts + return ih; } function kb_handler(e) { // keyboard controls for Moz + var cmd=false, prm=false; if (e && (e.ctrlKey && e.keyCode == e.DOM_VK_V)||(e.shiftKey && e.keyCode == e.DOM_VK_INSERT)) {setTimeout('cleanUp()',10);} - if (e && e.keyCode==13 && papa.nodeName=="BODY") makeSo("formatblock","

"); - if (e && e.ctrlKey) { + else if (e && e.keyCode==13 && !e.shiftKey &&papa.nodeName=="BODY") {cmd="formatblock";prm="

";} + else if (e && e.ctrlKey) { var k=String.fromCharCode(e.charCode).toLowerCase(); - var cmd=(k=='b')?'bold':(k=='i')?'italic':(k=='u')?'underline':(k=='l')?'link':(k=='m')?'image':''; - if (cmd) { - makeSo(cmd, true); - e.preventDefault(); // stop the event bubble - e.stopPropagation(); - } + var cmd=(k=='b')?'bold':(k=='i')?'italic':(k=='l')?'link':(k=='m')?'image':false; + } + if (cmd) { + makeSo(cmd, prm); + e.preventDefault(); // stop the event bubble + e.stopPropagation(); } } function doTag(html) { // insert HTML into text area @@ -409,11 +408,11 @@ function doTag(html) { // insert HTML into text area if (!html) html=prompt("Enter some HTML or text to insert:", ""); o(idTa).focus(); if (html == '') { - url=prompt("Link address:","http://"); + url=prompt("Link address:","http://"); html=''; } if (html == '') { - url=prompt("Address of image:","http://"); + url=prompt("Address of image:","http://"); var alt=prompt("Description of image"); html =''+alt+''; } @@ -430,46 +429,41 @@ function doTag(html) { // insert HTML into text area after=o(idTa).value.slice(o(idTa).selectionEnd); o(idTa).value =before+html+sel+close+after; } - o(idTa).focus(); + o(idTa).focus(); } function insHTML(html) { //insert HTML at current selection - if (!html) html=prompt("Enter some HTML or text to insert:", ""); + if (!html) html=prompt(t("Enter some HTML or text to insert:"), ""); if (html.indexOf('js:') == 0) { - try{eval(html.replace(/^js:/,''))} catch(e){}; - return; - } - try { - if(sel.type && sel.type!="Text") sel=""; - oW.document.execCommand("inserthtml", false, html + sel); - } - catch (e) { - if (document.selection) { - if(papa && papa.nodeName == 'IMG') {papa.outerHTML=html;} - else if(rng) {rng.select(); rng.pasteHTML(html+rng.htmlText);} - } + try{eval(html.replace(/^js:/,''))} catch(e){}; return; } + try {if (sel.type && sel.type!="Text") sel=""; xC("inserthtml",html+sel);} + catch (e) {if (document.selection) { + if (papa && papa.nodeName == 'IMG') {papa.outerHTML=html;} + else if(rng) {rng.select(); rng.pasteHTML(html+rng.htmlText);} + } } whereAmI(); } -function whereAmI(e){//070322 - if (!e) var e=window.event; - if (window.getSelection){ - sel=oW.getSelection(); - papa=(e && e.type=='mouseup') ? e.target : (sel.anchorNode.nodeName == '#text') ? sel.anchorNode.parentNode : sel.anchorNode; - } else { +function whereAmI(e){ + if (!e) var e=wn.event; + var mu=e&&e.type=='mouseup'; + if (wn.getSelection){ + sel=oW.getSelection(),sn=sel.anchorNode; + papa=mu?e.target:(sn.nodeName == '#text')?sn.parentNode:sn; + } else { sel=oW.document.selection; rng=sel.createRange(); - papa=(e && e.type=='mouseup')? e.srcElement : (sel.type == "Control") ? rng.item(0) : rng.parentElement(); + papa=mu?e.srcElement:(sel.type == "Control")?rng.item(0):rng.parentElement(); } - var paNode=papa; - trail=papa.nodeName; - while (!paNode.nodeName.match(/^(HTML|BODY)/) && paNode.className!="wzCtrl") { - paNode=paNode.parentNode; - trail=paNode.nodeName + '>' + trail; + var pa=papa; + trail=papa.nodeName; + while (!pa.nodeName.match(/^(HTML|BODY)/) && pa.className!="wzCtrl") { + pa=pa.parentNode; + trail=pa.nodeName + '>' + trail; } - if (paNode.className=="wzCtrl") trail=sel=rng=null; - var id=paNode.nodeName=="HTML" ? paNode.getElementsByTagName("BODY")[0].id : paNode.id.replace("CONTROL",""); - c(id); - window.status=id+":"+trail; + if (pa.className=="wzCtrl") trail=sel=rng=null; + var id=pa.nodeName=="HTML" ? pa.getElementsByTagName("BODY")[0].id : pa.id.replace("CONTROL",""); + c(id); + wn.status=id+":"+trail; if (trail.indexOf('TABLE') > 0) s('TABLE_CONTROLS'+idTa); else h('TABLE_CONTROLS'+idTa); } function c(id) {//set current whizzy @@ -477,12 +471,12 @@ function c(id) {//set current whizzy if (id!=idTa){ idTa=id; try {oW=o("whizzy"+id).contentWindow;} catch(e){alert('set current: '+id);} - if (oW) {oW.focus();window.status=oW.document.body.id; } + if (oW) {if(oW.focus)oW.focus();wn.status=oW.document.body.id; } } -} -function textSel() { if (sel && sel.type != "None") return true; else {alert(t("Select some text first")); return false;}} +} +function textSel() { if (sel && sel != "" && sel.type != "None") return true; else {alert(t("Select some text first")); return false;}} function s(id) {o(id).style.display='block';} //show element function h(id) {o(id).style.display='none';} //hide element function o(id) { return document.getElementById(id); } //get element by ID function w(str) { return document.write(str); } //document write -function t(key) {return (window.language && language[key]) ? language[key] : key;} //translation \ No newline at end of file +function t(key) {return (wn.language && language[key]) ? language[key] : key;} //translation \ No newline at end of file diff --git a/framework/images/webapp/images/htmledit/xls.gif b/framework/images/webapp/images/htmledit/xls.gif deleted file mode 100644 index 9bbabd27b502f324e8f110d5a3b045f140c7fea8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 138 zcmZ?wbhEHb6krfwSj52a|Ns932M#bWFf=qY0ND%;Kqd$%{$ybU(K;Xkq?Uo%pTp|T zIsqOhZCR(O8@1;jnNln3$+;pxAo@3}fndt&-K-*Z*>AXy?+)|Vn7q