Changeset 1051 for trunk/modules/Gecko


Ignore:
Timestamp:
10/03/08 19:03:48 (11 years ago)
Author:
ray
Message:

#1224 sevenbitclean / ghost cursor error with html mode toggle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/Gecko/Gecko.js

    r1044 r1051  
    736736 
    737737//Control character for retaining edit location when switching modes 
    738 Xinha.prototype.cc = String.fromCharCode(8286);  
     738Xinha.cc = String.fromCharCode(8286);  
    739739 
    740740Xinha.prototype.setCC = function ( target ) 
    741741{ 
    742   var cc = this.cc; 
     742  var cc = Xinha.cc; 
    743743  try 
    744744  { 
     
    773773  { 
    774774  var ta = this._textArea; 
    775   var pos = ta.value.indexOf( this.cc ); 
     775  var pos = ta.value.indexOf( Xinha.cc ); 
    776776  if ( pos == -1 ) return; 
    777   var end = pos + this.cc.length; 
     777  var end = pos + Xinha.cc.length; 
    778778  var before =  ta.value.substring( 0, pos ); 
    779779  var after = ta.value.substring( end, ta.value.length ); 
     
    796796    { 
    797797      var doc = this._doc;  
    798       doc.body.innerHTML = doc.body.innerHTML.replace(new RegExp(this.cc),'<span id="XinhaEditingPostion"></span>'); 
     798      doc.body.innerHTML = doc.body.innerHTML.replace(new RegExp(Xinha.cc),'<span id="XinhaEditingPostion"></span>'); 
    799799      var posEl = doc.getElementById('XinhaEditingPostion'); 
    800800      this.selectNodeContents(posEl); 
Note: See TracChangeset for help on using the changeset viewer.