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 { ...@@ -230,19 +230,6 @@ class GeneralController extends AbstractBackendController {
$this->redirect('editFile', 'EditFile'); $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. * Switches between override mode and normal mode.
* *
......
...@@ -55,7 +55,6 @@ EXT:lfeditor ...@@ -55,7 +55,6 @@ EXT:lfeditor
Introduction/Index Introduction/Index
MainMenuOptions/Index MainMenuOptions/Index
InsertionModes/Index
EditingModes/Index EditingModes/Index
Configuration/Index Configuration/Index
KnownProblemsAndHints/Index KnownProblemsAndHints/Index
\ No newline at end of file
.. ==================================================
.. 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: ...@@ -16,7 +16,6 @@ Features:
""""""""" """""""""
* Supported language file formats: XLF (preferred), XML (most stable) and PHP (outdated) * Supported language file formats: XLF (preferred), XML (most stable) and PHP (outdated)
* Enhanced insert types (resizable text area, TinyMCE)
* Conversion of formats * Conversion of formats
* Splitting and merging of language files * Splitting and merging of language files
* Override mode * Override mode
......
...@@ -154,11 +154,6 @@ and that backup can only be deleted. ...@@ -154,11 +154,6 @@ and that backup can only be deleted.
All changes since the backup are visible trough the **differences** functionality. 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. 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 ### Editing modes
There are three editing modes: There are three editing modes:
......
...@@ -461,10 +461,6 @@ Tapio Markula --&gt; finnish translation</description> ...@@ -461,10 +461,6 @@ Tapio Markula --&gt; finnish translation</description>
<source>enhanced insert mode</source> <source>enhanced insert mode</source>
<target>Udvidet tekstfelt</target> <target>Udvidet tekstfelt</target>
</trans-unit> </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"> <trans-unit id="select.langfile" approved="yes">
<source>Select language file</source> <source>Select language file</source>
<target>vælg sprogfil</target> <target>vælg sprogfil</target>
...@@ -503,4 +499,4 @@ Tapio Markula --&gt; finnish translation</description> ...@@ -503,4 +499,4 @@ Tapio Markula --&gt; finnish translation</description>
</trans-unit> </trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>
\ No newline at end of file
...@@ -501,10 +501,6 @@ Tapio Markula --&gt; finnish translation</description> ...@@ -501,10 +501,6 @@ Tapio Markula --&gt; finnish translation</description>
<source>enhanced insert mode</source> <source>enhanced insert mode</source>
<target>verbesserter Eingabemodus</target> <target>verbesserter Eingabemodus</target>
</trans-unit> </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"> <trans-unit id="select.langfile" approved="yes">
<source>Select language file</source> <source>Select language file</source>
<target>wähle Sprachdatei</target> <target>wähle Sprachdatei</target>
...@@ -543,4 +539,4 @@ Tapio Markula --&gt; finnish translation</description> ...@@ -543,4 +539,4 @@ Tapio Markula --&gt; finnish translation</description>
</trans-unit> </trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>
\ No newline at end of file
...@@ -461,10 +461,6 @@ Tapio Markula --&gt; finnish translation</description> ...@@ -461,10 +461,6 @@ Tapio Markula --&gt; finnish translation</description>
<source>enhanced insert mode</source> <source>enhanced insert mode</source>
<target>kehittynyt syöttömoodi</target> <target>kehittynyt syöttömoodi</target>
</trans-unit> </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"> <trans-unit id="select.langfile" approved="yes">
<source>Select language file</source> <source>Select language file</source>
<target>valitse kielitiedosto</target> <target>valitse kielitiedosto</target>
...@@ -503,4 +499,4 @@ Tapio Markula --&gt; finnish translation</description> ...@@ -503,4 +499,4 @@ Tapio Markula --&gt; finnish translation</description>
</trans-unit> </trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>
\ No newline at end of file
...@@ -379,9 +379,6 @@ Tapio Markula --&gt; finnish translation</description> ...@@ -379,9 +379,6 @@ Tapio Markula --&gt; finnish translation</description>
<trans-unit id="select.insertMode.pmktextarea"> <trans-unit id="select.insertMode.pmktextarea">
<source>enhanced insert mode</source> <source>enhanced insert mode</source>
</trans-unit> </trans-unit>
<trans-unit id="select.insertMode.tinyMCE">
<source>tinyMCE</source>
</trans-unit>
<trans-unit id="select.langfile"> <trans-unit id="select.langfile">
<source>Select language file</source> <source>Select language file</source>
</trans-unit> </trans-unit>
...@@ -414,4 +411,4 @@ Tapio Markula --&gt; finnish translation</description> ...@@ -414,4 +411,4 @@ Tapio Markula --&gt; finnish translation</description>
</trans-unit> </trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>
\ No newline at end of file
...@@ -501,10 +501,6 @@ Tapio Markula --&gt; finnish translation</description> ...@@ -501,10 +501,6 @@ Tapio Markula --&gt; finnish translation</description>
<source>enhanced insert mode</source> <source>enhanced insert mode</source>
<target>ulepszony tryb wstawiania</target> <target>ulepszony tryb wstawiania</target>
</trans-unit> </trans-unit>
<trans-unit id="select.insertMode.tinyMCE">
<source>tinyMCE</source>
<target>tinyMCE</target>
</trans-unit>
<trans-unit id="select.langfile"> <trans-unit id="select.langfile">
<source>Select language file</source> <source>Select language file</source>
<target>Wybierz plik językowy</target> <target>Wybierz plik językowy</target>
......
...@@ -2,9 +2,7 @@ ...@@ -2,9 +2,7 @@
<lfe:addJavaScriptFile javaScriptFile="{f:uri.resource(path: 'Scripts/FormUtility.js')}" /> <lfe:addJavaScriptFile javaScriptFile="{f:uri.resource(path: 'Scripts/FormUtility.js')}" />
<lfe:addJavaScriptFile javaScriptFile="{f:uri.resource(path: 'Scripts/Lfeditor.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')}" />
<lfe:addJavaScriptFile javaScriptFile="{f:uri.resource(path: 'Scripts/textareaResize.js')}" />
</f:if>
<lfe:inlineLanguageLabels labels="function.langfile.confirmCancel" /> <lfe:inlineLanguageLabels labels="function.langfile.confirmCancel" />
<lfe:addCssFile cssFile="{f:uri.resource(path: 'StyleSheets/Lfeditor.css')}" /> <lfe:addCssFile cssFile="{f:uri.resource(path: 'StyleSheets/Lfeditor.css')}" />
...@@ -47,34 +45,6 @@ ...@@ -47,34 +45,6 @@
action="manageBackups" /> action="manageBackups" />
</f:if> </f:if>
</f:be.menus.actionMenu> </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:if condition="{canChangeEditingModes}">
<f:be.menus.actionMenu> <f:be.menus.actionMenu>
<f:for each="{editingModeOptions}" key="editingModeOption" as="editingModeLabel"> <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 ...@@ -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. Normal users are allowed to edit only languages for which they have permission.
Following functions are implemented in this module: Following functions are implemented in this module:
* Formats: PHP, XML and XLF * Formats: PHP, XML and XLF
* Enhanced insert types (resizable text area, TinyMCE)
* Conversion of formats * Conversion of formats
* Splitting and merging of language files * Splitting and merging of language files
* Override mode * Override mode
...@@ -33,7 +32,6 @@ Following functions are implemented in this module: ...@@ -33,7 +32,6 @@ Following functions are implemented in this module:
'conflicts' => array( 'conflicts' => array(
), ),
'suggests' => array( 'suggests' => array(
'tinymce' => '4.2.8',
), ),
), ),
); );
...@@ -11,7 +11,7 @@ if (TYPO3_MODE === 'BE') { ...@@ -11,7 +11,7 @@ if (TYPO3_MODE === 'BE') {
'LFEditor', 'LFEditor',
'', '',
array( array(
'General' => 'index, general, changeSelection, generalSave, goToEditFile, switchInsertMode, 'General' => 'index, general, changeSelection, generalSave, goToEditFile,
switchEditingMode, refreshLanguageFileList', switchEditingMode, refreshLanguageFileList',
'EditFile' => 'editFile, changeSelection, editFileSave, refreshLanguageFileList', 'EditFile' => 'editFile, changeSelection, editFileSave, refreshLanguageFileList',
'EditConstant' => 'editConstant, changeSelection, editConstantSave, prepareEditConstant, '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