plone / volto

React-based frontend for the Plone Content Management System
https://demo.plone.org/
MIT License
501 stars 670 forks source link

installAdvancedLink of volto-slate package is not being implemented #5829

Open FarooqAlaulddin opened 9 months ago

FarooqAlaulddin commented 9 months ago

Describe the bug I recently switched from slate-volto package on https://github.com/eea/volto-slate to the core package embedded within volto. I run into an issue with inline Link element (in the deprecated slate-volto its called Link and in volto core its called AdvancedLink) I need this as some of my inline block types requires this schema. I noticed that the installAdvancedLink component is in not installed https://github.com/plone/volto/tree/main/packages/volto-slate/src/editor/plugins

To Reproduce

  1. Go to packages/volto-slate/src/editor/plugins/index.js
  2. Click on index.js

Expected behavior Advacned Link component to appear on the slate inline toolbar

Screenshots See the advanced link component @ https://github.com/eea/volto-slate?tab=readme-ov-file#3-working-with-links-internal-external-email

Software (please complete the following information):

FarooqAlaulddin commented 8 months ago

It seems to be working when you include the component to the project config:

`

  // @ ./frontend/src/config.js
  ..
  import installAdvancedLink from '@plone/volto-slate/editor/plugins/AdvancedLink';
  export default function applyConfig(config) {
      ..
      installAdvancedLink(config)
      ..
      return config
  }

`