Commits

Anonymous committed 75a513f

markdown fixup

  • Participants
  • Parent commits e6da03d
  • Branches mine

Comments (0)

Files changed (37)

File markitup/settings.py

 MARKITUP_MEDIA_URL = getattr(settings, 'MARKITUP_MEDIA_URL',
                              getattr(settings, 'STATIC_URL'+'js/',
                              settings.MEDIA_URL+'js/')) # django < 1.3 fallback
-MARKITUP_SET = getattr(settings, 'MARKITUP_SET', 'markitup/sets/default')
+MARKITUP_SET = getattr(settings, 'MARKITUP_SET', 'markitup/sets/markdown')
 MARKITUP_SKIN = getattr(settings, 'MARKITUP_SKIN', 'markitup/skins/simple')
 JQUERY_URL = getattr(
     settings, 'JQUERY_URL',

File markitup/static/js/markitup/sets/default/images/bold.png

Added
New image

File markitup/static/js/markitup/sets/default/images/code.png

Added
New image

File markitup/static/js/markitup/sets/default/images/h1.png

Added
New image

File markitup/static/js/markitup/sets/default/images/h2.png

Added
New image

File markitup/static/js/markitup/sets/default/images/h3.png

Added
New image

File markitup/static/js/markitup/sets/default/images/h4.png

Added
New image

File markitup/static/js/markitup/sets/default/images/h5.png

Added
New image

File markitup/static/js/markitup/sets/default/images/h6.png

Added
New image

File markitup/static/js/markitup/sets/default/images/italic.png

Added
New image

File markitup/static/js/markitup/sets/default/images/link.png

Added
New image

File markitup/static/js/markitup/sets/default/images/list-bullet.png

Added
New image

File markitup/static/js/markitup/sets/default/images/list-numeric.png

Added
New image

File markitup/static/js/markitup/sets/default/images/picture.png

Added
New image

File markitup/static/js/markitup/sets/default/images/preview.png

Added
New image

File markitup/static/js/markitup/sets/default/images/quotes.png

Added
New image

File markitup/static/js/markitup/sets/default/readme.txt

+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

File markitup/static/js/markitup/sets/default/set.js

+// -------------------------------------------------------------------
+// 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;
+	}
+}

File markitup/static/js/markitup/sets/default/style.css

+/* -------------------------------------------------------------------
+// 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);
+}

File markitup/static/js/markitup/sets/markdown/images/bold.png

Removed
Old image

File markitup/static/js/markitup/sets/markdown/images/code.png

Removed
Old image

File markitup/static/js/markitup/sets/markdown/images/h1.png

Removed
Old image

File markitup/static/js/markitup/sets/markdown/images/h2.png

Removed
Old image

File markitup/static/js/markitup/sets/markdown/images/h3.png

Removed
Old image

File markitup/static/js/markitup/sets/markdown/images/h4.png

Removed
Old image

File markitup/static/js/markitup/sets/markdown/images/h5.png

Removed
Old image

File markitup/static/js/markitup/sets/markdown/images/h6.png

Removed
Old image

File markitup/static/js/markitup/sets/markdown/images/italic.png

Removed
Old image

File markitup/static/js/markitup/sets/markdown/images/link.png

Removed
Old image

File markitup/static/js/markitup/sets/markdown/images/list-bullet.png

Removed
Old image

File markitup/static/js/markitup/sets/markdown/images/list-numeric.png

Removed
Old image

File markitup/static/js/markitup/sets/markdown/images/picture.png

Removed
Old image

File markitup/static/js/markitup/sets/markdown/images/preview.png

Removed
Old image

File markitup/static/js/markitup/sets/markdown/images/quotes.png

Removed
Old image

File markitup/static/js/markitup/sets/markdown/readme.txt

-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

File markitup/static/js/markitup/sets/markdown/set.js

-// -------------------------------------------------------------------
-// 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;
-	}
-}

File markitup/static/js/markitup/sets/markdown/style.css

-/* -------------------------------------------------------------------
-// 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);
-}