// Esse arquivo serve para customizar o editor RTF existente na API do eGroupWare. // Foram escondidos alguns botões e também foi traduzido para o português - BR algumas palavras que faltavam. // Autor: Nilton E. Buhrer Neto // Modificado para uso no workflow _editor_url = "workflow/js/htmlarea"; _editor_lang = "pt_br"; document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); function initDocument(fieldName) { if (typeof(this.editor) == "undefined") this.editor = new Array(); if (!fieldName) fieldName = "body_rtf"; var numberOfEditors = this.editor.length; this.editor[numberOfEditors] = new HTMLArea(fieldName); this.editor[numberOfEditors].config.formatblock = { "Título 1": "h1", "Título 2": "h2", "Título 3": "h3", "Título 4": "h4", "Título 5": "h5", "Título 6": "h6", "Normal": "p", "Endereço": "address", "Pré-formatado": "pre" }; this.editor[numberOfEditors].config.hideSomeButtons(" insertimage about cut copy paste htmlmode popupeditor showhelp "); this.editor[numberOfEditors].config.height="600"; if(screen.width >= 1024) this.editor[numberOfEditors].config.width="713"; else this.editor[numberOfEditors].config.width="642"; this.editor[numberOfEditors].config.statusBar = false; this.editor[numberOfEditors].registerPlugin("CharacterMap"); this.editor[numberOfEditors].generate(); } function endDocument() { editor = (this.editor) ? this.editor : parent.editor; for (var i = 0; i < editor.length; i++) editor[i]._textArea.value = editor[i].getInnerHTML(); }