// ----------------------------------------------------------------------------
// markItUp!
// ----------------------------------------------------------------------------
// Copyright (C) 2008 Jay Salvat
// http://markitup.jaysalvat.com/
// ----------------------------------------------------------------------------
// BBCode tags example
// http://en.wikipedia.org/wiki/Bbcode
// ----------------------------------------------------------------------------
// Feel free to add more tags
// ----------------------------------------------------------------------------
mySettings = {
	previewParserPath:	'', // path to your BBCode parser
	markupSet: [
		{name:'Bold', key:'B', openWith:'[b]', closeWith:'[/b]'},
		{name:'Italic', key:'I', openWith:'[i]', closeWith:'[/i]'},
		{name:'Underline', key:'U', openWith:'[u]', closeWith:'[/u]'},
		{name:'Stroke', key:'S', openWith:'[s]', closeWith:'[/s]'},
		{separator:'---------------' },
		{name:'Picture', key:'P', replaceWith:'[img][![Url]!][/img]',
		dropMenu :[
			{name:'Float left', replaceWith:'[img=fleft][![Url]!][/img]' },
			{name:'Float right', replaceWith:'[img=fright][![Url]!][/img]' },
		]},
		{name:'Link', key:'L', openWith:'[url=[![Url]!]]', closeWith:'[/url]', placeHolder:'Your text to link here...'},
		{separator:'---------------' },
		{name:'Bulleted list', openWith:'[ul]\n', closeWith:'\n[/ul]'},
		{name:'Numeric list', openWith:'[ol]\n', closeWith:'\n[/ol]'}, 
		{name:'List item', openWith:'[li]\n' , closeWith:'\n[/li]'},
		{separator:'---------------' },
		{name:'Span', openWith:'[span=[![Span class]!]]', closeWith:'[/span]',
		dropMenu :[
			{name:'Boxed', openWith:'[span=boxed]', closeWith:'[/span]' },
		]},
		{name:'Div', openWith:'[div=[![Div class]!]]', closeWith:'[/div]',
		dropMenu :[
			{name:'Boxed', openWith:'[div=boxed]', closeWith:'[/div]' },
		]},
		{separator:'---------------' },
		{name:'Clean', className:"clean", replaceWith:function(markitup) { return markitup.selection.replace(/\[(.*?)\]/g, "") } },
	]
}