Ignore:
Timestamp:
02/04/08 00:43:21 (12 years ago)
Author:
ray
Message:
  • #1149 [Safari] retain editing position doesn't work
  • #1148 HTML entities break when cursor is inside when switching from HTML to WYSIWYG
  • #1147 getSelectedHTML() throws error when nothing is selected
  • #1146 [ExtendedFileManager?] IE6 doesn't show images
File:
1 edited

Legend:

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

    r943 r962  
    455455{ 
    456456  var sel = this.getSelection(); 
     457  if (this.selectionEmpty) return ''; 
    457458  var range = this.createRange(sel); 
    458459   
     
    542543    var after  = ta.value.substring( index + cc.length , ta.value.length ); 
    543544     
    544     if ( after.match(/^[^<]*>/) ) // make sure cursor is in an editable area (outside tags, script blocks, and inside the body) 
     545    if ( after.match(/^[^<]*>/) ) // make sure cursor is in an editable area (outside tags, script blocks, entities, and inside the body) 
    545546    { 
    546547      var tagEnd = after.indexOf(">") + 1; 
     
    548549    } 
    549550    else ta.value = before + cc + after; 
     551    ta.value = ta.value.replace(new RegExp ('(&[^'+cc+']*?)('+cc+')([^'+cc+']*?;)'), "$1$3$2"); 
    550552    ta.value = ta.value.replace(new RegExp ('(<script[^>]*>[^'+cc+']*?)('+cc+')([^'+cc+']*?<\/script>)'), "$1$3$2"); 
    551553    ta.value = ta.value.replace(new RegExp ('^([^'+cc+']*)('+cc+')([^'+cc+']*<body[^>]*>)(.*?)'), "$1$3$2$4"); 
Note: See TracChangeset for help on using the changeset viewer.