PluginProbe
Contact Forms by Cimatti / 1.3.8
Contact Forms by Cimatti v1.3.8
2.3.6 2.3.5 2.3.0 2.2.32 2.2.4 2.2.0 2.1.2 2.1.1 trunk 1.0 1.1 1.2 1.2.1 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 All 62 releases
contact-forms / PFBC / Resources / tiny_mce / plugins / example / js / dialog.js

dialog.js in Contact Forms by Cimatti 1.3.8, at PFBC/Resources/tiny_mce/plugins/example/js/dialog.js

20 lines 609 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 tinyMCEPopup.requireLangPack();
2
3 var ExampleDialog = {
4 init : function() {
5 var f = document.forms[0];
6
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');
10 },
11
12 insert : function() {
13 // Insert the contents from the input into the document
14 tinyMCEPopup.editor.execCommand('mceInsertContent', false, document.forms[0].someval.value);
15 tinyMCEPopup.close();
16 }
17 };
18
19 tinyMCEPopup.onInit.add(ExampleDialog.init, ExampleDialog);
20