diff -r 000000000000 -r 40c8f766c9b8 src/cm/media/js/lib/markitup/markup/html/set.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cm/media/js/lib/markitup/markup/html/set.js Mon Nov 23 15:14:29 2009 +0100 @@ -0,0 +1,39 @@ +// ---------------------------------------------------------------------------- +// markItUp! +// ---------------------------------------------------------------------------- +// Copyright (C) 2008 Jay Salvat +// http://markitup.jaysalvat.com/ +// ---------------------------------------------------------------------------- +// Html tags +// http://en.wikipedia.org/wiki/html +// ---------------------------------------------------------------------------- +// Basic set. Feel free to add more tags +// ---------------------------------------------------------------------------- +mySettings = { + onShiftEnter: {keepDefault:false, replaceWith:'
\n'}, + onCtrlEnter: {keepDefault:false, openWith:'\n

', closeWith:'

\n'}, + onTab: {keepDefault:false, openWith:' '}, + markupSet: [ + {name:'Heading 1', key:'1', openWith:'', closeWith:'', placeHolder:'Your title here...' }, + {name:'Heading 2', key:'2', openWith:'', closeWith:'', placeHolder:'Your title here...' }, + {name:'Heading 3', key:'3', openWith:'', closeWith:'', placeHolder:'Your title here...' }, + {name:'Heading 4', key:'4', openWith:'', closeWith:'', placeHolder:'Your title here...' }, + {name:'Heading 5', key:'5', openWith:'', closeWith:'', placeHolder:'Your title here...' }, + {name:'Heading 6', key:'6', openWith:'', closeWith:'', placeHolder:'Your title here...' }, + {name:'Paragraph', openWith:'', closeWith:'

' }, + {separator:'---------------' }, + {name:'Bold', key:'B', openWith:'(!(|!|)!)', closeWith:'(!(|!|)!)' }, + {name:'Italic', key:'I', openWith:'(!(|!|)!)', closeWith:'(!(|!|)!)' }, + {name:'Stroke through', key:'S', openWith:'', closeWith:'' }, + {separator:'---------------' }, + {name:'Ul', openWith:'
    \n', closeWith:'
\n' }, + {name:'Ol', openWith:'
    \n', closeWith:'
\n' }, + {name:'Li', openWith:'
  • ', closeWith:'
  • ' }, + {separator:'---------------' }, + {name:'Picture', key:'P', replaceWith:'[![Alternative text]!]' }, + {name:'Link', key:'L', openWith:'', closeWith:'', placeHolder:'Your text to link...' }, + {separator:'---------------' }, + {name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } }, + {name:'Preview', className:'preview', call:'preview' } + ] +} \ No newline at end of file