* added textSelection plugin from usability
[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" src="../jsScriptLoader.php?class=window.jQuery,mv_embed,remoteSearchDriver,$j.ui,$j.ui.resizable,$j.ui.draggable,$j.ui.dialog,$j.ui.tabs,$j.ui.sortable,$j.cookie,baseRemoteSearch&urid=1257728132531&debug=true&uselang=en"></script>
16 <script type="text/javascript">
17 js2AddOnloadHook(function(){
18 $j('#add_media_link').addMediaWiz( {
19 'profile':'html_edit',
20 'target_textbox': '#wpTextbox1',
21 'target_render_area':'#inline_append',
22 'import_url_mode':'remote_link',
23 //note selections in the textbox will take over the default query
24 'default_query': 'fish',
25
26 //we only enabled commons
27 //(since javascript includes from other servers would be problamatic ) in a default install
28 //** but you can set this to 'all' to pull from multiple repositories
29 'enabled_cps':['wiki_commons'],
30
31 //the local wiki api url:
32 'local_wiki_api_url': 'none'
33 });
34 });
35
36 </script>
37 </head>
38 <body>
39 <h3> Sample Add Media Wizard </h3>
40
41 <a id="add_media_link" href="#">Add Media</a><br>
42 <b>note</b> only commons is enabled by default. For more options see source code.<br><br>
43 <table border="1" width="800">
44 <tr>
45 <td valign="top" width="50%" id="inline_append">Asset Output</td>
46 <td valign="top" width="50%" >Html Output:<textarea id="wpTextbox1" cols="60" rows="6" id="code_append" name="wpTextbox1" tabindex="3"/></textarea></td>
47 </tr>
48 </table>
49 </body>
50 </html>
51