visol/neos-linkclass

Last activity on 5 May 2021
  • 4
  • 3
  • 2365
composer require visol/neos-linkclass

Extends the Neos CKE5 link editor with a custom class selector

1.1.1

Extends the Neos CKE5 link editor with a custom class selector

Version
1.1.1
Type
neos-package
Release Date
26.02.2021 17:00:03
Source
git
Distribution
zip
Requires
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
None
Replaces
None
MIT a58f3ff01e5a379bb76f0fa3ea1581b677f7263b

Visol.Neos.LinkClass

Extends the Neos CKE5 link editor with an additional class selector.

image

Installation

  1. Install the package with composer

  2. Enable additional linking options with the following configuration:

"Neos.NodeTypes.BaseMixins:TextMixin":
  properties:
    text:
      ui:
        inline:
          editorOptions:
            linking:
              linkClass: true
  1. 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"

Development

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.

Credits

Created for visol by Dmitri Pisarev, https://github.com/dimaip

visol digitale Dienstleistungen GmbH, www.visol.ch

The content of the readme is provided by Github
The same vendor provides 6 package(s).