Anfänglicher Commit: Producion Version Stand: Oktober 2014
BIN
htdocs/django_markdown/sets/markdown/images/bold.png
Normal file
|
After Width: | Height: | Size: 304 B |
BIN
htdocs/django_markdown/sets/markdown/images/clean.png
Normal file
|
After Width: | Height: | Size: 667 B |
BIN
htdocs/django_markdown/sets/markdown/images/code.png
Normal file
|
After Width: | Height: | Size: 859 B |
BIN
htdocs/django_markdown/sets/markdown/images/h1.png
Normal file
|
After Width: | Height: | Size: 276 B |
BIN
htdocs/django_markdown/sets/markdown/images/h2.png
Normal file
|
After Width: | Height: | Size: 304 B |
BIN
htdocs/django_markdown/sets/markdown/images/h3.png
Normal file
|
After Width: | Height: | Size: 306 B |
BIN
htdocs/django_markdown/sets/markdown/images/h4.png
Normal file
|
After Width: | Height: | Size: 293 B |
BIN
htdocs/django_markdown/sets/markdown/images/h5.png
Normal file
|
After Width: | Height: | Size: 304 B |
BIN
htdocs/django_markdown/sets/markdown/images/h6.png
Normal file
|
After Width: | Height: | Size: 310 B |
BIN
htdocs/django_markdown/sets/markdown/images/image.png
Normal file
|
After Width: | Height: | Size: 516 B |
BIN
htdocs/django_markdown/sets/markdown/images/italic.png
Normal file
|
After Width: | Height: | Size: 223 B |
BIN
htdocs/django_markdown/sets/markdown/images/link.png
Normal file
|
After Width: | Height: | Size: 343 B |
BIN
htdocs/django_markdown/sets/markdown/images/list-bullet.png
Normal file
|
After Width: | Height: | Size: 344 B |
BIN
htdocs/django_markdown/sets/markdown/images/list-numeric.png
Normal file
|
After Width: | Height: | Size: 357 B |
BIN
htdocs/django_markdown/sets/markdown/images/picture.png
Normal file
|
After Width: | Height: | Size: 606 B |
BIN
htdocs/django_markdown/sets/markdown/images/preview.png
Normal file
|
After Width: | Height: | Size: 537 B |
BIN
htdocs/django_markdown/sets/markdown/images/quotes.png
Normal file
|
After Width: | Height: | Size: 743 B |
BIN
htdocs/django_markdown/sets/markdown/images/stroke.png
Normal file
|
After Width: | Height: | Size: 269 B |
53
htdocs/django_markdown/sets/markdown/set.js
Normal file
@@ -0,0 +1,53 @@
|
||||
// -------------------------------------------------------------------
|
||||
// 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 = {
|
||||
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, achar) {
|
||||
heading = '';
|
||||
n = $.trim(markItUp.selection||markItUp.placeHolder).length;
|
||||
// work around bug in python-markdown where header underlines must be at least 3 chars
|
||||
if (n < 3) { n = 3; }
|
||||
for(i = 0; i < n; i++) {
|
||||
heading += achar;
|
||||
}
|
||||
return '\n'+heading;
|
||||
}
|
||||
}
|
||||
54
htdocs/django_markdown/sets/markdown/style.css
Normal file
@@ -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);
|
||||
}
|
||||
BIN
htdocs/django_markdown/sets/markdownextra/images/bold.png
Normal file
|
After Width: | Height: | Size: 304 B |
BIN
htdocs/django_markdown/sets/markdownextra/images/book_open.png
Normal file
|
After Width: | Height: | Size: 622 B |
BIN
htdocs/django_markdown/sets/markdownextra/images/code.png
Normal file
|
After Width: | Height: | Size: 859 B |
BIN
htdocs/django_markdown/sets/markdownextra/images/h1.png
Normal file
|
After Width: | Height: | Size: 276 B |
BIN
htdocs/django_markdown/sets/markdownextra/images/h2.png
Normal file
|
After Width: | Height: | Size: 304 B |
BIN
htdocs/django_markdown/sets/markdownextra/images/h3.png
Normal file
|
After Width: | Height: | Size: 306 B |
BIN
htdocs/django_markdown/sets/markdownextra/images/h4.png
Normal file
|
After Width: | Height: | Size: 293 B |
BIN
htdocs/django_markdown/sets/markdownextra/images/h5.png
Normal file
|
After Width: | Height: | Size: 304 B |
BIN
htdocs/django_markdown/sets/markdownextra/images/h6.png
Normal file
|
After Width: | Height: | Size: 310 B |
BIN
htdocs/django_markdown/sets/markdownextra/images/italic.png
Normal file
|
After Width: | Height: | Size: 223 B |
BIN
htdocs/django_markdown/sets/markdownextra/images/link.png
Normal file
|
After Width: | Height: | Size: 343 B |
BIN
htdocs/django_markdown/sets/markdownextra/images/list-bullet.png
Normal file
|
After Width: | Height: | Size: 344 B |
|
After Width: | Height: | Size: 357 B |
BIN
htdocs/django_markdown/sets/markdownextra/images/picture.png
Normal file
|
After Width: | Height: | Size: 606 B |
BIN
htdocs/django_markdown/sets/markdownextra/images/preview.png
Normal file
|
After Width: | Height: | Size: 537 B |
BIN
htdocs/django_markdown/sets/markdownextra/images/quotes.png
Normal file
|
After Width: | Height: | Size: 743 B |
BIN
htdocs/django_markdown/sets/markdownextra/images/table.png
Normal file
|
After Width: | Height: | Size: 423 B |
87
htdocs/django_markdown/sets/markdownextra/set.js
Normal file
@@ -0,0 +1,87 @@
|
||||
// -------------------------------------------------------------------
|
||||
// markItUp! - Markdown Extra Set
|
||||
// -------------------------------------------------------------------
|
||||
// Copyright (C) 2008 Jay Salvat
|
||||
// http://markitup.jaysalvat.com/
|
||||
// -------------------------------------------------------------------
|
||||
// MarkDown tags example
|
||||
// http://en.wikipedia.org/wiki/Markdown
|
||||
// http://daringfireball.net/projects/markdown/
|
||||
// MarkDown Extra
|
||||
// http://michelf.ca/projects/php-markdown/extra/
|
||||
// -------------------------------------------------------------------
|
||||
// Feel free to add more tags
|
||||
// -------------------------------------------------------------------
|
||||
mySettings = {
|
||||
onShiftEnter: {keepDefault:false, openWith:'\n\n'},
|
||||
markupSet: [
|
||||
{name:'First Level Heading', key:'1', placeHolder:'Your title here...', closeWith:function(markItUp) { return miu.markdownextraTitle(markItUp, '=') } },
|
||||
{name:'Second Level Heading', key:'2', placeHolder:'Your title here...', closeWith:function(markItUp) { return miu.markdownextraTitle(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...' },
|
||||
{name:'Definition', key:'D', openWith:'Term\n', placeHolder:': Your definition here ' },
|
||||
{separator:'---------------'},
|
||||
{name:'Quotes', openWith:'> '},
|
||||
{
|
||||
name:'Code Block / Code',
|
||||
key: 'K',
|
||||
openWith:'~~~~.[![Language]!]\n',
|
||||
closeWith:'\n~~~~',
|
||||
placeHolder:'Your code here...'
|
||||
},
|
||||
{separator:'---------------'},
|
||||
{name:'Table',
|
||||
header:" header ",
|
||||
seperator:" ------ ",
|
||||
placeholder:" data ",
|
||||
replaceWith:function(h) {
|
||||
cols = prompt("How many cols?");
|
||||
rows = prompt("How many rows?");
|
||||
out = "";
|
||||
// header row
|
||||
for (c = 0; c < cols; c++) {
|
||||
out += "|"+(h.header||"");
|
||||
}
|
||||
out += "|\n";
|
||||
// seperator
|
||||
for (c = 0; c < cols; c++) {
|
||||
out += "|"+(h.seperator||"");
|
||||
}
|
||||
out += "|\n";
|
||||
for (r = 0; r < rows; r++) {
|
||||
for (c = 0; c < cols; c++) {
|
||||
out += "|"+(h.placeholder||"");
|
||||
}
|
||||
out += "|\n";
|
||||
}
|
||||
return out;
|
||||
}
|
||||
},
|
||||
{name:'Preview', call:'preview', className:"preview"}
|
||||
]
|
||||
}
|
||||
|
||||
// mIu nameSpace to avoid conflict.
|
||||
miu = {
|
||||
markdownextraTitle: function(markItUp, achar) {
|
||||
heading = '';
|
||||
n = $.trim(markItUp.selection||markItUp.placeHolder).length;
|
||||
for(i = 0; i < n; i++) {
|
||||
heading += achar;
|
||||
}
|
||||
return '\n'+heading;
|
||||
}
|
||||
}
|
||||
61
htdocs/django_markdown/sets/markdownextra/style.css
Normal file
@@ -0,0 +1,61 @@
|
||||
/* -------------------------------------------------------------------
|
||||
// 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/book_open.png);
|
||||
}
|
||||
.markItUp .markItUpButton14 a {
|
||||
background-image:url(images/quotes.png);
|
||||
}
|
||||
|
||||
.markItUp .markItUpButton15 a {
|
||||
background-image:url(images/code.png);
|
||||
}
|
||||
.markItUp .markItUpButton16 a {
|
||||
background-image:url(images/table.png);
|
||||
}
|
||||
|
||||
.markItUp .preview a {
|
||||
background-image:url(images/preview.png);
|
||||
}
|
||||