Commit a6fe6d8c authored by Kevin Ditscheid's avatar Kevin Ditscheid

[TASK] Remove the tinyMCE from lfeditor

parent 440a0b6c
......@@ -230,19 +230,6 @@ class GeneralController extends AbstractBackendController {
$this->redirect('editFile', 'EditFile');
}
/**
* Switches between insert modes: TinyMCE and normal.
*
* @param int $tinyMCE says is TinyMCE insert mode is selected.
* @return void
* @throws UnsupportedRequestTypeException
* @throws \TYPO3\CMS\Extbase\Mvc\Exception\StopActionException
*/
public function switchInsertModeAction($tinyMCE = 0) {
$this->session->setDataByKey('tinyMCESelected', $tinyMCE !== 0);
$this->indexAction();
}
/**
* Switches between override mode and normal mode.
*
......
......@@ -55,7 +55,6 @@ EXT:lfeditor
Introduction/Index
MainMenuOptions/Index
InsertionModes/Index
EditingModes/Index
Configuration/Index
KnownProblemsAndHints/Index
\ No newline at end of file
KnownProblemsAndHints/Index
.. ==================================================
.. FOR YOUR INFORMATION
.. --------------------------------------------------
.. -*- coding: utf-8 -*- with BOM.
Insertion modes
---------------
LFEditor supports two ways of entering language constant values - via resizable text areas and via the tinyMCE extension.
resizable text areas
^^^^^^^^^^^^^^^^^^^^
This is the default insertion mode. If tinyMCE extension is not installed, this mode will be used.
TinyMCE
^^^^^^^
The extension contains the rich text editor “tinyMCE” that you can use for editing of the constants.
.. figure:: ../Images/InsertionModes/TinyMCE.png
:alt: AddConstant
The tinyMCE extension can be downloaded `here <http://typo3.org/extensions/repository/view/tinymce/>`_.
\ No newline at end of file
......@@ -16,7 +16,6 @@ Features:
"""""""""
* Supported language file formats: XLF (preferred), XML (most stable) and PHP (outdated)
* Enhanced insert types (resizable text area, TinyMCE)
* Conversion of formats
* Splitting and merging of language files
* Override mode
......
......@@ -154,11 +154,6 @@ and that backup can only be deleted.
All changes since the backup are visible trough the **differences** functionality.
Green color means that the constant was added and red that it was deleted since the backup was made.
### Insertion modes
**lfeditor** supports two ways of entering language constant values - via resizable text areas and via the tinyMCE extension.
The extension contains the rich text editor [tinyMCE](https://typo3.org/extensions/repository/view/tinymce) that you can use for editing the constants.
### Editing modes
There are three editing modes:
......
......@@ -461,10 +461,6 @@ Tapio Markula --&gt; finnish translation</description>
<source>enhanced insert mode</source>
<target>Udvidet tekstfelt</target>
</trans-unit>
<trans-unit id="select.insertMode.tinyMCE" approved="yes">
<source>tinyMCE</source>
<target>tinyMCE</target>
</trans-unit>
<trans-unit id="select.langfile" approved="yes">
<source>Select language file</source>
<target>vælg sprogfil</target>
......@@ -503,4 +499,4 @@ Tapio Markula --&gt; finnish translation</description>
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
</xliff>
......@@ -501,10 +501,6 @@ Tapio Markula --&gt; finnish translation</description>
<source>enhanced insert mode</source>
<target>verbesserter Eingabemodus</target>
</trans-unit>
<trans-unit id="select.insertMode.tinyMCE" approved="yes">
<source>tinyMCE</source>
<target>tinyMCE</target>
</trans-unit>
<trans-unit id="select.langfile" approved="yes">
<source>Select language file</source>
<target>wähle Sprachdatei</target>
......@@ -543,4 +539,4 @@ Tapio Markula --&gt; finnish translation</description>
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
</xliff>
......@@ -461,10 +461,6 @@ Tapio Markula --&gt; finnish translation</description>
<source>enhanced insert mode</source>
<target>kehittynyt syöttömoodi</target>
</trans-unit>
<trans-unit id="select.insertMode.tinyMCE" approved="yes">
<source>tinyMCE</source>
<target>tinyMCE</target>
</trans-unit>
<trans-unit id="select.langfile" approved="yes">
<source>Select language file</source>
<target>valitse kielitiedosto</target>
......@@ -503,4 +499,4 @@ Tapio Markula --&gt; finnish translation</description>
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
</xliff>
......@@ -379,9 +379,6 @@ Tapio Markula --&gt; finnish translation</description>
<trans-unit id="select.insertMode.pmktextarea">
<source>enhanced insert mode</source>
</trans-unit>
<trans-unit id="select.insertMode.tinyMCE">
<source>tinyMCE</source>
</trans-unit>
<trans-unit id="select.langfile">
<source>Select language file</source>
</trans-unit>
......@@ -414,4 +411,4 @@ Tapio Markula --&gt; finnish translation</description>
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
</xliff>
......@@ -501,10 +501,6 @@ Tapio Markula --&gt; finnish translation</description>
<source>enhanced insert mode</source>
<target>ulepszony tryb wstawiania</target>
</trans-unit>
<trans-unit id="select.insertMode.tinyMCE">
<source>tinyMCE</source>
<target>tinyMCE</target>
</trans-unit>
<trans-unit id="select.langfile">
<source>Select language file</source>
<target>Wybierz plik językowy</target>
......
......@@ -2,9 +2,7 @@
<lfe:addJavaScriptFile javaScriptFile="{f:uri.resource(path: 'Scripts/FormUtility.js')}" />
<lfe:addJavaScriptFile javaScriptFile="{f:uri.resource(path: 'Scripts/Lfeditor.js')}" />
<f:if condition="{tinyMCESelected} != 'TRUE'">
<lfe:addJavaScriptFile javaScriptFile="{f:uri.resource(path: 'Scripts/textareaResize.js')}" />
</f:if>
<lfe:addJavaScriptFile javaScriptFile="{f:uri.resource(path: 'Scripts/textareaResize.js')}" />
<lfe:inlineLanguageLabels labels="function.langfile.confirmCancel" />
<lfe:addCssFile cssFile="{f:uri.resource(path: 'StyleSheets/Lfeditor.css')}" />
......@@ -47,34 +45,6 @@
action="manageBackups" />
</f:if>
</f:be.menus.actionMenu>
<f:if condition="{tinyMCELoaded}">
<f:be.menus.actionMenu>
<f:if condition="{tinyMCESelected}">
<f:then>
<f:be.menus.actionMenuItem label="{f:translate(key:'select.insertMode.normal')}"
controller="General"
action="switchInsertMode"
arguments="{tinyMCE: 0}" />
<f:be.menus.actionMenuItem label="{f:translate(key:'select.insertMode.tinyMCE')}"
controller="General"
action="switchInsertMode"
arguments="{tinyMCE: 1}"
additionalAttributes="{selected: 'selected'}" />
</f:then>
<f:else>
<f:be.menus.actionMenuItem label="{f:translate(key:'select.insertMode.normal')}"
controller="General"
action="switchInsertMode"
arguments="{tinyMCE: 0}"
additionalAttributes="{selected: 'selected'}" />
<f:be.menus.actionMenuItem label="{f:translate(key:'select.insertMode.tinyMCE')}"
controller="General"
action="switchInsertMode"
arguments="{tinyMCE: 1}" />
</f:else>
</f:if>
</f:be.menus.actionMenu>
</f:if>
<f:if condition="{canChangeEditingModes}">
<f:be.menus.actionMenu>
<f:for each="{editingModeOptions}" key="editingModeOption" as="editingModeLabel">
......
tinymce.init(
{
selector: 'textarea',
entity_encoding: 'raw',
forced_root_block: false,
plugins: 'paste'
}
);
\ No newline at end of file
......@@ -7,7 +7,6 @@ The extension differs between editors and administrators with appropriate privil
Normal users are allowed to edit only languages for which they have permission.
Following functions are implemented in this module:
* Formats: PHP, XML and XLF
* Enhanced insert types (resizable text area, TinyMCE)
* Conversion of formats
* Splitting and merging of language files
* Override mode
......@@ -33,7 +32,6 @@ Following functions are implemented in this module:
'conflicts' => array(
),
'suggests' => array(
'tinymce' => '4.2.8',
),
),
);
......@@ -11,7 +11,7 @@ if (TYPO3_MODE === 'BE') {
'LFEditor',
'',
array(
'General' => 'index, general, changeSelection, generalSave, goToEditFile, switchInsertMode,
'General' => 'index, general, changeSelection, generalSave, goToEditFile,
switchEditingMode, refreshLanguageFileList',
'EditFile' => 'editFile, changeSelection, editFileSave, refreshLanguageFileList',
'EditConstant' => 'editConstant, changeSelection, editConstantSave, prepareEditConstant,
......
CREATE TABLE be_users (
lfeditor_change_editing_modes tinyint(4) unsigned DEFAULT '0' NOT NULL
);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment