diff --git a/editors/demo/src/Editoria/config/config.js b/editors/demo/src/Editoria/config/config.js index 4e0e6c816cf9df7ae9c21f2a231f55baf164bbc6..fc07b8b5877ddefaf6a1c69b0899f5144b6c76b5 100644 --- a/editors/demo/src/Editoria/config/config.js +++ b/editors/demo/src/Editoria/config/config.js @@ -45,6 +45,7 @@ import CharactersList from './CharactersList'; // const updateTitle = title => { // console.log(title); // }; +console.log('in config'); async function DummyPromise(userInput) { return new Promise((resolve, reject) => { @@ -289,7 +290,7 @@ export default { ImageService: { showAlt: true }, CommentsService: { - showTitle: false, + showTitle: true, getComments, setComments, }, diff --git a/wax-prosemirror-services/src/CommentsService/plugins/CommentState.js b/wax-prosemirror-services/src/CommentsService/plugins/CommentState.js index b685c0c8e20ef6ad39c2483d93cfb7b0b282e569..abe0758148af0b10d01c180a2a84a9a2a6cff28b 100644 --- a/wax-prosemirror-services/src/CommentsService/plugins/CommentState.js +++ b/wax-prosemirror-services/src/CommentsService/plugins/CommentState.js @@ -211,7 +211,7 @@ export default class CommentState { return this; // eslint-disable-next-line no-else-return } else { - this.options.map.forEach((annotation, _) => { + map.forEach((annotation, _) => { if ('from' in annotation && 'to' in annotation) { annotation.from = transaction.mapping.map(annotation.from); annotation.to = transaction.mapping.map(annotation.to);