gremmie@1: // ---------------------------------------------------------------------------- gremmie@1: // markItUp! gremmie@1: // ---------------------------------------------------------------------------- gremmie@1: // Copyright (C) 2008 Jay Salvat gremmie@1: // http://markitup.jaysalvat.com/ gremmie@1: // ---------------------------------------------------------------------------- gremmie@1: // Html tags gremmie@1: // http://en.wikipedia.org/wiki/html gremmie@1: // ---------------------------------------------------------------------------- gremmie@1: // Basic set. Feel free to add more tags gremmie@1: // ---------------------------------------------------------------------------- gremmie@1: mySettings = { gremmie@1: onShiftEnter: {keepDefault:false, replaceWith:'
\n'}, gremmie@1: onCtrlEnter: {keepDefault:false, openWith:'\n

', closeWith:'

'}, gremmie@1: onTab: {keepDefault:false, replaceWith:' '}, gremmie@1: markupSet: [ gremmie@1: {name:'Bold', key:'B', openWith:'(!(|!|)!)', closeWith:'(!(|!|)!)' }, gremmie@1: {name:'Italic', key:'I', openWith:'(!(|!|)!)', closeWith:'(!(|!|)!)' }, gremmie@1: {name:'Stroke through', key:'S', openWith:'', closeWith:'' }, gremmie@1: {separator:'---------------' }, gremmie@1: {name:'Picture', key:'P', replaceWith:'[![Alternative text]!]' }, gremmie@1: {name:'Link', key:'L', openWith:'', closeWith:'', placeHolder:'Your text to link...' }, gremmie@1: {separator:'---------------' }, gremmie@1: {name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } }, gremmie@1: {name:'Preview', className:'preview', call:'preview'} gremmie@1: ] gremmie@1: }