Skip to content

Releases: udecode/plate

platejs@49.0.6

19 Jun 15:46
0931c2e
Compare
Choose a tag to compare
platejs@49.0.6

@platejs/utils@49.0.6

19 Jun 15:46
0931c2e
Compare
Choose a tag to compare
@platejs/utils@49.0.6

@platejs/core@49.0.6

19 Jun 15:46
0931c2e
Compare
Choose a tag to compare

Patch Changes

  • #4382 by @delijah – Omit duplicate keys on TPlateEditor to avoid wrong union types

platejs@49.0.5

17 Jun 17:43
6f0e3c6
Compare
Choose a tag to compare
platejs@49.0.5

platejs@49.0.4

17 Jun 14:20
840b55f
Compare
Choose a tag to compare
platejs@49.0.4

@platejs/utils@49.0.5

17 Jun 17:43
6f0e3c6
Compare
Choose a tag to compare
@platejs/utils@49.0.5

@platejs/utils@49.0.4

17 Jun 14:20
840b55f
Compare
Choose a tag to compare
@platejs/utils@49.0.4

@platejs/core@49.0.5

17 Jun 17:43
6f0e3c6
Compare
Choose a tag to compare

Patch Changes

  • #4371 by @12joan – Enable chunking by default. To disable it, use chunking: false when creating the editor.

@platejs/core@49.0.4

17 Jun 14:20
840b55f
Compare
Choose a tag to compare

Patch Changes

  • #4373 by @zbeyens

    • Fixes #4374
    • Prevent rendering the editor until the value is loaded (when value is async or skipInitialization is true).
    • Added support for both synchronous and asynchronous functions in the value option for createPlateEditor and usePlateEditor. If async, usePlateEditor will trigger a re-render when the value is loaded.
    • Added onReady callback option to createPlateEditor and usePlateEditor called after (async) editor initialization.
    const editor = usePlateEditor({
      value: async () => {
        const response = await fetch('/api/document');
        const data = await response.json();
        return data.content;
      },
      onReady: ({ editor, value }) => {
        console.info('Editor ready with value:', value);
      },
    });

platejs@49.0.3

16 Jun 12:57
1d8f7a2
Compare
Choose a tag to compare
platejs@49.0.3