// ---------------------------------------------------------------------------- // markItUp! // ---------------------------------------------------------------------------- // Copyright (C) 2008 Jay Salvat // http://markitup.jaysalvat.com/ // ---------------------------------------------------------------------------- // Html tags // http://en.wikipedia.org/wiki/html // ---------------------------------------------------------------------------- // Basic set. Feel free to add more tags // ---------------------------------------------------------------------------- mySettings = { onShiftEnter: {keepDefault:false, replaceWith:'\n'}, // onCtrlEnter: {keepDefault:false, openWith:'\n

', closeWith:'

'}, onTab: {keepDefault:false, replaceWith:' '}, previewInWindow: 'width=640, height=300, resizable=yes, scrollbars=yes', previewTemplatePath: '/publib/markItUp/markitup/templates/preview.php', previewParserPath: '/publib/markItUp/markitup/templates/preview.php', afterInsert:function(h) { // h.hide(); // alert( h.className ); return true; }, markupSet: [ {name:'Bold', key:'B', openWith:'(!([strong]|!|[b])!)', closeWith:'(!([/strong]|!|[/b])!)' }, {name:'Italic', key:'I', openWith:'(!([em]|!|[i])!)', closeWith:'(!([/em]|!|[/i])!)' }, {name:'Stroke through', key:'S', openWith:'[strike]', closeWith:'[/strike]' }, // { name:'Smile', // className:'Smile', // dropMenu: [ // ] // }, {separator:'---------------' }, {name:'Picture', key:'P', replaceWith:'[img=[![Source:!:http://]!] ]' }, {separator:'---------------' }, // {name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } }, {name:'Sm', className:'Smicon', replaceWith:function() { $('#emoticons').fadeIn(300); return; } }, {name:'Preview', className:'preview', call:'preview'} ] }