From 702ad161cfa3d6d7c546efdee67ae1e102cfec67 Mon Sep 17 00:00:00 2001 From: Felix Feng Date: Tue, 5 Nov 2024 11:12:26 +0800 Subject: [PATCH] docs --- .changeset/sour-bananas-arrive.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.changeset/sour-bananas-arrive.md b/.changeset/sour-bananas-arrive.md index 3d405ccd81..e7e7f60126 100644 --- a/.changeset/sour-bananas-arrive.md +++ b/.changeset/sour-bananas-arrive.md @@ -1,10 +1,15 @@ --- '@udecode/plate-media': minor --- +ImagePlugin: +- New `initialHeight` and `initialWidth` in `TImageElement` This will display a loading placeholder while the image is still loading, which helps maintain a consistent height. +- New Api: editor.insert.imageFromFiles -New `initialHeight` and `initialWidth` in `TImageElement` This will display a loading placeholder while the image is still loading, which helps maintain a consistent height. -Mew `placeholderId` Used to track what was converted from that placeholder plugin. -New `insertMedia` Used for inserting the placeholder at once. -New `validateFiles` utils for validate the files meet the `mediaConfig`. -If validation fails,stop insert placeholder and save the error message in uploadErrorMessage. -NEw `option.multiple` `uploadMaxFileCount` Used to limit the number of placeholders inserted. \ No newline at end of file +PlaceholderPlugin: +- Mew `placeholderId` Used to track what was converted from that placeholder plugin. +- New `insertMedia` Used for inserting the placeholder at once. +- New `validateFiles` utils for validate the files meet the `mediaConfig`. + - If validation fails,stop insert placeholder and save the error message in uploadErrorMessage. +- New `option.multiple` `maxFileCount` Used to limit the number of placeholders inserted. +- New `option.disable` `disabledDndPlugin` Used to using the browser drop. +- New `error` use `editor.useOption` to watch and display a toast message.