diff --git a/editors/editoria/src/config/config.js b/editors/editoria/src/config/config.js index 8a532e5a3ceac4e0e13b083219cec2b5e5821330..396ebf51e61c856a45d5a88a022bc12b5fa9acd8 100644 --- a/editors/editoria/src/config/config.js +++ b/editors/editoria/src/config/config.js @@ -102,25 +102,16 @@ export default { }, { templateArea: 'BottomRightInfo', - toolGroups: [ - { - name: 'InfoToolGroup', - more: [ - 'CounterInfoTool', - 'ShortcutTool', - 'HelpTool' - ], - }, - ], + toolGroups: ['InfoToolGroup'], }, ], SchemaService: DefaultSchema, - + TitleService: { updateTitle }, RulesService: [emDash, ellipsis], ShortCutsService: {}, EnableTrackChangeService: { enabled: false }, - TitleService: { updateTitle }, + PmPlugins: [ columnResizing(), tableEditing(), diff --git a/editors/editoria/src/config/configMobile.js b/editors/editoria/src/config/configMobile.js index c0483fa81aaae38463bc9086470355a2ae1e13c9..f582e791662e8b5bdee37aaafd70a4d3972b736a 100644 --- a/editors/editoria/src/config/configMobile.js +++ b/editors/editoria/src/config/configMobile.js @@ -45,6 +45,10 @@ import invisibles, { paragraph, } from '@guardian/prosemirror-invisibles'; +const updateTitle = title => { + console.log(title); +}; + export default { MenuService: [ { @@ -68,21 +72,13 @@ export default { }, { templateArea: 'BottomRightInfo', - toolGroups: [ - { - name: 'InfoToolGroup', - more: [ - 'CounterInfoTool', - 'ShortcutTool', - 'HelpTool' - ], - }, - ], + toolGroups: ['InfoToolGroup'], }, ], RulesService: [emDash, ellipsis], ShortCutsService: {}, + TitleService: { updateTitle }, EnableTrackChangeService: { enabled: false }, PmPlugins: [ diff --git a/wax-prosemirror-services/src/WaxToolGroups/BottomToolGroupService/InfoToolGroupService/InfoTool.js b/wax-prosemirror-services/src/WaxToolGroups/BottomToolGroupService/InfoToolGroupService/InfoTool.js index 5ada453cbac1acc51fa4fa325de5e839f8611593..710077481bc65cdeda6e6cf3a76840e162c9168c 100644 --- a/wax-prosemirror-services/src/WaxToolGroups/BottomToolGroupService/InfoToolGroupService/InfoTool.js +++ b/wax-prosemirror-services/src/WaxToolGroups/BottomToolGroupService/InfoToolGroupService/InfoTool.js @@ -3,16 +3,15 @@ import ToolGroup from '../../../lib/ToolGroup'; @injectable() class InfoToolGroup extends ToolGroup { - tools = []; - constructor( - @inject('CounterInfoTool') counterinfotool, - @inject('ShortcutTool') shortcuttools, - @inject('HelpTool') helptool, - ) { - - super(); - this.tools = [counterinfotool,shortcuttools,helptool]; - } + tools = []; + constructor( + @inject('CounterInfoTool') counterinfotool, + @inject('ShortcutTool') shortcuttools, + @inject('HelpTool') helptool, + ) { + super(); + this.tools = [counterinfotool]; + } } -export default InfoToolGroup; \ No newline at end of file +export default InfoToolGroup;