Changeset 943 for trunk/modules/GetHtml


Ignore:
Timestamp:
01/26/08 21:46:42 (12 years ago)
Author:
ray
Message:
  • #645 Save as function only saves the original html
  • #442 remove alert "Your Document is not well formed..."
  • #383 [ImageManager?][ExtendedFileManager?] Spanish translation
  • #1138 added API functions Xinha.getEditor(), Xinha.prototype.getPluginInstance(), Xinha.addOnloadHandler()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/GetHtml/DOMwalk.js

    r871 r943  
    3838// Retrieves the HTML code from the given node.  This is a replacement for 
    3939// getting innerHTML, using standard DOM calls. 
    40 // Wrapper catch a Mozilla-Exception with non well formed html source code 
     40// Wrapper legacy see #442 
    4141Xinha.getHTML = function(root, outputRoot, editor) 
    4242{ 
    43   try 
    44   { 
    45     return Xinha.getHTMLWrapper(root,outputRoot,editor); 
    46   } 
    47   catch(ex) 
    48   {    
    49     alert(Xinha._lc('Your Document is not well formed. Check JavaScript console for details.')); 
    50     return editor._iframe.contentWindow.document.body.innerHTML; 
    51   } 
     43  return Xinha.getHTMLWrapper(root,outputRoot,editor); 
    5244}; 
    5345 
Note: See TracChangeset for help on using the changeset viewer.