annotate static/js/markitup/sets/default/set.js @ 693:ad69236e8501

For issue #52, update many 3rd party Javascript libraries. Updated to jquery 1.10.2, jquery ui 1.10.3. This broke a lot of stuff. - Found a newer version of the jquery cycle all plugin (3.0.3). - Updated JPlayer to 2.4.0. - Updated to MarkItUp 1.1.14. This also required me to add multiline attributes set to true on various buttons in the markdown set. - As per a stackoverflow post, added some code to get multiline titles in a jQuery UI dialog. They removed that functionality but allow you to put it back. Tweaked the MarkItUp preview CSS to show blockquotes in italic. Did not update TinyMCE at this time. I'm not using the JQuery version and this version appears to work ok for now. What I should do is make a repo for MarkItUp and do a vendor branch thing so I don't have to futz around diffing directories to figure out if I'll lose changes when I update.
author Brian Neal <bgneal@gmail.com>
date Wed, 04 Sep 2013 19:55:20 -0500
parents c78c6e007e61
children
rev   line source
bgneal@312 1 // ----------------------------------------------------------------------------
bgneal@312 2 // markItUp!
bgneal@312 3 // ----------------------------------------------------------------------------
bgneal@466 4 // Copyright (C) 2011 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@466 12 var 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@466 21 {name:'Bulleted List', openWith:' <li>', closeWith:'</li>', multiline:true, openBlockWith:'<ul>\n', closeBlockWith:'\n</ul>'},
bgneal@466 22 {name:'Numeric List', openWith:' <li>', closeWith:'</li>', multiline:true, openBlockWith:'<ol>\n', closeBlockWith:'\n</ol>'},
bgneal@466 23 {separator:'---------------' },
bgneal@312 24 {name:'Picture', key:'P', replaceWith:'<img src="[![Source:!:http://]!]" alt="[![Alternative text]!]" />' },
bgneal@312 25 {name:'Link', key:'L', openWith:'<a href="[![Link:!:http://]!]"(!( title="[![Title]!]")!)>', closeWith:'</a>', placeHolder:'Your text to link...' },
bgneal@312 26 {separator:'---------------' },
bgneal@312 27 {name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } },
bgneal@312 28 {name:'Preview', className:'preview', call:'preview'}
bgneal@312 29 ]
bgneal@466 30 }