annotate static/js/markitup/sets/default/set.js @ 339:b871892264f2

Adding the sg101 IRC bot code to SVN. This code is pretty rough and needs love, but it gets the job done (one of my first Python apps). This fixes #150.
author Brian Neal <bgneal@gmail.com>
date Sat, 26 Feb 2011 21:27:49 +0000
parents 88b2b9cb8c1f
children c78c6e007e61
rev   line source
bgneal@312 1 // ----------------------------------------------------------------------------
bgneal@312 2 // markItUp!
bgneal@312 3 // ----------------------------------------------------------------------------
bgneal@312 4 // Copyright (C) 2008 Jay Salvat
bgneal@312 5 // http://markitup.jaysalvat.com/
bgneal@312 6 // ----------------------------------------------------------------------------
bgneal@312 7 // Html tags
bgneal@312 8 // http://en.wikipedia.org/wiki/html
bgneal@312 9 // ----------------------------------------------------------------------------
bgneal@312 10 // Basic set. Feel free to add more tags
bgneal@312 11 // ----------------------------------------------------------------------------
bgneal@312 12 mySettings = {
bgneal@312 13 onShiftEnter: {keepDefault:false, replaceWith:'<br />\n'},
bgneal@312 14 onCtrlEnter: {keepDefault:false, openWith:'\n<p>', closeWith:'</p>'},
bgneal@312 15 onTab: {keepDefault:false, replaceWith:' '},
bgneal@312 16 markupSet: [
bgneal@312 17 {name:'Bold', key:'B', openWith:'(!(<strong>|!|<b>)!)', closeWith:'(!(</strong>|!|</b>)!)' },
bgneal@312 18 {name:'Italic', key:'I', openWith:'(!(<em>|!|<i>)!)', closeWith:'(!(</em>|!|</i>)!)' },
bgneal@312 19 {name:'Stroke through', key:'S', openWith:'<del>', closeWith:'</del>' },
bgneal@312 20 {separator:'---------------' },
bgneal@312 21 {name:'Picture', key:'P', replaceWith:'<img src="[![Source:!:http://]!]" alt="[![Alternative text]!]" />' },
bgneal@312 22 {name:'Link', key:'L', openWith:'<a href="[![Link:!:http://]!]"(!( title="[![Title]!]")!)>', closeWith:'</a>', placeHolder:'Your text to link...' },
bgneal@312 23 {separator:'---------------' },
bgneal@312 24 {name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } },
bgneal@312 25 {name:'Preview', className:'preview', call:'preview'}
bgneal@312 26 ]
bgneal@312 27 }