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