How can I extend tiptap configuration to support non breaking whitespace

I found a method on the tipTapExtensionApiBase that I did not notice at first. Implementing that seems to work.

export default class UmbTiptapWhitespaceExtensionApi extends UmbTiptapExtensionApiBase {
    getTiptapExtensions(_?: UmbTiptapExtensionArgs): Array<Extension | Mark | Node> {
        return [];
    }

    setEditor(editor: Editor) {
        editor.setOptions({
            parseOptions:{
                preserveWhitespace: true,
            }
        })
    }
}