From 15997596db5f667c34c88bda963908441b79d067 Mon Sep 17 00:00:00 2001 From: Miu Razvan Date: Tue, 4 Jul 2023 11:08:37 +0300 Subject: [PATCH] fix slate link --- src/components/manage/Blocks/SiteTableau/View.jsx | 2 +- src/components/manage/Blocks/TableauBlock/View.jsx | 2 +- src/index.js | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/manage/Blocks/SiteTableau/View.jsx b/src/components/manage/Blocks/SiteTableau/View.jsx index e6419a5..61faa44 100644 --- a/src/components/manage/Blocks/SiteTableau/View.jsx +++ b/src/components/manage/Blocks/SiteTableau/View.jsx @@ -2,7 +2,7 @@ import React from 'react'; import { connect } from 'react-redux'; import { compose } from 'redux'; import { withRouter } from 'react-router'; -import Tableau from '@eeacms/volto-tableau/Tableau/View'; +import Tableau from '@eeacms/volto-tableau/Tableau/Tableau'; import config from '@plone/volto/registry'; import { connectToProviderData } from '@eeacms/volto-datablocks/hocs'; import qs from 'querystring'; diff --git a/src/components/manage/Blocks/TableauBlock/View.jsx b/src/components/manage/Blocks/TableauBlock/View.jsx index da6dde7..21ef5e8 100644 --- a/src/components/manage/Blocks/TableauBlock/View.jsx +++ b/src/components/manage/Blocks/TableauBlock/View.jsx @@ -2,7 +2,7 @@ import React from 'react'; import { connect } from 'react-redux'; import { compose } from 'redux'; import { withRouter } from 'react-router'; -import Tableau from '@eeacms/volto-tableau/Tableau/View'; +import Tableau from '@eeacms/volto-tableau/Tableau/Tableau'; import config from '@plone/volto/registry'; import qs from 'querystring'; import '@eeacms/volto-tableau/less/tableau.less'; diff --git a/src/index.js b/src/index.js index ea423ba..5149759 100644 --- a/src/index.js +++ b/src/index.js @@ -7,6 +7,7 @@ import { installAppExtras, } from '@eeacms/volto-industry-theme/components'; import addonReducers from '@eeacms/volto-industry-theme/reducers'; +import installLink from '@plone/volto-slate/editor/plugins/AdvancedLink'; import iconC from '@eeacms/volto-columns-block/ColumnsBlock/icons/one-third-right.svg'; @@ -30,6 +31,8 @@ const applyConfig = (config) => { ], }; + config = installLink(config); + config.blocks.groupBlocksOrder = [ ...config.blocks.groupBlocksOrder, { id: 'eprtr_blocks', title: 'Eprtr Blocks' },