Feature #58998

[Aloha editor] Add custom formats and styles

Added by Romain Capot about 1 year ago. Updated 10 months ago.

Status:Closed Start date:2014-05-21
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:-
Target version:Base Distribution - 1.x

Description

The goal of this feature is to add new customs formats and styles for Aloha editor.

All following changes are presents in the attachement files.

I created new Aloha plugin include in a new Neos package :
- Packages/Application/AlohaPlugin.ExtraFormats/Resources/Public/AlohaExtraFormatsPlugin/lib/extra-formats-plugin.js
His role is to get the original Format plugin and adding new styles in it.
Each styles is associated with a class attribute, which is define in a .css file associated with the plugin.
I decided to create my plugin in external package to reduce the impact in Neos core, because you can adapt the plugin
for your needs.

To add the new formats, I needed to add some feature not fully implemented.
I implement the "addButton" function in this two files :
- Packages/Application/TYPO3.Neos/Resources/Public/JavaScript/LibraryExtensions/UiAlohaPlugin/multiSplit.js
- Packages/Application/TYPO3.Neos/Resources/Public/Library/aloha/aloha.js

I needed to load my Aloha plugin dynamically. I implement this feature in the aloha configuration and in yaml configuration :
- Packages/Application/TYPO3.Neos/Resources/Public/JavaScript/aloha.js
- Packages/Application/TYPO3.Neos.NodeTypes/Configuration/NodeTypes.yaml
With this feature you can add new Aloha plugins dynamically for specific nodes.
The yaml configuration is only there as example, you can implement every Aloha plugins you need.

patchRTE.patch Magnifier (6.8 kB) Romain Capot, 2014-05-21 15:38

patch.tar - contain all files and install details (1.7 MB) Romain Capot, 2014-05-21 15:38

History

#1 Updated by Philipp Hanebrink 10 months ago

  • Assigned To set to Philipp Hanebrink

#2 Updated by Philipp Hanebrink 10 months ago

  • Status changed from New to Closed
  • Assigned To deleted (Philipp Hanebrink)

Also available in: Atom PDF