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

Regression: "backdrop" in editorSettings may not be defined #147

Closed
indigoxela opened this issue Jan 6, 2025 · 1 comment · Fixed by #148 or #149
Closed

Regression: "backdrop" in editorSettings may not be defined #147

indigoxela opened this issue Jan 6, 2025 · 1 comment · Fixed by #148 or #149

Comments

@indigoxela
Copy link
Member

indigoxela commented Jan 6, 2025

The (rare) problem has been introduced with #143, where a check is done for a format.editorSettings.backdrop.allowInlineStyle setting.

But "backdrop" doesn't exist if the profile doesn't use any plugin that provides own settings.

This results in the editor not initializing at all with: Uncaught (in promise) TypeError: format.editorSettings.backdrop is undefined

To fix this, just do a check if the item exists before trying to access it.

@indigoxela
Copy link
Member Author

Reopening this issue, as the yesterday's fix contains a logic flaw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant