From ce77bd3ebdb7ce5aad5a53e3f17d87a3028be47e Mon Sep 17 00:00:00 2001
From: chris <kokosias@yahoo.gr>
Date: Thu, 19 Jan 2023 12:11:47 +0200
Subject: [PATCH] remove comment

---
 editors/demo/src/Editoria/config/config.js         | 14 +++++++-------
 editors/demo/src/Editors.js                        |  2 +-
 .../CommentsService/components/ConnectedComment.js |  1 +
 3 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/editors/demo/src/Editoria/config/config.js b/editors/demo/src/Editoria/config/config.js
index b120dd1c0..fc3926bfd 100644
--- a/editors/demo/src/Editoria/config/config.js
+++ b/editors/demo/src/Editoria/config/config.js
@@ -150,16 +150,16 @@ export default {
       { label: 'custom-tag-label-3', tagType: 'block' },
       { label: 'label 2', tagType: 'block' },
     ],
-    // updateTags: saveTags,
-  },
-  YjsService: {
-    // eslint-disable-next-line no-restricted-globals
-    connectionUrl: 'ws://localhost:4000',
-    docIdentifier: 'prosemirror-demo',
+    updateTags: saveTags,
   },
+  // YjsService: {
+  //   // eslint-disable-next-line no-restricted-globals
+  //   connectionUrl: 'ws://localhost:4000',
+  //   docIdentifier: 'prosemirror-demo',
+  // },
 
   services: [
-    new YjsService(),
+    // new YjsService(),
     new CustomTagService(),
     new DisplayBlockLevelService(),
     new DisplayToolGroupService(),
diff --git a/editors/demo/src/Editors.js b/editors/demo/src/Editors.js
index 0ffa6e096..9e14f6ac6 100644
--- a/editors/demo/src/Editors.js
+++ b/editors/demo/src/Editors.js
@@ -73,7 +73,7 @@ const Editors = () => {
       case 'oen':
         return <OEN />;
       default:
-        return <Editoria />;
+        return <HHMI />;
     }
   };
 
diff --git a/wax-prosemirror-services/src/CommentsService/components/ConnectedComment.js b/wax-prosemirror-services/src/CommentsService/components/ConnectedComment.js
index 347e79156..e9b6d9cf4 100644
--- a/wax-prosemirror-services/src/CommentsService/components/ConnectedComment.js
+++ b/wax-prosemirror-services/src/CommentsService/components/ConnectedComment.js
@@ -83,6 +83,7 @@ export default ({ comment, top, commentId, recalculateTops }) => {
           commentMark,
         ),
       );
+
       activeView.dispatch(
         activeView.state.tr
           .addMark(
-- 
GitLab