Skip to content

Commit

Permalink
experiment: no use credential
Browse files Browse the repository at this point in the history
  • Loading branch information
BlankParticle committed Aug 31, 2024
1 parent e9c41d6 commit c2ded56
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions packages/tiptap/extensions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,6 @@ export const createExtensionSet = ({
}
};
},
renderHTML: ({ HTMLAttributes, node }) => {
const isInternalImage =
storageUrl &&
typeof node.attrs.src === 'string' &&
node.attrs.src.startsWith(storageUrl);
return [
'img',
isInternalImage
? {
...node.attrs,
...HTMLAttributes,
crossorigin: 'use-credentials'
}
: { ...node.attrs, ...HTMLAttributes }
];
},
addProseMirrorPlugins: () => {
return [
UploadImagesPlugin({
Expand Down

0 comments on commit c2ded56

Please sign in to comment.