-
-
Notifications
You must be signed in to change notification settings - Fork 715
Commit
Media
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@udecode/plate-ai': patch | ||
--- | ||
|
||
Missing export |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@udecode/plate-dnd': patch | ||
--- | ||
|
||
Add `enableFile` option to check whether to enable the DnD plugin for files dragged in from outside the browser. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +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 | ||
|
||
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. |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.