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 {
},
{
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(),
......
......@@ -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: [
......
......@@ -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;
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