feat(core): attach a pdf (#10039)
Co-authored-by: L-Sun <zover.v@gmail.com>
This commit is contained in:
1 parent
769547c2d5
commit
b82fc3bc10
10 files changed
+82
-12
No files matched your search
@@ -215,7 +215,8 @@ export async function addSiblingAttachmentBlocks(
|
||||
files: File[],
|
||||
maxFileSize: number,
|
||||
targetModel: BlockModel,
|
||||
place: 'before' | 'after' = 'after'
|
||||
place: 'before' | 'after' = 'after',
|
||||
isEmbed?: boolean
|
||||
) {
|
||||
if (!files.length) {
|
||||
return;
|
||||
@@ -245,6 +246,7 @@ export async function addSiblingAttachmentBlocks(
|
||||
name: file.name,
|
||||
size: file.size,
|
||||
type: types[index],
|
||||
embed: isEmbed,
|
||||
}));
|
||||
|
||||
const blockIds = doc.addSiblingBlocks(
|
||||
|
||||
Reference in new issue
Block a user