// ----------------------------------------------------------------------------
// markItUp!
// ----------------------------------------------------------------------------
// Copyright (C) 2008 Jay Salvat
// http://markitup.jaysalvat.com/
// ----------------------------------------------------------------------------
mySettings = {
  nameSpace:          "bbcode", // Useful to prevent multi-instances CSS conflict
        onShiftEnter:   {keepDefault:false, replaceWith:'<br />\n'},
        onCtrlEnter:    {keepDefault:false, openWith:'\n<p>', closeWith:'</p>'},
        onTab:                  {keepDefault:false, replaceWith:'    '},
        previewInWindow:    	'width=610, height=300, resizable=yes, scrollbars=yes',
	previewParserPath:      '/markitup/preview.php',
//	previewTemplatePath:	'markitup/templates/preview.html',
  markupSet: [
      {name:'Wytłuszczenie', key:'B', openWith:'[b]', closeWith:'[/b]'}, 
      {name:'Kurysywa', key:'I', openWith:'[i]', closeWith:'[/i]'}, 
      {name:'Podkreślenie', key:'U', openWith:'[u]', closeWith:'[/u]'}, 
      {separator:'---------------' },
//      {name:'Picture', key:'P', replaceWith:'[img][![Url]!][/img]'}, 
      {name:'Link', key:'L', openWith:'[url=[![Url]!]]', closeWith:'[/url]', placeHolder:'Your text to link here...'},
      {separator:'---------------' },
      {name:'Kolory', openWith:'[color=[![Color]!]]', closeWith:'[/color]', dropMenu: [
          {name:'Yellow', openWith:'[color=yellow]', closeWith:'[/color]', className:"col1-1" },
          {name:'Orange', openWith:'[color=orange]', closeWith:'[/color]', className:"col1-2" },
          {name:'Red', openWith:'[color=red]', closeWith:'[/color]', className:"col1-3" },
          {name:'Blue', openWith:'[color=blue]', closeWith:'[/color]', className:"col2-1" },
          {name:'Purple', openWith:'[color=purple]', closeWith:'[/color]', className:"col2-2" },
          {name:'Green', openWith:'[color=green]', closeWith:'[/color]', className:"col2-3" },
          {name:'White', openWith:'[color=white]', closeWith:'[/color]', className:"col3-1" },
          {name:'Gray', openWith:'[color=gray]', closeWith:'[/color]', className:"col3-2" },
          {name:'Black', openWith:'[color=black]', closeWith:'[/color]', className:"col3-3" }
      ]},
//                {name:'Wielkość', key:'S', openWith:'[size=[![Text size]!]]', closeWith:'[/size]',
                {name:'Wielkość',
                dropMenu :[
                        {name:'Duże', openWith:'[big]', closeWith:'[/big]' },
                        {name:'Większe', openWith:'[big][big]', closeWith:'[/big][/big]' }
//                      {name:'Małe', openWith:'[small]', closeWith:'[/small]' }
      ]},
      {separator:'---------------' },
      {name:'Lista nienumerowana', openWith:'[list]\n', closeWith:'\n[/list]'}, 
      {name:'Lista numerowana', openWith:'[list=[![Starting number]!]]\n', closeWith:'\n[/list]'}, 
      {name:'Pozycja listy', openWith:'[*] '}, 
/*
      {separator:'---------------' },
      {name:'Quotes', openWith:'[quote]', closeWith:'[/quote]'}, 
      {name:'Code', openWith:'[code]', closeWith:'[/code]'}, 
*/
      {separator:'---------------' },
      {name:'Wyczyść kod', className:"clean", replaceWith:function(h) { return h.selection.replace(/\[(.*?)\]/g, "") } },
      {name:'Podgląd', className:"preview", call:'preview' }
   ]
}
