1 tinyMCEPopup.requireLangPack();
\r
3 var ExampleDialog = {
\r
5 var f = document.forms[0];
\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
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
19 tinyMCEPopup.onInit.add(ExampleDialog.init, ExampleDialog);
\r