From c3e58b1a667a5df9efd36b5155b126c449c58ea6 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 18 Nov 2024 14:13:07 +0100 Subject: [PATCH] make DomParser available via Public API --- script/initializePublicAPI.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/initializePublicAPI.js b/script/initializePublicAPI.js index a77c30f6..a77db977 100644 --- a/script/initializePublicAPI.js +++ b/script/initializePublicAPI.js @@ -1,3 +1,4 @@ +import { DOMParser } from 'prosemirror-model'; import KeyValueForm from './nodeviews/KeyValueForm'; import AbstractMenuItemDispatcher from './plugins/Menu/MenuItems/AbstractMenuItemDispatcher'; import MenuItem from './plugins/Menu/MenuItem'; @@ -13,6 +14,7 @@ export default function initializePublicAPI() { window.Prosemirror.classes.KeyValueForm = KeyValueForm; window.Prosemirror.classes.MenuItem = MenuItem; window.Prosemirror.classes.AbstractMenuItemDispatcher = AbstractMenuItemDispatcher; + window.Prosemirror.classes.DOMParser = DOMParser; window.Prosemirror.commands = {}; window.Prosemirror.commands.setBlockTypeNoAttrCheck = setBlockTypeNoAttrCheck;