// ----------------------------------------------------------------------------
// 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>\n'},
	onTab:			{keepDefault:false, openWith:'	 '},
	markupSet: [
		{name:'Bold', className:'bold', key:'B', openWith:'<B>', closeWith:'</B>' },
		{name:'Italic', className:'italic', key:'I', openWith:'<I>', closeWith:'</I>' },
		{name:'Underline', className:'underline', key:'U', openWith:'<U>', closeWith:'</U>' },
		{separator:'---------------' },
		{name:'Ul', className:'list1', openWith:'<UL>\n', closeWith:'</UL>\n' },
		{name:'Ol', className:'list2', openWith:'<OL>\n', closeWith:'</OL>\n' },
		{name:'Li', className:'list_item', openWith:'<LI>', closeWith:'</LI>' },
		{separator:'---------------' },
		{name:'Left', className: 'left', openWith:'<P ALIGN="LEFT">\n', closeWith:'\n</P>', placeHolder:'Текст абзаца здесь...' },
		{name:'Center', className: 'center', openWith:'<P ALIGN="CENTER">\n', closeWith:'\n</P>', placeHolder:'Текст абзаца здесь...' },
		{name:'Right', className: 'right', openWith:'<P ALIGN="RIGTH">\n', closeWith:'\n</P>', placeHolder:'Текст абзаца здесь...' },
		{name:'Justify', className: 'justify', openWith:'<P ALIGN="JUSTIFY">\n', closeWith:'\n</P>', placeHolder:'Текст абзаца здесь...' },
		{separator:'---------------' },
		{name:'Picture', className: 'picture', key:'P', replaceWith:'<IMG SRC="[![Ссылка на картику:!:http://]!]">' },
		{name:'Link', className: 'link', key:'L', openWith:'<A HREF="[![Ссылка:!:http://]!]">', closeWith:'</A>', placeHolder:'Введите текст ссылки здесь...' },
		{separator:'---------------' },
		{name:'Colors', className:'palette', dropMenu: [
				{name:'Yellow',	openWith:'<FONT COLOR="#FCE94F">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col1-1" },
				{name:'Yellow',	openWith:'<FONT COLOR="#EDD400">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col1-2" },
				{name:'Yellow', openWith:'<FONT COLOR="#C4A000">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col1-3" },

				{name:'Orange', openWith:'<FONT COLOR="#FCAF3E">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col2-1" },
				{name:'Orange', openWith:'<FONT COLOR="#F57900">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col2-2" },
				{name:'Orange', openWith:'<FONT COLOR="#CE5C00">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col2-3" },

				{name:'Brown', 	openWith:'<FONT COLOR="#E9B96E">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col3-1" },
				{name:'Brown', 	openWith:'<FONT COLOR="#C17D11">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col3-2" },
				{name:'Brown',	openWith:'<FONT COLOR="#8F5902">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col3-3" },

				{name:'Green', 	openWith:'<FONT COLOR="#8AE234">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col4-1" },
				{name:'Green', 	openWith:'<FONT COLOR="#73D216">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col4-2" },
				{name:'Green',	openWith:'<FONT COLOR="#4E9A06">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col4-3" },

				{name:'Blue', 	openWith:'<FONT COLOR="#729FCF">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col5-1" },
				{name:'Blue', 	openWith:'<FONT COLOR="#3465A4">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col5-2" },
				{name:'Blue',	openWith:'<FONT COLOR="#204A87">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col5-3" },

				{name:'Purple', openWith:'<FONT COLOR="#AD7FA8">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col6-1" },
				{name:'Purple', openWith:'<FONT COLOR="#75507B">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col6-2" },
				{name:'Purple',	openWith:'<FONT COLOR="#5C3566">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col6-3" },

				{name:'Red', 	openWith:'<FONT COLOR="#EF2929">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col7-1" },
				{name:'Red', 	openWith:'<FONT COLOR="#CC0000">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col7-2" },
				{name:'Red',	openWith:'<FONT COLOR="#A40000">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col7-3" },

				{name:'Gray', 	openWith:'<FONT COLOR="#FFFFFF">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col8-1" },
				{name:'Gray', 	openWith:'<FONT COLOR="#D3D7CF">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col8-2" },
				{name:'Gray',	openWith:'<FONT COLOR="#BABDB6">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col8-3" },

				{name:'Gray', 	openWith:'<FONT COLOR="#888A85">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col9-1" },
				{name:'Gray', 	openWith:'<FONT COLOR="#555753">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col9-2" },
				{name:'Gray',	openWith:'<FONT COLOR="#000000">', closeWith:'</FONT>', placeHolder:'Введите окрашиваемый текст здесь...', className:"col9-3" }
			]
		},
		{name:'Size', className:'size', key:'S', openWith:'<FONT SIZE="[![Text size]!]"', closeWith:'</FONT>',
		dropMenu :[
			{name:'Мелкий', className:'size', openWith:'<FONT SIZE="1">', closeWith:'</FONT>', placeHolder:'Введите текст здесь...'},
			{name:'Нормальный', className:'size', openWith:'<FONT SIZE="2">', closeWith:'</FONT>', placeHolder:'Введите текст здесь...'},
			{name:'Средний', className:'size', openWith:'<FONT SIZE="3">', closeWith:'</FONT>', placeHolder:'Введите текст здесь...'},
			{name:'Увеличенный', className:'size', openWith:'<FONT SIZE="4">', closeWith:'</FONT>', placeHolder:'Введите текст здесь...'},
			{name:'Большой', className:'size', openWith:'<FONT SIZE="5">', closeWith:'</FONT>', placeHolder:'Введите текст здесь...'},
			{name:'Большущий', className:'size', openWith:'<FONT SIZE="6">', closeWith:'</FONT>', placeHolder:'Введите текст здесь...'},
			{name:'Огромный', className:'size', openWith:'<FONT SIZE="7">', closeWith:'</FONT>', placeHolder:'Введите текст здесь...'},
		]},
		{separator:'---------------' },
		{name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } },
		{name:'Preview', className:'preview', call:'preview' }
	]
}
