Skip to content

Commit

Permalink
make DomParser available via Public API
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Nov 18, 2024
1 parent 42ef1bb commit c3e58b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions script/initializePublicAPI.js
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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;
Expand Down

0 comments on commit c3e58b1

Please sign in to comment.