bgneal@312: // ---------------------------------------------------------------------------- bgneal@312: // markItUp! bgneal@312: // ---------------------------------------------------------------------------- bgneal@312: // Copyright (C) 2008 Jay Salvat bgneal@312: // http://markitup.jaysalvat.com/ bgneal@312: // ---------------------------------------------------------------------------- bgneal@312: // Html tags bgneal@312: // http://en.wikipedia.org/wiki/html bgneal@312: // ---------------------------------------------------------------------------- bgneal@312: // Basic set. Feel free to add more tags bgneal@312: // ---------------------------------------------------------------------------- bgneal@312: mySettings = { bgneal@312: onShiftEnter: {keepDefault:false, replaceWith:'<br />\n'}, bgneal@312: onCtrlEnter: {keepDefault:false, openWith:'\n<p>', closeWith:'</p>'}, bgneal@312: onTab: {keepDefault:false, replaceWith:' '}, bgneal@312: markupSet: [ bgneal@312: {name:'Bold', key:'B', openWith:'(!(<strong>|!|<b>)!)', closeWith:'(!(</strong>|!|</b>)!)' }, bgneal@312: {name:'Italic', key:'I', openWith:'(!(<em>|!|<i>)!)', closeWith:'(!(</em>|!|</i>)!)' }, bgneal@312: {name:'Stroke through', key:'S', openWith:'<del>', closeWith:'</del>' }, bgneal@312: {separator:'---------------' }, bgneal@312: {name:'Picture', key:'P', replaceWith:'<img src="[![Source:!:http://]!]" alt="[![Alternative text]!]" />' }, bgneal@312: {name:'Link', key:'L', openWith:'<a href="[![Link:!:http://]!]"(!( title="[![Title]!]")!)>', closeWith:'</a>', placeHolder:'Your text to link...' }, bgneal@312: {separator:'---------------' }, bgneal@312: {name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } }, bgneal@312: {name:'Preview', className:'preview', call:'preview'} bgneal@312: ] bgneal@312: }