Ignore:
Timestamp:
03/05/07 21:03:04 (5 years ago)
Author:
sys
Message:

Améliorations gestion espace inséccable :

  • à la saisie d'un ':', test si le texte précédent est un protocole : ftp, sftp, ftps, http, https, mailto.
  • passe l'éditeur en dirty lors de la saisie d'un espace inséccable.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_textPrim/xedUi/text.xbl.xml

    r8556 r8873  
    33953395                                                                } 
    33963396                                                                this.fHTMLEditor.doTransaction(vTrans); 
     3397                                                                this.fRichTextInput.setDirty(true); 
    33973398                                                        } 
    33983399                                                }finally { 
     
    34673468                                                                if(vStart > 0){ 
    34683469                                                                        var vPrevCharCode = vNode.data.charCodeAt(vStart - 1); 
    3469                                                                         if(vPrevCharCode == 160) return; //Espace inséccable déjà là, comportement normal 
     3470                                                                        //Espace inséccable déjà là ou protocole, comportement normal 
     3471                                                                        if(vPrevCharCode == 160 || ( vCar==58 && /\bmailto$|\b(ht|s?f)tp(s?)$/.test(vNode.data)) ) return;  
    34703472                                                                        var vTrans = { 
    34713473                                                                                doTransaction : function(){ 
     
    34863488                                                                                        this.doTransaction(); 
    34873489                                                                                }, 
     3490                                                                                isTransient : false, 
     3491                                                                                merge : function(pTrans){return false;} 
    34883492                                                                        } 
    34893493                                                                        this.fHTMLEditor.doTransaction(vTrans); 
Note: See TracChangeset for help on using the changeset viewer.