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

Release 30.29.1 #2673

Merged
merged 6 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion views/js/loader/taoQtiItem.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion views/js/loader/taoQtiItem.min.js.map

Large diffs are not rendered by default.

16 changes: 11 additions & 5 deletions views/js/qtiCreator/plugins/panel/itemViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,17 @@ define([
}
).then(viewer => {
viewer.on('ready', () => {
// Force to restore the context after rendering the item.
// This is needed as the editor needs to access the context of the item being edited.
// Otherwise, the editor might not work properly.
viewer.getRunner().on('renderitem', restoreCreatorContext);
restoreCreatorContext();
const preventAutoPlay = () => {
$viewerContainer.find('audio, video').each((i, media) => {
media.pause();
});
// Force to restore the context after rendering the item.
// This is needed as the editor needs to access the context of the item being edited.
// Otherwise, the editor might not work properly.
restoreCreatorContext();
};
viewer.getRunner().on('renderitem', preventAutoPlay);
preventAutoPlay();
});
});

Expand Down
Loading