Sha256: d19fb8bb926625fd697049e2dff0c52933b13d83f3988caa794fb836e14b2a18

Contents?: true

Size: 590 Bytes

Versions: 126

Compression:

Stored size: 590 Bytes

Contents

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);

Version data entries

126 entries across 126 versions & 5 rubygems

Version Path
sbdevcore-0.0.5 app/assets/javascripts/tiny_mce/plugins/example/js/dialog.js
sbdevcore-0.0.4 app/assets/javascripts/tiny_mce/plugins/example/js/dialog.js
sbdevcore-0.0.3 app/assets/javascripts/tiny_mce/plugins/example/js/dialog.js
sbdevcore-0.0.1 app/assets/javascripts/tiny_mce/plugins/example/js/dialog.js
sbdev-core-0.0.1 app/assets/javascripts/tiny_mce/plugins/example/js/dialog.js
rails_tinymce-0.0.1 assets/public/javascripts/tiny_mce/plugins/example/js/dialog.js