bgneal@312: // ---------------------------------------------------------------------------- bgneal@312: // markItUp! bgneal@312: // ---------------------------------------------------------------------------- bgneal@466: // Copyright (C) 2011 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@466: var 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@466: {name:'Bulleted List', openWith:'
  • ', closeWith:'
  • ', multiline:true, openBlockWith:''}, bgneal@466: {name:'Numeric List', openWith:'
  • ', closeWith:'
  • ', multiline:true, openBlockWith:'
      \n', closeBlockWith:'\n
    '}, bgneal@466: {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@466: }