diff options
Diffstat (limited to '97suifangqa/staticfiles/markitup/sets')
30 files changed, 181 insertions, 0 deletions
diff --git a/97suifangqa/staticfiles/markitup/sets/default/images/bold.png b/97suifangqa/staticfiles/markitup/sets/default/images/bold.png Binary files differnew file mode 100644 index 0000000..889ae80 --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/default/images/bold.png diff --git a/97suifangqa/staticfiles/markitup/sets/default/images/clean.png b/97suifangqa/staticfiles/markitup/sets/default/images/clean.png Binary files differnew file mode 100644 index 0000000..7e7cefb --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/default/images/clean.png diff --git a/97suifangqa/staticfiles/markitup/sets/default/images/image.png b/97suifangqa/staticfiles/markitup/sets/default/images/image.png Binary files differnew file mode 100644 index 0000000..fc3c393 --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/default/images/image.png diff --git a/97suifangqa/staticfiles/markitup/sets/default/images/italic.png b/97suifangqa/staticfiles/markitup/sets/default/images/italic.png Binary files differnew file mode 100644 index 0000000..8482ac8 --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/default/images/italic.png diff --git a/97suifangqa/staticfiles/markitup/sets/default/images/link.png b/97suifangqa/staticfiles/markitup/sets/default/images/link.png Binary files differnew file mode 100644 index 0000000..25eacb7 --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/default/images/link.png diff --git a/97suifangqa/staticfiles/markitup/sets/default/images/list-bullet.png b/97suifangqa/staticfiles/markitup/sets/default/images/list-bullet.png Binary files differnew file mode 100644 index 0000000..4a8672b --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/default/images/list-bullet.png diff --git a/97suifangqa/staticfiles/markitup/sets/default/images/list-numeric.png b/97suifangqa/staticfiles/markitup/sets/default/images/list-numeric.png Binary files differnew file mode 100644 index 0000000..33b0b8d --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/default/images/list-numeric.png diff --git a/97suifangqa/staticfiles/markitup/sets/default/images/picture.png b/97suifangqa/staticfiles/markitup/sets/default/images/picture.png Binary files differnew file mode 100644 index 0000000..4a158fe --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/default/images/picture.png diff --git a/97suifangqa/staticfiles/markitup/sets/default/images/preview.png b/97suifangqa/staticfiles/markitup/sets/default/images/preview.png Binary files differnew file mode 100644 index 0000000..a9925a0 --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/default/images/preview.png diff --git a/97suifangqa/staticfiles/markitup/sets/default/images/stroke.png b/97suifangqa/staticfiles/markitup/sets/default/images/stroke.png Binary files differnew file mode 100644 index 0000000..612058a --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/default/images/stroke.png diff --git a/97suifangqa/staticfiles/markitup/sets/default/set.js b/97suifangqa/staticfiles/markitup/sets/default/set.js new file mode 100644 index 0000000..b7fdf81 --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/default/set.js @@ -0,0 +1,30 @@ +// ---------------------------------------------------------------------------- +// markItUp! +// ---------------------------------------------------------------------------- +// Copyright (C) 2011 Jay Salvat +// http://markitup.jaysalvat.com/ +// ---------------------------------------------------------------------------- +// Html tags +// http://en.wikipedia.org/wiki/html +// ---------------------------------------------------------------------------- +// Basic set. Feel free to add more tags +// ---------------------------------------------------------------------------- +var mySettings = { + onShiftEnter: {keepDefault:false, replaceWith:'<br />\n'}, + onCtrlEnter: {keepDefault:false, openWith:'\n<p>', closeWith:'</p>'}, + onTab: {keepDefault:false, replaceWith:' '}, + markupSet: [ + {name:'Bold', key:'B', openWith:'(!(<strong>|!|<b>)!)', closeWith:'(!(</strong>|!|</b>)!)' }, + {name:'Italic', key:'I', openWith:'(!(<em>|!|<i>)!)', closeWith:'(!(</em>|!|</i>)!)' }, + {name:'Stroke through', key:'S', openWith:'<del>', closeWith:'</del>' }, + {separator:'---------------' }, + {name:'Bulleted List', openWith:' <li>', closeWith:'</li>', multiline:true, openBlockWith:'<ul>\n', closeBlockWith:'\n</ul>'}, + {name:'Numeric List', openWith:' <li>', closeWith:'</li>', multiline:true, openBlockWith:'<ol>\n', closeBlockWith:'\n</ol>'}, + {separator:'---------------' }, + {name:'Picture', key:'P', replaceWith:'<img src="[![Source:!:http://]!]" alt="[![Alternative text]!]" />' }, + {name:'Link', key:'L', openWith:'<a href="[![Link:!:http://]!]"(!( title="[![Title]!]")!)>', closeWith:'</a>', placeHolder:'Your text to link...' }, + {separator:'---------------' }, + {name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } }, + {name:'Preview', className:'preview', call:'preview'} + ] +} diff --git a/97suifangqa/staticfiles/markitup/sets/default/style.css b/97suifangqa/staticfiles/markitup/sets/default/style.css new file mode 100644 index 0000000..336b60e --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/default/style.css @@ -0,0 +1,34 @@ +/* ------------------------------------------------------------------- +// 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/stroke.png); +} + +.markItUp .markItUpButton4 a { + background-image:url(images/list-bullet.png); +} +.markItUp .markItUpButton5 a { + background-image:url(images/list-numeric.png); +} + +.markItUp .markItUpButton6 a { + background-image:url(images/picture.png); +} +.markItUp .markItUpButton7 a { + background-image:url(images/link.png); +} + +.markItUp .markItUpButton8 a { + background-image:url(images/clean.png); +} +.markItUp .preview a { + background-image:url(images/preview.png); +} diff --git a/97suifangqa/staticfiles/markitup/sets/markdown/images/bold.png b/97suifangqa/staticfiles/markitup/sets/markdown/images/bold.png Binary files differnew file mode 100644 index 0000000..889ae80 --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/markdown/images/bold.png diff --git a/97suifangqa/staticfiles/markitup/sets/markdown/images/code.png b/97suifangqa/staticfiles/markitup/sets/markdown/images/code.png Binary files differnew file mode 100644 index 0000000..63fe6ce --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/markdown/images/code.png diff --git a/97suifangqa/staticfiles/markitup/sets/markdown/images/h1.png b/97suifangqa/staticfiles/markitup/sets/markdown/images/h1.png Binary files differnew file mode 100644 index 0000000..9c122e9 --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/markdown/images/h1.png diff --git a/97suifangqa/staticfiles/markitup/sets/markdown/images/h2.png b/97suifangqa/staticfiles/markitup/sets/markdown/images/h2.png Binary files differnew file mode 100644 index 0000000..fbd8765 --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/markdown/images/h2.png diff --git a/97suifangqa/staticfiles/markitup/sets/markdown/images/h3.png b/97suifangqa/staticfiles/markitup/sets/markdown/images/h3.png Binary files differnew file mode 100644 index 0000000..c7836cf --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/markdown/images/h3.png diff --git a/97suifangqa/staticfiles/markitup/sets/markdown/images/h4.png b/97suifangqa/staticfiles/markitup/sets/markdown/images/h4.png Binary files differnew file mode 100644 index 0000000..4e929ea --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/markdown/images/h4.png diff --git a/97suifangqa/staticfiles/markitup/sets/markdown/images/h5.png b/97suifangqa/staticfiles/markitup/sets/markdown/images/h5.png Binary files differnew file mode 100644 index 0000000..30cabeb --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/markdown/images/h5.png diff --git a/97suifangqa/staticfiles/markitup/sets/markdown/images/h6.png b/97suifangqa/staticfiles/markitup/sets/markdown/images/h6.png Binary files differnew file mode 100644 index 0000000..058170a --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/markdown/images/h6.png diff --git a/97suifangqa/staticfiles/markitup/sets/markdown/images/italic.png b/97suifangqa/staticfiles/markitup/sets/markdown/images/italic.png Binary files differnew file mode 100644 index 0000000..8482ac8 --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/markdown/images/italic.png diff --git a/97suifangqa/staticfiles/markitup/sets/markdown/images/link.png b/97suifangqa/staticfiles/markitup/sets/markdown/images/link.png Binary files differnew file mode 100644 index 0000000..25eacb7 --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/markdown/images/link.png diff --git a/97suifangqa/staticfiles/markitup/sets/markdown/images/list-bullet.png b/97suifangqa/staticfiles/markitup/sets/markdown/images/list-bullet.png Binary files differnew file mode 100644 index 0000000..4a8672b --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/markdown/images/list-bullet.png diff --git a/97suifangqa/staticfiles/markitup/sets/markdown/images/list-numeric.png b/97suifangqa/staticfiles/markitup/sets/markdown/images/list-numeric.png Binary files differnew file mode 100644 index 0000000..33b0b8d --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/markdown/images/list-numeric.png diff --git a/97suifangqa/staticfiles/markitup/sets/markdown/images/picture.png b/97suifangqa/staticfiles/markitup/sets/markdown/images/picture.png Binary files differnew file mode 100644 index 0000000..4a158fe --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/markdown/images/picture.png diff --git a/97suifangqa/staticfiles/markitup/sets/markdown/images/preview.png b/97suifangqa/staticfiles/markitup/sets/markdown/images/preview.png Binary files differnew file mode 100644 index 0000000..a9925a0 --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/markdown/images/preview.png diff --git a/97suifangqa/staticfiles/markitup/sets/markdown/images/quotes.png b/97suifangqa/staticfiles/markitup/sets/markdown/images/quotes.png Binary files differnew file mode 100644 index 0000000..e54ebeb --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/markdown/images/quotes.png diff --git a/97suifangqa/staticfiles/markitup/sets/markdown/readme.txt b/97suifangqa/staticfiles/markitup/sets/markdown/readme.txt new file mode 100644 index 0000000..790fe7a --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/markdown/readme.txt @@ -0,0 +1,11 @@ +Markup language: +Markdown + +Description: +A basic Markdown markup set with Headings, Bold, Italic, Picture, Link, List, Quotes, Code, Preview button. + +Install: +- Download the zip file +- Unzip it in your markItUp! sets folder +- Modify your JS link to point at this set.js +- Modify your CSS link to point at this style.css
\ No newline at end of file diff --git a/97suifangqa/staticfiles/markitup/sets/markdown/set.js b/97suifangqa/staticfiles/markitup/sets/markdown/set.js new file mode 100644 index 0000000..96970a4 --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/markdown/set.js @@ -0,0 +1,52 @@ +// ------------------------------------------------------------------- +// markItUp! +// ------------------------------------------------------------------- +// Copyright (C) 2008 Jay Salvat +// http://markitup.jaysalvat.com/ +// ------------------------------------------------------------------- +// MarkDown tags example +// http://en.wikipedia.org/wiki/Markdown +// http://daringfireball.net/projects/markdown/ +// ------------------------------------------------------------------- +// Feel free to add more tags +// ------------------------------------------------------------------- +mySettings = { + previewParserPath: '', + onShiftEnter: {keepDefault:false, openWith:'\n\n'}, + markupSet: [ + {name:'First Level Heading', key:'1', placeHolder:'Your title here...', closeWith:function(markItUp) { return miu.markdownTitle(markItUp, '=') } }, + {name:'Second Level Heading', key:'2', placeHolder:'Your title here...', closeWith:function(markItUp) { return miu.markdownTitle(markItUp, '-') } }, + {name:'Heading 3', key:'3', openWith:'### ', placeHolder:'Your title here...' }, + {name:'Heading 4', key:'4', openWith:'#### ', placeHolder:'Your title here...' }, + {name:'Heading 5', key:'5', openWith:'##### ', placeHolder:'Your title here...' }, + {name:'Heading 6', key:'6', openWith:'###### ', placeHolder:'Your title here...' }, + {separator:'---------------' }, + {name:'Bold', key:'B', openWith:'**', closeWith:'**'}, + {name:'Italic', key:'I', openWith:'_', closeWith:'_'}, + {separator:'---------------' }, + {name:'Bulleted List', openWith:'- ' }, + {name:'Numeric List', openWith:function(markItUp) { + return markItUp.line+'. '; + }}, + {separator:'---------------' }, + {name:'Picture', key:'P', replaceWith:'![[![Alternative text]!]]([![Url:!:http://]!] "[![Title]!]")'}, + {name:'Link', key:'L', openWith:'[', closeWith:']([![Url:!:http://]!] "[![Title]!]")', placeHolder:'Your text to link here...' }, + {separator:'---------------'}, + {name:'Quotes', openWith:'> '}, + {name:'Code Block / Code', openWith:'(!(\t|!|`)!)', closeWith:'(!(`)!)'}, + {separator:'---------------'}, + {name:'Preview', call:'preview', className:"preview"} + ] +} + +// mIu nameSpace to avoid conflict. +miu = { + markdownTitle: function(markItUp, char) { + heading = ''; + n = $.trim(markItUp.selection||markItUp.placeHolder).length; + for(i = 0; i < n; i++) { + heading += char; + } + return '\n'+heading; + } +}
\ No newline at end of file diff --git a/97suifangqa/staticfiles/markitup/sets/markdown/style.css b/97suifangqa/staticfiles/markitup/sets/markdown/style.css new file mode 100644 index 0000000..03c3aea --- /dev/null +++ b/97suifangqa/staticfiles/markitup/sets/markdown/style.css @@ -0,0 +1,54 @@ +/* ------------------------------------------------------------------- +// markItUp! +// By Jay Salvat - http://markitup.jaysalvat.com/ +// ------------------------------------------------------------------*/ +.markItUp .markItUpButton1 a { + background-image:url(images/h1.png); +} +.markItUp .markItUpButton2 a { + background-image:url(images/h2.png); +} +.markItUp .markItUpButton3 a { + background-image:url(images/h3.png); +} +.markItUp .markItUpButton4 a { + background-image:url(images/h4.png); +} +.markItUp .markItUpButton5 a { + background-image:url(images/h5.png); +} +.markItUp .markItUpButton6 a { + background-image:url(images/h6.png); +} + +.markItUp .markItUpButton7 a { + background-image:url(images/bold.png); +} +.markItUp .markItUpButton8 a { + background-image:url(images/italic.png); +} + +.markItUp .markItUpButton9 a { + background-image:url(images/list-bullet.png); +} +.markItUp .markItUpButton10 a { + background-image:url(images/list-numeric.png); +} + +.markItUp .markItUpButton11 a { + background-image:url(images/picture.png); +} +.markItUp .markItUpButton12 a { + background-image:url(images/link.png); +} + +.markItUp .markItUpButton13 a { + background-image:url(images/quotes.png); +} +.markItUp .markItUpButton14 a { + background-image:url(images/code.png); +} + +.markItUp .preview a { + background-image:url(images/preview.png); +}
\ No newline at end of file |