Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of ssh://git.netcentrum.cz/projects/content/GIT…
…/ella
- Loading branch information
Showing
24 changed files
with
169 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Requirements | ||
============ | ||
|
||
* Python 2.5+ | ||
* Django 1.1 (with patch from #3400) | ||
* python-markdown2 (or python-markdown) | ||
* PIL | ||
* python-cjson (optional) | ||
* django-markup (optional) | ||
|
||
For testing: | ||
------------ | ||
|
||
* python-nose | ||
* djangosanetesting | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+357 Bytes
ella/newman/media/js/markitup/sets/markdown/images/list-numeric.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,7 @@ | |
'ella.newman', | ||
'ella.newman.licenses', | ||
'django.contrib.admin', | ||
'djangomarkup', | ||
) | ||
|
||
VERSION = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters