Skip to content
Snippets Groups Projects
Commit df35e52f authored by chris's avatar chris
Browse files

cleanup

parent 6035f64c
No related branches found
No related tags found
1 merge request!215set id
...@@ -102,25 +102,16 @@ export default { ...@@ -102,25 +102,16 @@ export default {
}, },
{ {
templateArea: 'BottomRightInfo', templateArea: 'BottomRightInfo',
toolGroups: [ toolGroups: ['InfoToolGroup'],
{
name: 'InfoToolGroup',
more: [
'CounterInfoTool',
'ShortcutTool',
'HelpTool'
],
},
],
}, },
], ],
SchemaService: DefaultSchema, SchemaService: DefaultSchema,
TitleService: { updateTitle },
RulesService: [emDash, ellipsis], RulesService: [emDash, ellipsis],
ShortCutsService: {}, ShortCutsService: {},
EnableTrackChangeService: { enabled: false }, EnableTrackChangeService: { enabled: false },
TitleService: { updateTitle },
PmPlugins: [ PmPlugins: [
columnResizing(), columnResizing(),
tableEditing(), tableEditing(),
......
...@@ -45,6 +45,10 @@ import invisibles, { ...@@ -45,6 +45,10 @@ import invisibles, {
paragraph, paragraph,
} from '@guardian/prosemirror-invisibles'; } from '@guardian/prosemirror-invisibles';
const updateTitle = title => {
console.log(title);
};
export default { export default {
MenuService: [ MenuService: [
{ {
...@@ -68,21 +72,13 @@ export default { ...@@ -68,21 +72,13 @@ export default {
}, },
{ {
templateArea: 'BottomRightInfo', templateArea: 'BottomRightInfo',
toolGroups: [ toolGroups: ['InfoToolGroup'],
{
name: 'InfoToolGroup',
more: [
'CounterInfoTool',
'ShortcutTool',
'HelpTool'
],
},
],
}, },
], ],
RulesService: [emDash, ellipsis], RulesService: [emDash, ellipsis],
ShortCutsService: {}, ShortCutsService: {},
TitleService: { updateTitle },
EnableTrackChangeService: { enabled: false }, EnableTrackChangeService: { enabled: false },
PmPlugins: [ PmPlugins: [
......
...@@ -3,16 +3,15 @@ import ToolGroup from '../../../lib/ToolGroup'; ...@@ -3,16 +3,15 @@ import ToolGroup from '../../../lib/ToolGroup';
@injectable() @injectable()
class InfoToolGroup extends ToolGroup { class InfoToolGroup extends ToolGroup {
tools = []; tools = [];
constructor( constructor(
@inject('CounterInfoTool') counterinfotool, @inject('CounterInfoTool') counterinfotool,
@inject('ShortcutTool') shortcuttools, @inject('ShortcutTool') shortcuttools,
@inject('HelpTool') helptool, @inject('HelpTool') helptool,
) { ) {
super();
super(); this.tools = [counterinfotool];
this.tools = [counterinfotool,shortcuttools,helptool]; }
}
} }
export default InfoToolGroup; export default InfoToolGroup;
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment