PHP 5.3.29-pl0-gentoo
Preview: dialog.js Size: 609 B
/home/www/idcceurope.com/www/idcceurope.com/admin/jscripts/tiny_mce/plugins/example/js/dialog.js

tinyMCEPopup.requireLangPack();

var ExampleDialog = {
	init : function() {
		var f = document.forms[0];

		// Get the selected contents as text and place it in the input
		f.someval.value = tinyMCEPopup.editor.selection.getContent({format : 'text'});
		f.somearg.value = tinyMCEPopup.getWindowArg('some_custom_arg');
	},

	insert : function() {
		// Insert the contents from the input into the document
		tinyMCEPopup.editor.execCommand('mceInsertContent', false, document.forms[0].someval.value);
		tinyMCEPopup.close();
	}
};

tinyMCEPopup.onInit.add(ExampleDialog.init, ExampleDialog);

Directory Contents

Dirs: 0 × Files: 1

Name Size Perms Modified Actions
609 B lrw-r----- 2011-10-20 21:41:59
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).