plane/apps/app/components/tiptap/extensions/updated-image.tsx
2023-08-16 22:43:17 +05:30

18 lines
282 B
TypeScript

import Image from "@tiptap/extension-image";
const UpdatedImage = Image.extend({
addAttributes() {
return {
...this.parent?.(),
width: {
default: null,
},
height: {
default: null,
},
};
},
});
export default UpdatedImage;