Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: disable static asset mangling for v2 Content Libraries
The static asset substitution used to make images show up properly when in the TinyMCE editor doesn't work for Content Libraries. Unfortunately, this will cause the static asset references in XBlock content to get mangled and saved incorrectly. So until we can handle it correctly, we're just going to disable it entirely if the LearningContext is a v2 Content Library. This means that static assets won't display properly in the editor itself, but it should at least get written/preserved correctly, so that those assets will show up properly in XBlock previews.
- Loading branch information