Thread:Extension talk:VisualEditor/Is picture search in VE wikicommons only?/reply (3)

Hi, i try to do the same. i'm in local wiki, i found this line of code in VisualEditor/modules/ve-mw/init/ve.init.mw.Platform.js, but not understand how to modify it to work for me. My local media are in http:localhost/media directory the api for my wiki are in http:localhost/wiki/api.php

this is right? this.mediaSources = [ { 'url': mw.util.wikiScript( 'api' ) }, { 'url': '//localhost/wiki/api.php' } ]; and then what i do?

thank's for help and sorry for my poor english!