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 #1

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.

Actions #2

Updated by Administrator Admin over 14 years ago

committed to trunk: r7234

Actions #3

Updated by Michael Stucki almost 11 years ago

  • Project changed from 75 to TYPO3 Core
  • Target version deleted (0)
Actions #4

Updated by Michael Stucki almost 11 years ago

  • Category set to t3editor
Actions #5

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF