comparison static/js/markitup/sets/default/set.js @ 466:c78c6e007e61

Upgrading to markitup version 1.1.11. This fixes #226.
author Brian Neal <bgneal@gmail.com>
date Sun, 24 Jul 2011 02:35:17 +0000
parents 88b2b9cb8c1f
children
comparison
equal deleted inserted replaced
465:79d454ff2de0 466:c78c6e007e61
1 // ---------------------------------------------------------------------------- 1 // ----------------------------------------------------------------------------
2 // markItUp! 2 // markItUp!
3 // ---------------------------------------------------------------------------- 3 // ----------------------------------------------------------------------------
4 // Copyright (C) 2008 Jay Salvat 4 // Copyright (C) 2011 Jay Salvat
5 // http://markitup.jaysalvat.com/ 5 // http://markitup.jaysalvat.com/
6 // ---------------------------------------------------------------------------- 6 // ----------------------------------------------------------------------------
7 // Html tags 7 // Html tags
8 // http://en.wikipedia.org/wiki/html 8 // http://en.wikipedia.org/wiki/html
9 // ---------------------------------------------------------------------------- 9 // ----------------------------------------------------------------------------
10 // Basic set. Feel free to add more tags 10 // Basic set. Feel free to add more tags
11 // ---------------------------------------------------------------------------- 11 // ----------------------------------------------------------------------------
12 mySettings = { 12 var mySettings = {
13 onShiftEnter: {keepDefault:false, replaceWith:'<br />\n'}, 13 onShiftEnter: {keepDefault:false, replaceWith:'<br />\n'},
14 onCtrlEnter: {keepDefault:false, openWith:'\n<p>', closeWith:'</p>'}, 14 onCtrlEnter: {keepDefault:false, openWith:'\n<p>', closeWith:'</p>'},
15 onTab: {keepDefault:false, replaceWith:' '}, 15 onTab: {keepDefault:false, replaceWith:' '},
16 markupSet: [ 16 markupSet: [
17 {name:'Bold', key:'B', openWith:'(!(<strong>|!|<b>)!)', closeWith:'(!(</strong>|!|</b>)!)' }, 17 {name:'Bold', key:'B', openWith:'(!(<strong>|!|<b>)!)', closeWith:'(!(</strong>|!|</b>)!)' },
18 {name:'Italic', key:'I', openWith:'(!(<em>|!|<i>)!)', closeWith:'(!(</em>|!|</i>)!)' }, 18 {name:'Italic', key:'I', openWith:'(!(<em>|!|<i>)!)', closeWith:'(!(</em>|!|</i>)!)' },
19 {name:'Stroke through', key:'S', openWith:'<del>', closeWith:'</del>' }, 19 {name:'Stroke through', key:'S', openWith:'<del>', closeWith:'</del>' },
20 {separator:'---------------' }, 20 {separator:'---------------' },
21 {name:'Bulleted List', openWith:' <li>', closeWith:'</li>', multiline:true, openBlockWith:'<ul>\n', closeBlockWith:'\n</ul>'},
22 {name:'Numeric List', openWith:' <li>', closeWith:'</li>', multiline:true, openBlockWith:'<ol>\n', closeBlockWith:'\n</ol>'},
23 {separator:'---------------' },
21 {name:'Picture', key:'P', replaceWith:'<img src="[![Source:!:http://]!]" alt="[![Alternative text]!]" />' }, 24 {name:'Picture', key:'P', replaceWith:'<img src="[![Source:!:http://]!]" alt="[![Alternative text]!]" />' },
22 {name:'Link', key:'L', openWith:'<a href="[![Link:!:http://]!]"(!( title="[![Title]!]")!)>', closeWith:'</a>', placeHolder:'Your text to link...' }, 25 {name:'Link', key:'L', openWith:'<a href="[![Link:!:http://]!]"(!( title="[![Title]!]")!)>', closeWith:'</a>', placeHolder:'Your text to link...' },
23 {separator:'---------------' }, 26 {separator:'---------------' },
24 {name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } }, 27 {name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } },
25 {name:'Preview', className:'preview', call:'preview'} 28 {name:'Preview', className:'preview', call:'preview'}