summaryrefslogtreecommitdiff
path: root/gstudio/static/gstudio/js/markitup/sets/markdown
diff options
context:
space:
mode:
Diffstat (limited to 'gstudio/static/gstudio/js/markitup/sets/markdown')
-rw-r--r--gstudio/static/gstudio/js/markitup/sets/markdown/images/bold.pngbin0 -> 304 bytes
-rw-r--r--gstudio/static/gstudio/js/markitup/sets/markdown/images/code.pngbin0 -> 859 bytes
-rw-r--r--gstudio/static/gstudio/js/markitup/sets/markdown/images/h1.pngbin0 -> 276 bytes
-rw-r--r--gstudio/static/gstudio/js/markitup/sets/markdown/images/h2.pngbin0 -> 304 bytes
-rw-r--r--gstudio/static/gstudio/js/markitup/sets/markdown/images/h3.pngbin0 -> 306 bytes
-rw-r--r--gstudio/static/gstudio/js/markitup/sets/markdown/images/h4.pngbin0 -> 293 bytes
-rw-r--r--gstudio/static/gstudio/js/markitup/sets/markdown/images/h5.pngbin0 -> 304 bytes
-rw-r--r--gstudio/static/gstudio/js/markitup/sets/markdown/images/h6.pngbin0 -> 310 bytes
-rw-r--r--gstudio/static/gstudio/js/markitup/sets/markdown/images/italic.pngbin0 -> 223 bytes
-rw-r--r--gstudio/static/gstudio/js/markitup/sets/markdown/images/link.pngbin0 -> 343 bytes
-rw-r--r--gstudio/static/gstudio/js/markitup/sets/markdown/images/list-bullet.pngbin0 -> 344 bytes
-rw-r--r--gstudio/static/gstudio/js/markitup/sets/markdown/images/list-numeric.pngbin0 -> 357 bytes
-rw-r--r--gstudio/static/gstudio/js/markitup/sets/markdown/images/picture.pngbin0 -> 606 bytes
-rw-r--r--gstudio/static/gstudio/js/markitup/sets/markdown/images/preview.pngbin0 -> 537 bytes
-rw-r--r--gstudio/static/gstudio/js/markitup/sets/markdown/images/quotes.pngbin0 -> 743 bytes
-rw-r--r--gstudio/static/gstudio/js/markitup/sets/markdown/set.js49
-rw-r--r--gstudio/static/gstudio/js/markitup/sets/markdown/style.css54
17 files changed, 103 insertions, 0 deletions
diff --git a/gstudio/static/gstudio/js/markitup/sets/markdown/images/bold.png b/gstudio/static/gstudio/js/markitup/sets/markdown/images/bold.png
new file mode 100644
index 00000000..889ae80e
--- /dev/null
+++ b/gstudio/static/gstudio/js/markitup/sets/markdown/images/bold.png
Binary files differ
diff --git a/gstudio/static/gstudio/js/markitup/sets/markdown/images/code.png b/gstudio/static/gstudio/js/markitup/sets/markdown/images/code.png
new file mode 100644
index 00000000..63fe6cef
--- /dev/null
+++ b/gstudio/static/gstudio/js/markitup/sets/markdown/images/code.png
Binary files differ
diff --git a/gstudio/static/gstudio/js/markitup/sets/markdown/images/h1.png b/gstudio/static/gstudio/js/markitup/sets/markdown/images/h1.png
new file mode 100644
index 00000000..9c122e91
--- /dev/null
+++ b/gstudio/static/gstudio/js/markitup/sets/markdown/images/h1.png
Binary files differ
diff --git a/gstudio/static/gstudio/js/markitup/sets/markdown/images/h2.png b/gstudio/static/gstudio/js/markitup/sets/markdown/images/h2.png
new file mode 100644
index 00000000..fbd87657
--- /dev/null
+++ b/gstudio/static/gstudio/js/markitup/sets/markdown/images/h2.png
Binary files differ
diff --git a/gstudio/static/gstudio/js/markitup/sets/markdown/images/h3.png b/gstudio/static/gstudio/js/markitup/sets/markdown/images/h3.png
new file mode 100644
index 00000000..c7836cf0
--- /dev/null
+++ b/gstudio/static/gstudio/js/markitup/sets/markdown/images/h3.png
Binary files differ
diff --git a/gstudio/static/gstudio/js/markitup/sets/markdown/images/h4.png b/gstudio/static/gstudio/js/markitup/sets/markdown/images/h4.png
new file mode 100644
index 00000000..4e929eaf
--- /dev/null
+++ b/gstudio/static/gstudio/js/markitup/sets/markdown/images/h4.png
Binary files differ
diff --git a/gstudio/static/gstudio/js/markitup/sets/markdown/images/h5.png b/gstudio/static/gstudio/js/markitup/sets/markdown/images/h5.png
new file mode 100644
index 00000000..30cabebf
--- /dev/null
+++ b/gstudio/static/gstudio/js/markitup/sets/markdown/images/h5.png
Binary files differ
diff --git a/gstudio/static/gstudio/js/markitup/sets/markdown/images/h6.png b/gstudio/static/gstudio/js/markitup/sets/markdown/images/h6.png
new file mode 100644
index 00000000..058170a2
--- /dev/null
+++ b/gstudio/static/gstudio/js/markitup/sets/markdown/images/h6.png
Binary files differ
diff --git a/gstudio/static/gstudio/js/markitup/sets/markdown/images/italic.png b/gstudio/static/gstudio/js/markitup/sets/markdown/images/italic.png
new file mode 100644
index 00000000..8482ac8c
--- /dev/null
+++ b/gstudio/static/gstudio/js/markitup/sets/markdown/images/italic.png
Binary files differ
diff --git a/gstudio/static/gstudio/js/markitup/sets/markdown/images/link.png b/gstudio/static/gstudio/js/markitup/sets/markdown/images/link.png
new file mode 100644
index 00000000..25eacb7c
--- /dev/null
+++ b/gstudio/static/gstudio/js/markitup/sets/markdown/images/link.png
Binary files differ
diff --git a/gstudio/static/gstudio/js/markitup/sets/markdown/images/list-bullet.png b/gstudio/static/gstudio/js/markitup/sets/markdown/images/list-bullet.png
new file mode 100644
index 00000000..4a8672bd
--- /dev/null
+++ b/gstudio/static/gstudio/js/markitup/sets/markdown/images/list-bullet.png
Binary files differ
diff --git a/gstudio/static/gstudio/js/markitup/sets/markdown/images/list-numeric.png b/gstudio/static/gstudio/js/markitup/sets/markdown/images/list-numeric.png
new file mode 100644
index 00000000..33b0b8df
--- /dev/null
+++ b/gstudio/static/gstudio/js/markitup/sets/markdown/images/list-numeric.png
Binary files differ
diff --git a/gstudio/static/gstudio/js/markitup/sets/markdown/images/picture.png b/gstudio/static/gstudio/js/markitup/sets/markdown/images/picture.png
new file mode 100644
index 00000000..4a158fef
--- /dev/null
+++ b/gstudio/static/gstudio/js/markitup/sets/markdown/images/picture.png
Binary files differ
diff --git a/gstudio/static/gstudio/js/markitup/sets/markdown/images/preview.png b/gstudio/static/gstudio/js/markitup/sets/markdown/images/preview.png
new file mode 100644
index 00000000..a9925a06
--- /dev/null
+++ b/gstudio/static/gstudio/js/markitup/sets/markdown/images/preview.png
Binary files differ
diff --git a/gstudio/static/gstudio/js/markitup/sets/markdown/images/quotes.png b/gstudio/static/gstudio/js/markitup/sets/markdown/images/quotes.png
new file mode 100644
index 00000000..e54ebeba
--- /dev/null
+++ b/gstudio/static/gstudio/js/markitup/sets/markdown/images/quotes.png
Binary files differ
diff --git a/gstudio/static/gstudio/js/markitup/sets/markdown/set.js b/gstudio/static/gstudio/js/markitup/sets/markdown/set.js
new file mode 100644
index 00000000..7d87ef7b
--- /dev/null
+++ b/gstudio/static/gstudio/js/markitup/sets/markdown/set.js
@@ -0,0 +1,49 @@
+// -------------------------------------------------------------------
+// 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:'Heading 1', key:'1', placeHolder:'Your title here...', closeWith:function(markItUp) { return miu.markdownTitle(markItUp, '=') } },
+ {name:'Heading 2', 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:'(!(`)!)'}
+ ]
+}
+
+// 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/gstudio/static/gstudio/js/markitup/sets/markdown/style.css b/gstudio/static/gstudio/js/markitup/sets/markdown/style.css
new file mode 100644
index 00000000..03c3aea4
--- /dev/null
+++ b/gstudio/static/gstudio/js/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