PHP 5.3.29-pl0-gentoo
Preview: pastetext.js Size: 884 B
/home/www/idcceurope.com/www/idcceurope.com/admin/jscripts/tiny_mce/plugins/paste/js/pastetext.js

tinyMCEPopup.requireLangPack();

var PasteTextDialog = {
	init : function() {
		this.resize();
	},

	insert : function() {
		var h = tinyMCEPopup.dom.encode(document.getElementById('content').value), lines;

		// Convert linebreaks into paragraphs
		if (document.getElementById('linebreaks').checked) {
			lines = h.split(/\r?\n/);
			if (lines.length > 1) {
				h = '';
				tinymce.each(lines, function(row) {
					h += '<p>' + row + '</p>';
				});
			}
		}

		tinyMCEPopup.editor.execCommand('mceInsertClipboardContent', false, {content : h});
		tinyMCEPopup.close();
	},

	resize : function() {
		var vp = tinyMCEPopup.dom.getViewPort(window), el;

		el = document.getElementById('content');

		el.style.width  = (vp.w - 20) + 'px';
		el.style.height = (vp.h - 90) + 'px';
	}
};

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

Directory Contents

Dirs: 0 × Files: 2

Name Size Perms Modified Actions
884 B lrw-r----- 2011-10-20 21:43:18
Edit Download
1.61 KB lrw-r----- 2011-10-20 21:43:20
Edit Download

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