Merge a2cd04e57f
into 46d772cb51
commit
2eadd7314d
|
@ -102,6 +102,9 @@ H5P.init = function (target) {
|
||||||
params: JSON.parse(contentData.jsonContent)
|
params: JSON.parse(contentData.jsonContent)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Add dir-ltr|rtl to h5p-content div, based on iframe parent document directionality.
|
||||||
|
$element.addClass('dir-' + window.parent.document.dir);
|
||||||
|
|
||||||
H5P.getUserData(contentId, 'state', function (err, previousState) {
|
H5P.getUserData(contentId, 'state', function (err, previousState) {
|
||||||
if (previousState) {
|
if (previousState) {
|
||||||
library.userDatas = {
|
library.userDatas = {
|
||||||
|
|
Loading…
Reference in New Issue