898c786bddbd0a5523d6d5bf18e379760caf7dd1
[lhc/web/wiklou.git] / js2 / mwEmbed / example_usage / Add_Media_Wizard.html
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%;
9 }
10 img {
11 border:medium none;
12 }
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
25 //we only enabled commons
26 //(since javascript includes from other servers would be problamatic ) in a default install
27 //** but you can set this to 'all' to pull from multiple repositories
28 'enabled_cps':['wiki_commons'],
29
30 //the local wiki api url:
31 'local_wiki_api_url': 'none'
32 });
33 });
34
35 </script>
36 </head>
37 <body>
38 <h3> Sample Add Media Wizard </h3>
39
40 <a id="add_media_link" href="#">Add Media</a><br>
41 <b>note</b> only commons is enabled by default. For more options see source code.<br><br>
42 <table border="1" width="800">
43 <tr>
44 <td valign="top" width="50%" id="inline_append">Asset Output</td>
45 <td valign="top" width="50%" >Html Output:<textarea id="wpTextbox1" cols="60" rows="6" id="code_append" name="wpTextbox1" tabindex="3"/></textarea></td>
46 </tr>
47 </table>
48 </body>
49 </html>
50