You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to implement prosemirror-dev-tools / prosemirror-dev-toolkit in order to make debugging and testing the prosemirror editor much more efficient.
I was able to doge one error message by editing the Gruntfile but was left with another
Install via npm
Change humhub-prosemirror/Gruntfile.js the following line:
import {applyDevTools} from "prosemirror-dev-tools";
const view = new EditorView /*...*/();
applyDevTools(this.view);
the original error messages are resolved now.
Apparently, the toolkit still is not working and throws the following error on the web console:
Uncaught TypeError: HTMLElement constructor: 'new' is required
ProseMirrorDevToolkit http://127.0.0.1/assets/609e776a/humhub-editor.js?v=1684786792:16515
Luckily, since 6.1.2023 there is now a Chrome Extension available for prosemirror-dev-toolkit that does work with humhub. I'll keep this issue open though as it should also work when bundling via grunt
I tried to implement prosemirror-dev-tools / prosemirror-dev-toolkit in order to make debugging and testing the prosemirror editor much more efficient.
I was able to doge one error message by editing the Gruntfile but was left with another
humhub-prosemirror/Gruntfile.js
the following line:with these
from repository ReadMe:
Done that in
humhub-prosemirror/src/editor/index.js
grunt rollup
Somehow afterwords the editor is not loaded properly and I get the following error messages:

Interestingly the error also occurs without
applyDevTools(this.view);
inserted. The import itself is enough.Any idea how to make it work?
The text was updated successfully, but these errors were encountered: