-
-
Notifications
You must be signed in to change notification settings - Fork 755
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
43f5b0e
commit 702ad16
Showing
1 changed file
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. | ||
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. |