An open API service indexing awesome lists of open source software.

https://github.com/flownative/neos-editors

A package with additional editors for the Neos inspector
https://github.com/flownative/neos-editors

Last synced: 2 months ago
JSON representation

A package with additional editors for the Neos inspector

Awesome Lists containing this project

README

        

[![GPL-3.0 license](http://img.shields.io/badge/license-GPL3.0-brightgreen.svg)](https://opensource.org/licenses/GPL-3.0)
[![Packagist](https://img.shields.io/packagist/v/flownative/neos-editors.svg)](https://packagist.org/packages/flownative/neos-editors)
[![Maintenance level: Acquaintance](https://img.shields.io/badge/maintenance-%E2%99%A1-ff69b4.svg)](https://www.flownative.com/en/products/open-source.html)

# Flownative Neos Editors

This package is home to additional editors (and validators) for use with
[Neos](https://www.neos.io/).

## Installation

`composer require flownative/neos-editors`

## Usage

To use the included editors, simply configure your property accordingly
in `NodeTypes.yaml`. Here is an example:

properties:
'yamlProperty':
type: 'string'
ui:
label: 'YAML property'
inspector:
group: 'document'
editor: 'Flownative.Neos.Editors/Inspector/Editors/Yaml'
validation:
'Flownative.Neos.Editors/Inspector/Validators/Yaml': []

## Available Editors

### YAML

Name: `Flownative.Neos.Editors/Inspector/Editors/Yaml`

The YAML editor provides syntax highlighting for YAML and makes sure no
tab characters are used for indentation.

![YAML editor](Documentation/Images/yaml-editor.png)

The editor supports `buttonLabel` as an `editorOption`, like the
`CodeEditor` in Neos.

## Available Validators

### YAML

Name: `Flownative.Neos.Editors/Inspector/Validators/Yaml`

The YAML validator provides validation of YAML. Internally it tries to
parse using [JS-YAML](https://github.com/nodeca/js-yaml) and fails
validation if that throws an exception.

![YAML error message](Documentation/Images/yaml-error.png)

The validator has no options.