applied my changes - initial import
[boxroom-stian.git] / public / javascripts / tiny_mce / plugins / _template / popup.htm
blobb07467fa2d62d31349c1b582892ce1989059971b
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head>
3 <title>{$lang_template_title}</title>
4 <script language="javascript" type="text/javascript" src="../../tiny_mce_popup.js"></script>
5 <script language="javascript" type="text/javascript">
6 <!--
7 function init() {
8 var inst = tinyMCE.selectedInstance;
9 var elm = inst.getFocusElement();
11 alert("Got a window argument from plugin: " + tinyMCE.getWindowArg('some_custom_arg'));
13 // Set the form item value to the selected node element name
14 document.forms[0].nodename.value = elm.nodeName;
17 function insertSomething() {
18 // Execute the mceTemplate command without UI this time
19 tinyMCEPopup.execCommand('mceTemplate');
21 // Close the dialog
22 tinyMCEPopup.close();
24 //-->
25 </script>
26 <base target="_self" />
27 </head>
28 <body onload="tinyMCEPopup.executeOnLoad('init();');">
29 <form onsubmit="insert();return false;">
30 <h3>{$lang_template_title}</h3>
32 <!-- Gets filled with the selected elements name -->
33 <div style="margin-top: 10px; margin-bottom: 10px">
34 The selected element name: <input type="text" name="nodename" />
35 </div>
37 <div class="mceActionPanel">
38 <div style="float: left">
39 <input type="button" id="insert" name="insert" value="{$lang_insert}" onclick="insertSomething();" />
40 </div>
42 <div style="float: right">
43 <input type="button" id="cancel" name="cancel" value="{$lang_cancel}" onclick="tinyMCEPopup.close();" />
44 </div>
45 </div>
46 </form>
47 </body>
48 </html>