File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,8 @@ <h2>TipTap basic example</h2>
143143 context-menu-tags: #context-menu-tags;
144144 url-scheme-tags: https://quaive.cornelis.amsterdam/tags/{TAG};
145145 collaboration-server: ws://127.0.0.1:1234;
146- collaboration-document: example-document
146+ collaboration-document: example-document;
147+ collaboration-authentication-token: testtoken;
147148 "
148149 placeholder ="Your poem goes here... "
149150 autocomplete ="off "
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ parser.addArgument("context-menu-tags", null);
2626parser . addArgument ( "url-scheme-tags" , null ) ;
2727
2828parser . addArgument ( "collaboration-server" , null ) ;
29+ parser . addArgument ( "collaboration-authentication-token" , null ) ;
2930parser . addArgument ( "collaboration-document" , null ) ;
3031parser . addArgument ( "collaboration-user" , null ) ;
3132parser . addArgument ( "collaboration-color" , null ) ;
@@ -181,6 +182,7 @@ export default Base.extend({
181182 const provider = new HocuspocusProvider ( {
182183 url : this . options . collaboration . server ,
183184 name : this . options . collaboration . document ,
185+ token : this . options . collaboration [ "authentication-token" ] ,
184186 } ) ;
185187 provider . setAwarenessField ( "user" , {
186188 name : user_name ,
You can’t perform that action at this time.
0 commit comments