Actions
Bug #25556
closedt3editor doen't have an API for using at other places
Status:
Closed
Priority:
Should have
Assignee:
Administrator Admin
Category:
t3editor
Target version:
-
Start date:
2009-09-01
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
It males much sense to use this powerful editor at other places, eg:
- 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)
Actions