# How can I extend tiptap configuration to support non breaking whitespace

**URL:** <https://forum.umbraco.com/t/how-can-i-extend-tiptap-configuration-to-support-non-breaking-whitespace/3544>\
**Category:** Questions\
**Tags:** v15, extending, bellissima\
**Created:** [May 15, 2025, 7:23am UTC](https://forum.umbraco.com/t/how-can-i-extend-tiptap-configuration-to-support-non-breaking-whitespace/3544 "2025-05-15T07:23:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![krebil](https://forum.umbraco.com/user_avatar/forum.umbraco.com/krebil/32/1307_2.png) [@krebil](https://forum.umbraco.com/u/krebil)\
**Post date:** [May 15, 2025, 7:23am UTC](https://forum.umbraco.com/t/how-can-i-extend-tiptap-configuration-to-support-non-breaking-whitespace/3544/1 "2025-05-15T07:23:04Z")

</div>

So I want apply different parseOptions to tiptap to support French typegraphy rules based on non breaking whitespaces.

I’m looking at this option specifically [Editor Class | Tiptap Editor Docs](https://tiptap.dev/docs/editor/api/editor#parseoptions)

I’ve tried in an extension, but I’m not sure how to get the editor instance.

---

<div class="post-metadata">

**Author:** ![krebil](https://forum.umbraco.com/user_avatar/forum.umbraco.com/krebil/32/1307_2.png) [@krebil](https://forum.umbraco.com/u/krebil)\
**Post date:** [May 15, 2025, 8:25am UTC](https://forum.umbraco.com/t/how-can-i-extend-tiptap-configuration-to-support-non-breaking-whitespace/3544/3 "2025-05-15T08:25:23Z")

</div>

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

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

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

```
