// ------------------------------------------------------------------- // markItUp! // ------------------------------------------------------------------- // Copyright (C) 2008 Jay Salvat // http://markitup.jaysalvat.com/ // ------------------------------------------------------------------- // Mediawiki Wiki tags example // ------------------------------------------------------------------- // Feel free to add more tags // ------------------------------------------------------------------- myWikiSettings = { previewParserPath: '', // path to your Wiki parser onShiftEnter: {keepDefault:false, replaceWith:'\n\n'}, markupSet: [ {name:'Heading 1', key:'1', openWith:'== ', closeWith:' ==', placeHolder:'Your title here...' }, {name:'Heading 2', key:'2', openWith:'=== ', closeWith:' ===', placeHolder:'Your title here...' }, {name:'Heading 3', key:'3', openWith:'==== ', closeWith:' ====', placeHolder:'Your title here...' }, {name:'Heading 4', key:'4', openWith:'===== ', closeWith:' =====', placeHolder:'Your title here...' }, {name:'Heading 5', key:'5', openWith:'====== ', closeWith:' ======', placeHolder:'Your title here...' }, {separator:'---------------' }, {name:'Bold', key:'B', openWith:"'''", closeWith:"'''"}, {name:'Italic', key:'I', openWith:"''", closeWith:"''"}, {name:'Stroke through', key:'S', openWith:'', closeWith:''}, {separator:'---------------' }, {name:'Bulleted list', openWith:'(!(* |!|*)!)'}, {name:'Numeric list', openWith:'(!(# |!|#)!)'}, {separator:'---------------' }, {name:'Picture', key:"P", replaceWith:'[[Image:[![Url:!:http://]!]|[![name]!]]]'}, {name:'Link', key:"L", openWith:"[[![Link]!] ", closeWith:']', placeHolder:'Your text to link here...' }, {name:'Url', openWith:"[[![Url:!:http://]!] ", closeWith:']', placeHolder:'Your text to link here...' }, {separator:'---------------' }, {name:'Quotes', openWith:'(!(> |!|>)!)', placeHolder:''}, {name:'Code', openWith:'(!(|!|
)!)', closeWith:'(!(|!|
)!)'}, {separator:'---------------' }, {name:'Preview', call:'preview', className:'preview'} ] }