Ignore:
Timestamp:
04/14/10 17:16:45 (14 years ago)
Author:
nathalie.silva
Message:

Ticket #891 - resolvido de cursor do IE - alterado pra div - Nathalie

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/expressoMail1_2/corretor_ortografico/spell_checker/js/spell_checker.js

    r2536 r2540  
    325325        ajaxSpell.prototype.resetSpellChecker    = resetSpellChecker; 
    326326        ajaxSpell.prototype.resetAction          = resetAction; 
     327 
     328 
     329 
     330        var iframe= currObj.objToCheck; 
     331        if(iframe.contentWindow) 
     332            iframe=iframe.contentWindow.document; 
     333        else 
     334            iframe=iframe.contentDocument; 
     335 
     336        var browser = checkBrowser(); 
     337        if (browser == "ie"){ 
     338            iframe.body.contentEditable="false" ; 
     339 
     340        } 
     341 
    327342         
    328343 
     
    366381    var browser = checkBrowser(); 
    367382    if (browser == "ie"){ 
    368         //iframe.body.CONTENTEDITABLE="false" ; 
    369         //iframe.CONTENTEDITABLE="true" ; 
     383        //iframe.body.contentEditable="false" ; 
     384        iframe.body.contentEditable="true" ; 
    370385    } 
    371386    else { 
     
    421436    var browser = checkBrowser(); 
    422437    if (browser == "ie"){ 
    423         //iframe.CONTENTEDITABLE="false" ; 
    424         //iframe.CONTENTEDITABLE="true" ; 
     438        iframe.body.contentEditable="false" ; 
     439        //iframe.body.contentEditable="true" ; 
    425440    } 
    426441    else { 
     
    542557                    ifr.getElementsByTagName("div")[i].addEventListener("click", showMenu , true); 
    543558                    ifr.getElementsByTagName("div")[i].style.cursor = "pointer"; 
    544                     ifr.getElementsByTagName("div")[i].CONTENTEDITABLE="false" ; 
     559                    //ifr.getElementsByTagName("div")[i].contentEditable="false" ; 
    545560                } 
    546561                else { 
    547562                    ifr.getElementsByTagName("div")[i].attachEvent("onclick", showMenu ); 
    548                     ifr.getElementsByTagName("div")[i].CONTENTEDITABLE="false" ; 
     563                    //ifr.getElementsByTagName("div")[i].contentEditable="false" ; 
    549564                } 
    550565 
     
    910925                 if (document.addEventListener){ 
    911926                    ifr.getElementsByTagName("div")[i].addEventListener("click", replaceMenu , true); 
    912                     ifr.getElementsByTagName("div")[i].CONTENTEDITABLE="false" ; 
     927                    ifr.getElementsByTagName("div")[i].contentEditable="false" ; 
    913928                 } 
    914929                else { 
    915930                    ifr.getElementsByTagName("div")[i].attachEvent("onclick", replaceMenu); 
    916                     ifr.getElementsByTagName("div")[i].CONTENTEDITABLE="false" ; 
     931                    ifr.getElementsByTagName("div")[i].contentEditable="false" ; 
    917932                } 
    918933                     
     
    9931008        spellingSuggestionsDiv.style.top = (y+16-scrollPos) + 'px'; 
    9941009        spellingSuggestionsDiv.id = 'suggestion_box'; //Adicionado Nathalie 
    995         spellingSuggestionsDiv.CONTENTEDITABLE="false" ;  
     1010        spellingSuggestionsDiv.contentEditable="false" ; 
     1011         
    9961012         
    9971013         
     
    12841300                spellingSuggestionsDiv = null; 
    12851301        } 
     1302 
     1303 
     1304        var iframe= currObj.objToCheck; 
     1305        if(iframe.contentWindow) 
     1306        iframe=iframe.contentWindow.document; 
     1307        else 
     1308        iframe=iframe.contentDocument; 
     1309 
     1310        var browser = checkBrowser(); 
     1311        if (browser == "ie"){ 
     1312            iframe.body.contentEditable="true" ; 
     1313        //iframe.body.contentEditable="true" ; 
     1314        } 
     1315 
     1316 
    12861317         
    12871318        currObj.switchText(); 
Note: See TracChangeset for help on using the changeset viewer.