Fix/aut 3923/textreader image figure support #606
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to https://oat-sa.atlassian.net/browse/AUT-3923
Changes
mediaAlignment/helper
In TextReader PCI,
parent.contentModel && parent.contentModel === 'inlineStatic'
didn't pass becauseparent.contentModel
was undefined. Becausewidget.refresh
didn't run, something wasn't updated, and image align reverted to Inline.It seemed fine to always call
widget.refresh
instead ofactive/sleep/active
for other cases (A-block, ChoiceInteraction choice), not only for Prompt. Only for prompts of MathEntry/Likert PCI, there was now "QTI XML compilation error" when there was<figure>
in the prompt (figure wasn't allowed before, for same reason as in TextReader PCI), but it was solved by another change in Fix/aut 3923/textreader image figure support extension-tao-itemqti#2613This code was added in fix/AUT-2673/inline-figure-img #528, and
refresh
was added at the last moment.FigureStateActive
Image Caption textarea in Authoring side panel: it was completely collapsed for newly added images. Add some min-height to it. Image Caption textarea appears after you wrap inline image.
Test
On unit05. Related PRs: