Releases: udecode/plate
Releases · udecode/plate
platejs@49.0.6
platejs@49.0.6
@platejs/utils@49.0.6
@platejs/utils@49.0.6
@platejs/core@49.0.6
platejs@49.0.5
platejs@49.0.5
platejs@49.0.4
platejs@49.0.4
@platejs/utils@49.0.5
@platejs/utils@49.0.5
@platejs/utils@49.0.4
@platejs/utils@49.0.4
@platejs/core@49.0.5
@platejs/core@49.0.4
Patch Changes
-
- 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 forcreatePlateEditor
andusePlateEditor
. If async,usePlateEditor
will trigger a re-render when the value is loaded. - Added
onReady
callback option tocreatePlateEditor
andusePlateEditor
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
platejs@49.0.3