Changeset 1140
- Timestamp:
- 11/29/08 17:24:17 (4 years ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
XinhaCore.js (modified) (2 diffs)
-
plugins/SmartReplace/SmartReplace.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/XinhaCore.js
r1139 r1140 4351 4351 ); 4352 4352 var txt = el.tagName.toLowerCase(); 4353 switch (txt) 4354 { 4355 case 'b': 4356 txt = 'strong'; 4357 break; 4358 case 'i': 4359 txt = 'em'; 4360 break; 4361 case 'strike': 4362 txt = 'del'; 4363 break; 4364 } 4353 4365 if (typeof el.style != 'undefined') 4354 4366 { … … 4367 4379 if ( i !== 0 ) 4368 4380 { 4369 this._statusBarTree.appendChild(document.createTextNode(String.fromCharCode(0xbb))); 4381 this._statusBarTree.appendChild(document.createTextNode(String.fromCharCode(0xbb))); 4370 4382 } 4371 4383 Xinha.freeLater(a); -
trunk/plugins/SmartReplace/SmartReplace.js
r1113 r1140 113 113 if (charCode == 32) //space bar 114 114 { 115 return this.smartReplace(ev, 2, /^\s-/, ' â', false); // space-space -> dash115 return this.smartReplace(ev, 2, /^\s-/, ' '+String.fromCharCode(8211), false); // space-space -> dash 116 116 } 117 117 if ( key == '.' ) // ... -> ellipsis 118 118 { 119 return this.smartReplace(ev, 2, /\.\./, 'âŠ', true);119 return this.smartReplace(ev, 2, /\.\./, String.fromCharCode(8230), true); 120 120 } 121 121 return true;
