Revert debugging code accidentally left in from r59780
authorTim Starling <tstarling@users.mediawiki.org>
Mon, 7 Dec 2009 21:45:21 +0000 (21:45 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Mon, 7 Dec 2009 21:45:21 +0000 (21:45 +0000)
skins/common/edit.js

index d7c9bdd..17bf113 100644 (file)
@@ -46,9 +46,7 @@ function mwSetupToolbar() {
 
        // Don't generate buttons for browsers which don't fully
        // support it.
-       var textbox = document.getElementById('wpTextbox1');
-       if (!textbox) { return false; }
-       //var textbox = document.createElement('textarea'); // abstract, don't assume wpTextbox1 is always there
+       var textbox = document.createElement('textarea'); // abstract, don't assume wpTextbox1 is always there
        if (!(document.selection && document.selection.createRange)
                && textbox.selectionStart === null) {
                return false;