]> ruin.nu Git - ndwebbie.git/commitdiff
Use markitup editor on forum
authorMichael Andreen <harv@ruin.nu>
Sun, 5 Apr 2009 19:17:00 +0000 (21:17 +0200)
committerMichael Andreen <harv@ruin.nu>
Sun, 21 Jun 2009 20:24:51 +0000 (22:24 +0200)
22 files changed:
root/src/forum/thread.tt2
root/static/markitup/jquery.markitup.pack.js [new file with mode: 0644]
root/static/markitup/sets/bbcode/images/bold.png [new file with mode: 0644]
root/static/markitup/sets/bbcode/images/clean.png [new file with mode: 0644]
root/static/markitup/sets/bbcode/images/code.png [new file with mode: 0644]
root/static/markitup/sets/bbcode/images/fonts.png [new file with mode: 0644]
root/static/markitup/sets/bbcode/images/italic.png [new file with mode: 0644]
root/static/markitup/sets/bbcode/images/link.png [new file with mode: 0644]
root/static/markitup/sets/bbcode/images/list-bullet.png [new file with mode: 0644]
root/static/markitup/sets/bbcode/images/list-item.png [new file with mode: 0644]
root/static/markitup/sets/bbcode/images/list-numeric.png [new file with mode: 0644]
root/static/markitup/sets/bbcode/images/picture.png [new file with mode: 0644]
root/static/markitup/sets/bbcode/images/preview.png [new file with mode: 0644]
root/static/markitup/sets/bbcode/images/quotes.png [new file with mode: 0644]
root/static/markitup/sets/bbcode/images/stroke.png [new file with mode: 0644]
root/static/markitup/sets/bbcode/images/underline.png [new file with mode: 0644]
root/static/markitup/sets/bbcode/set.js [new file with mode: 0644]
root/static/markitup/sets/bbcode/style.css [new file with mode: 0644]
root/static/markitup/skins/simple/images/handle.png [new file with mode: 0644]
root/static/markitup/skins/simple/images/menu.png [new file with mode: 0644]
root/static/markitup/skins/simple/images/submenu.png [new file with mode: 0644]
root/static/markitup/skins/simple/style.css [new file with mode: 0644]

index b8879d4296bc902c893fe498b47317f4d590c7f0..4ea7eb74dcdff002bcc1ea4e408483242aa73ef8 100644 (file)
@@ -20,7 +20,7 @@
 
 [% IF thread.post %]
 <form action="[% c.uri_for('addPost',thread.ftid) %]#NewPosts" method="post"><fieldset class="forum-post"> <legend><a name="Reply">New Reply</a></legend>
-       <textarea rows="25" cols="60" name="message" id="replybox">[% previewMessage %]</textarea>
+       <textarea class="bbcode" rows="25" cols="60" name="message" id="replybox">[% previewMessage %]</textarea>
        <br>
        <input type="submit" name="cmd" value="Submit">
        <input type="submit" name="cmd" value="Preview">
 [% END %]
 
 [% IF thread.post %]
+[%- site.stylesheets = ['markitup/skins/simple/style.css','markitup/sets/bbcode/style.css' ] %]
+<script type="text/javascript" src="/static/markitup/jquery.markitup.pack.js"></script>
+<script type="text/javascript" src="/static/markitup/sets/bbcode/set.js"></script>
+
 <script type="text/javascript">
 $(document).ready(function(){
        $(".forum-post-header").append(
@@ -89,6 +93,8 @@ $(document).ready(function(){
                var oldtext = $("#replybox").val();
                $("#replybox").val(oldtext + "\n[quote=" + username + "]" + text + "[/quote]\n");
        });
+       mySettings.markupSet.pop();
+    $('.bbcode').markItUp(mySettings);
 });
 </script>
 [% END %]
diff --git a/root/static/markitup/jquery.markitup.pack.js b/root/static/markitup/jquery.markitup.pack.js
new file mode 100644 (file)
index 0000000..f1244c9
--- /dev/null
@@ -0,0 +1,9 @@
+// ----------------------------------------------------------------------------
+// markItUp! Universal MarkUp Engine, JQuery plugin
+// v 1.1.5
+// Dual licensed under the MIT and GPL licenses.
+// ----------------------------------------------------------------------------
+// Copyright (C) 2007-2008 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($){$.24.T=3(f,g){E k,v,A,F;v=A=F=7;k={C:\'\',12:\'\',U:\'\',1j:\'\',1A:8,25:\'26\',1k:\'~/2Q/1B.1C\',1b:\'\',27:\'28\',1l:8,1D:\'\',1E:\'\',1F:{},1G:{},1H:{},1I:{},29:[{}]};$.V(k,f,g);2(!k.U){$(\'2R\').1c(3(a,b){1J=$(b).14(0).2S.2T(/(.*)2U\\.2V(\\.2W)?\\.2X$/);2(1J!==2a){k.U=1J[1]}})}4 G.1c(3(){E d,u,15,16,p,H,L,P,17,1m,w,1n,M,18;d=$(G);u=G;15=[];18=7;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(){C=\'\';12=\'\';2(k.C){C=\'C="\'+k.C+\'"\'}l 2(d.1K("C")){C=\'C="T\'+(d.1K("C").2c(0,1).2Y())+(d.1K("C").2c(1))+\'"\'}2(k.12){12=\'N="\'+k.12+\'"\'}d.1L(\'<z \'+12+\'></z>\');d.1L(\'<z \'+C+\' N="T"></z>\');d.1L(\'<z N="2Z"></z>\');d.2d("2e");17=$(\'<z N="30"></z>\').2f(d);$(1M(k.29)).1N(17);1m=$(\'<z N="31"></z>\').1O(d);2(k.1l===8&&$.X.32!==8){1l=$(\'<z N="33"></z>\').1O(d).1e("34",3(e){E h=d.2g(),y=e.2h,1o,1p;1o=3(e){d.2i("2g",35.36(20,e.2h+h-y)+"37");4 7};1p=3(e){$("1C").1P("2j",1o).1P("1q",1p);4 7};$("1C").1e("2j",1o).1e("1q",1p)});1m.2k(1l)}d.2l(1Q).38(1Q);d.1e("1R",3(e,a){2(a.1r!==7){14()}2(u===$.T.2m){Y(a)}});d.1f(3(){$.T.2m=G})}3 1M(b){E c=$(\'<Z></Z>\'),i=0;$(\'B:2n > Z\',c).2i(\'39\',\'q\');$.1c(b,3(){E a=G,t=\'\',1s,B,j;1s=(a.19)?(a.1S||\'\')+\' [3a+\'+a.19+\']\':(a.1S||\'\');19=(a.19)?\'2o="\'+a.19+\'"\':\'\';2(a.2p){B=$(\'<B N="3b">\'+(a.2p||\'\')+\'</B>\').1N(c)}l{i++;2q(j=15.6-1;j>=0;j--){t+=15[j]+"-"}B=$(\'<B N="2r 2r\'+t+(i)+\' \'+(a.3c||\'\')+\'"><a 3d="" \'+19+\' 1s="\'+1s+\'">\'+(a.1S||\'\')+\'</a></B>\').1e("3e",3(){4 7}).2s(3(){4 7}).1q(3(){2(a.2t){3f(a.2t)()}Y(a);4 7}).2n(3(){$(\'> Z\',G).3g();$(D).3h(\'2s\',3(){$(\'Z Z\',17).2u()})},3(){$(\'> Z\',G).2u()}).1N(c);2(a.2v){15.3i(i);$(B).2d(\'3j\').2k(1M(a.2v))}}});15.3k();4 c}3 2w(c){2(c){c=c.3l();c=c.W(/\\(\\!\\(([\\s\\S]*?)\\)\\!\\)/g,3(x,a){E b=a.1T(\'|!|\');2(F===8){4(b[1]!==2x)?b[1]:b[0]}l{4(b[1]===2x)?"":b[0]}});c=c.W(/\\[\\!\\[([\\s\\S]*?)\\]\\!\\]/g,3(x,a){E b=a.1T(\':!:\');2(18===8){4 7}1U=3m(b[0],(b[1])?b[1]:\'\');2(1U===2a){18=8}4 1U});4 c}4""}3 I(a){2($.3n(a)){a=a(P)}4 2w(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}l 2(m===\'\'&&1a!==\'\'){q=J+1a+O}l{q=J+(a||m)+O}4{q:q,J:J,Q:Q,1a:1a,O:O}}3 Y(a){E b,j,n,i;P=L=a;14();$.V(P,{1t:"",U:k.U,u:u,m:(m||\'\'),p:p,v:v,A:A,F:F});I(k.1D);I(L.1D);2(v===8&&A===8){I(L.3o)}$.V(P,{1t:1});2(v===8&&A===8){R=m.1T(/\\r?\\n/);2q(j=0,n=R.6,i=0;i<n;i++){2($.3p(R[i])!==\'\'){$.V(P,{1t:++j,m:R[i]});R[i]=1g(R[i]).q}l{R[i]=""}}o={q:R.3q(\'\\n\')};11=p;b=o.q.6+(($.X.1V)?n:0)}l 2(v===8){o=1g(m);11=p+o.J.6;b=o.q.6-o.J.6-o.O.6;b-=1u(o.q)}l 2(A===8){o=1g(m);11=p;b=o.q.6;b-=1u(o.q)}l{o=1g(m);11=p+o.q.6;b=0;11-=1u(o.q)}2((m===\'\'&&o.Q===\'\')){H+=1W(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-=1W(d.K().1h(0,p))}$.V(P,{p:p,16:16});2(o.q!==m&&18===7){2y(o.q);1X(11,b)}l{H=-1}14();$.V(P,{1t:\'\',m:m});2(v===8&&A===8){I(L.3r)}I(L.1E);I(k.1E);2(w&&k.1A){1Y()}A=F=v=18=7}3 1W(a){2($.X.1V){4 a.6-a.W(/\\n*/g,\'\').6}4 0}3 1u(a){2($.X.2z){4 a.6-a.W(/\\r*/g,\'\').6}4 0}3 2y(a){2(D.m){E b=D.m.1Z();b.2A=a}l{d.K(d.K().1h(0,p)+a+d.K().1h(p+m.6,d.K().6))}}3 1X(a,b){2(u.2B){2($.X.1V&&$.X.3s>=9.5&&b==0){4 7}1i=u.2B();1i.3t(8);1i.2C(\'21\',a);1i.3u(\'21\',b);1i.3v()}l 2(u.2D){u.2D(a,a+b)}u.1v=16;u.1f()}3 14(){u.1f();16=u.1v;2(D.m){m=D.m.1Z().2A;2($.X.2z){E a=D.m.1Z(),1w=a.3w();1w.3x(u);p=-1;3y(1w.3z(a)){1w.2C(\'21\');p++}}l{p=u.2E}}l{p=u.2E;m=d.K().1h(p,u.3A)}4 m}3 1B(){2(!w||w.3B){2(k.1j){w=3C.2F(\'\',\'1B\',k.1j)}l{M=$(\'<2G N="3D"></2G>\');2(k.25==\'26\'){M.1O(1m)}l{M.2f(17)}w=M[M.6-1].3E||3F[M.6-1]}}l 2(F===8){2(M){M.3G()}w.2H();w=M=7}2(!k.1A){1Y()}}3 1Y(){2(w.D){3H{22=w.D.2I.1v}3I(e){22=0}w.D.2F();w.D.3J(2J());w.D.2H();w.D.2I.1v=22}2(k.1j){w.1f()}}3 2J(){2(k.1b!==\'\'){$.2K({2L:\'3K\',2M:7,2N:k.1b,28:k.27+\'=\'+3L(d.K()),2O:3(a){23=1d(a,1)}})}l{2(!1n){$.2K({2M:7,2N:k.1k,2O:3(a){1n=1d(a,1)}})}23=1n.W(/<!-- 3M -->/g,d.K())}4 23}3 1Q(e){A=e.A;F=e.F;v=(!(e.F&&e.v))?e.v:7;2(e.2L===\'2l\'){2(v===8){B=$("a[2o="+3N.3O(e.1x)+"]",17).1y(\'B\');2(B.6!==0){v=7;B.3P(\'1q\');4 7}}2(e.1x===13||e.1x===10){2(v===8){v=7;Y(k.1H);4 k.1H.1z}l 2(A===8){A=7;Y(k.1G);4 k.1G.1z}l{Y(k.1F);4 k.1F.1z}}2(e.1x===9){2(A==8||v==8||F==8){4 7}2(H!==-1){14();H=d.K().6-H;1X(H,0);H=-1;4 7}l{Y(k.1I);4 k.1I.1z}}}}2b()})};$.24.3Q=3(){4 G.1c(3(){$$=$(G).1P().3R(\'2e\');$$.1y(\'z\').1y(\'z.T\').1y(\'z\').Q($$)})};$.T=3(a){E b={1r:7};$.V(b,a);2(b.1r){4 $(b.1r).1c(3(){$(G).1f();$(G).2P(\'1R\',[b])})}l{$(\'u\').2P(\'1R\',[b])}}})(3S);',62,241,'||if|function|return||length|false|true|||||||||||||else|selection||string|caretPosition|block||||textarea|ctrlKey|previewWindow|||div|shiftKey|li|id|document|var|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|template|mouseMove|mouseUp|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|unbind|keyPressed|insertion|name|split|value|opera|fixOperaBug|set|refreshPreview|createRange||character|sp|phtml|fn|previewPosition|after|previewParserVar|data|markupSet|null|init|substr|addClass|markItUpEditor|insertBefore|height|clientY|css|mousemove|append|keydown|focused|hover|accesskey|separator|for|markItUpButton|click|call|hide|dropMenu|magicMarkups|undefined|insert|msie|text|createTextRange|moveStart|setSelectionRange|selectionStart|open|iframe|close|documentElement|renderPreview|ajax|type|async|url|success|trigger|templates|script|src|match|jquery|markitup|pack|js|toUpperCase|markItUpContainer|markItUpHeader|markItUpFooter|safari|markItUpResizeHandle|mousedown|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|try|catch|write|POST|encodeURIComponent|content|String|fromCharCode|triggerHandler|markItUpRemove|removeClass|jQuery'.split('|'),0,{}))
\ No newline at end of file
diff --git a/root/static/markitup/sets/bbcode/images/bold.png b/root/static/markitup/sets/bbcode/images/bold.png
new file mode 100644 (file)
index 0000000..889ae80
Binary files /dev/null and b/root/static/markitup/sets/bbcode/images/bold.png differ
diff --git a/root/static/markitup/sets/bbcode/images/clean.png b/root/static/markitup/sets/bbcode/images/clean.png
new file mode 100644 (file)
index 0000000..7e7cefb
Binary files /dev/null and b/root/static/markitup/sets/bbcode/images/clean.png differ
diff --git a/root/static/markitup/sets/bbcode/images/code.png b/root/static/markitup/sets/bbcode/images/code.png
new file mode 100644 (file)
index 0000000..63fe6ce
Binary files /dev/null and b/root/static/markitup/sets/bbcode/images/code.png differ
diff --git a/root/static/markitup/sets/bbcode/images/fonts.png b/root/static/markitup/sets/bbcode/images/fonts.png
new file mode 100644 (file)
index 0000000..b7960db
Binary files /dev/null and b/root/static/markitup/sets/bbcode/images/fonts.png differ
diff --git a/root/static/markitup/sets/bbcode/images/italic.png b/root/static/markitup/sets/bbcode/images/italic.png
new file mode 100644 (file)
index 0000000..8482ac8
Binary files /dev/null and b/root/static/markitup/sets/bbcode/images/italic.png differ
diff --git a/root/static/markitup/sets/bbcode/images/link.png b/root/static/markitup/sets/bbcode/images/link.png
new file mode 100644 (file)
index 0000000..25eacb7
Binary files /dev/null and b/root/static/markitup/sets/bbcode/images/link.png differ
diff --git a/root/static/markitup/sets/bbcode/images/list-bullet.png b/root/static/markitup/sets/bbcode/images/list-bullet.png
new file mode 100644 (file)
index 0000000..4a8672b
Binary files /dev/null and b/root/static/markitup/sets/bbcode/images/list-bullet.png differ
diff --git a/root/static/markitup/sets/bbcode/images/list-item.png b/root/static/markitup/sets/bbcode/images/list-item.png
new file mode 100644 (file)
index 0000000..8cb4d69
Binary files /dev/null and b/root/static/markitup/sets/bbcode/images/list-item.png differ
diff --git a/root/static/markitup/sets/bbcode/images/list-numeric.png b/root/static/markitup/sets/bbcode/images/list-numeric.png
new file mode 100644 (file)
index 0000000..33b0b8d
Binary files /dev/null and b/root/static/markitup/sets/bbcode/images/list-numeric.png differ
diff --git a/root/static/markitup/sets/bbcode/images/picture.png b/root/static/markitup/sets/bbcode/images/picture.png
new file mode 100644 (file)
index 0000000..4a158fe
Binary files /dev/null and b/root/static/markitup/sets/bbcode/images/picture.png differ
diff --git a/root/static/markitup/sets/bbcode/images/preview.png b/root/static/markitup/sets/bbcode/images/preview.png
new file mode 100644 (file)
index 0000000..a9925a0
Binary files /dev/null and b/root/static/markitup/sets/bbcode/images/preview.png differ
diff --git a/root/static/markitup/sets/bbcode/images/quotes.png b/root/static/markitup/sets/bbcode/images/quotes.png
new file mode 100644 (file)
index 0000000..e54ebeb
Binary files /dev/null and b/root/static/markitup/sets/bbcode/images/quotes.png differ
diff --git a/root/static/markitup/sets/bbcode/images/stroke.png b/root/static/markitup/sets/bbcode/images/stroke.png
new file mode 100644 (file)
index 0000000..612058a
Binary files /dev/null and b/root/static/markitup/sets/bbcode/images/stroke.png differ
diff --git a/root/static/markitup/sets/bbcode/images/underline.png b/root/static/markitup/sets/bbcode/images/underline.png
new file mode 100644 (file)
index 0000000..90d0df2
Binary files /dev/null and b/root/static/markitup/sets/bbcode/images/underline.png differ
diff --git a/root/static/markitup/sets/bbcode/set.js b/root/static/markitup/sets/bbcode/set.js
new file mode 100644 (file)
index 0000000..4641a1d
--- /dev/null
@@ -0,0 +1,39 @@
+// ----------------------------------------------------------------------------
+// markItUp!
+// ----------------------------------------------------------------------------
+// Copyright (C) 2008 Jay Salvat
+// http://markitup.jaysalvat.com/
+// ----------------------------------------------------------------------------
+// BBCode tags example
+// http://en.wikipedia.org/wiki/Bbcode
+// ----------------------------------------------------------------------------
+// Feel free to add more tags
+// ----------------------------------------------------------------------------
+mySettings = {
+       previewParserPath:      '', // path to your BBCode parser
+       markupSet: [
+               {name:'Bold', key:'B', openWith:'[b]', closeWith:'[/b]'},
+               {name:'Italic', key:'I', openWith:'[i]', closeWith:'[/i]'},
+               {name:'Underline', key:'U', openWith:'[u]', closeWith:'[/u]'},
+               {separator:'---------------' },
+               {name:'Picture', key:'P', replaceWith:'[img][![Url]!][/img]'},
+               {name:'Link', key:'L', openWith:'[url=[![Url]!]]', closeWith:'[/url]', placeHolder:'Your text to link here...'},
+               {separator:'---------------' },
+               {name:'Size', key:'S', openWith:'[size=[![Text size]!]]', closeWith:'[/size]',
+               dropMenu :[
+                       {name:'Big', openWith:'[size=200]', closeWith:'[/size]' },
+                       {name:'Normal', openWith:'[size=100]', closeWith:'[/size]' },
+                       {name:'Small', openWith:'[size=50]', closeWith:'[/size]' }
+               ]},
+               {separator:'---------------' },
+               {name:'Bulleted list', openWith:'[list]\n', closeWith:'\n[/list]'},
+               {name:'Numeric list', openWith:'[list=[![Starting number]!]]\n', closeWith:'\n[/list]'}, 
+               {name:'List item', openWith:'[*] '},
+               {separator:'---------------' },
+               {name:'Quotes', openWith:'[quote]', closeWith:'[/quote]'},
+               {name:'Code', openWith:'[code]', closeWith:'[/code]'}, 
+               {separator:'---------------' },
+               {name:'Clean', className:"clean", replaceWith:function(markitup) { return markitup.selection.replace(/\[(.*?)\]/g, "") } },
+               {name:'Preview', className:"preview", call:'preview' }
+       ]
+}
\ No newline at end of file
diff --git a/root/static/markitup/sets/bbcode/style.css b/root/static/markitup/sets/bbcode/style.css
new file mode 100644 (file)
index 0000000..3da35fd
--- /dev/null
@@ -0,0 +1,47 @@
+/* -------------------------------------------------------------------
+// markItUp!
+// By Jay Salvat - http://markitup.jaysalvat.com/
+// ------------------------------------------------------------------*/
+.markItUp .markItUpButton1 a   {
+       background-image:url(images/bold.png);
+}
+.markItUp .markItUpButton2 a   {
+       background-image:url(images/italic.png);
+}
+.markItUp .markItUpButton3 a   {
+       background-image:url(images/underline.png);
+}
+
+.markItUp .markItUpButton4 a   {
+       background-image:url(images/picture.png);
+}
+.markItUp .markItUpButton5 a   {
+       background-image:url(images/link.png);
+}
+
+.markItUp .markItUpButton6 a   {
+       background-image:url(images/fonts.png);
+}
+.markItUp .markItUpButton7 a   {
+       background-image:url(images/list-bullet.png);
+}
+.markItUp .markItUpButton8 a   {
+       background-image:url(images/list-numeric.png);
+}
+.markItUp .markItUpButton9 a   {
+       background-image:url(images/list-item.png);
+}
+
+.markItUp .markItUpButton10 a  {
+       background-image:url(images/quotes.png);
+}
+.markItUp .markItUpButton11 a  {
+       background-image:url(images/code.png);
+}
+       
+.markItUp .clean a {
+       background-image:url(images/clean.png);
+}
+.markItUp .preview a {
+       background-image:url(images/preview.png);
+}
\ No newline at end of file
diff --git a/root/static/markitup/skins/simple/images/handle.png b/root/static/markitup/skins/simple/images/handle.png
new file mode 100644 (file)
index 0000000..3993b20
Binary files /dev/null and b/root/static/markitup/skins/simple/images/handle.png differ
diff --git a/root/static/markitup/skins/simple/images/menu.png b/root/static/markitup/skins/simple/images/menu.png
new file mode 100644 (file)
index 0000000..44a07af
Binary files /dev/null and b/root/static/markitup/skins/simple/images/menu.png differ
diff --git a/root/static/markitup/skins/simple/images/submenu.png b/root/static/markitup/skins/simple/images/submenu.png
new file mode 100644 (file)
index 0000000..03d1977
Binary files /dev/null and b/root/static/markitup/skins/simple/images/submenu.png differ
diff --git a/root/static/markitup/skins/simple/style.css b/root/static/markitup/skins/simple/style.css
new file mode 100644 (file)
index 0000000..1838ded
--- /dev/null
@@ -0,0 +1,118 @@
+/* -------------------------------------------------------------------
+// markItUp! Universal MarkUp Engine, JQuery plugin
+// By Jay Salvat - http://markitup.jaysalvat.com/
+// ------------------------------------------------------------------*/
+.markItUp * {
+       margin:0px; padding:0px;
+       outline:none;
+}
+.markItUp a:link,
+.markItUp a:visited {
+       color:#000;
+       text-decoration:none;
+}
+.markItUp  {
+       width:700px;
+       margin:5px 0 5px 0;
+}
+.markItUpContainer  {
+       font:11px Verdana, Arial, Helvetica, sans-serif;
+}
+.markItUpEditor {
+       font:12px 'Courier New', Courier, monospace;
+       padding:5px;
+       width:690px;
+       height:320px;
+       clear:both; display:block;
+       line-height:18px;
+       overflow:auto;
+}
+.markItUpPreviewFrame  {
+       overflow:auto;
+       background-color:#FFF;
+       width:99.9%;
+       height:300px;
+       margin:5px 0;
+}
+.markItUpFooter {
+       width:100%;
+}
+.markItUpResizeHandle {
+       overflow:hidden;
+       width:22px; height:5px;
+       margin-left:auto;
+       margin-right:auto;
+       background-image:url(images/handle.png);
+       cursor:n-resize;
+}
+/***************************************************************************************/
+/* first row of buttons */
+.markItUpHeader ul li  {
+       list-style:none;
+       float:left;
+       position:relative;
+}
+.markItUpHeader ul li:hover > ul{
+       display:block;
+}
+.markItUpHeader ul .markItUpDropMenu {
+       background:transparent url(images/menu.png) no-repeat 115% 50%;
+       margin-right:5px;
+}
+.markItUpHeader ul .markItUpDropMenu li {
+       margin-right:0px;
+}
+/* next rows of buttons */
+.markItUpHeader ul ul {
+       display:none;
+       position:absolute;
+       top:18px; left:0px;     
+       background:#FFF;
+       border:1px solid #000;
+}
+.markItUpHeader ul ul li {
+       float:none;
+       border-bottom:1px solid #000;
+}
+.markItUpHeader ul ul .markItUpDropMenu {
+       background:#FFF url(images/submenu.png) no-repeat 100% 50%;
+}
+.markItUpHeader ul .markItUpSeparator {
+       margin:0 10px;
+       width:1px;
+       height:16px;
+       overflow:hidden;
+       background-color:#CCC;
+}
+.markItUpHeader ul ul .markItUpSeparator {
+       width:auto; height:1px;
+       margin:0px;
+}
+/* next rows of buttons */
+.markItUpHeader ul ul ul {
+       position:absolute;
+       top:-1px; left:150px; 
+}
+.markItUpHeader ul ul ul li {
+       float:none;
+}
+.markItUpHeader ul a {
+       display:block;
+       width:16px; height:16px;
+       text-indent:-10000px;
+       background-repeat:no-repeat;
+       padding:3px;
+       margin:0px;
+}
+.markItUpHeader ul ul a {
+       display:block;
+       padding-left:0px;
+       text-indent:0;
+       width:120px; 
+       padding:5px 5px 5px 25px;
+       background-position:2px 50%;
+}
+.markItUpHeader ul ul a:hover  {
+       color:#FFF;
+       background-color:#000;
+}