1 // ----------------------------------------------------------------------------
3 // ----------------------------------------------------------------------------
4 // Copyright (C) 2011 Jay Salvat
5 // http://markitup.jaysalvat.com/
6 // ----------------------------------------------------------------------------
8 // http://en.wikipedia.org/wiki/html
9 // ----------------------------------------------------------------------------
10 // Basic set. Feel free to add more tags
11 // ----------------------------------------------------------------------------
13 onShiftEnter: {keepDefault:true},
14 onCtrlEnter: {keepDefault:true},
15 onTab: {keepDefault:false, replaceWith:' '},
17 {name:'Bold', key:'B', openWith:'(!(<strong>|!|<b>)!)', closeWith:'(!(</strong>|!|</b>)!)' },
18 {name:'Italic', key:'I', openWith:'(!(<em>|!|<i>)!)', closeWith:'(!(</em>|!|</i>)!)' },
19 {name:'Stroke through', key:'S', openWith:'<del>', closeWith:'</del>' },
20 {separator:'---------------' },
21 {name:'Bulleted List', openWith:' <li>', closeWith:'</li>', multiline:true, openBlockWith:'<ul>\n', closeBlockWith:'\n</ul>'},
22 {name:'Numeric List', openWith:' <li>', closeWith:'</li>', multiline:true, openBlockWith:'<ol>\n', closeBlockWith:'\n</ol>'},
23 {separator:'---------------' },
24 {name:'Picture', key:'P', replaceWith:'<img src="[![Source:!:http://]!]" alt="[![Alternative text]!]" />' },
25 {name:'Link', key:'L', openWith:'<a href="[![Link:!:http://]!]"(!( title="[![Title]!]")!)>', closeWith:'</a>', placeHolder:'Your text to link...' },
26 {separator:'---------------' },
27 {name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } },
28 {name:'Preview', className:'preview', call:'preview'}