Changeset 628


Ignore:
Timestamp:
01/03/07 18:04:24 (11 years ago)
Author:
ray
Message:

fix for [620]: keep scripts in IE didn't work like I thought

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r625 r628  
    59415941        if ( !editor.config.stripScripts ) 
    59425942        { 
    5943           var innerText = (root.hasChildNodes()) ? ((HTMLArea.is_ie) ? "\n" + root.innerHTML.replace(/^[\n\r]*/,'').replace(/\s+$/,'') + '\n' + indent : root.firstChild.nodeValue) : ''; 
     5943          if (HTMLArea.is_ie) 
     5944          { 
     5945            var innerText = "\n" + root.innerHTML.replace(/^[\n\r]*/,'').replace(/\s+$/,'') + '\n' + indent; 
     5946          } 
     5947          else 
     5948          { 
     5949            var innerText = (root.hasChildNodes()) ? root.firstChild.nodeValue : ''; 
     5950          } 
    59445951          html += innerText + '</'+root_tag+'>' + ((HTMLArea.is_ie) ? '\n' : ''); 
    59455952        } 
Note: See TracChangeset for help on using the changeset viewer.