- Timestamp:
- 11/17/10 11:17:41 (2 years ago)
- Files:
-
- 1 modified
-
trunk/plugins/DefinitionList/DefinitionList.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/DefinitionList/DefinitionList.js
r1067 r1273 56 56 if (button_id=='dl') { //definition list 57 57 var pe = editor.getParentElement(); 58 while (pe.parentNode.tagName.toLowerCase() != 'body') { 59 pe = pe.parentNode; 58 if( pe.tagName.toLowerCase() != 'body' ) { 59 while (pe.parentNode.tagName.toLowerCase() != 'body') { 60 pe = pe.parentNode; 61 } 60 62 } 61 63 var dx = editor._doc.createElement(button_id); 62 64 dx.innerHTML = ' '; 63 if(pe.parentNode.lastChild==pe) { 65 if( pe.tagName.toLowerCase() == 'body' ) { 66 pe.appendChild(dx); 67 }else if(pe.parentNode.lastChild==pe) { 64 68 pe.parentNode.appendChild(dx); 65 69 }else{
