// ----------------------------------------------------------------------------
// markItUp!
// ----------------------------------------------------------------------------
// Copyright (C) 2007 Jay Salvat
// http://markitup.jaysalvat.com/
// ----------------------------------------------------------------------------
// Html tags
// http://en.wikipedia.org/wiki/html
// ----------------------------------------------------------------------------
// Basic set. Feel free to add more tags
// ----------------------------------------------------------------------------

//$("whatever").markItUp( { name:"Image", replaceWith:"<img src="myImage.png"/>" } )


mySettings = {	
			onEnter:   		{ replaceWith:'\n'},
			onShiftEnter:  	{keepDefault:false, replaceWith:'<br />\n'},
			onCtrlEnter:  	{keepDefault:false, openWith:'\n<p>', closeWith:'</p>'},
			onTab:    		{keepDefault:false, openWith:'     ', placeHolder:''},
			markupSet:  
			[ 
			{name:'Bold', key:'B', openWith:'(!(<strong>|!|<b>)!)', closeWith:'(!(</strong>|!|</b>)!)' },
			{name:'Italic', key:'I', openWith:'(!(<em>|!|<i>)!)', closeWith:'(!(</em>|!|</i>)!)'  },
			{name:'Underline', key:'U', openWith:'<u>', closeWith:'</u>' },
			{name:'Stroke through', key:'S', openWith:'<del>', closeWith:'</del>' },
			{name:'Link', key:'L', openWith:'<a href="[![Link:!:http://]!]"(!( title="[![Title]!]")!)>', closeWith:'</a>', placeHolder:'Your text to link...' },			

//			{name:'Picture', key:'P', replaceWith:function(){window.open('http://localdialogue.net/cm/index.php?S=0&C=publish&M=file_upload_form&field_group=5&Z=1', '_blank', 'width=400,height=600');return false;} },

			{name:'Upload', key:'F'},
			
			{name:'Preview', className:'preview', call:'preview' }
//			{name:'Preview2', className:'preview', call:'preview2' }									

						]
	}

