@editora/plugins 1.2.2 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -6
- package/dist/collaboration.cjs.js +8 -8
- package/dist/collaboration.esm.js +629 -604
- package/dist/plugins.css +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -278,12 +278,16 @@ CollaborationPlugin({
|
|
|
278
278
|
});
|
|
279
279
|
```
|
|
280
280
|
|
|
281
|
-
> [!
|
|
282
|
-
> **
|
|
283
|
-
>
|
|
284
|
-
>
|
|
285
|
-
>
|
|
286
|
-
>
|
|
281
|
+
> [!IMPORTANT]
|
|
282
|
+
> **The plugin connects only to a server you give it:** a `websocketUrl` or a `provider`. With neither it stays off and
|
|
283
|
+
> logs a warning. Earlier versions fell back to the public Yjs demo server (`wss://demos.yjs.dev`), where anyone who
|
|
284
|
+
> knows the room name can read and edit the document, and `<editora-editor>` loaded the plugin by default. The room is
|
|
285
|
+
> named after `roomName`, then the `id` of the editable element (the web component sets none), and otherwise
|
|
286
|
+
> `editora-default-room`, which every default user shared.
|
|
287
|
+
>
|
|
288
|
+
> For a throwaway demo, `allowPublicDemoServer: true` syncs through that public server and logs a warning; give such a
|
|
289
|
+
> demo a long, unguessable `roomName`. In `<editora-editor>` the plugin is no longer part of the default set: name it
|
|
290
|
+
> in the `plugins` attribute.
|
|
287
291
|
|
|
288
292
|
The other options are `userColor`, and `doc` or `provider` if you already have a Yjs document or provider.
|
|
289
293
|
|