Difference between revisions of "MsUpload"

From BITPlan Wiki
Jump to navigation Jump to search
(pushed from media by wikipush)
 
 
Line 18: Line 18:
 
tar xvfz /usr/local/src/MsUpload-REL1_35-5998b96.tar.gz
 
tar xvfz /usr/local/src/MsUpload-REL1_35-5998b96.tar.gz
 
sudo chown -R www-data.www-data .
 
sudo chown -R www-data.www-data .
 +
</source>
 +
== Patch for PdfEmbed ==
 +
<source lang='javascript'>
 +
        $( '<a>' ).text( mw.msg( 'msu-insert-embed-pdf' ) ).click( function () {
 +
              MsUpload.insertText( '<pdf>' + file.name + '</pdf>' ); // Insert pdf  link
 +
          } ).appendTo( file.li );
 
</source>
 
</source>

Latest revision as of 10:51, 29 January 2023

Extension

Extension
edit
name  MsUpload
url  https://www.mediawiki.org/wiki/Extension:MsUpload
purpose  The MsUpload extension allows users to upload multiple files by drag & drop in the standard MediaWiki edit page.
since  2013/04/17
wiki  capri,io,s,q,merkur

Freitext

Installation

cd /usr/local/src
sudo wget https://extdist.wmflabs.org/dist/extensions/MsUpload-REL1_35-5998b96.tar.gz
cd /var/www/mediawiki/code/extensions
tar xvfz /usr/local/src/MsUpload-REL1_35-5998b96.tar.gz
sudo chown -R www-data.www-data .

Patch for PdfEmbed

         $( '<a>' ).text( mw.msg( 'msu-insert-embed-pdf' ) ).click( function () {
              MsUpload.insertText( '<pdf>' + file.name + '</pdf>' ); // Insert pdf  link
          } ).appendTo( file.li );