Changeset 707


Ignore:
Timestamp:
01/30/07 13:09:44 (13 years ago)
Author:
ray
Message:

see Ticket #900 retain editing position position between modes

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r704 r707  
    23712371  } 
    23722372}; 
    2373 //Control character for retaining edit location when switching modes 
    2374 Xinha.prototype.cc = String.fromCharCode(173);  
    23752373 
    23762374// Switches editor mode; parameter can be "textmode" or "wysiwyg".  If no 
  • trunk/modules/Gecko/Gecko.js

    r703 r707  
    655655}; 
    656656 
     657//Control character for retaining edit location when switching modes 
     658Xinha.prototype.cc = String.fromCharCode(173);  
     659 
    657660Xinha.prototype.setCC = function ( target ) 
    658661{ 
     
    673676  else 
    674677  { 
    675     var sel = this._getSelection(); 
     678    var sel = this.getSelection(); 
    676679    sel.getRangeAt(0).insertNode( document.createTextNode( this.cc ) ); 
    677680  } 
  • trunk/modules/InternetExplorer/InternetExplorer.js

    r706 r707  
    401401}; 
    402402 
     403// Control character for retaining edit location when switching modes 
     404Xinha.prototype.cc = String.fromCharCode(0x2009); 
     405 
    403406Xinha.prototype.setCC = function ( target ) 
    404407{ 
Note: See TracChangeset for help on using the changeset viewer.