Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
FarooqAlaulddin opened this issue Mar 4, 2024 · 1 comment

Comments

@FarooqAlaulddin
Copy link

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):

  • OS: n/a
  • Browser n/a
  • Volto Version latest
  • Plone Version n/a
  • Plone REST API Version n/a
@FarooqAlaulddin
Copy link
Author

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
  }

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant