etabliocms_core 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. data/lib/etabliocms_core/version.rb +1 -1
  2. data/public/markitup/bold.png +0 -0
  3. data/public/markitup/code.png +0 -0
  4. data/public/markitup/flash.png +0 -0
  5. data/public/markitup/h1.png +0 -0
  6. data/public/markitup/h2.png +0 -0
  7. data/public/markitup/h3.png +0 -0
  8. data/public/markitup/h4.png +0 -0
  9. data/public/markitup/h5.png +0 -0
  10. data/public/markitup/h6.png +0 -0
  11. data/public/markitup/icon.png +0 -0
  12. data/public/markitup/italic.png +0 -0
  13. data/public/markitup/link.png +0 -0
  14. data/public/markitup/list-bullet.png +0 -0
  15. data/public/markitup/list-numeric.png +0 -0
  16. data/public/markitup/map.png +0 -0
  17. data/public/markitup/paragraph.png +0 -0
  18. data/public/markitup/picture.png +0 -0
  19. data/public/markitup/pictures.png +0 -0
  20. data/public/markitup/preview.png +0 -0
  21. data/public/markitup/quotes.png +0 -0
  22. data/public/markitup/stroke.png +0 -0
  23. data/public/markitup/youtube.png +0 -0
  24. data/vendor/assets/javascripts/markitup/jquery.markitup.pack.js +9 -0
  25. data/vendor/assets/javascripts/markitup/sets/default/images/bold.png +0 -0
  26. data/vendor/assets/javascripts/markitup/sets/default/images/clean.png +0 -0
  27. data/vendor/assets/javascripts/markitup/sets/default/images/image.png +0 -0
  28. data/vendor/assets/javascripts/markitup/sets/default/images/italic.png +0 -0
  29. data/vendor/assets/javascripts/markitup/sets/default/images/link.png +0 -0
  30. data/vendor/assets/javascripts/markitup/sets/default/images/picture.png +0 -0
  31. data/vendor/assets/javascripts/markitup/sets/default/images/preview.png +0 -0
  32. data/vendor/assets/javascripts/markitup/sets/default/images/stroke.png +0 -0
  33. data/vendor/assets/javascripts/markitup/sets/default/set.js +27 -0
  34. data/vendor/assets/javascripts/markitup/sets/default/style.css +27 -0
  35. data/vendor/assets/javascripts/markitup/sets/textile/images/bold.png +0 -0
  36. data/vendor/assets/javascripts/markitup/sets/textile/images/code.png +0 -0
  37. data/vendor/assets/javascripts/markitup/sets/textile/images/flash.png +0 -0
  38. data/vendor/assets/javascripts/markitup/sets/textile/images/h1.png +0 -0
  39. data/vendor/assets/javascripts/markitup/sets/textile/images/h2.png +0 -0
  40. data/vendor/assets/javascripts/markitup/sets/textile/images/h3.png +0 -0
  41. data/vendor/assets/javascripts/markitup/sets/textile/images/h4.png +0 -0
  42. data/vendor/assets/javascripts/markitup/sets/textile/images/h5.png +0 -0
  43. data/vendor/assets/javascripts/markitup/sets/textile/images/h6.png +0 -0
  44. data/vendor/assets/javascripts/markitup/sets/textile/images/icon.png +0 -0
  45. data/vendor/assets/javascripts/markitup/sets/textile/images/italic.png +0 -0
  46. data/vendor/assets/javascripts/markitup/sets/textile/images/link.png +0 -0
  47. data/vendor/assets/javascripts/markitup/sets/textile/images/list-bullet.png +0 -0
  48. data/vendor/assets/javascripts/markitup/sets/textile/images/list-numeric.png +0 -0
  49. data/vendor/assets/javascripts/markitup/sets/textile/images/map.png +0 -0
  50. data/vendor/assets/javascripts/markitup/sets/textile/images/paragraph.png +0 -0
  51. data/vendor/assets/javascripts/markitup/sets/textile/images/picture.png +0 -0
  52. data/vendor/assets/javascripts/markitup/sets/textile/images/pictures.png +0 -0
  53. data/vendor/assets/javascripts/markitup/sets/textile/images/preview.png +0 -0
  54. data/vendor/assets/javascripts/markitup/sets/textile/images/quotes.png +0 -0
  55. data/vendor/assets/javascripts/markitup/sets/textile/images/stroke.png +0 -0
  56. data/vendor/assets/javascripts/markitup/sets/textile/images/youtube.png +0 -0
  57. data/vendor/assets/javascripts/markitup/sets/textile/readme.txt +11 -0
  58. data/vendor/assets/javascripts/markitup/sets/textile/set.js +48 -0
  59. data/vendor/assets/javascripts/markitup/sets/textile/style.css +81 -0
  60. data/vendor/assets/javascripts/markitup/skins/markitup/images/bg-container.png +0 -0
  61. data/vendor/assets/javascripts/markitup/skins/markitup/images/bg-editor-bbcode.png +0 -0
  62. data/vendor/assets/javascripts/markitup/skins/markitup/images/bg-editor-dotclear.png +0 -0
  63. data/vendor/assets/javascripts/markitup/skins/markitup/images/bg-editor-html.png +0 -0
  64. data/vendor/assets/javascripts/markitup/skins/markitup/images/bg-editor-json.png +0 -0
  65. data/vendor/assets/javascripts/markitup/skins/markitup/images/bg-editor-markdown.png +0 -0
  66. data/vendor/assets/javascripts/markitup/skins/markitup/images/bg-editor-textile.png +0 -0
  67. data/vendor/assets/javascripts/markitup/skins/markitup/images/bg-editor-wiki.png +0 -0
  68. data/vendor/assets/javascripts/markitup/skins/markitup/images/bg-editor-xml.png +0 -0
  69. data/vendor/assets/javascripts/markitup/skins/markitup/images/bg-editor.png +0 -0
  70. data/vendor/assets/javascripts/markitup/skins/markitup/images/handle.png +0 -0
  71. data/vendor/assets/javascripts/markitup/skins/markitup/images/menu.png +0 -0
  72. data/vendor/assets/javascripts/markitup/skins/markitup/images/submenu.png +0 -0
  73. data/vendor/assets/javascripts/markitup/skins/markitup/style.css +148 -0
  74. data/vendor/assets/javascripts/markitup/skins/simple/images/handle.png +0 -0
  75. data/vendor/assets/javascripts/markitup/skins/simple/images/menu.png +0 -0
  76. data/vendor/assets/javascripts/markitup/skins/simple/images/submenu.png +0 -0
  77. data/vendor/assets/javascripts/markitup/skins/simple/style.css +118 -0
  78. data/vendor/assets/javascripts/markitup/templates/preview.css +5 -0
  79. data/vendor/assets/javascripts/markitup/templates/preview.html +11 -0
  80. data/vendor/assets/stylesheets/boilerplate.print.css +19 -0
  81. data/vendor/assets/stylesheets/boilerplate.screen.css +190 -0
  82. data/vendor/plugins/acts_as_sluggy/README +4 -0
  83. data/vendor/plugins/acts_as_sluggy/Rakefile +0 -0
  84. data/vendor/plugins/acts_as_sluggy/init.rb +1 -0
  85. data/vendor/plugins/acts_as_sluggy/lib/active_record/acts/sluggy.rb +34 -0
  86. data/vendor/plugins/extended_nested_set/README +4 -0
  87. data/vendor/plugins/extended_nested_set/Rakefile +0 -0
  88. data/vendor/plugins/extended_nested_set/init.rb +1 -0
  89. data/vendor/plugins/extended_nested_set/lib/extended_nested_set.rb +37 -0
  90. metadata +99 -11
@@ -1,3 +1,3 @@
1
1
  module EtabliocmsCore
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,9 @@
1
+ // ----------------------------------------------------------------------------
2
+ // markItUp! Universal MarkUp Engine, JQuery plugin
3
+ // v 1.1.7
4
+ // Dual licensed under the MIT and GPL licenses.
5
+ // ----------------------------------------------------------------------------
6
+ // Copyright (C) 2007-2010 Jay Salvat
7
+ // http://markitup.jaysalvat.com/
8
+ // ----------------------------------------------------------------------------
9
+ 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,{}))
@@ -0,0 +1,27 @@
1
+ // ----------------------------------------------------------------------------
2
+ // markItUp!
3
+ // ----------------------------------------------------------------------------
4
+ // Copyright (C) 2008 Jay Salvat
5
+ // http://markitup.jaysalvat.com/
6
+ // ----------------------------------------------------------------------------
7
+ // Html tags
8
+ // http://en.wikipedia.org/wiki/html
9
+ // ----------------------------------------------------------------------------
10
+ // Basic set. Feel free to add more tags
11
+ // ----------------------------------------------------------------------------
12
+ mySettings = {
13
+ onShiftEnter: {keepDefault:false, replaceWith:'<br />\n'},
14
+ onCtrlEnter: {keepDefault:false, openWith:'\n<p>', closeWith:'</p>'},
15
+ onTab: {keepDefault:false, replaceWith:' '},
16
+ markupSet: [
17
+ {name:'Bold', key:'B', openWith:'(!(<strong>|!|<b>)!)', closeWith:'(!(</strong>|!|</b>)!)' },
18
+ {name:'Italic', key:'I', openWith:'(!(<em>|!|<i>)!)', closeWith:'(!(</em>|!|</i>)!)' },
19
+ {name:'Stroke through', key:'S', openWith:'<del>', closeWith:'</del>' },
20
+ {separator:'---------------' },
21
+ {name:'Picture', key:'P', replaceWith:'<img src="[![Source:!:http://]!]" alt="[![Alternative text]!]" />' },
22
+ {name:'Link', key:'L', openWith:'<a href="[![Link:!:http://]!]"(!( title="[![Title]!]")!)>', closeWith:'</a>', placeHolder:'Your text to link...' },
23
+ {separator:'---------------' },
24
+ {name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } },
25
+ {name:'Preview', className:'preview', call:'preview'}
26
+ ]
27
+ }
@@ -0,0 +1,27 @@
1
+ /* -------------------------------------------------------------------
2
+ // markItUp!
3
+ // By Jay Salvat - http://markitup.jaysalvat.com/
4
+ // ------------------------------------------------------------------*/
5
+ .markItUp .markItUpButton1 a {
6
+ background-image:url(images/bold.png);
7
+ }
8
+ .markItUp .markItUpButton2 a {
9
+ background-image:url(images/italic.png);
10
+ }
11
+ .markItUp .markItUpButton3 a {
12
+ background-image:url(images/stroke.png);
13
+ }
14
+
15
+ .markItUp .markItUpButton4 a {
16
+ background-image:url(images/picture.png);
17
+ }
18
+ .markItUp .markItUpButton5 a {
19
+ background-image:url(images/link.png);
20
+ }
21
+
22
+ .markItUp .markItUpButton6 a {
23
+ background-image:url(images/clean.png);
24
+ }
25
+ .markItUp .preview a {
26
+ background-image:url(images/preview.png);
27
+ }
@@ -0,0 +1,11 @@
1
+ Markup language:
2
+ Textile
3
+
4
+ Description:
5
+ A basic Textile markup set with Headings, Bold, Italic, Stroke through, Picture, Link, List, Quotes, Code, Preview button.
6
+
7
+ Install:
8
+ - Download the zip file
9
+ - Unzip it in your markItUp! sets folder
10
+ - Modify your JS link to point at this set.js
11
+ - Modify your CSS link to point at this style.css
@@ -0,0 +1,48 @@
1
+ // -------------------------------------------------------------------
2
+ // markItUp!
3
+ // -------------------------------------------------------------------
4
+ // Copyright (C) 2008 Jay Salvat
5
+ // http://markitup.jaysalvat.com/
6
+ // -------------------------------------------------------------------
7
+ // Textile tags example
8
+ // http://en.wikipedia.org/wiki/Textile_(markup_language)
9
+ // http://www.textism.com/
10
+ // -------------------------------------------------------------------
11
+ // Feel free to add more tags
12
+ // -------------------------------------------------------------------
13
+ mySettings = {
14
+ resizeHandle: true,
15
+ previewTemplatePath: '/javascripts/markitup/templates/preview.html',
16
+ previewParserPath: '/admin/textile_parser', // path to your Textile parser
17
+ onShiftEnter: {keepDefault:false, replaceWith:'\n\n'},
18
+ markupSet: [
19
+ {name:'Nadpis 1', key:'1', openWith:'h1(!(([![Class]!]))!). ', placeHolder:'Nadpis' },
20
+ {name:'Nadpis 2', key:'2', openWith:'h2(!(([![Class]!]))!). ', placeHolder:'Nadpis' },
21
+ {name:'Nadpis 3', key:'3', openWith:'h3(!(([![Class]!]))!). ', placeHolder:'Nadpis' },
22
+ {name:'Nadpis 4', key:'4', openWith:'h4(!(([![Class]!]))!). ', placeHolder:'Nadpis' },
23
+ {name:'Nadpis 5', key:'5', openWith:'h5(!(([![Class]!]))!). ', placeHolder:'Nadpis' },
24
+ {name:'Nadpis 6', key:'6', openWith:'h6(!(([![Class]!]))!). ', placeHolder:'Nadpis' },
25
+ {name:'Odstavec', key:'P', openWith:'p(!(([![Class]!]))!). '},
26
+ {separator:'---------------' },
27
+ {name:'Tučné', key:'B', closeWith:'*', openWith:'*'},
28
+ {name:'Kurzíva', key:'I', closeWith:'_', openWith:'_'},
29
+ {name:'Škrtnuté', key:'S', closeWith:'-', openWith:'-'},
30
+ {separator:'---------------' },
31
+ {name:'Odrážkový seznam', openWith:'(!(* |!|*)!)'},
32
+ {name:'Číselný seznam', openWith:'(!(# |!|#)!)'},
33
+ {separator:'---------------' },
34
+ {name:'Obrázek', replaceWith:'![![URL obrázku:!:http://]!]([![Popisek (alternativní text)]!])!'},
35
+ //{name:'Obrázek s galerií', replaceWith:'\nfig. [![Náhled URL:!:http://]!] | [![Skutečná velikost URL:!:http://]!] | [![Popisek]!] \n'},
36
+ //{name:'Ikonka',replaceWith:'\nicon. [![URL ikonky:]!] | [![URL cíle:]!] | [![Text:]!] \n'},
37
+ //{name:'Google mapa', replaceWith:'\ngmap. [![Latitude (např. 50.045542):]!] | [![Longitude (např. 14.446846):]!] | [![Zoom (např. 10):]!] | [![Popisek]!] \n'},
38
+ //{name:'Youtube video', replaceWith:'\nyoutube. [![Kód (např. QKPwuJyC-4E):]!] | [![Šířka v pixelech:]!] | [![Výška v pixelech:]!] | [![Popisek]!] \n'},
39
+ //{name:'Flash', replaceWith:'\nflash. [![URL flashe:]!] | [![Šířka v pixelech:]!] | [![Výška v pixelech:]!] \n'},
40
+ {separator:'---------------' },
41
+ {name:'Odkaz', openWith:'"', closeWith:'([![Popisek]!])":[![URL:!:http://]!]', placeHolder:'Text odkazu' },
42
+ {separator:'---------------' },
43
+ {name:'Citace', openWith:'bq(!(([![Třída]!]))!). '},
44
+ {name:'Kód', openWith:'@', closeWith:'@'},
45
+ {separator:'---------------' },
46
+ {name:'Náhled', call:'preview', className:'preview'}
47
+ ]
48
+ };
@@ -0,0 +1,81 @@
1
+ /* -------------------------------------------------------------------
2
+ // markItUp!
3
+ // By Jay Salvat - http://markitup.jaysalvat.com/
4
+ // ------------------------------------------------------------------*/
5
+ .markItUp .markItUpButton1 a {
6
+ background-image:url(/markitup/h1.png);
7
+ }
8
+ .markItUp .markItUpButton2 a {
9
+ background-image:url(/markitup/h2.png);
10
+ }
11
+ .markItUp .markItUpButton3 a {
12
+ background-image:url(/markitup/h3.png);
13
+ }
14
+ .markItUp .markItUpButton4 a {
15
+ background-image:url(/markitup/h4.png);
16
+ }
17
+ .markItUp .markItUpButton5 a {
18
+ background-image:url(/markitup/h5.png);
19
+ }
20
+ .markItUp .markItUpButton6 a {
21
+ background-image:url(/markitup/h6.png);
22
+ }
23
+ .markItUp .markItUpButton7 a {
24
+ background-image:url(/markitup/paragraph.png);
25
+ }
26
+
27
+ .markItUp .markItUpButton8 a {
28
+ background-image:url(/markitup/bold.png);
29
+ }
30
+ .markItUp .markItUpButton9 a {
31
+ background-image:url(/markitup/italic.png);
32
+ }
33
+ .markItUp .markItUpButton10 a {
34
+ background-image:url(/markitup/stroke.png);
35
+ }
36
+
37
+ .markItUp .markItUpButton11 a {
38
+ background-image:url(/markitup/list-bullet.png);
39
+ }
40
+ .markItUp .markItUpButton12 a {
41
+ background-image:url(/markitup/list-numeric.png);
42
+ }
43
+
44
+ .markItUp .markItUpButton13 a {
45
+ background-image:url(/markitup/picture.png);
46
+ }
47
+
48
+ .markItUp .markItUpButton14 a {
49
+ background-image:url(/markitup/pictures.png);
50
+ }
51
+
52
+ .markItUp .markItUpButton15 a {
53
+ background-image:url(/markitup/icon.png);
54
+ }
55
+
56
+ .markItUp .markItUpButton16 a {
57
+ background-image:url(/markitup/map.png);
58
+ }
59
+
60
+ .markItUp .markItUpButton17 a {
61
+ background-image:url(/markitup/youtube.png);
62
+ }
63
+
64
+ .markItUp .markItUpButton18 a {
65
+ background-image:url(/markitup/flash.png);
66
+ }
67
+
68
+ .markItUp .markItUpButton19 a {
69
+ background-image:url(/markitup/link.png);
70
+ }
71
+
72
+ .markItUp .markItUpButton20 a {
73
+ background-image:url(/markitup/quotes.png);
74
+ }
75
+ .markItUp .markItUpButton21 a {
76
+ background-image:url(/markitup/code.png);
77
+ }
78
+
79
+ .markItUp .preview a {
80
+ background-image:url(/markitup/preview.png);
81
+ }
@@ -0,0 +1,148 @@
1
+ /* -------------------------------------------------------------------
2
+ // markItUp! Universal MarkUp Engine, JQuery plugin
3
+ // By Jay Salvat - http://markitup.jaysalvat.com/
4
+ // ------------------------------------------------------------------*/
5
+ .markItUp * {
6
+ margin:0px; padding:0px;
7
+ outline:none;
8
+ }
9
+ .markItUp a:link,
10
+ .markItUp a:visited {
11
+ color:#000;
12
+ text-decoration:none;
13
+ }
14
+ .markItUp {
15
+ width:700px;
16
+ margin:5px 0 5px 0;
17
+ border:5px solid #F5F5F5;
18
+ }
19
+ .markItUpContainer {
20
+ border:1px solid #3C769D;
21
+ background:#FFF url(images/bg-container.png) repeat-x top left;
22
+ padding:5px 5px 2px 5px;
23
+ font:11px Verdana, Arial, Helvetica, sans-serif;
24
+ }
25
+ .markItUpEditor {
26
+ font:12px 'Courier New', Courier, monospace;
27
+ padding:5px 5px 5px 35px;
28
+ border:3px solid #3C769D;
29
+ width:643px;
30
+ height:320px;
31
+ background-image:url(images/bg-editor.png);
32
+ background-repeat:no-repeat;
33
+ clear:both; display:block;
34
+ line-height:18px;
35
+ overflow:auto;
36
+ }
37
+ .markItUpPreviewFrame {
38
+ overflow:auto;
39
+ background-color:#FFFFFF;
40
+ border:1px solid #3C769D;
41
+ width:99.9%;
42
+ height:300px;
43
+ margin:5px 0;
44
+ }
45
+ .markItUpFooter {
46
+ width:100%;
47
+ cursor:n-resize;
48
+ }
49
+ .markItUpResizeHandle {
50
+ overflow:hidden;
51
+ width:22px; height:5px;
52
+ margin-left:auto;
53
+ margin-right:auto;
54
+ background-image:url(images/handle.png);
55
+ cursor:n-resize;
56
+ }
57
+ /***************************************************************************************/
58
+ /* first row of buttons */
59
+ .markItUpHeader ul li {
60
+ list-style:none;
61
+ float:left;
62
+ position:relative;
63
+ }
64
+ .markItUpHeader ul li ul{
65
+ display:none;
66
+ }
67
+ .markItUpHeader ul li:hover > ul{
68
+ display:block;
69
+ }
70
+ .markItUpHeader ul .markItUpDropMenu {
71
+ background:transparent url(images/menu.png) no-repeat 115% 50%;
72
+ margin-right:5px;
73
+ }
74
+ .markItUpHeader ul .markItUpDropMenu li {
75
+ margin-right:0px;
76
+ }
77
+ .markItUpHeader ul .markItUpSeparator {
78
+ margin:0 10px;
79
+ width:1px;
80
+ height:16px;
81
+ overflow:hidden;
82
+ background-color:#CCC;
83
+ }
84
+ .markItUpHeader ul ul .markItUpSeparator {
85
+ width:auto; height:1px;
86
+ margin:0px;
87
+ }
88
+ /* next rows of buttons */
89
+ .markItUpHeader ul ul {
90
+ display:none;
91
+ position:absolute;
92
+ top:18px; left:0px;
93
+ background:#F5F5F5;
94
+ border:1px solid #3C769D;
95
+ height:inherit;
96
+ }
97
+ .markItUpHeader ul ul li {
98
+ float:none;
99
+ border-bottom:1px solid #3C769D;
100
+ }
101
+ .markItUpHeader ul ul .markItUpDropMenu {
102
+ background:#F5F5F5 url(images/submenu.png) no-repeat 100% 50%;
103
+ }
104
+ /* next rows of buttons */
105
+ .markItUpHeader ul ul ul {
106
+ position:absolute;
107
+ top:-1px; left:150px;
108
+ }
109
+ .markItUpHeader ul ul ul li {
110
+ float:none;
111
+ }
112
+ .markItUpHeader ul a {
113
+ display:block;
114
+ width:16px; height:16px;
115
+ text-indent:-10000px;
116
+ background-repeat:no-repeat;
117
+ padding:3px;
118
+ margin:0px;
119
+ }
120
+ .markItUpHeader ul ul a {
121
+ display:block;
122
+ padding-left:0px;
123
+ text-indent:0;
124
+ width:120px;
125
+ padding:5px 5px 5px 25px;
126
+ background-position:2px 50%;
127
+ }
128
+ .markItUpHeader ul ul a:hover {
129
+ color:#FFF;
130
+ background-color:#3C769D;
131
+ }
132
+ /***************************************************************************************/
133
+ .html .markItUpEditor {
134
+ background-image:url(images/bg-editor-html.png);
135
+ }
136
+ .markdown .markItUpEditor {
137
+ background-image:url(images/bg-editor-markdown.png);
138
+ }
139
+ .textile .markItUpEditor {
140
+ background-image:url(images/bg-editor-textile.png);
141
+ }
142
+ .bbcode .markItUpEditor {
143
+ background-image:url(images/bg-editor-bbcode.png);
144
+ }
145
+ .wiki .markItUpEditor,
146
+ .dotclear .markItUpEditor {
147
+ background-image:url(images/bg-editor-wiki.png);
148
+ }
@@ -0,0 +1,118 @@
1
+ /* -------------------------------------------------------------------
2
+ // markItUp! Universal MarkUp Engine, JQuery plugin
3
+ // By Jay Salvat - http://markitup.jaysalvat.com/
4
+ // ------------------------------------------------------------------*/
5
+ .markItUp * {
6
+ margin:0px; padding:0px;
7
+ outline:none;
8
+ }
9
+ .markItUp a:link,
10
+ .markItUp a:visited {
11
+ color:#000;
12
+ text-decoration:none;
13
+ }
14
+ .markItUp {
15
+ width:700px;
16
+ margin:5px 0 5px 0;
17
+ }
18
+ .markItUpContainer {
19
+ font:11px Verdana, Arial, Helvetica, sans-serif;
20
+ }
21
+ .markItUpEditor {
22
+ font:12px 'Courier New', Courier, monospace;
23
+ padding:5px;
24
+ width:690px;
25
+ height:420px;
26
+ clear:both; display:block;
27
+ line-height:18px;
28
+ overflow:auto;
29
+ }
30
+ .markItUpPreviewFrame {
31
+ overflow:auto;
32
+ background-color:#FFF;
33
+ width:99.9%;
34
+ height:300px;
35
+ margin:5px 0;
36
+ }
37
+ .markItUpFooter {
38
+ width:100%;
39
+ }
40
+ .markItUpResizeHandle {
41
+ overflow:hidden;
42
+ width:22px; height:5px;
43
+ margin-left:auto;
44
+ margin-right:auto;
45
+ background-image:url(images/handle.png);
46
+ cursor:n-resize;
47
+ }
48
+ /***************************************************************************************/
49
+ /* first row of buttons */
50
+ .markItUpHeader ul li {
51
+ list-style:none;
52
+ float:left;
53
+ position:relative;
54
+ }
55
+ .markItUpHeader ul li:hover > ul{
56
+ display:block;
57
+ }
58
+ .markItUpHeader ul .markItUpDropMenu {
59
+ background:transparent url(images/menu.png) no-repeat 115% 50%;
60
+ margin-right:5px;
61
+ }
62
+ .markItUpHeader ul .markItUpDropMenu li {
63
+ margin-right:0px;
64
+ }
65
+ /* next rows of buttons */
66
+ .markItUpHeader ul ul {
67
+ display:none;
68
+ position:absolute;
69
+ top:18px; left:0px;
70
+ background:#FFF;
71
+ border:1px solid #000;
72
+ }
73
+ .markItUpHeader ul ul li {
74
+ float:none;
75
+ border-bottom:1px solid #000;
76
+ }
77
+ .markItUpHeader ul ul .markItUpDropMenu {
78
+ background:#FFF url(images/submenu.png) no-repeat 100% 50%;
79
+ }
80
+ .markItUpHeader ul .markItUpSeparator {
81
+ margin:0 10px;
82
+ width:1px;
83
+ height:16px;
84
+ overflow:hidden;
85
+ background-color:#CCC;
86
+ }
87
+ .markItUpHeader ul ul .markItUpSeparator {
88
+ width:auto; height:1px;
89
+ margin:0px;
90
+ }
91
+ /* next rows of buttons */
92
+ .markItUpHeader ul ul ul {
93
+ position:absolute;
94
+ top:-1px; left:150px;
95
+ }
96
+ .markItUpHeader ul ul ul li {
97
+ float:none;
98
+ }
99
+ .markItUpHeader ul a {
100
+ display:block;
101
+ width:16px; height:16px;
102
+ text-indent:-10000px;
103
+ background-repeat:no-repeat;
104
+ padding:3px;
105
+ margin:0px;
106
+ }
107
+ .markItUpHeader ul ul a {
108
+ display:block;
109
+ padding-left:0px;
110
+ text-indent:0;
111
+ width:120px;
112
+ padding:5px 5px 5px 25px;
113
+ background-position:2px 50%;
114
+ }
115
+ .markItUpHeader ul ul a:hover {
116
+ color:#FFF;
117
+ background-color:#000;
118
+ }
@@ -0,0 +1,5 @@
1
+ /* preview style examples */
2
+ body {
3
+ background-color:#EFEFEF;
4
+ font:70% Verdana, Arial, Helvetica, sans-serif;
5
+ }
@@ -0,0 +1,11 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
+ <title>markItUp! preview template</title>
6
+ <link rel="stylesheet" type="text/css" href="~/templates/preview.css" />
7
+ </head>
8
+ <body>
9
+ <!-- content -->
10
+ </body>
11
+ </html>
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Print styles.
3
+ *
4
+ * Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/
5
+ */
6
+ @media print {
7
+ * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important;
8
+ -ms-filter: none !important; } /* Black prints faster: sanbeiji.com/archives/953 */
9
+ a, a:visited { color: #444 !important; text-decoration: underline; }
10
+ a[href]:after { content: " (" attr(href) ")"; }
11
+ abbr[title]:after { content: " (" attr(title) ")"; }
12
+ .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } /* Don't show links for images, or javascript/internal links */
13
+ pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
14
+ thead { display: table-header-group; } /* css-discuss.incutio.com/wiki/Printing_Tables */
15
+ tr, img { page-break-inside: avoid; }
16
+ @page { margin: 0.5cm; }
17
+ p, h2, h3 { orphans: 3; widows: 3; }
18
+ h2, h3{ page-break-after: avoid; }
19
+ }
@@ -0,0 +1,190 @@
1
+ /**
2
+ * HTML5 ✰ Boilerplate
3
+ *
4
+ * style.css contains a reset, font normalization and some base styles.
5
+ *
6
+ * Credit is left where credit is due.
7
+ * Much inspiration was taken from these projects:
8
+ * - yui.yahooapis.com/2.8.1/build/base/base.css
9
+ * - camendesign.com/design/
10
+ * - praegnanz.de/weblog/htmlcssjs-kickstart
11
+ */
12
+
13
+
14
+ /**
15
+ * html5doctor.com Reset Stylesheet (Eric Meyer's Reset Reloaded + HTML5 baseline)
16
+ * v1.6.1 2010-09-17 | Authors: Eric Meyer & Richard Clark
17
+ * html5doctor.com/html-5-reset-stylesheet/
18
+ */
19
+
20
+ html, body, div, span, object, iframe,
21
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
22
+ abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
23
+ small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
24
+ fieldset, form, label, legend,
25
+ table, caption, tbody, tfoot, thead, tr, th, td,
26
+ article, aside, canvas, details, figcaption, figure,
27
+ footer, header, hgroup, menu, nav, section, summary,
28
+ time, mark, audio, video {
29
+ margin: 0;
30
+ padding: 0;
31
+ border: 0;
32
+ font-size: 100%;
33
+ font: inherit;
34
+ vertical-align: baseline;
35
+ }
36
+
37
+ article, aside, details, figcaption, figure,
38
+ footer, header, hgroup, menu, nav, section {
39
+ display: block;
40
+ }
41
+
42
+ blockquote, q { quotes: none; }
43
+
44
+ blockquote:before, blockquote:after,
45
+ q:before, q:after { content: ""; content: none; }
46
+
47
+ ins { background-color: #ff9; color: #000; text-decoration: none; }
48
+
49
+ mark { background-color: #ff9; color: #000; font-style: italic; font-weight: bold; }
50
+
51
+ del { text-decoration: line-through; }
52
+
53
+ abbr[title], dfn[title] { border-bottom: 1px dotted; cursor: help; }
54
+
55
+ table { border-collapse: collapse; border-spacing: 0; }
56
+
57
+ hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
58
+
59
+ input, select { vertical-align: middle; }
60
+
61
+
62
+ /**
63
+ * Font normalization inspired by YUI Library's fonts.css: developer.yahoo.com/yui/
64
+ */
65
+
66
+ body { font:13px/1.231 sans-serif; *font-size:small; } /* Hack retained to preserve specificity */
67
+ select, input, textarea, button { font:99% sans-serif; }
68
+
69
+ /* Normalize monospace sizing:
70
+ en.wikipedia.org/wiki/MediaWiki_talk:Common.css/Archive_11#Teletype_style_fix_for_Chrome */
71
+ pre, code, kbd, samp { font-family: monospace, sans-serif; }
72
+
73
+
74
+ /**
75
+ * Minimal base styles.
76
+ */
77
+
78
+ /* Always force a scrollbar in non-IE */
79
+ html { overflow-y: scroll; }
80
+
81
+ /* Accessible focus treatment: people.opera.com/patrickl/experiments/keyboard/test */
82
+ a:hover, a:active { outline: none; }
83
+
84
+ ul, ol { margin-left: 2em; }
85
+ ol { list-style-type: decimal; }
86
+
87
+ /* Remove margins for navigation lists */
88
+ nav ul, nav li { margin: 0; list-style:none; list-style-image: none; }
89
+
90
+ small { font-size: 85%; }
91
+ strong, th { font-weight: bold; }
92
+
93
+ td { vertical-align: top; }
94
+
95
+ /* Set sub, sup without affecting line-height: gist.github.com/413930 */
96
+ sub, sup { font-size: 75%; line-height: 0; position: relative; }
97
+ sup { top: -0.5em; }
98
+ sub { bottom: -0.25em; }
99
+
100
+ pre {
101
+ /* www.pathf.com/blogs/2008/05/formatting-quoted-code-in-blog-posts-css21-white-space-pre-wrap/ */
102
+ white-space: pre; white-space: pre-wrap; word-wrap: break-word;
103
+ padding: 15px;
104
+ }
105
+
106
+ textarea { overflow: auto; } /* www.sitepoint.com/blogs/2010/08/20/ie-remove-textarea-scrollbars/ */
107
+
108
+ .ie6 legend, .ie7 legend { margin-left: -7px; }
109
+
110
+ /* Align checkboxes, radios, text inputs with their label by: Thierry Koblentz tjkdesign.com/ez-css/css/base.css */
111
+ input[type="radio"] { vertical-align: text-bottom; }
112
+ input[type="checkbox"] { vertical-align: bottom; }
113
+ .ie7 input[type="checkbox"] { vertical-align: baseline; }
114
+ .ie6 input { vertical-align: text-bottom; }
115
+
116
+ /* Hand cursor on clickable input elements */
117
+ label, input[type="button"], input[type="submit"], input[type="image"], button { cursor: pointer; }
118
+
119
+ /* Webkit browsers add a 2px margin outside the chrome of form elements */
120
+ button, input, select, textarea { margin: 0; }
121
+
122
+ /* Colors for form validity */
123
+ input:valid, textarea:valid { }
124
+ input:invalid, textarea:invalid {
125
+ border-radius: 1px; -moz-box-shadow: 0px 0px 5px red; -webkit-box-shadow: 0px 0px 5px red; box-shadow: 0px 0px 5px red;
126
+ }
127
+ .no-boxshadow input:invalid, .no-boxshadow textarea:invalid { background-color: #f0dddd; }
128
+
129
+
130
+ /* These selection declarations have to be separate
131
+ No text-shadow: twitter.com/miketaylr/status/12228805301
132
+ Also: hot pink! */
133
+ ::-moz-selection{ background: #FF5E99; color:#fff; text-shadow: none; }
134
+ ::selection { background:#FF5E99; color:#fff; text-shadow: none; }
135
+
136
+ /* j.mp/webkit-tap-highlight-color */
137
+ a:link { -webkit-tap-highlight-color: #FF5E99; }
138
+
139
+ /* Make buttons play nice in IE:
140
+ www.viget.com/inspire/styling-the-button-element-in-internet-explorer/ */
141
+ button { width: auto; overflow: visible; }
142
+
143
+ /* Bicubic resizing for non-native sized IMG:
144
+ code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/ */
145
+ .ie7 img { -ms-interpolation-mode: bicubic; }
146
+
147
+
148
+ body, select, input, textarea {
149
+ /* #444 looks better than black: twitter.com/H_FJ/statuses/11800719859 */
150
+ color: #444;
151
+ /* Set your base font here, to apply evenly */
152
+ /* font-family: Georgia, serif; */
153
+ }
154
+
155
+ /* Headers (h1, h2, etc) have no default font-size or margin; define those yourself */
156
+ h1, h2, h3, h4, h5, h6 { font-weight: bold; }
157
+
158
+ a, a:active, a:visited { color: #607890; }
159
+ a:hover { color: #036; }
160
+
161
+
162
+
163
+ /**
164
+ * Non-semantic helper classes: please define your styles before this section.
165
+ */
166
+
167
+ /* For image replacement */
168
+ .ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
169
+
170
+ /* Hide for both screenreaders and browsers:
171
+ css-discuss.incutio.com/wiki/Screenreader_Visibility */
172
+ .hidden { display: none; visibility: hidden; }
173
+
174
+ /* Hide only visually, but have it available for screenreaders: by Jon Neal.
175
+ www.webaim.org/techniques/css/invisiblecontent/ & j.mp/visuallyhidden */
176
+ .visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
177
+ /* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: drupal.org/node/897638 */
178
+ .visuallyhidden.focusable:active,
179
+ .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
180
+
181
+ /* Hide visually and from screenreaders, but maintain layout */
182
+ .invisible { visibility: hidden; }
183
+
184
+ /* The Magnificent Clearfix: Updated to prevent margin-collapsing on child elements.
185
+ j.mp/bestclearfix */
186
+ .clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
187
+ .clearfix:after { clear: both; }
188
+ /* Fix clearfix: blueprintcss.lighthouseapp.com/projects/15318/tickets/5-extra-margin-padding-bottom-of-page */
189
+ .clearfix { zoom: 1; }
190
+
@@ -0,0 +1,4 @@
1
+ acts_as_sluggy
2
+ ============
3
+
4
+ Actualizes slug in before_save and adds to_param.
File without changes
@@ -0,0 +1 @@
1
+ ActiveRecord::Base.send :include, ActiveRecord::Acts::Sluggy
@@ -0,0 +1,34 @@
1
+ module ActiveRecord
2
+ module Acts
3
+ module Sluggy
4
+ def self.included(base)
5
+ base.extend(ClassMethods)
6
+ end
7
+
8
+ module ClassMethods
9
+
10
+ def has_slug(options = {})
11
+ configuration = { :attribute => "title", :to_param => "slug", :to_url => "parameterize" }
12
+ configuration.update(options) if options.is_a?(Hash)
13
+
14
+ before_save :update_slug
15
+ to_param = case configuration[:to_param]
16
+ when :id_slug
17
+ "id.to_s + '-' + slug"
18
+ else
19
+ configuration[:to_param]
20
+ end
21
+ class_eval <<-EOV
22
+ def to_param
23
+ #{to_param}
24
+ end
25
+
26
+ def update_slug
27
+ self.slug = self.#{configuration[:attribute]}.#{configuration[:to_url]}
28
+ end
29
+ EOV
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,4 @@
1
+ extended_nested_set
2
+ ============
3
+
4
+ Improves working with sibling and moving nodes for awesome_nested_set
File without changes
@@ -0,0 +1 @@
1
+ ActiveRecord::Base.send :include, ExtendedNestedSet::InstanceMethods
@@ -0,0 +1,37 @@
1
+ module ExtendedNestedSet
2
+ module InstanceMethods
3
+
4
+ def is_first_of_siblings?(parent = nil)
5
+ if parent
6
+ parent.lft == self.lft - 1
7
+ else
8
+ left_sibling.nil?
9
+ end
10
+ end
11
+
12
+ def is_last_of_siblings?(parent = nil)
13
+ if parent
14
+ parent.rgt == self.rgt + 1
15
+ else
16
+ right_sibling.nil?
17
+ end
18
+ end
19
+
20
+ def move_lower
21
+ move_to_right_of(right_sibling) unless is_last_of_siblings?
22
+ end
23
+
24
+ def move_higher
25
+ move_to_left_of left_sibling unless is_first_of_siblings?
26
+ end
27
+
28
+ def move_to_bottom
29
+ move_to_right_of siblings.last unless is_last_of_siblings?
30
+ end
31
+
32
+ def move_to_top
33
+ move_to_left_of siblings.first unless is_first_of_siblings?
34
+ end
35
+
36
+ end
37
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: etabliocms_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-02-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &8806460 !ruby/object:Gem::Requirement
16
+ requirement: &11513600 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.2.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *8806460
24
+ version_requirements: *11513600
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: devise
27
- requirement: &8805920 !ruby/object:Gem::Requirement
27
+ requirement: &11513040 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.0.4
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *8805920
35
+ version_requirements: *11513040
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: configatron
38
- requirement: &8805520 !ruby/object:Gem::Requirement
38
+ requirement: &11512540 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *8805520
46
+ version_requirements: *11512540
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: RedCloth
49
- requirement: &8753380 !ruby/object:Gem::Requirement
49
+ requirement: &11511920 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - =
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 4.2.9
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *8753380
57
+ version_requirements: *11511920
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: sqlite3
60
- requirement: &8752920 !ruby/object:Gem::Requirement
60
+ requirement: &11511440 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *8752920
68
+ version_requirements: *11511440
69
69
  description: Small CMS
70
70
  email:
71
71
  - patrikjira@gmail.com
@@ -160,6 +160,94 @@ files:
160
160
  - lib/etabliocms_core/version.rb
161
161
  - lib/etabliocms_core/engine.rb
162
162
  - lib/etabliocms_core.rb
163
+ - public/markitup/h2.png
164
+ - public/markitup/list-numeric.png
165
+ - public/markitup/h1.png
166
+ - public/markitup/picture.png
167
+ - public/markitup/flash.png
168
+ - public/markitup/map.png
169
+ - public/markitup/paragraph.png
170
+ - public/markitup/italic.png
171
+ - public/markitup/stroke.png
172
+ - public/markitup/bold.png
173
+ - public/markitup/h6.png
174
+ - public/markitup/list-bullet.png
175
+ - public/markitup/quotes.png
176
+ - public/markitup/h5.png
177
+ - public/markitup/pictures.png
178
+ - public/markitup/h3.png
179
+ - public/markitup/preview.png
180
+ - public/markitup/link.png
181
+ - public/markitup/icon.png
182
+ - public/markitup/h4.png
183
+ - public/markitup/youtube.png
184
+ - public/markitup/code.png
185
+ - vendor/plugins/acts_as_sluggy/lib/active_record/acts/sluggy.rb
186
+ - vendor/plugins/acts_as_sluggy/init.rb
187
+ - vendor/plugins/acts_as_sluggy/Rakefile
188
+ - vendor/plugins/acts_as_sluggy/README
189
+ - vendor/plugins/extended_nested_set/lib/extended_nested_set.rb
190
+ - vendor/plugins/extended_nested_set/init.rb
191
+ - vendor/plugins/extended_nested_set/Rakefile
192
+ - vendor/plugins/extended_nested_set/README
193
+ - vendor/assets/javascripts/markitup/jquery.markitup.pack.js
194
+ - vendor/assets/javascripts/markitup/skins/simple/style.css
195
+ - vendor/assets/javascripts/markitup/skins/simple/images/submenu.png
196
+ - vendor/assets/javascripts/markitup/skins/simple/images/handle.png
197
+ - vendor/assets/javascripts/markitup/skins/simple/images/menu.png
198
+ - vendor/assets/javascripts/markitup/skins/markitup/style.css
199
+ - vendor/assets/javascripts/markitup/skins/markitup/images/bg-container.png
200
+ - vendor/assets/javascripts/markitup/skins/markitup/images/bg-editor-json.png
201
+ - vendor/assets/javascripts/markitup/skins/markitup/images/bg-editor.png
202
+ - vendor/assets/javascripts/markitup/skins/markitup/images/bg-editor-xml.png
203
+ - vendor/assets/javascripts/markitup/skins/markitup/images/bg-editor-textile.png
204
+ - vendor/assets/javascripts/markitup/skins/markitup/images/submenu.png
205
+ - vendor/assets/javascripts/markitup/skins/markitup/images/bg-editor-bbcode.png
206
+ - vendor/assets/javascripts/markitup/skins/markitup/images/bg-editor-markdown.png
207
+ - vendor/assets/javascripts/markitup/skins/markitup/images/bg-editor-html.png
208
+ - vendor/assets/javascripts/markitup/skins/markitup/images/handle.png
209
+ - vendor/assets/javascripts/markitup/skins/markitup/images/menu.png
210
+ - vendor/assets/javascripts/markitup/skins/markitup/images/bg-editor-dotclear.png
211
+ - vendor/assets/javascripts/markitup/skins/markitup/images/bg-editor-wiki.png
212
+ - vendor/assets/javascripts/markitup/sets/default/style.css
213
+ - vendor/assets/javascripts/markitup/sets/default/set.js
214
+ - vendor/assets/javascripts/markitup/sets/default/images/picture.png
215
+ - vendor/assets/javascripts/markitup/sets/default/images/italic.png
216
+ - vendor/assets/javascripts/markitup/sets/default/images/stroke.png
217
+ - vendor/assets/javascripts/markitup/sets/default/images/bold.png
218
+ - vendor/assets/javascripts/markitup/sets/default/images/image.png
219
+ - vendor/assets/javascripts/markitup/sets/default/images/clean.png
220
+ - vendor/assets/javascripts/markitup/sets/default/images/preview.png
221
+ - vendor/assets/javascripts/markitup/sets/default/images/link.png
222
+ - vendor/assets/javascripts/markitup/sets/textile/style.css
223
+ - vendor/assets/javascripts/markitup/sets/textile/readme.txt
224
+ - vendor/assets/javascripts/markitup/sets/textile/set.js
225
+ - vendor/assets/javascripts/markitup/sets/textile/images/h2.png
226
+ - vendor/assets/javascripts/markitup/sets/textile/images/list-numeric.png
227
+ - vendor/assets/javascripts/markitup/sets/textile/images/h1.png
228
+ - vendor/assets/javascripts/markitup/sets/textile/images/picture.png
229
+ - vendor/assets/javascripts/markitup/sets/textile/images/flash.png
230
+ - vendor/assets/javascripts/markitup/sets/textile/images/map.png
231
+ - vendor/assets/javascripts/markitup/sets/textile/images/paragraph.png
232
+ - vendor/assets/javascripts/markitup/sets/textile/images/italic.png
233
+ - vendor/assets/javascripts/markitup/sets/textile/images/stroke.png
234
+ - vendor/assets/javascripts/markitup/sets/textile/images/bold.png
235
+ - vendor/assets/javascripts/markitup/sets/textile/images/h6.png
236
+ - vendor/assets/javascripts/markitup/sets/textile/images/list-bullet.png
237
+ - vendor/assets/javascripts/markitup/sets/textile/images/quotes.png
238
+ - vendor/assets/javascripts/markitup/sets/textile/images/h5.png
239
+ - vendor/assets/javascripts/markitup/sets/textile/images/pictures.png
240
+ - vendor/assets/javascripts/markitup/sets/textile/images/h3.png
241
+ - vendor/assets/javascripts/markitup/sets/textile/images/preview.png
242
+ - vendor/assets/javascripts/markitup/sets/textile/images/link.png
243
+ - vendor/assets/javascripts/markitup/sets/textile/images/icon.png
244
+ - vendor/assets/javascripts/markitup/sets/textile/images/h4.png
245
+ - vendor/assets/javascripts/markitup/sets/textile/images/youtube.png
246
+ - vendor/assets/javascripts/markitup/sets/textile/images/code.png
247
+ - vendor/assets/javascripts/markitup/templates/preview.html
248
+ - vendor/assets/javascripts/markitup/templates/preview.css
249
+ - vendor/assets/stylesheets/boilerplate.screen.css
250
+ - vendor/assets/stylesheets/boilerplate.print.css
163
251
  - MIT-LICENSE
164
252
  - Rakefile
165
253
  - README.rdoc