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
decko-0.3.2 rails/assets/tinymce/plugins/example/js/dialog.js
decko-0.3.1 rails/assets/tinymce/plugins/example/js/dialog.js
decko-0.3.0 rails/assets/tinymce/plugins/example/js/dialog.js
decko-0.2.2 rails/assets/tinymce/plugins/example/js/dialog.js
decko-0.2.1 rails/assets/tinymce/plugins/example/js/dialog.js
decko-0.2 rails/assets/tinymce/plugins/example/js/dialog.js
decko-0.1 rails/assets/tinymce/plugins/example/js/dialog.js
it-logica-application-backbone-1.1.2 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js
it-logica-application-backbone-1.1.1 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js
it-logica-application-backbone-1.1.0 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js
it-logica-application-backbone-1.0.56 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js
it-logica-application-backbone-1.0.55 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js
it-logica-application-backbone-1.0.54 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js
it-logica-application-backbone-1.0.53 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js
it-logica-application-backbone-1.0.52 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js
it-logica-application-backbone-1.0.51 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js
it-logica-application-backbone-1.0.50 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js
it-logica-application-backbone-1.0.49 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js
it-logica-application-backbone-1.0.48 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js
it-logica-application-backbone-1.0.47 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js