1 tinyMCEPopup.requireLangPack();
5 var f = document.forms[0];
7 // Get the selected contents as text and place it in the input
8 f.someval.value = tinyMCEPopup.editor.selection.getContent({format : 'text'});
9 f.somearg.value = tinyMCEPopup.getWindowArg('some_custom_arg');
13 // Insert the contents from the input into the document
14 tinyMCEPopup.editor.execCommand('mceInsertContent', false, document.forms[0].someval.value);
19 tinyMCEPopup.onInit.add(ExampleDialog.init, ExampleDialog);