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

pass config

parent 116e8e74
No related branches found
No related tags found
1 merge request!479set multiple choice aria-label
...@@ -45,6 +45,7 @@ import { ...@@ -45,6 +45,7 @@ import {
CustomTagService, CustomTagService,
YjsService, YjsService,
disallowPasteImagesPlugin, disallowPasteImagesPlugin,
BlockDropDownToolGroupService,
} from 'wax-prosemirror-services'; } from 'wax-prosemirror-services';
import { EditoriaSchema } from 'wax-prosemirror-core'; import { EditoriaSchema } from 'wax-prosemirror-core';
...@@ -62,8 +63,8 @@ import CharactersList from './CharactersList'; ...@@ -62,8 +63,8 @@ import CharactersList from './CharactersList';
// }; // };
const updateTitle = debounce(title => { const updateTitle = debounce(title => {
// console.log(title); console.log(title);
}, 3000); }, 100);
const saveTags = tags => { const saveTags = tags => {
// console.log(tags); // console.log(tags);
...@@ -83,6 +84,7 @@ export default { ...@@ -83,6 +84,7 @@ export default {
templateArea: 'mainMenuToolBar', templateArea: 'mainMenuToolBar',
toolGroups: [ toolGroups: [
'Base', 'Base',
'BlockDropDown',
{ {
name: 'Annotations', name: 'Annotations',
more: [ more: [
...@@ -105,10 +107,10 @@ export default { ...@@ -105,10 +107,10 @@ export default {
'FullScreen', 'FullScreen',
], ],
}, },
{ // {
templateArea: 'leftSideBar', // templateArea: 'leftSideBar',
toolGroups: ['DisplayText'], // toolGroups: ['DisplayText'],
}, // },
{ {
templateArea: 'commentTrackToolBar', templateArea: 'commentTrackToolBar',
toolGroups: ['TrackCommentOptions'], toolGroups: ['TrackCommentOptions'],
...@@ -173,6 +175,7 @@ export default { ...@@ -173,6 +175,7 @@ export default {
services: [ services: [
// new YjsService(), // new YjsService(),
new BlockDropDownToolGroupService(),
new CustomTagService(), new CustomTagService(),
new DisplayBlockLevelService(), new DisplayBlockLevelService(),
new DisplayToolGroupService(), new DisplayToolGroupService(),
...@@ -196,7 +199,7 @@ export default { ...@@ -196,7 +199,7 @@ export default {
new CodeBlockService(), new CodeBlockService(),
new CodeBlockToolGroupService(), new CodeBlockToolGroupService(),
new EditingSuggestingService(), new EditingSuggestingService(),
new DisplayTextToolGroupService(), // new DisplayTextToolGroupService(),
new MathService(), new MathService(),
new FindAndReplaceService(), new FindAndReplaceService(),
new TrackingAndEditingToolGroupService(), new TrackingAndEditingToolGroupService(),
......
...@@ -30,8 +30,9 @@ export default class Title extends Tools { ...@@ -30,8 +30,9 @@ export default class Title extends Tools {
const { const {
selection: { $from, $to }, selection: { $from, $to },
} = state; } = state;
console.log(this.config);
if (this.config) { if (this.config.get('config.OENContainersService')) {
console.log('here??');
const allowedLevel = checkLevelFromConfig( const allowedLevel = checkLevelFromConfig(
state, state,
activeViewId, activeViewId,
......
...@@ -5,7 +5,7 @@ import Title from './Title'; ...@@ -5,7 +5,7 @@ import Title from './Title';
class TitleService extends Service { class TitleService extends Service {
register() { register() {
this.container.bind('Title').toDynamicValue(() => { this.container.bind('Title').toDynamicValue(() => {
return new Title(this.config.get('config.OENContainersService')); return new Title(this.config);
}); });
const createNode = this.container.get('CreateNode'); const createNode = this.container.get('CreateNode');
createNode( createNode(
......
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