ckeditor / ckeditor5-collaboration-samples

Collaboration integration examples for CKEditor 5
Other
51 stars 101 forks source link

how to get rid of the dialogue box which pops up when server runs...how can we remove it? #18

Closed MansiGoyal06 closed 4 years ago

MansiGoyal06 commented 4 years ago

Screenshot (4)

Mgsy commented 4 years ago

Hi, the dialog is created by createDialog() function in the sample file - https://github.com/ckeditor/ckeditor5-collaboration-samples/blob/master/classic-editor-with-real-time-collaboration/samples/classic-editor-with-real-time-collaboration.html#L200

Just remove it and pass your Cloud Services credentials directly to the cloudServices object, for example:

watchdog.create( document.querySelector( '.editor' ), {
    initialData,
    cloudServices: {
        tokenUrl: 'your-token-url',
        uploadUrl: 'your-upload-url',
        webSocketUrl: 'your-ws-url'
    },
    collaboration: {
        channelId: 'your-channel-id'
    },
    sidebar: {
        container: document.querySelector( '.sidebar' )
    },
    presenceList: {
        container: document.querySelector( '.presence' )
    }
} );
parth-gr commented 4 years ago

Thanks for your reply, I am going from the same problem. After making the code hardcoded then also the dialog is asking for the details.

And also after entering the Token URL its ask for to choose the user so how to get rid of this. And make a fully automatic device, which directly serves the Editor.(I am even not interested in users so better if I can remove this property).