Changeset 768
- Timestamp:
- 03/10/07 16:50:35 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XinhaCore.js
r767 r768 1833 1833 1834 1834 // add a handler for the "back/forward" case -- on body.unload we save 1835 // the HTML content into the original textarea. 1835 // the HTML content into the original textarea and restore it in its place. 1836 // apparently this does not work in IE? 1836 1837 Xinha.prependDom0Event( 1837 1838 window, … … 1840 1841 { 1841 1842 textarea.value = editor.outwardHtml(editor.getHTML()); 1843 var x = xinha.parentNode.replaceChild(textarea,xinha); 1844 // put it back into the page to let Xinha.collectGarbageForIE() do its work afterwards 1845 textarea.style.display = ""; 1846 x.style.display = 'none'; 1847 document.body.appendChild(x); 1842 1848 return true; 1843 1849 }
Note: See TracChangeset
for help on using the changeset viewer.