Dear All, I use Mediawiki (1.16.0),when create edit page,for example,the mediawiki contain edit.js.I think in the edit pages add a button,edit file click this button can upload files or pictures.I told the mediawiki's official website find pages,don't solve the problem,trouble to teach me how to do,please. Thanks!
PS1: http://www.mediawiki.org/wiki/Manual:FAQ/zh-hans#.E5.A6.82.E4.BD.95.E5.9C.A8...
PS2: edit.js doc. last . if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "speedTip": "big text", //text shown in a tooltip when hovering the mouse over the button "tagOpen": "<big>", //the text to use to mark the beginning of the block "tagClose": "</big>", //the text to use to mark the end of the block (if any) "sampleText": "big text" //the sample text to place inside the block }; mwCustomEditButtons.push(button);
To: Mediawiki Engineer From:ad_sh 2010/12/07 Best Wishes!
Hello,
if I understand correctly, you want to add an extra button in the edit toolbar. When clicking that button, you want to open the file upload page. As far as I understand, mwCustomEditButton only works to add buttons that will insert text in the editor. The javascript you included below should go into your Mediawiki:Common.js (open it in your browser at http://path/to/your/wiki/Mediawiki:Common.js (if you have short URLs)). Don't edit the edit.js file directly, you would have to do it again at every mediawiki update.
To get that button to open the upload page, I'm not sure how to do. Maybe someone else here would have an idea?
cheers, Laurent PS: 我不清除懂你英语懂得对不对。有错,麻烦你改正,谢谢!
2010/12/7 Quidway He it_hwl@sina.com:
Dear All, I use Mediawiki (1.16.0),when create edit page,for example,the mediawiki contain edit.js.I think in the edit pages add a button,edit file click this button can upload files or pictures.I told the mediawiki's official website find pages,don't solve the problem,trouble to teach me how to do,please. Thanks!
PS1: http://www.mediawiki.org/wiki/Manual:FAQ/zh-hans#.E5.A6.82.E4.BD.95.E5.9C.A8...
PS2: edit.js doc. last . if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "speedTip": "big text", //text shown in a tooltip when hovering the mouse over the button "tagOpen": "<big>", //the text to use to mark the beginning of the block "tagClose": "</big>", //the text to use to mark the end of the block (if any) "sampleText": "big text" //the sample text to place inside the block }; mwCustomEditButtons.push(button);
To: Mediawiki Engineer From:ad_sh 2010/12/07 Best Wishes! _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org