annotate media/js/markitup/sets/default/set.js @ 96:93d9e74a471e

Forums: added forum post counts for each user in the user profile.
author Brian Neal <bgneal@gmail.com>
date Sun, 13 Sep 2009 18:43:08 +0000
parents dbd703f7d63a
children
rev   line source
gremmie@1 1 // ----------------------------------------------------------------------------
gremmie@1 2 // markItUp!
gremmie@1 3 // ----------------------------------------------------------------------------
gremmie@1 4 // Copyright (C) 2008 Jay Salvat
gremmie@1 5 // http://markitup.jaysalvat.com/
gremmie@1 6 // ----------------------------------------------------------------------------
gremmie@1 7 // Html tags
gremmie@1 8 // http://en.wikipedia.org/wiki/html
gremmie@1 9 // ----------------------------------------------------------------------------
gremmie@1 10 // Basic set. Feel free to add more tags
gremmie@1 11 // ----------------------------------------------------------------------------
gremmie@1 12 mySettings = {
gremmie@1 13 onShiftEnter: {keepDefault:false, replaceWith:'<br />\n'},
gremmie@1 14 onCtrlEnter: {keepDefault:false, openWith:'\n<p>', closeWith:'</p>'},
gremmie@1 15 onTab: {keepDefault:false, replaceWith:' '},
gremmie@1 16 markupSet: [
gremmie@1 17 {name:'Bold', key:'B', openWith:'(!(<strong>|!|<b>)!)', closeWith:'(!(</strong>|!|</b>)!)' },
gremmie@1 18 {name:'Italic', key:'I', openWith:'(!(<em>|!|<i>)!)', closeWith:'(!(</em>|!|</i>)!)' },
gremmie@1 19 {name:'Stroke through', key:'S', openWith:'<del>', closeWith:'</del>' },
gremmie@1 20 {separator:'---------------' },
gremmie@1 21 {name:'Picture', key:'P', replaceWith:'<img src="[![Source:!:http://]!]" alt="[![Alternative text]!]" />' },
gremmie@1 22 {name:'Link', key:'L', openWith:'<a href="[![Link:!:http://]!]"(!( title="[![Title]!]")!)>', closeWith:'</a>', placeHolder:'Your text to link...' },
gremmie@1 23 {separator:'---------------' },
gremmie@1 24 {name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } },
gremmie@1 25 {name:'Preview', className:'preview', call:'preview'}
gremmie@1 26 ]
gremmie@1 27 }