#25556t3editor doen't have an API for using at other places
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)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.