You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
483 B

import { Editor as CoreEditor } from '@tiptap/core'
import React from 'react'
import { EditorContentProps, EditorContentState } from './EditorContent'
import { ReactRenderer } from './ReactRenderer'
type ContentComponent = React.Component<EditorContentProps, EditorContentState> & {
setRenderer(id: string, renderer: ReactRenderer): void;
removeRenderer(id: string): void;
}
export class Editor extends CoreEditor {
public contentComponent: ContentComponent | null = null
}