// ----------------------------------------------------------------------------
// 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:	'~/sets/bbcode/bbc_pars.php', // path to your BBCode parser
	markupSet: [
		{name:'Pogrubienie', key:'B', openWith:'[b]', closeWith:'[/b]'},
		{name:'Kursywa', key:'I', openWith:'[i]', closeWith:'[/i]'},
		{name:'Podkreślenie', key:'U', openWith:'[u]', closeWith:'[/u]'},
		{separator:'---------------' },
		{name:'Obrazek', key:'P', replaceWith:'[img][![Url]!][/img]'},
		{name:'Odnośnik', key:'L', openWith:'[url=[![Url]!]]', closeWith:'[/url]', placeHolder:'Nazwę wpisz odnośnika tutaj...'},
		{separator:'---------------' },
		{name:'Rozmiar tekstu', key:'S', openWith:'[size=[![Rozmiar tekstu]!]]', closeWith:'[/size]',
		dropMenu :[
			{name:'5', openWith:'[size=5]', closeWith:'[/size]' },
			{name:'10', openWith:'[size=10]', closeWith:'[/size]' },
			{name:'15', openWith:'[size=15]', closeWith:'[/size]' },
			{name:'20', openWith:'[size=20]', closeWith:'[/size]' },
			{name:'25', openWith:'[size=25]', closeWith:'[/size]' }
		]},
		{	name:'Kolory', className:'palette', dropMenu: [
			 	                              				{name:'Żółty',	openWith:'[color=#FCE94F]', closeWith:'[/color]', className:"col1-1" },
			 	                              				{name:'Żółty',	openWith:'[color=#EDD400]', closeWith:'[/color]', className:"col1-2" },
			 	                              				{name:'Żółty', openWith:'[color=#C4A000]', closeWith:'[/color]', className:"col1-3" },
			 	                              				
			 	                              				{name:'Pomarańczowy', openWith:'[color=#FCAF3E]', closeWith:'[/color]', className:"col2-1" },
			 	                              				{name:'Pomarańczowy', openWith:'[color=#F57900]', closeWith:'[/color]', className:"col2-2" },
			 	                              				{name:'Pomarańczowy', openWith:'[color=#CE5C00]', closeWith:'[/color]', className:"col2-3" },
			 	                              				
			 	                              				{name:'Pomarańczowy', 	openWith:'[color=#E9B96E]', closeWith:'[/color]', className:"col3-1" },
			 	                              				{name:'Pomarańczowy', 	openWith:'[color=#C17D11]', closeWith:'[/color]', className:"col3-2" },
			 	                              				{name:'Pomarańczowy',	openWith:'[color=#8F5902]', closeWith:'[/color]', className:"col3-3" },
			 	                              				
			 	                              				{name:'Zielony', 	openWith:'[color=#8AE234]', closeWith:'[/color]', className:"col4-1" },
			 	                              				{name:'Zielony', 	openWith:'[color=#73D216]', closeWith:'[/color]', className:"col4-2" },
			 	                              				{name:'Zielony',	openWith:'[color=#4E9A06]', closeWith:'[/color]', className:"col4-3" },
			 	                              				
			 	                              				{name:'Niebieski', 	openWith:'[color=#729FCF]', closeWith:'[/color]', className:"col5-1" },
			 	                              				{name:'Niebieski', 	openWith:'[color=#3465A4]', closeWith:'[/color]', className:"col5-2" },
			 	                              				{name:'Niebieski',	openWith:'[color=#204A87]', closeWith:'[/color]', className:"col5-3" },
			 	                              	
			 	                              				{name:'Fioletowy', openWith:'[color=#AD7FA8]', closeWith:'[/color]', className:"col6-1" },
			 	                              				{name:'Fioletowy', openWith:'[color=#75507B]', closeWith:'[/color]', className:"col6-2" },
			 	                              				{name:'Fioletowy',	openWith:'[color=#5C3566]', closeWith:'[/color]', className:"col6-3" },
			 	                              				
			 	                              				{name:'Czerwony', 	openWith:'[color=#EF2929]', closeWith:'[/color]', className:"col7-1" },
			 	                              				{name:'Czerwony', 	openWith:'[color=#CC0000]', closeWith:'[/color]', className:"col7-2" },
			 	                              				{name:'Czerwony',	openWith:'[color=#A40000]', closeWith:'[/color]', className:"col7-3" },
			 	                              				
			 	                              				{name:'Biały', 	openWith:'[color=#FFFFFF]', closeWith:'[/color]', className:"col8-1" },
			 	                              				{name:'Szary', 	openWith:'[color=#D3D7CF]', closeWith:'[/color]', className:"col8-2" },
			 	                              				{name:'Szary',	openWith:'[color=#BABDB6]', closeWith:'[/color]', className:"col8-3" },
			 	                              				
			 	                              				{name:'Szary', 	openWith:'[color=#888A85]', closeWith:'[/color]', className:"col9-1" },
			 	                              				{name:'Szary', 	openWith:'[color=#555753]', closeWith:'[/color]', className:"col9-2" },
			 	                              				{name:'Czarny',	openWith:'[color=#000000]', closeWith:'[/color]', className:"col9-3" }
			 	                              			]
			 	                              		},
		{separator:'---------------' },
		{name:'Lista punktowana', openWith:'[list]\n', closeWith:'\n[/list]'},
		{name:'Lista numeryczna', openWith:'[list=[![Liczba Startowa]!]]\n', closeWith:'\n[/list]'}, 
		{name:'Punkt Listy', openWith:'[*]'},
		{separator:'---------------' },
		{name:'Cytat', openWith:'[quote]', closeWith:'[/quote]'},
		{name:'Youtube', key:'y', replaceWith:'[youtube][![URL DO FILMIKU]!][/youtube]'},
		

		{separator:'---------------' },
		{name:'Czyszczenie z bbcode', className:"clean", replaceWith:function(markitup) { return markitup.selection.replace(/\[(.*?)\]/g, "") } },
		{name:'Podgląd', className:"preview", call:'preview' }
	]
}