tiptap-extension-iframely
Version:
A Tiptap extension for adding embedded content with Iframely.
22 lines (19 loc) • 454 B
text/typescript
import { Node } from '@tiptap/core';
declare global {
interface Window {
iframely?: {
load: (container: HTMLElement, src: string) => void;
};
}
}
declare module '@tiptap/core' {
interface Commands<ReturnType> {
iframely: {
setIframelyEmbed: (options: {
src: string;
}) => ReturnType;
};
}
}
declare const Iframely: Node<any, any>;
export { Iframely };