https://github.com/breadlesscode/neos-simple-editor-extend
The simple way to extend the Neos CKEditor by YAML-Configuration
https://github.com/breadlesscode/neos-simple-editor-extend
ckeditor5 neos neos-ckeditor neos-cms neos-plugin neoscms wysiwyg yaml
Last synced: 5 months ago
JSON representation
The simple way to extend the Neos CKEditor by YAML-Configuration
- Host: GitHub
- URL: https://github.com/breadlesscode/neos-simple-editor-extend
- Owner: breadlesscode
- License: gpl-3.0
- Created: 2019-05-21T16:45:39.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-18T20:19:31.000Z (almost 3 years ago)
- Last Synced: 2025-10-20T23:37:56.745Z (8 months ago)
- Topics: ckeditor5, neos, neos-ckeditor, neos-cms, neos-plugin, neoscms, wysiwyg, yaml
- Language: JavaScript
- Homepage:
- Size: 1.25 MB
- Stars: 24
- Watchers: 2
- Forks: 6
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Neos simple editor extend
[](https://packagist.org/packages/breadlesscode/neos-simple-editor-extend)
[](https://packagist.org/packages/breadlesscode/neos-simple-editor-extend)
[](LICENSE)
[](https://github.com/breadlesscode/neos-simple-editor-extend/stargazers)
[](https://github.com/breadlesscode/neos-simple-editor-extend/subscription)
This is a small plugin to simply add some buttons to the Neos CMS CKEditor, without writing any JavaScript code. You only need to compose a YAML-File.
## Installation
Most of the time you have to make small adjustments to a package (e.g., the configuration in Settings.yaml). Because of that, it is important to add the corresponding package to the composer from your theme package. Mostly this is the site package located under Packages/Sites/. To install it correctly go to your theme package (e.g.Packages/Sites/Foo.Bar) and run following command:
```bash
composer require breadlesscode/neos-simple-editor-extend --no-update
```
The --no-update command prevent the automatic update of the dependencies. After the package was added to your theme composer.json, go back to the root of the Neos installation and run composer update. Your desired package is now installed correctly.
## Demo

## Example configuration
```yaml
Neos:
Neos:
Ui:
frontendConfiguration:
'Breadlesscode.SimpleEditorExtend:Buttons':
'Test.Test:MyCustomSpan':
extensionName: 'exampleExtension'
icon: 'plus-square'
tooltip: 'Mark the text in color green'
position: 'before strong'
formatting:
tag: 'span'
classes: 'test-class'
styles:
background-color: 'green'
'Test.Test:MyCustomSpan2':
extensionName: 'exampleExtension2'
icon: 'rocket'
tooltip: 'Mark the text in color red'
position: 'before exampleExtension'
formatting:
tag: 'span'
classes: 'test-class-2'
styles:
background-color: 'red'
attributes:
data-example: 'true'
```
Now you can use your new formattings like this:
```yaml
'Neos.NodeTypes.BaseMixins:TextMixin':
properties:
text:
ui:
inline:
editorOptions:
formatting:
'Test.Test:MyCustomSpan': true
'Test.Test:MyCustomSpan2': true
```
## License
The GNU GENERAL PUBLIC LICENSE Version 3. Please see [License File](LICENSE) for more information.