// ----------------------------------------------------------------------------
// markItUp!
// ----------------------------------------------------------------------------
// Copyright (C) 2008 Jay Salvat
// http://markitup.jaysalvat.com/
// ----------------------------------------------------------------------------
// Html tags
// http://en.wikipedia.org/wiki/html
// ----------------------------------------------------------------------------
// Basic set. Feel free to add more tags
// ----------------------------------------------------------------------------
mySettings = {	
	onShiftEnter:  	{keepDefault:false, replaceWith:'<br />\n'},
	onCtrlEnter:  	{keepDefault:false, openWith:'\n<p>', closeWith:'</p>'},
	onTab:    		{keepDefault:false, replaceWith:'    '},
	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>' },
		{separator:'---------------' },
		{name:'Ul', openWith:'<ul>\n', closeWith:'</ul>\n' },
		{name:'LI', openWith:'<li>', closeWith:'</li>' },
		{separator:'---------------' },
		{name:'Picture', key:'P', replaceWith:'<img src="[![Source:!:http://]!]" alt="[![Alternative text]!]" />' },
		{name:'Link', key:'L', openWith:'<a href="[![Lien du site:!:http://]!]"(!( title="[![Title]!]")!)>', closeWith:'</a>', placeHolder:'Nom du lien' },
		{separator:'---------------' },
		{name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } },		
		{name:'Preview', className:'preview',  call:'preview'},
		{name:'Colors', 
			className:'colors', 
			openWith:'[color=[![Color]!]]', 
			closeWith:'[/color]', 
				dropMenu: [
					{name:'Rouge1',	openWith:'<font color="#ff0000">', 	closeWith:'</font>', className:"col1-1" },
					{name:'Rouge2',	openWith:'<font color="#990000">', 	closeWith:'</font>', className:"col1-2" },
					{name:'Rouge3', openWith:'<font color="#D67C7C">', 	closeWith:'</font>', className:"col1-3" },
					
					{name:'Rose1', 	openWith:'<font color="#F505BB">', 	closeWith:'</font>', className:"col2-1" },
					{name:'Rose2',  openWith:'<font color="#F771E5">', 	closeWith:'</font>', className:"col2-2" },
					{name:'Rose3', 	openWith:'<font color="#F505BB">', 	closeWith:'</font>', className:"col2-3" },
					
					{name:'Vio1', 	openWith:'<font color="#8F3982">', 	closeWith:'</font>', className:"col3-1" },
					{name:'Vio2', 	openWith:'<font color="#632E5C">', 	closeWith:'</font>', className:"col3-2" },
					{name:'Vio3',	openWith:'<font color="#C703F7">', 	closeWith:'</font>', className:"col3-3" },
					
					{name:'Bleu1', 	openWith:'<font color="#3803F7">', 	closeWith:'</font>', className:"col4-1" },
					{name:'Bleu2', 	openWith:'<font color="#1C0F94">', 	closeWith:'</font>', className:"col4-2" },
					{name:'Bleu3',	openWith:'<font color="#9F98E3">', 	closeWith:'</font>', className:"col4-3" },
					
					{name:'Bleu4', 	openWith:'<font color="#98C0E3">', 	closeWith:'</font>', className:"col9-1" },
					{name:'Bleu5', 	openWith:'<font color="#088AF7">', 	closeWith:'</font>', className:"col9-2" },
					{name:'Bleu6',	openWith:'<font color="#105B63">', 	closeWith:'</font>', className:"col9-3" },
					
					{name:'Vert1', 	openWith:'<font color="#106353">', 	closeWith:'</font>', className:"col5-1" },
					{name:'Vert2', 	openWith:'<font color="#1EF505">', 	closeWith:'</font>', className:"col5-2" },
					{name:'Vert3',	openWith:'<font color="#147509">', 	closeWith:'</font>', className:"col5-3" },
					
					{name:'Jaune1', openWith:'<font color="#FAF008">', 	closeWith:'</font>', className:"col6-1" },
					{name:'Jaune2', openWith:'<font color="#FAF584">', 	closeWith:'</font>', className:"col6-2" },
					{name:'Orange1',openWith:'<font color="#FA7903">', 	closeWith:'</font>', className:"col6-3" },
					
					{name:'Orange2', openWith:'<font color="#ED5F07">', closeWith:'</font>', className:"col7-1" },
					{name:'Marron1', openWith:'<font color="#69280D">', closeWith:'</font>', className:"col7-2" },
					{name:'Marron2', openWith:'<font color="#753215">', closeWith:'</font>', className:"col7-3" },
					
					{name:'Gris1', 	openWith:'<font color="#706C6A">', closeWith:'</font>', className:"col8-1" },
					{name:'Gris2', 	openWith:'<font color="#454342">', closeWith:'</font>', className:"col8-2" },
					{name:'Noir', 	openWith:'<font color="#000000">', closeWith:'</font>', className:"col8-3" },
				]
		}
	]
}
