Changeset 7778

Show
Ignore:
Timestamp:
03/24/07 07:05:01 (22 months ago)
Author:
liucougar
Message:

fixes #2637

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/widget/RichText.js

    r7749 r7778  
    11731173                        } 
    11741174                        if(command == "inserthtml"){ 
     1175                                //TODO: we shall probably call _preDomFilterContent here as well 
     1176                                argument=this._preFilterContent(argument); 
    11751177                                if(dojo.render.html.ie){ 
    11761178                                        //dojo.debug("inserthtml breaks the undo stack when not using the ActiveX version of the control!"); 
     
    14281430                        //              filter the output after getting the content of the editing area 
    14291431                        dom = dom || this.editNode; 
    1430                         if(nondistructive && dom['cloneNode']){ 
    1431                                 dom = dom.cloneNode(true); 
    1432                         } 
    14331432                        if(this.contentDomPostFilters.length>0){ 
     1433                                if(nondistructive && dom['cloneNode']){ 
     1434                                        dom = dom.cloneNode(true); 
     1435                                } 
    14341436                                dojo.lang.forEach(this.contentDomPostFilters, function(ef){ 
    14351437                                        dom = ef(dom); 
    14361438                                }); 
    14371439                        } 
    1438                         var ec = this.getNodeChildrenHtml(dom);//dom.innerHTML; 
     1440                        var ec = this.getNodeChildrenHtml(dom); 
    14391441                        if(dojo.string.trim(ec) == " "){ ec = ""; } 
    14401442