Alterando o label/nome campo comercial ==> inscricao_comercial no formulário de inscr...
[cascardo/eventmanager.git] / media / js / textarea-noticias.js
1 tinyMCE.init({
2         mode : "exact",
3   elements : "id_corpo",
4         theme : "advanced",
5         theme_advanced_toolbar_location : "top",
6         theme_advanced_toolbar_align : "left",
7         theme_advanced_buttons1 : "fullscreen,separator,preview,separator,bold,italic,underline,strikethrough,separator,bullist,numlist,outdent,indent,separator,undo,redo,separator,link,unlink,anchor,separator,image,cleanup,help,separator,code",
8         theme_advanced_buttons2 : "",
9         theme_advanced_buttons3 : "",
10         auto_cleanup_word : true,
11         plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print,contextmenu,fullscreen",
12         plugin_insertdate_dateFormat : "%m/%d/%Y",
13         plugin_insertdate_timeFormat : "%H:%M:%S",
14         extended_valid_elements : "a[name|href|target=_blank|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
15         fullscreen_settings : {
16                 theme_advanced_path_location : "top",
17                 theme_advanced_buttons1 : "fullscreen,separator,preview,separator,cut,copy,paste,separator,undo,redo,separator,search,replace,separator,code,separator,cleanup,separator,bold,italic,underline,strikethrough,separator,forecolor,backcolor,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,help",
18                 theme_advanced_buttons2 : "removeformat,styleselect,formatselect,fontselect,fontsizeselect,separator,bullist,numlist,outdent,indent,separator,link,unlink,anchor",
19                 theme_advanced_buttons3 : "sub,sup,separator,image,insertdate,inserttime,separator,tablecontrols,separator,hr,advhr,visualaid,separator,charmap,emotions,iespell,flash,separator,print"
20         }
21 });
22
23 callback = function () {
24   var chamada = document.getElementById('id_chamada');
25   if (chamada)
26     chamada.style.height = '60px;';
27 }
28
29 if (window.addEventListener)
30   window.addEventListener('load', callback, false);
31 else if (window.attachEvent)
32   window.attachEvent('onload', callback);