// Funkce tlačítek
Texyla.prototype.buttons = {
	h1: function() {this.texy.heading('#');},
	h2: function() {this.texy.heading('*');},
	h3: function() {this.texy.heading('=');},
	h4: function() {this.texy.heading('-');},
	bold: function() {this.texy.bold();},
	italic: function() {this.texy.italic();},
	del: function() {this.texy.phrase('--');},
	center: function() {this.texy.align('<>');},
	left: function() {this.texy.align('<');},
	right: function() {this.texy.align('>');},
	justify: function() {this.texy.align('=');},
	ul: function() {this.texy.list('ul');},
	ol: function() {this.texy.list('ol');},
	olRomans: function() {this.texy.list('romans');},
	olRomansSmall: function() {this.texy.list('smallRomans');},
	olAlphabetSmall: function() {this.texy.list('smallAlphabet');},
	olAlphabetBig: function() {this.texy.list('bigAlphabet');},
	blockquote: function() {this.texy.list('bq');},
	indent: function() {this.texy.indent();},
	unindent: function() {this.texy.unindent();},
	sub: function() {this.texy.phrase('__');},
	sup: function() {this.texy.phrase('^^');},
	link: function() {this.texy.link(prompt(this.lng.linkUrl, 'http://'));},
	acronym: function() {this.texy.acronym(prompt(this.lng.acronymTitle, ''));},
	hr: function() {this.texy.line();},
	code: function() {this.texy.block('code');},
	codeHtml: function() {this.texy.block('code html');},
	codeCss: function() {this.texy.block('code css');},
	codeJs: function() {this.texy.block('code js');},
	codePhp: function() {this.texy.block('code php');},
	codeSql: function() {this.texy.block('code sql');},
	codeInline: function() {this.texy.phrase('`');},
	html: function() {this.texy.block('html');},
	notexy: function() {this.texy.phrase("''", "''");},
	web: function() {window.open('http://texyla.janmarek.net/');},
	syntax: function() {window.open(this.lng.syntaxUrl);},
	div: function() {this.texy.block('div');},
	comment: function() {this.texy.block('comment');},
	text: function() {this.texy.block('text');},
	preview: function () {this.view("preview");},
	htmlPreview: function () {this.view("htmlPreview");},
	edit: function () {this.view("edit");},
	submit: function () {this.submit();}
};

