Project

General

Profile

Actions

Bug #25556

closed

t3editor doen't have an API for using at other places

Added by Steffen Kamper about 15 years ago. Updated about 6 years ago.

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)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #25566: t3editor should work also in file list with files with the extension '.ts'.ClosedAdministrator Admin2009-11-02

Actions
Actions

Also available in: Atom PDF