// ----------------------------------------------------------------------------
// 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 = {
	nameSpace:          "bbcode", 
	markupSet: [
		{name:'', key:'B', openWith:'[b]', closeWith:'[/b]'},
		{name:'', key:'I', openWith:'[i]', closeWith:'[/i]'},
		{name:'', key:'U', openWith:'[u]', closeWith:'[/u]'},
		{separator:'---------------' },
		//{name:'', key:'P', replaceWith:'[img][![Url]!][/img]'}, 
		{name:'', key:'L', openWith:'[url=[![Url]!]]', closeWith:'[/url]', placeHolder:'Twój tekst do linku...'},
		{separator:'---------------' },
		{name:'', key:'S', 
		dropMenu :[
			{name:'Duży', openWith:'[size200]', closeWith:'[/size]' },
			{name:'Średni', openWith:'[size150]', closeWith:'[/size]' },
			{name:'Mały', openWith:'[size75]', closeWith:'[/size]' }
		]},
		 
		{name:'', openWith:'[list=[![Pierwszy numer]!]]\n', closeWith:'\n[/list]'}, 
		{name:'', openWith:'[list]\n', closeWith:'\n[/list]'}, 
		{name:'', openWith:'[li] ', closeWith:'[/li]'},
 
		{name:'', openWith:'[quote]', closeWith:'[/quote]'},
	
		{name:'', className:"clean", replaceWith:function(markitup) { return markitup.selection.replace(/\[(.*?)\]/g, "") } }
	]
	// ,
	// extInsert: $('.insert'),
	// afterInsert:function(h) {
   // alert(h.caretPosition);
// },
// Insert: function() { 
// alert('insert');
// }
				
				  
}
