1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
5 <title>sample mv embed
</title>
6 <style type=
"text/css">
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',
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'],
31 //the local wiki api url:
32 'local_wiki_api_url': 'none'
39 <h3> Sample Add Media Wizard
</h3>
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">
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>