Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfeng33 committed Nov 5, 2024
1 parent 43f5b0e commit 702ad16
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .changeset/sour-bananas-arrive.md
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.

0 comments on commit 702ad16

Please sign in to comment.