platform-bible-react
    Preparing search index...

    Interface FootnoteEditorProps

    Interface containing the types of the properties that are passed to the FootnoteEditor

    interface FootnoteEditorProps {
        classNameForEditor?: string;
        defaultMarkerMenuTrigger: string;
        editorOptions: EditorOptions;
        localizedStrings: FootnoteEditorLocalizedStrings;
        noteKey: undefined | string;
        noteOps: undefined | DeltaOpInsertNoteEmbed[];
        onChange?: (noteOps: DeltaOpInsertNoteEmbed[]) => void;
        onClose: () => void;
        parentEditorRef?: RefObject<null | EditorRef>;
        scrRef: SerializedVerseRef;
    }
    Index

    Properties

    classNameForEditor?: string

    Class name for styling the embedded Editor component in this editor popover

    defaultMarkerMenuTrigger: string

    Trigger key to open the footnote editor marker menu

    editorOptions: EditorOptions

    View options of the parent editor

    Localized strings to be passed to the footnote editor component

    noteKey: undefined | string

    The unique note key to identify the note being edited used to apply changes to the note

    noteOps: undefined | DeltaOpInsertNoteEmbed[]

    Delta ops for the current note being edited that are applied to the note editorial

    onChange?: (noteOps: DeltaOpInsertNoteEmbed[]) => void

    Called on every change to the footnote with the updated note ops. An implementation of this function is required only if the parent does not supply parentEditorRef or if some additional logic is needed to handle the changes. The note ops passed in this function are the full ops for the note, not just the changes since the last call.

    onClose: () => void

    External function to handle closing the footnote editor

    parentEditorRef?: RefObject<null | EditorRef>

    Ref to the parent editor. When provided, the footnote editor will apply changes directly to the parent editor, so the client does not need to handle this in the onChange callback.

    scrRef: SerializedVerseRef

    The scripture reference for the parent editor