mirror of
https://github.com/docmost/docmost.git
synced 2025-11-14 17:41:11 +10:00
feat: google sheets embed (#615)
This commit is contained in:
@ -91,6 +91,14 @@ export const embedProviders: IEmbedProvider[] = [
|
||||
return `https://drive.google.com/file/d/${match[4]}/preview`;
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'gsheets',
|
||||
name: 'Google Sheets',
|
||||
regex: /^((?:https?:)?\/\/)?((?:www|m)\.)?(docs\.google\.com)\/spreadsheets\/d\/e\/([a-zA-Z0-9_-]+)\/.*$/,
|
||||
getEmbedUrl: (match, url: string) => {
|
||||
return url
|
||||
}
|
||||
},
|
||||
];
|
||||
|
||||
export function getEmbedProviderById(id: string) {
|
||||
|
||||
Reference in New Issue
Block a user