Skip to content

Get ContentEditorManager dependencies from request scope#6950

Merged
valadas merged 1 commit into
dnnsoftware:release/10.2.2from
bdukes:fix-missing-edit-bar
Jan 29, 2026
Merged

Get ContentEditorManager dependencies from request scope#6950
valadas merged 1 commit into
dnnsoftware:release/10.2.2from
bdukes:fix-missing-edit-bar

Conversation

@bdukes

@bdukes bdukes commented Jan 29, 2026

Copy link
Copy Markdown
Contributor

Summary

In DNN 10.2.2 RC1, the edit bar does not display in edit mode. There is an error in the console about dnn.ContentEditorManager being undefined, which points to ContentEditor.js not being registered by ContentEditorManager.

This line was successfully running, but when the scripts were rendered on the page, the script was not in the list of requested scripts. This is because the IClientResourceController passed to the constructor of ContentEditorManager did not come from the current request scope, but was created when EditBarModule was instantiated was instantiated (due to timing issues with DI support in IHttpModule implementations).

The solution in this PR is to get the dependencies from the request scope when needed, rather than using constructor injection.

The ClientResourceController needs to be scoped to the request, since it
is stateful.
@bdukes bdukes added this to the 10.2.2 milestone Jan 29, 2026

@valadas valadas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent! Thanks again!

@valadas
valadas merged commit 66eac77 into dnnsoftware:release/10.2.2 Jan 29, 2026
3 checks passed
@bdukes
bdukes deleted the fix-missing-edit-bar branch February 4, 2026 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants