Changeset 6715
- Timestamp:
- 07/05/12 11:49:33 (12 years ago)
- Location:
- branches/2.4/expressoMail1_2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4/expressoMail1_2/js/draw_api.js
r6655 r6715 3670 3670 //Botão TextoRico/TextoSimples 3671 3671 content.find(".new-msg-head-right-buttons").find(".button").button().filter(".rich-button").click(function(){ 3672 //RichTextEditor.loadEditor2(ID); 3673 RichTextEditor.setPlain(check_input(content.find('[name="textplain_rt_checkbox"]')), ID); 3674 change_text($(this).find(".ui-button-text"), get_lang("Rich Text"), get_lang("Simple Text")); 3672 /*Se o texto do botão for "Texto simples" exibirá a mensagem antes de alterar para texto simples*/ 3673 if($(".rich-button").find("span").text() == get_lang("Simple Text")){ 3674 $.Zebra_Dialog(get_lang("Convert this message into plain text can make parts of it are removed. Continue?"), { 3675 'type': 'warning', 3676 'overlay_opacity': '0.5', 3677 'buttons': ['OK','Cancelar'], 3678 'width' : 380, 3679 'onClose': function(clicked) { 3680 if(clicked == 'OK'){ 3681 RichTextEditor.setPlain(check_input(content.find('[name="textplain_rt_checkbox"]')), ID); 3682 $(".rich-button").find("span").text(get_lang("Rich Text")); 3683 } 3684 } 3685 }) 3686 } 3687 /*Se o texto do botão for "Texto rico" simplesmente altera para texto rico*/ 3688 else{ 3689 RichTextEditor.setPlain(check_input(content.find('[name="textplain_rt_checkbox"]')), ID); 3690 $(".rich-button").find("span").text(get_lang("Simple Text")); 3691 } 3675 3692 }) 3676 3693 -
branches/2.4/expressoMail1_2/js/rich_text_editor.js
r6505 r6715 213 213 RichTextEditor.plain[id] = active; 214 214 var content = $("#content_id_"+id); 215 var div = $("<div>").attr("display", "none"); 215 216 if(active === true) 216 217 { … … 219 220 height -= 330; 220 221 $('#body_'+id).height(height); 222 div.html($('#body_'+id).val()); 223 /*Remove as tags html, tabulações e quebras de linha quando for utilizado o editor de texto simples*/ 224 div.html($.trim(div.text().replace(/[\t]+/g, '').replace(/[\n]+/g, '\n'))); 225 /*Insere o texto sem formatação no textarea*/ 226 $('#body_'+id).val(div.text()); 227 221 228 $('#body_'+id).keydown(function(event) { 222 229 away = false; … … 228 235 $("[name=textplain_rt_checkbox_"+id+"]").button({ disabled: false }); 229 236 } 230 else 237 else{ 231 238 RichTextEditor.active('body_'+id, id); 239 /*Insere somente quebras de linha para que o texto convertido não fique todo em uma linha só*/ 240 div.html($('#body_'+id).val().replace(/[\n]+/g, '<br>')); 241 $('#body_'+id).val(div.html()); 242 } 232 243 } 233 244 -
branches/2.4/expressoMail1_2/setup/phpgw_pt-br.lang
r6348 r6715 94 94 Contact added successfully. expressoMail1_2 pt-br Contato adicionado com sucesso. 95 95 Connection failed with %1 Server. Try later. expressoMail1_2 pt-br Ocorreu uma falha de comunicação com o servidor de %1. Tente mais tarde. 96 Convert this message into plain text can make parts of it are removed. Continue? expressoMail1_2 pt-br Converter esta mensagem para texto sem formatação pode fazer com que partes dela sejam removidas. Deseja continuar? 96 97 Couldn't verify if certificate was revoked.(CD-01) expressoMail1_2 pt-br A lista de certificados revogados não foi encontrada.(CD-01) 97 98 Couldn't verify if certificate was revoked.(CD-02) expressoMail1_2 pt-br Não foi possível verificar se o certificado está revogado.(CD-02)
Note: See TracChangeset
for help on using the changeset viewer.