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:'
\n'}, bgneal@312: onCtrlEnter: {keepDefault:false, openWith:'\n

', closeWith:'

'}, bgneal@312: onTab: {keepDefault:false, replaceWith:' '}, bgneal@312: markupSet: [ bgneal@312: {name:'Bold', key:'B', openWith:'(!(|!|)!)', closeWith:'(!(|!|)!)' }, bgneal@312: {name:'Italic', key:'I', openWith:'(!(|!|)!)', closeWith:'(!(|!|)!)' }, bgneal@312: {name:'Stroke through', key:'S', openWith:'', closeWith:'' }, bgneal@312: {separator:'---------------' }, bgneal@312: {name:'Picture', key:'P', replaceWith:'[![Alternative text]!]' }, bgneal@312: {name:'Link', key:'L', openWith:'', closeWith:'', 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: }