Index: trunk/extensions/ProofreadPage/proofread.js |
— | — | @@ -749,18 +749,18 @@ |
750 | 750 | return; |
751 | 751 | } |
752 | 752 | var f = text.parentNode; |
753 | | - var new_text = f.removeChild( text ); |
754 | 753 | |
755 | 754 | if( proofreadPageIsEdit ) { |
756 | 755 | pr_make_edit_area( self.text_container, new_text.value ); |
757 | | - var copywarn = document.getElementById( 'editpage-copywarn' ); |
758 | | - f.insertBefore( table, copywarn ); |
| 756 | + f.insertBefore( table, text.nextSibling ); // Inserts table after text |
| 757 | + f.removeChild( text ); |
759 | 758 | if ( !self.proofreadpage_show_headers ) { |
760 | 759 | hookEvent( 'load', pr_toggle_visibility ); |
761 | 760 | } else { |
762 | 761 | hookEvent( 'load', pr_reset_size ); |
763 | 762 | } |
764 | 763 | } else { |
| 764 | + var new_text = f.removeChild( text ); |
765 | 765 | self.text_container.appendChild( new_text ); |
766 | 766 | f.appendChild( self.table ); |
767 | 767 | } |