Changeset 501
- Timestamp:
- 04/30/06 05:41:42 (4 years ago)
- Files:
-
- 1 modified
-
trunk/plugins/EnterParagraphs/enter-paragraphs.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/EnterParagraphs/enter-paragraphs.js
r419 r501 701 701 702 702 // NODE TYPE 11 is DOCUMENT_FRAGMENT NODE 703 704 if ( cnt.nodeType == 11 && !cnt.firstChild ) 705 { 706 cnt.appendChild(editor._doc.createElement(pify.nodeName)); 707 } 708 703 // I do not profess to understand any of this, simply applying a patch that others say is good - ticket:446 704 if ( cnt.nodeType == 11 && !cnt.firstChild) 705 { 706 if (pify.nodeName != "BODY" || (pify.nodeName == "BODY" && pifyOffset != 0)) 707 { //WKR: prevent body tag in empty doc 708 cnt.appendChild(editor._doc.createElement(pify.nodeName)); 709 } 710 } 711 709 712 // YmL: Added additional last parameter for fill case to work around logic 710 713 // error in forEachNode()
