Bug #25556
closedt3editor doen't have an API for using at other places
0%
Description
- templates module
- templavoila xml view and others
- extensions like typoscriptce
There is not much needed for, the save handler has to be configurable, the apply-to-field etc.
Here is a dirty implementation that shows how difficult this is:
/* overwrite ajax-hadling, we dont need it */
T3editor.prototype.saveFunction = function(event) {
if (t3e_instances0)
t3e_instances0.textarea.value = t3e_instances0.mirror.editor.getCode();
};
// callback if ajax saving was successful
T3editor.prototype.saveFunctionComplete = function(ajaxrequest) {
};
Event.observe(window, \'load\', function(){
if (t3e_instances0)
Event.observe(\'tv-form\', \'submit\', t3e_instances0.saveFunction);
});
(issue imported from #M11839)
Updated by Administrator Admin over 14 years ago
i rewrote the class.t3editor and split it up in two classes, the gernic part and the tstemplate_info part.
Additionally i added a bunch of javascript events, which can be used to hook in to save the content.
See ??tx_tstemplateinfo.js and class.tx_t3editor_hooks_tstemplateinfo.php how to implement.
Updated by Michael Stucki almost 11 years ago
- Project changed from 75 to TYPO3 Core
- Target version deleted (
0)