13 May 22:41
Linebreaks in the edit toolbar?
From: Daniel Barrett <danb@...>
Subject: Linebreaks in the edit toolbar?
Newsgroups: gmane.org.wikimedia.mediawiki
Date: 2008-05-13 20:43:12 GMT
Subject: Linebreaks in the edit toolbar?
Newsgroups: gmane.org.wikimedia.mediawiki
Date: 2008-05-13 20:43:12 GMT
In our wiki, we have many toolbar buttons on the edit page, so we want to split them into multiple lines at
designated spots. My hacked solution is below -- is there a better way?
To implement this, I hacked function mwInsertEditButton in skins/common/wikibits.js, so an imageFile
value of "<br>" causes a real <br> to be inserted into the toolbar. I added this code as the first lines of
mwInsertEditButton :
if (item.imageFile == '<br>') {
parent.appendChild(document.createElement("br"));
return true;
}
Is there a better way to accomplish this task without modifying core code?
Thanks,
DanB
RSS Feed