Bug 20489 Configure illegal file characters https://bugzilla.wikimedia.org/show_bug...
[mediawiki.git] / js2 / mwEmbed / example_usage / Add_Media_Wizard.html
bloba05b53b4cfe50a8b62becd16c4ec060cb2567fc3
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
3 <html>
4 <head>
5 <title>sample mv embed</title>
6 <style type="text/css">
7 body{
8 font-size:80%;
10 img {
11 border:medium none;
13 </style>
14 <script type="text/javascript" src="../mv_embed.js?debug=true"></script>
15 <script type="text/javascript">
16 mwAddOnloadHook(function(){
17 $j('#add_media_link').addMediaWiz( {
18 'profile':'html_edit',
19 'target_textbox': '#wpTextbox1',
20 'target_render_area':'#inline_append',
21 'import_url_mode':'remote_link',
22 //note selections in the textbox will take over the default query
23 'default_query': 'fish',
24 //here we can setup the conten provider overides
25 'cpconfig': {},
27 //the local wiki api url:
28 'local_wiki_api_url': 'none'
29 });
30 });
32 </script>
33 </head>
34 <body>
35 <h3> Sample Add Media Wizard </h3>
37 <a id="add_media_link" href="#">Add Media</a><br>
38 <table border="1" width="800">
39 <tr>
40 <td valign="top" width="50%" id="inline_append">Asset Output</td>
41 <td valign="top" width="50%" >Html Output:<textarea id="wpTextbox1" cols="60" rows="6" id="code_append" name="wpTextbox1" tabindex="3"/></textarea></td>
42 </tr>
43 </table>
44 </body>
45 </html>