[TYPO3-core] RFC #17078: in fileadmin saving changes from t3editor doesn't work

Steffen Kamper info at sk-typo3.de
Sun Jan 23 14:46:57 CET 2011


Hi,

and here is the ExtJs variant

Ext.onReady(function() {
	Ext.select('.t3-icon-document-save, 
.t3-icon-document-save-close').each(function(element) {
		var link = element.up('a');
		if (link) {
			link.dom.removeAttribute('onclick');
			link.on('click', function() {
				if (element.hasClass('t3-icon-document-save')) {
					if (!T3editor.instances[0].disabled) {
						T3editor.instances[0].saveFunctionEvent();
					} else {
						document.editform.submit();
					}
				} else {
					if (!T3editor.instances[0].disabled) {
						T3editor.instances[0].updateTextareaEvent();
					}
					document.editform.submit();
				}
				return false;
			});
		}
	});
});

please don't forget to add our standard header to the file.

vg Steffen


More information about the TYPO3-team-core mailing list