CoreFiles by mySites.guru
dialog.js19 lines, 590 bytes, from Joomla_1.6.0-Stable-Full_Package.zip
Raw History Compare with 1.5.26
md5
ff7c6a3db0d905ae655a273b87d42c78
sha1
5617f405fc369ba34af7f149113a9045226050b0
sha256
d19fb8bb926625fd697049e2dff0c52933b13d83f3988caa794fb836e14b2a18
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);

The same content is in 7 releases, Joomla 1.6.0 to 1.6.6. See them all, or every version of this file.