Revert "serv_rssclient.c: style update"
[citadel.git] / webcit / tiny_mce / plugins / example / js / dialog.js
1 tinyMCEPopup.requireLangPack();\r
2 \r
3 var ExampleDialog = {\r
4         init : function() {\r
5                 var f = document.forms[0];\r
6 \r
7                 // Get the selected contents as text and place it in the input\r
8                 f.someval.value = tinyMCEPopup.editor.selection.getContent({format : 'text'});\r
9                 f.somearg.value = tinyMCEPopup.getWindowArg('some_custom_arg');\r
10         },\r
11 \r
12         insert : function() {\r
13                 // Insert the contents from the input into the document\r
14                 tinyMCEPopup.editor.execCommand('mceInsertContent', false, document.forms[0].someval.value);\r
15                 tinyMCEPopup.close();\r
16         }\r
17 };\r
18 \r
19 tinyMCEPopup.onInit.add(ExampleDialog.init, ExampleDialog);\r