annotate media/js/markitup/sets/default/set.js @ 271:4746df47a538

Follow on to last rev (r292) for #126. Missed updating a shoutbox template. Also the repoze.timeago package uses UTC time by default. Change this to local time for now until we decide to switch over to UTC for everything.
author Brian Neal <bgneal@gmail.com>
date Sun, 26 Sep 2010 17:42:00 +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 }