add MarkItUp editor for textareas with markup support
BIN
www/markitup/sets/default/images/bold.png
Normal file
|
After Width: | Height: | Size: 304 B |
BIN
www/markitup/sets/default/images/clean.png
Normal file
|
After Width: | Height: | Size: 667 B |
BIN
www/markitup/sets/default/images/image.png
Normal file
|
After Width: | Height: | Size: 516 B |
BIN
www/markitup/sets/default/images/italic.png
Normal file
|
After Width: | Height: | Size: 223 B |
BIN
www/markitup/sets/default/images/link.png
Normal file
|
After Width: | Height: | Size: 343 B |
BIN
www/markitup/sets/default/images/list-bullet.png
Normal file
|
After Width: | Height: | Size: 344 B |
BIN
www/markitup/sets/default/images/list-numeric.png
Normal file
|
After Width: | Height: | Size: 357 B |
BIN
www/markitup/sets/default/images/picture.png
Normal file
|
After Width: | Height: | Size: 606 B |
BIN
www/markitup/sets/default/images/preview.png
Normal file
|
After Width: | Height: | Size: 537 B |
BIN
www/markitup/sets/default/images/stroke.png
Normal file
|
After Width: | Height: | Size: 269 B |
30
www/markitup/sets/default/set.js
Normal file
|
|
@ -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'}
|
||||
]
|
||||
}
|
||||
34
www/markitup/sets/default/style.css
Normal file
|
|
@ -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);
|
||||
}
|
||||
BIN
www/markitup/sets/textile/images/bold.png
Normal file
|
After Width: | Height: | Size: 304 B |
BIN
www/markitup/sets/textile/images/code.png
Normal file
|
After Width: | Height: | Size: 859 B |
BIN
www/markitup/sets/textile/images/h1.png
Normal file
|
After Width: | Height: | Size: 276 B |
BIN
www/markitup/sets/textile/images/h2.png
Normal file
|
After Width: | Height: | Size: 304 B |
BIN
www/markitup/sets/textile/images/h3.png
Normal file
|
After Width: | Height: | Size: 306 B |
BIN
www/markitup/sets/textile/images/h4.png
Normal file
|
After Width: | Height: | Size: 293 B |
BIN
www/markitup/sets/textile/images/h5.png
Normal file
|
After Width: | Height: | Size: 304 B |
BIN
www/markitup/sets/textile/images/h6.png
Normal file
|
After Width: | Height: | Size: 310 B |
BIN
www/markitup/sets/textile/images/italic.png
Normal file
|
After Width: | Height: | Size: 223 B |
BIN
www/markitup/sets/textile/images/link.png
Normal file
|
After Width: | Height: | Size: 343 B |
BIN
www/markitup/sets/textile/images/list-bullet.png
Normal file
|
After Width: | Height: | Size: 344 B |
BIN
www/markitup/sets/textile/images/list-numeric.png
Normal file
|
After Width: | Height: | Size: 357 B |
BIN
www/markitup/sets/textile/images/paragraph.png
Normal file
|
After Width: | Height: | Size: 361 B |
BIN
www/markitup/sets/textile/images/picture.png
Normal file
|
After Width: | Height: | Size: 606 B |
BIN
www/markitup/sets/textile/images/preview.png
Normal file
|
After Width: | Height: | Size: 537 B |
BIN
www/markitup/sets/textile/images/quotes.png
Normal file
|
After Width: | Height: | Size: 743 B |
BIN
www/markitup/sets/textile/images/stroke.png
Normal file
|
After Width: | Height: | Size: 269 B |
40
www/markitup/sets/textile/set.js
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
// -------------------------------------------------------------------
|
||||
// markItUp!
|
||||
// -------------------------------------------------------------------
|
||||
// Copyright (C) 2008 Jay Salvat
|
||||
// http://markitup.jaysalvat.com/
|
||||
// -------------------------------------------------------------------
|
||||
// Textile tags example
|
||||
// http://en.wikipedia.org/wiki/Textile_(markup_language)
|
||||
// http://www.textism.com/
|
||||
// -------------------------------------------------------------------
|
||||
// Feel free to add more tags
|
||||
// -------------------------------------------------------------------
|
||||
mySettings = {
|
||||
previewParserPath: '', // path to your Textile parser
|
||||
onShiftEnter: {keepDefault:false, replaceWith:'\n\n'},
|
||||
markupSet: [
|
||||
{name:'Heading 1', key:'1', openWith:'h1(!(([![Class]!]))!). ', placeHolder:'Your title here...' },
|
||||
{name:'Heading 2', key:'2', openWith:'h2(!(([![Class]!]))!). ', placeHolder:'Your title here...' },
|
||||
{name:'Heading 3', key:'3', openWith:'h3(!(([![Class]!]))!). ', placeHolder:'Your title here...' },
|
||||
{name:'Heading 4', key:'4', openWith:'h4(!(([![Class]!]))!). ', placeHolder:'Your title here...' },
|
||||
{name:'Heading 5', key:'5', openWith:'h5(!(([![Class]!]))!). ', placeHolder:'Your title here...' },
|
||||
{name:'Heading 6', key:'6', openWith:'h6(!(([![Class]!]))!). ', placeHolder:'Your title here...' },
|
||||
{name:'Paragraph', key:'P', openWith:'p(!(([![Class]!]))!). '},
|
||||
{separator:'---------------' },
|
||||
{name:'Bold', key:'B', closeWith:'*', openWith:'*'},
|
||||
{name:'Italic', key:'I', closeWith:'_', openWith:'_'},
|
||||
{name:'Stroke through', key:'S', closeWith:'-', openWith:'-'},
|
||||
{separator:'---------------' },
|
||||
{name:'Bulleted list', openWith:'(!(* |!|*)!)'},
|
||||
{name:'Numeric list', openWith:'(!(# |!|#)!)'},
|
||||
{separator:'---------------' },
|
||||
{name:'Picture', replaceWith:'![![Source:!:http://]!]([![Alternative text]!])!'},
|
||||
{name:'Link', openWith:'"', closeWith:'([![Title]!])":[![Link:!:http://]!]', placeHolder:'Your text to link here...' },
|
||||
{separator:'---------------' },
|
||||
{name:'Quotes', openWith:'bq(!(([![Class]!]))!). '},
|
||||
{name:'Code', openWith:'@', closeWith:'@'}/*,
|
||||
{separator:'---------------' },
|
||||
{name:'Preview', call:'preview', className:'preview'}*/
|
||||
]
|
||||
}
|
||||
60
www/markitup/sets/textile/style.css
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
/* -------------------------------------------------------------------
|
||||
// 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/paragraph.png);
|
||||
}
|
||||
|
||||
.markItUp .markItUpButton8 a {
|
||||
background-image:url(images/bold.png);
|
||||
}
|
||||
.markItUp .markItUpButton9 a {
|
||||
background-image:url(images/italic.png);
|
||||
}
|
||||
.markItUp .markItUpButton10 a {
|
||||
background-image:url(images/stroke.png);
|
||||
}
|
||||
|
||||
.markItUp .markItUpButton11 a {
|
||||
background-image:url(images/list-bullet.png);
|
||||
}
|
||||
.markItUp .markItUpButton12 a {
|
||||
background-image:url(images/list-numeric.png);
|
||||
}
|
||||
|
||||
.markItUp .markItUpButton13 a {
|
||||
background-image:url(images/picture.png);
|
||||
}
|
||||
.markItUp .markItUpButton14 a {
|
||||
background-image:url(images/link.png);
|
||||
}
|
||||
|
||||
.markItUp .markItUpButton15 a {
|
||||
background-image:url(images/quotes.png);
|
||||
}
|
||||
.markItUp .markItUpButton16 a {
|
||||
background-image:url(images/code.png);
|
||||
}
|
||||
|
||||
.markItUp .preview a {
|
||||
background-image:url(images/preview.png);
|
||||
}
|
||||