Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual editor wrongly installed #1

Closed
solarkraft opened this issue Aug 23, 2021 · 2 comments
Closed

Visual editor wrongly installed #1

solarkraft opened this issue Aug 23, 2021 · 2 comments

Comments

@solarkraft
Copy link
Member

Screen.Recording.2021-08-23.at.18.40.15-2.mov

Switching back to the text editor sometimes works by reloading - usually not. Manually installing the VE via the extension menu seems to work just fine.

@solarkraft
Copy link
Member Author

solarkraft commented Aug 23, 2021

Hint 1: handleSwitchEditorResponse fails because window.Prosemirror is undefined. This keeps us from switching back to the text editor (also called after 5 seconds).

TypeError: undefined is not an object (evaluating 'window.Prosemirror.destroyProsemirror')
    showDefaultEditor — js.php:5898
    handleSwitchEditorResponse — js.php:5981
    c — jquery.php:1306
    fireWith — jquery.php:1347:98
    l — jquery.php:3598:427
    (anonymous function) — jquery.php:3705:241

Hint 2: showProsemirror fails because ... window.Prosemirror is undefined.

[Error] TypeError: undefined is not an object (evaluating 'window.Prosemirror.enableProsemirror')
	showProsemirror (js.php:1:163535)
	handleSwitchEditorResponse (js.php:1:165619)
	c (jquery.php:2:28300)
	fireWith (jquery.php:2:29041)
	l (jquery.php:2:79812)
	(anonymous function) (jquery.php:2:82256)

Hint 3: Disabling and enabling the plugin makes no difference, same thing with restarting the container. What does make a difference is installing the original version and manually putting the custom one back over it.

@solarkraft
Copy link
Member Author

lib/bundle.js is missing, which is created using Babel in the release version. So that's a problem with how I ship the visual editor.

solarkraft added a commit that referenced this issue Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant