@editora/plugins 1.2.3 → 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 CHANGED
@@ -278,12 +278,16 @@ CollaborationPlugin({
278
278
  });
279
279
  ```
280
280
 
281
- > [!WARNING]
282
- > **Without `websocketUrl` the plugin syncs through the public Yjs demo server** (`wss://demos.yjs.dev`). The room is
283
- > named after `roomName`, then the editor's `id`, and otherwise `editora-default-room`, which every user of the
284
- > default shares. Anyone who knows the room name can read and edit the document. The plugin logs a warning once when
285
- > this happens. Always pass your own server. In `<editora-editor>`, also list your plugins: leaving the `plugins`
286
- > attribute out loads every plugin, this one included.
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