editor.path="/sites/all/modules/bueditor/";editor.buttons=[ [ "Insertar/editar enlace", "js:\nvar B = eDefBrowseButton(\'\', \'attr_href\', \'Browse\', \'link\');\nvar form = [\n {name: \'href\', title: \'URL:\', suffix: B},\n {name: \'title\', title: \'Título:\'}\n];\neDefTagDialog(\'a\', form, \'Insertar/editar enlace\', \'OK\');\n", "link.gif", "L" ], [ "Insertar/editar imagen", "js:\nvar B = eDefBrowseButton(\'\', \'attr_src\', \'Browse\', \'image\');\nvar form = [\n {name: \'src\', title: \'URL de imagen:\', suffix: B},\n {name: \'width\', title: \'Ancho x Alto:\', suffix: \' x \', getnext: true, attributes: {size: 3}},\n {name: \'height\', attributes: {size: 3}},\n {name: \'alt\', title: \'Texto alternativo:\'}\n];\neDefTagDialog(\'img\', form, \'Insertar/editar imagen\', \'OK\');\n", "image.gif", "M" ], [ "Italic", "\x3cem\x3e%TEXT%\x3c/em\x3e", "italic_es.gif", "I" ], [ "Negrita", "\x3cstrong\x3e%TEXT%\x3c/strong\x3e", "bold_es.gif", "B" ], [ "Lista no numerada", "js: eDefSelProcessLines(\'\x3cul\x3e\\n\', \' \x3cli\x3e\', \'\x3c/li\x3e\', \'\\n\x3c/ul\x3e\');", "bullist.gif", "U" ], [ "Lista numerada", "js: eDefSelProcessLines(\'\x3col\x3e\\n\', \' \x3cli\x3e\', \'\x3c/li\x3e\', \'\\n\x3c/ol\x3e\');", "numlist.gif", "O" ], [ "Cita", "js:\n\n// function that inserts the user input from the form into the textarea. this might be defined outside as well.\nmyUserInput = function(form) {\n  editor.active.replaceSelection(\'[quote=\'+ form.elements[\"user_input\"].value+\']\'+editor.active.getSelection()+\'[/quote]\');\n  editor.dialog.close();//close the dialog when done.\n}\n\n//form html. we define an input field named as \"user_input\".\nvar html = \'Autor : \'+ eDefInputText(\'user_input\');\nhtml += eDefInputSubmit(\'sbmt\', \'Enviar\');\nhtml = eDefHTML(\'form\', html, {onsubmit: \'myUserInput(this); return false;\'});//run getUserInput on submission\n\n//open editor dialog with a title and the user form.\neditor.dialog.open(\'Autor\', html);", "dialog.gif", "" ], [ "Código", "\x3ccode\x3e\n%TEXT%\n\x3c/code\x3e", "code.gif", "" ], [ "Linea horizontal", "\x3chr\x3e", "hr.gif", "" ], [ "Título 1", "\x3ch1\x3e%TEXT%\x3c/h1\x3e", "h1.gif", "" ], [ "Título 2", "\x3ch2\x3e%TEXT%\x3c/h2\x3e", "h2.gif", "" ], [ "Título 3", "\x3ch3\x3e%TEXT%\x3c/h3\x3e", "h3.gif", "" ], [ "Vista previa", "js: eDefPreview();", "preview.gif", "P" ], [ "Smileys", "js:\neditor.dialog.open(\"Smileys\");\n$(\"tr.body\x3etd\", editor.dialog.popup).empty().append(smlyWrap);\n$(\"a\", smlyWrap).each(function(){this.onclick=function(){editor.dialog.close();editor.active.replaceSelection(this.firstChild.alt, \"end\"); return false;};});", "Smileys", "" ] ]