changeset 244:a61b1c598001

Updated to markItUp 1.1.8. Ticket #94.
author Brian Neal <bgneal@gmail.com>
date Fri, 17 Sep 2010 02:27:40 +0000
parents 7ddd60164245
children ed6202fb08b6
files media/js/markitup/jquery.markitup.js media/js/markitup/jquery.markitup.pack.js media/js/markitup/skins/markitup/images/bg-container.png media/js/markitup/skins/markitup/images/menu.png media/js/markitup/skins/markitup/style.css media/js/markitup/templates/preview.css
diffstat 6 files changed, 19 insertions(+), 23 deletions(-) [+]
line wrap: on
line diff
--- a/media/js/markitup/jquery.markitup.js	Thu Sep 16 01:06:43 2010 +0000
+++ b/media/js/markitup/jquery.markitup.js	Fri Sep 17 02:27:40 2010 +0000
@@ -1,6 +1,6 @@
 // ----------------------------------------------------------------------------
 // markItUp! Universal MarkUp Engine, JQuery plugin
-// v 1.1.7
+// v 1.1.x
 // Dual licensed under the MIT and GPL licenses.
 // ----------------------------------------------------------------------------
 // Copyright (C) 2007-2010 Jay Salvat
@@ -28,7 +28,7 @@
 	$.fn.markItUp = function(settings, extraSettings) {
 		var options, ctrlKey, shiftKey, altKey;
 		ctrlKey = shiftKey = altKey = false;
-
+	
 		options = {	id:						'',
 					nameSpace:				'',
 					root:					'',
@@ -162,6 +162,8 @@
 							return false;
 						}).click(function() {
 							return false;
+						}).focusin(function(){
+                            $$.focus();
 						}).mousedown(function() {
 							if (button.call) {
 								eval(button.call)();
@@ -286,7 +288,7 @@
 					}
 					string = { block:lines.join('\n')};
 					start = caretPosition;
-					len = string.block.length + (($.browser.opera) ? n : 0);
+					len = string.block.length + (($.browser.opera) ? n-1 : 0);
 				} else if (ctrlKey === true) {
 					string = build(selection);
 					start = caretPosition + string.openWith.length;
@@ -361,7 +363,7 @@
 					var newSelection = document.selection.createRange();
 					newSelection.text = block;
 				} else {
-					$$.val($$.val().substring(0, caretPosition)	+ block + $$.val().substring(caretPosition + selection.length, $$.val().length));
+					textarea.value =  textarea.value.substring(0, caretPosition)  + block + textarea.value.substring(caretPosition + selection.length, textarea.value.length);
 				}
 			}
 
@@ -395,7 +397,7 @@
 						var range = document.selection.createRange(), rangeCopy = range.duplicate();
 						rangeCopy.moveToElementText(textarea);
 						caretPosition = -1;
-						while(rangeCopy.inRange(range)) { // fix most of the ie bugs with linefeeds...
+						while(rangeCopy.inRange(range)) {
 							rangeCopy.moveStart('character');
 							caretPosition ++;
 						}
@@ -404,7 +406,7 @@
 					}
 				} else { // gecko & webkit
 					caretPosition = textarea.selectionStart;
-					selection = $$.val().substring(caretPosition, textarea.selectionEnd);
+					selection = textarea.value.substring(caretPosition, textarea.selectionEnd);
 				} 
 				return selection;
 			}
@@ -414,6 +416,9 @@
 				if (!previewWindow || previewWindow.closed) {
 					if (options.previewInWindow) {
 						previewWindow = window.open('', 'preview', options.previewInWindow);
+						$(window).unload(function() {
+							previewWindow.close();
+						});
 					} else {
 						iFrame = $('<iframe class="markItUpPreviewFrame"></iframe>');
 						if (options.previewPosition == 'after') {
@@ -424,7 +429,6 @@
 						previewWindow = iFrame[iFrame.length - 1].contentWindow || frame[iFrame.length - 1];
 					}
 				} else if (altKey === true) {
-					// Thx Stephen M. Redd for the IE8 fix
 					if (iFrame) {
 						iFrame.remove();
 					} else {
@@ -435,6 +439,9 @@
 				if (!options.previewAutoRefresh) {
 					refreshPreview(); 
 				}
+				if (options.previewInWindow) {
+					previewWindow.focus();
+				}
 			}
 
 			// refresh Preview window
@@ -478,9 +485,6 @@
 					previewWindow.document.close();
 					previewWindow.document.documentElement.scrollTop = sp;
 				}
-				if (options.previewInWindow) {
-					previewWindow.focus();
-				}
 			}
 			
 			// set keys pressed
@@ -515,7 +519,7 @@
 						}
 					}
 					if (e.keyCode === 9) { // Tab key
-						if (shiftKey == true || ctrlKey == true || altKey == true) { // Thx Dr Floob.
+						if (shiftKey == true || ctrlKey == true || altKey == true) {
 							return false; 
 						}
 						if (caretOffset !== -1) {
--- a/media/js/markitup/jquery.markitup.pack.js	Thu Sep 16 01:06:43 2010 +0000
+++ b/media/js/markitup/jquery.markitup.pack.js	Fri Sep 17 02:27:40 2010 +0000
@@ -1,9 +1,2 @@
-// ----------------------------------------------------------------------------
-// markItUp! Universal MarkUp Engine, JQuery plugin
-// v 1.1.7
-// Dual licensed under the MIT and GPL licenses.
-// ----------------------------------------------------------------------------
-// Copyright (C) 2007-2010 Jay Salvat
-// http://markitup.jaysalvat.com/
-// ----------------------------------------------------------------------------
-eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(3($){$.23.T=3(f,g){B k,v,A,F;v=A=F=l;k={D:\'\',12:\'\',U:\'\',1j:\'\',1y:7,24:\'25\',1k:\'~/2R/1z.1A\',1b:\'\',26:\'27\',1l:7,1B:\'\',1C:\'\',1D:{},1E:{},1F:{},1G:{},28:[{}]};$.V(k,f,g);2(!k.U){$(\'2S\').1c(3(a,b){1H=$(b).14(0).2T.2U(/(.*)2V\\.2W(\\.2X)?\\.2Y$/);2(1H!==29){k.U=1H[1]}})}4 G.1c(3(){B d,u,15,16,p,H,L,P,17,1m,w,2a,M,18;d=$(G);u=G;15=[];18=l;16=p=0;H=-1;k.1b=1d(k.1b);k.1k=1d(k.1k);3 1d(a,b){2(b){4 a.W(/("|\')~\\//g,"$1"+k.U)}4 a.W(/^~\\//,k.U)}3 2b(){D=\'\';12=\'\';2(k.D){D=\'D="\'+k.D+\'"\'}8 2(d.1I("D")){D=\'D="T\'+(d.1I("D").2c(0,1).2Z())+(d.1I("D").2c(1))+\'"\'}2(k.12){12=\'N="\'+k.12+\'"\'}d.1J(\'<z \'+12+\'></z>\');d.1J(\'<z \'+D+\' N="T"></z>\');d.1J(\'<z N="30"></z>\');d.2d("2e");17=$(\'<z N="31"></z>\').2f(d);$(1K(k.28)).1L(17);1m=$(\'<z N="32"></z>\').1M(d);2(k.1l===7&&$.X.33!==7){1l=$(\'<z N="34"></z>\').1M(d).1e("1N",3(e){B h=d.2g(),y=e.2h,1n,1o;1n=3(e){d.2i("2g",35.36(20,e.2h+h-y)+"37");4 l};1o=3(e){$("1A").1O("2j",1n).1O("2k",1o);4 l};$("1A").1e("2j",1n).1e("2k",1o)});1m.2l(1l)}d.2m(1P).38(1P);d.1e("1Q",3(e,a){2(a.1p!==l){14()}2(u===$.T.2n){Y(a)}});d.1f(3(){$.T.2n=G})}3 1K(b){B c=$(\'<Z></Z>\'),i=0;$(\'C:2o > Z\',c).2i(\'39\',\'q\');$.1c(b,3(){B a=G,t=\'\',1q,C,j;1q=(a.19)?(a.1R||\'\')+\' [3a+\'+a.19+\']\':(a.1R||\'\');19=(a.19)?\'2p="\'+a.19+\'"\':\'\';2(a.2q){C=$(\'<C N="3b">\'+(a.2q||\'\')+\'</C>\').1L(c)}8{i++;2r(j=15.6-1;j>=0;j--){t+=15[j]+"-"}C=$(\'<C N="2s 2s\'+t+(i)+\' \'+(a.3c||\'\')+\'"><a 3d="" \'+19+\' 1q="\'+1q+\'">\'+(a.1R||\'\')+\'</a></C>\').1e("3e",3(){4 l}).2t(3(){4 l}).1N(3(){2(a.2u){3f(a.2u)()}2v(3(){Y(a)},1);4 l}).2o(3(){$(\'> Z\',G).3g();$(E).3h(\'2t\',3(){$(\'Z Z\',17).2w()})},3(){$(\'> Z\',G).2w()}).1L(c);2(a.2x){15.3i(i);$(C).2d(\'3j\').2l(1K(a.2x))}}});15.3k();4 c}3 2y(c){2(c){c=c.3l();c=c.W(/\\(\\!\\(([\\s\\S]*?)\\)\\!\\)/g,3(x,a){B b=a.1S(\'|!|\');2(F===7){4(b[1]!==2z)?b[1]:b[0]}8{4(b[1]===2z)?"":b[0]}});c=c.W(/\\[\\!\\[([\\s\\S]*?)\\]\\!\\]/g,3(x,a){B b=a.1S(\':!:\');2(18===7){4 l}1T=3m(b[0],(b[1])?b[1]:\'\');2(1T===29){18=7}4 1T});4 c}4""}3 I(a){2($.3n(a)){a=a(P)}4 2y(a)}3 1g(a){J=I(L.J);1a=I(L.1a);Q=I(L.Q);O=I(L.O);2(Q!==""){q=J+Q+O}8 2(m===\'\'&&1a!==\'\'){q=J+1a+O}8{q=J+(a||m)+O}4{q:q,J:J,Q:Q,1a:1a,O:O}}3 Y(a){B b,j,n,i;P=L=a;14();$.V(P,{1r:"",U:k.U,u:u,m:(m||\'\'),p:p,v:v,A:A,F:F});I(k.1B);I(L.1B);2(v===7&&A===7){I(L.3o)}$.V(P,{1r:1});2(v===7&&A===7){R=m.1S(/\\r?\\n/);2r(j=0,n=R.6,i=0;i<n;i++){2($.3p(R[i])!==\'\'){$.V(P,{1r:++j,m:R[i]});R[i]=1g(R[i]).q}8{R[i]=""}}o={q:R.3q(\'\\n\')};11=p;b=o.q.6+(($.X.1U)?n:0)}8 2(v===7){o=1g(m);11=p+o.J.6;b=o.q.6-o.J.6-o.O.6;b-=1s(o.q)}8 2(A===7){o=1g(m);11=p;b=o.q.6;b-=1s(o.q)}8{o=1g(m);11=p+o.q.6;b=0;11-=1s(o.q)}2((m===\'\'&&o.Q===\'\')){H+=1V(o.q);11=p+o.J.6;b=o.q.6-o.J.6-o.O.6;H=d.K().1h(p,d.K().6).6;H-=1V(d.K().1h(0,p))}$.V(P,{p:p,16:16});2(o.q!==m&&18===l){2A(o.q);1W(11,b)}8{H=-1}14();$.V(P,{1r:\'\',m:m});2(v===7&&A===7){I(L.3r)}I(L.1C);I(k.1C);2(w&&k.1y){1X()}A=F=v=18=l}3 1V(a){2($.X.1U){4 a.6-a.W(/\\n*/g,\'\').6}4 0}3 1s(a){2($.X.2B){4 a.6-a.W(/\\r*/g,\'\').6}4 0}3 2A(a){2(E.m){B b=E.m.1Y();b.2C=a}8{d.K(d.K().1h(0,p)+a+d.K().1h(p+m.6,d.K().6))}}3 1W(a,b){2(u.2D){2($.X.1U&&$.X.3s>=9.5&&b==0){4 l}1i=u.2D();1i.3t(7);1i.2E(\'1Z\',a);1i.3u(\'1Z\',b);1i.3v()}8 2(u.2F){u.2F(a,a+b)}u.1t=16;u.1f()}3 14(){u.1f();16=u.1t;2(E.m){m=E.m.1Y().2C;2($.X.2B){B a=E.m.1Y(),1u=a.3w();1u.3x(u);p=-1;3y(1u.3z(a)){1u.2E(\'1Z\');p++}}8{p=u.2G}}8{p=u.2G;m=d.K().1h(p,u.3A)}4 m}3 1z(){2(!w||w.3B){2(k.1j){w=3C.2H(\'\',\'1z\',k.1j)}8{M=$(\'<2I N="3D"></2I>\');2(k.24==\'25\'){M.1M(1m)}8{M.2f(17)}w=M[M.6-1].3E||3F[M.6-1]}}8 2(F===7){2(M){M.3G()}8{w.2J()}w=M=l}2(!k.1y){1X()}}3 1X(){2K()}3 2K(){B b;2(k.1b!==\'\'){$.2L({2M:\'3H\',2N:k.1b,27:k.26+\'=\'+3I(d.K()),2O:3(a){21(1d(a,1))}})}8{2(!2a){$.2L({2N:k.1k,2O:3(a){21(1d(a,1).W(/<!-- 3J -->/g,d.K()))}})}}4 l}3 21(a){2(w.E){3K{22=w.E.2P.1t}3L(e){22=0}w.E.2H();w.E.3M(a);w.E.2J();w.E.2P.1t=22}2(k.1j){w.1f()}}3 1P(e){A=e.A;F=e.F;v=(!(e.F&&e.v))?e.v:l;2(e.2M===\'2m\'){2(v===7){C=$("a[2p="+3N.3O(e.1v)+"]",17).1w(\'C\');2(C.6!==0){v=l;2v(3(){C.3P(\'1N\')},1);4 l}}2(e.1v===13||e.1v===10){2(v===7){v=l;Y(k.1F);4 k.1F.1x}8 2(A===7){A=l;Y(k.1E);4 k.1E.1x}8{Y(k.1D);4 k.1D.1x}}2(e.1v===9){2(A==7||v==7||F==7){4 l}2(H!==-1){14();H=d.K().6-H;1W(H,0);H=-1;4 l}8{Y(k.1G);4 k.1G.1x}}}}2b()})};$.23.3Q=3(){4 G.1c(3(){B a=$(G).1O().3R(\'2e\');a.1w(\'z\').1w(\'z.T\').1w(\'z\').Q(a)})};$.T=3(a){B b={1p:l};$.V(b,a);2(b.1p){4 $(b.1p).1c(3(){$(G).1f();$(G).2Q(\'1Q\',[b])})}8{$(\'u\').2Q(\'1Q\',[b])}}})(3S);',62,241,'||if|function|return||length|true|else|||||||||||||false|selection||string|caretPosition|block||||textarea|ctrlKey|previewWindow|||div|shiftKey|var|li|id|document|altKey|this|caretOffset|prepare|openWith|val|clicked|iFrame|class|closeWith|hash|replaceWith|lines||markItUp|root|extend|replace|browser|markup|ul||start|nameSpace||get|levels|scrollPosition|header|abort|key|placeHolder|previewParserPath|each|localize|bind|focus|build|substring|range|previewInWindow|previewTemplatePath|resizeHandle|footer|mouseMove|mouseUp|target|title|line|fixIeBug|scrollTop|rangeCopy|keyCode|parent|keepDefault|previewAutoRefresh|preview|html|beforeInsert|afterInsert|onEnter|onShiftEnter|onCtrlEnter|onTab|miuScript|attr|wrap|dropMenus|appendTo|insertAfter|mousedown|unbind|keyPressed|insertion|name|split|value|opera|fixOperaBug|set|refreshPreview|createRange|character||writeInPreview|sp|fn|previewPosition|after|previewParserVar|data|markupSet|null|template|init|substr|addClass|markItUpEditor|insertBefore|height|clientY|css|mousemove|mouseup|append|keydown|focused|hover|accesskey|separator|for|markItUpButton|click|call|setTimeout|hide|dropMenu|magicMarkups|undefined|insert|msie|text|createTextRange|moveStart|setSelectionRange|selectionStart|open|iframe|close|renderPreview|ajax|type|url|success|documentElement|trigger|templates|script|src|match|jquery|markitup|pack|js|toUpperCase|markItUpContainer|markItUpHeader|markItUpFooter|safari|markItUpResizeHandle|Math|max|px|keyup|display|Ctrl|markItUpSeparator|className|href|contextmenu|eval|show|one|push|markItUpDropMenu|pop|toString|prompt|isFunction|beforeMultiInsert|trim|join|afterMultiInsert|version|collapse|moveEnd|select|duplicate|moveToElementText|while|inRange|selectionEnd|closed|window|markItUpPreviewFrame|contentWindow|frame|remove|POST|encodeURIComponent|content|try|catch|write|String|fromCharCode|triggerHandler|markItUpRemove|removeClass|jQuery'.split('|'),0,{}))
\ No newline at end of file
+eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(3($){$.2O.X=3(14,28){z 4,q,w,J;q=w=J=k;4={E:\'\',18:\'\',W:\'\',1n:\'\',1D:f,2E:\'2B\',1r:\'~/36/1C.1M\',1i:\'\',2M:\'K\',1w:f,1H:\'\',1W:\'\',1J:{},1K:{},1L:{},1P:{},1t:[{}]};$.Y(4,14,28);2(!4.W){$(\'33\').1g(3(a,2k){1Z=$(2k).1c(0).30.2X(/(.*)2Z\\.3a(\\.3o)?\\.3k$/);2(1Z!==2o){4.W=1Z[1]}})}7 L.1g(3(){z $$,c,19,15,o,H,M,Q,1a,1u,u,2L,N,1b;$$=$(L);c=L;19=[];1b=k;15=o=0;H=-1;4.1i=1j(4.1i);4.1r=1j(4.1r);3 1j(K,2i){2(2i){7 K.Z(/("|\')~\\//g,"$1"+4.W)}7 K.Z(/^~\\//,4.W)}3 2C(){E=\'\';18=\'\';2(4.E){E=\'E="\'+4.E+\'"\'}d 2($$.1S("E")){E=\'E="X\'+($$.1S("E").2h(0,1).3n())+($$.1S("E").2h(1))+\'"\'}2(4.18){18=\'P="\'+4.18+\'"\'}$$.1N(\'<v \'+18+\'></v>\');$$.1N(\'<v \'+E+\' P="X"></v>\');$$.1N(\'<v P="3g"></v>\');$$.2a("2S");1a=$(\'<v P="3h"></v>\').2A($$);$(1T(4.1t)).23(1a);1u=$(\'<v P="3i"></v>\').1G($$);2(4.1w===f&&$.12.3f!==f){1w=$(\'<v P="3e"></v>\').1G($$).1h("1U",3(e){z h=$$.2j(),y=e.2g,1v,1x;1v=3(e){$$.2d("2j",3b.3q(20,e.2g+h-y)+"3r");7 k};1x=3(e){$("1M").1O("2f",1v).1O("2b",1x);7 k};$("1M").1h("2f",1v).1h("2b",1x)});1u.2q(1w)}$$.2z(24).3s(24);$$.1h("1R",3(e,14){2(14.1m!==k){1c()}2(c===$.X.2c){11(14)}});$$.16(3(){$.X.2c=L})}3 1T(1t){z D=$(\'<D></D>\'),i=0;$(\'B:2t > D\',D).2d(\'32\',\'m\');$.1g(1t,3(){z p=L,t=\'\',1q,B,j;1q=(p.17)?(p.1I||\'\')+\' [31+\'+p.17+\']\':(p.1I||\'\');17=(p.17)?\'2y="\'+p.17+\'"\':\'\';2(p.2e){B=$(\'<B P="2Y">\'+(p.2e||\'\')+\'</B>\').23(D)}d{i++;2v(j=19.8-1;j>=0;j--){t+=19[j]+"-"}B=$(\'<B P="2l 2l\'+t+(i)+\' \'+(p.38||\'\')+\'"><a 37="" \'+17+\' 1q="\'+1q+\'">\'+(p.1I||\'\')+\'</a></B>\').1h("3c",3(){7 k}).2u(3(){7 k}).3C(3(){$$.16()}).1U(3(){2(p.2s){3Q(p.2s)()}2x(3(){11(p)},1);7 k}).2t(3(){$(\'> D\',L).3P();$(C).3O(\'2u\',3(){$(\'D D\',1a).2r()})},3(){$(\'> D\',L).2r()}).23(D);2(p.2m){19.3M(i);$(B).2a(\'3T\').2q(1T(p.2m))}}});19.3X();7 D}3 2p(6){2(6){6=6.3U();6=6.Z(/\\(\\!\\(([\\s\\S]*?)\\)\\!\\)/g,3(x,a){z b=a.1E(\'|!|\');2(J===f){7(b[1]!==2n)?b[1]:b[0]}d{7(b[1]===2n)?"":b[0]}});6=6.Z(/\\[\\!\\[([\\s\\S]*?)\\]\\!\\]/g,3(x,a){z b=a.1E(\':!:\');2(1b===f){7 k}V=3y(b[0],(b[1])?b[1]:\'\');2(V===2o){1b=f}7 V});7 6}7""}3 F(1k){2($.3J(1k)){1k=1k(Q)}7 2p(1k)}3 1l(6){I=F(M.I);1e=F(M.1e);R=F(M.R);O=F(M.O);2(R!==""){m=I+R+O}d 2(l===\'\'&&1e!==\'\'){m=I+1e+O}d{m=I+(6||l)+O}7{m:m,I:I,R:R,1e:1e,O:O}}3 11(p){z A,j,n,i;Q=M=p;1c();$.Y(Q,{1o:"",W:4.W,c:c,l:(l||\'\'),o:o,q:q,w:w,J:J});F(4.1H);F(M.1H);2(q===f&&w===f){F(M.3E)}$.Y(Q,{1o:1});2(q===f&&w===f){T=l.1E(/\\r?\\n/);2v(j=0,n=T.8,i=0;i<n;i++){2($.40(T[i])!==\'\'){$.Y(Q,{1o:++j,l:T[i]});T[i]=1l(T[i]).m}d{T[i]=""}}6={m:T.3z(\'\\n\')};G=o;A=6.m.8+(($.12.1V)?n-1:0)}d 2(q===f){6=1l(l);G=o+6.I.8;A=6.m.8-6.I.8-6.O.8;A-=1A(6.m)}d 2(w===f){6=1l(l);G=o;A=6.m.8;A-=1A(6.m)}d{6=1l(l);G=o+6.m.8;A=0;G-=1A(6.m)}2((l===\'\'&&6.R===\'\')){H+=22(6.m);G=o+6.I.8;A=6.m.8-6.I.8-6.O.8;H=$$.1d().1f(o,$$.1d().8).8;H-=22($$.1d().1f(0,o))}$.Y(Q,{o:o,15:15});2(6.m!==l&&1b===k){27(6.m);1Q(G,A)}d{H=-1}1c();$.Y(Q,{1o:\'\',l:l});2(q===f&&w===f){F(M.3w)}F(M.1W);F(4.1W);2(u&&4.1D){1F()}w=J=q=1b=k}3 22(6){2($.12.1V){7 6.8-6.Z(/\\n*/g,\'\').8}7 0}3 1A(6){2($.12.2R){7 6.8-6.Z(/\\r*/g,\'\').8}7 0}3 27(m){2(C.l){z 29=C.l.1X();29.2w=m}d{c.V=c.V.1f(0,o)+m+c.V.1f(o+l.8,c.V.8)}}3 1Q(G,A){2(c.2U){2($.12.1V&&$.12.3R>=9.5&&A==0){7 k}U=c.2U();U.3V(f);U.2T(\'1Y\',G);U.3K(\'1Y\',A);U.3A()}d 2(c.2W){c.2W(G,G+A)}c.1z=15;c.16()}3 1c(){c.16();15=c.1z;2(C.l){l=C.l.1X().2w;2($.12.2R){z U=C.l.1X(),1y=U.3u();1y.3B(c);o=-1;3I(1y.3G(U)){1y.2T(\'1Y\');o++}}d{o=c.2V}}d{o=c.2V;l=c.V.1f(o,c.3N)}7 l}3 1C(){2(!u||u.3F){2(4.1n){u=2D.2I(\'\',\'1C\',4.1n);$(2D).3D(3(){u.21()})}d{N=$(\'<2P P="3H"></2P>\');2(4.2E==\'2B\'){N.1G(1u)}d{N.2A(1a)}u=N[N.8-1].3v||3L[N.8-1]}}d 2(J===f){2(N){N.3W()}d{u.21()}u=N=k}2(!4.1D){1F()}2(4.1n){u.16()}}3 1F(){2G()}3 2G(){z 3Z;2(4.1i!==\'\'){$.2K({2F:\'3Y\',2H:4.1i,K:4.2M+\'=\'+3S($$.1d()),2J:3(K){26(1j(K,1))}})}d{2(!2L){$.2K({2H:4.1r,2J:3(K){26(1j(K,1).Z(/<!-- 3t -->/g,$$.1d()))}})}}7 k}3 26(K){2(u.C){35{25=u.C.2N.1z}34(e){25=0}u.C.2I();u.C.39(K);u.C.21();u.C.2N.1z=25}}3 24(e){w=e.w;J=e.J;q=(!(e.J&&e.q))?e.q:k;2(e.2F===\'2z\'){2(q===f){B=$("a[2y="+3m.3l(e.1s)+"]",1a).1B(\'B\');2(B.8!==0){q=k;2x(3(){B.3p(\'1U\')},1);7 k}}2(e.1s===13||e.1s===10){2(q===f){q=k;11(4.1L);7 4.1L.1p}d 2(w===f){w=k;11(4.1K);7 4.1K.1p}d{11(4.1J);7 4.1J.1p}}2(e.1s===9){2(w==f||q==f||J==f){7 k}2(H!==-1){1c();H=$$.1d().8-H;1Q(H,0);H=-1;7 k}d{11(4.1P);7 4.1P.1p}}}}2C()})};$.2O.3d=3(){7 L.1g(3(){z $$=$(L).1O().3j(\'2S\');$$.1B(\'v\').1B(\'v.X\').1B(\'v\').R($$)})};$.X=3(14){z 4={1m:k};$.Y(4,14);2(4.1m){7 $(4.1m).1g(3(){$(L).16();$(L).2Q(\'1R\',[4])})}d{$(\'c\').2Q(\'1R\',[4])}}})(3x);',62,249,'||if|function|options||string|return|length||||textarea|else||true|||||false|selection|block||caretPosition|button|ctrlKey||||previewWindow|div|shiftKey|||var|len|li|document|ul|id|prepare|start|caretOffset|openWith|altKey|data|this|clicked|iFrame|closeWith|class|hash|replaceWith||lines|range|value|root|markItUp|extend|replace||markup|browser||settings|scrollPosition|focus|key|nameSpace|levels|header|abort|get|val|placeHolder|substring|each|bind|previewParserPath|localize|action|build|target|previewInWindow|line|keepDefault|title|previewTemplatePath|keyCode|markupSet|footer|mouseMove|resizeHandle|mouseUp|rangeCopy|scrollTop|fixIeBug|parent|preview|previewAutoRefresh|split|refreshPreview|insertAfter|beforeInsert|name|onEnter|onShiftEnter|onCtrlEnter|html|wrap|unbind|onTab|set|insertion|attr|dropMenus|mousedown|opera|afterInsert|createRange|character|miuScript||close|fixOperaBug|appendTo|keyPressed|sp|writeInPreview|insert|extraSettings|newSelection|addClass|mouseup|focused|css|separator|mousemove|clientY|substr|inText|height|tag|markItUpButton|dropMenu|undefined|null|magicMarkups|append|hide|call|hover|click|for|text|setTimeout|accesskey|keydown|insertBefore|after|init|window|previewPosition|type|renderPreview|url|open|success|ajax|template|previewParserVar|documentElement|fn|iframe|trigger|msie|markItUpEditor|moveStart|createTextRange|selectionStart|setSelectionRange|match|markItUpSeparator|jquery|src|Ctrl|display|script|catch|try|templates|href|className|write|markitup|Math|contextmenu|markItUpRemove|markItUpResizeHandle|safari|markItUpContainer|markItUpHeader|markItUpFooter|removeClass|js|fromCharCode|String|toUpperCase|pack|triggerHandler|max|px|keyup|content|duplicate|contentWindow|afterMultiInsert|jQuery|prompt|join|select|moveToElementText|focusin|unload|beforeMultiInsert|closed|inRange|markItUpPreviewFrame|while|isFunction|moveEnd|frame|push|selectionEnd|one|show|eval|version|encodeURIComponent|markItUpDropMenu|toString|collapse|remove|pop|POST|phtml|trim'.split('|'),0,{}))
+
Binary file media/js/markitup/skins/markitup/images/bg-container.png has changed
Binary file media/js/markitup/skins/markitup/images/menu.png has changed
--- a/media/js/markitup/skins/markitup/style.css	Thu Sep 16 01:06:43 2010 +0000
+++ b/media/js/markitup/skins/markitup/style.css	Fri Sep 17 02:27:40 2010 +0000
@@ -28,8 +28,7 @@
 	border:3px solid #3C769D;
 	width:543px;
 	height:160px;
-	background-image:url(images/bg-editor.png);
-	background-repeat:no-repeat;
+	background:#FFF url(images/bg-editor.png) no-repeat;
 	clear:both; display:block;
 	line-height:18px;
 	overflow:auto;
--- a/media/js/markitup/templates/preview.css	Thu Sep 16 01:06:43 2010 +0000
+++ b/media/js/markitup/templates/preview.css	Fri Sep 17 02:27:40 2010 +0000
@@ -2,4 +2,4 @@
 body {
 	background-color:#EFEFEF;
 	font:70% Verdana, Arial, Helvetica, sans-serif;
-}
+}
\ No newline at end of file