Extends the Neos CKE5 link editor with an additional class selector.
This package is currently being maintained for the following versions:
Neos Version | Version | Maintained |
---|---|---|
Neos 4.x-7.2 | 1.x | No |
Neos 7.3 and above | 2.x | Yes |
-
Install the package with composer
-
Enable additional linking options with the following configuration:
"Neos.NodeTypes.BaseMixins:TextMixin":
properties:
text:
ui:
inline:
editorOptions:
linking:
linkClass: true
- Configure link classes in
Settings.yaml
with the following configuration:
Neos:
Neos:
Ui:
frontendConfiguration:
"Visol.Neos.LinkClass":
linkClasses:
standard: "Plain Link"
button: "Button"
If the default style ("Plain Link" in the example above) should have no specific class, you can use an empty key in the configuration:
Neos:
Neos:
Ui:
frontendConfiguration:
"Visol.Neos.LinkClass":
linkClasses:
'': "Plain Link"
button: "Button"
If you need to adjust anything in this package, just do so and then rebuild the code like this:
cd Resources/Private/LinkClass
yarn && yarn build
And then commit changed files, including Plugin.js.
Created for visol by Dmitri Pisarev, https://github.com/dimaip
visol digitale Dienstleistungen GmbH, www.visol.ch