Trying to install updated packages to get the ShadEditor working. I hope.

This commit is contained in:
Scott Idem
2024-12-02 15:43:46 -05:00
parent b7515f0680
commit a0473cb50b
41 changed files with 3007 additions and 365 deletions

View File

@@ -0,0 +1,32 @@
import { SvelteNodeViewRenderer } from 'svelte-tiptap';
import ImageExtendedComponent from '../image-extended-component.svelte';
import Image from '@tiptap/extension-image';
export const ImageExtension = Image.extend({
addAttributes() {
return {
src: {
default: null
},
alt: {
default: null
},
title: {
default: null
},
width: {
default: '100%'
},
height: {
default: null
},
align: {
default: 'left'
}
};
},
addNodeView: () => {
return SvelteNodeViewRenderer(ImageExtendedComponent);
}
});