\
\
\
@@ -1109,6 +1110,9 @@ H5P.Dialog = function (name, title, content, $element, $returnElement) {
if ($returnElement) {
$returnElement.focus();
}
+ else if(self.activeElement) {
+ self.activeElement.focus();
+ }
else {
$element.focus();
}
@@ -1894,7 +1898,7 @@ H5P.MediaCopyright = function (copyright, labels, order, extraFields) {
* @param {string} source
* @param {number} width
* @param {number} height
- * @param {string} alt
+ * @param {string} alt
* alternative text for the thumbnail
*/
H5P.Thumbnail = function (source, width, height, alt) {
@@ -2373,11 +2377,6 @@ H5P.createTitle = function (rawTitle, maxLength) {
done('Not signed in.');
return;
}
- // Moodle patch to let override this method.
- if (H5P.contentUserDataAjax !== undefined) {
- return H5P.contentUserDataAjax(contentId, dataType, subContentId, done, data, preload, invalidate, async);
- }
- // End of Moodle patch.
var options = {
url: H5PIntegration.ajax.contentUserData.replace(':contentId', contentId).replace(':dataType', dataType).replace(':subContentId', subContentId ? subContentId : 0),
@@ -2721,7 +2720,7 @@ H5P.createTitle = function (rawTitle, maxLength) {
}
return path.substr(0, prefix.length) === prefix ? path : prefix + path;
}
-
+
return path; // Will automatically be looked for in tmp folder
});
diff --git a/h5p/h5plib/v127/joubel/core/styles/h5p-table.css b/h5p/h5plib/v127/joubel/core/styles/h5p-table.css
new file mode 100644
index 00000000000..e781bdce389
--- /dev/null
+++ b/h5p/h5plib/v127/joubel/core/styles/h5p-table.css
@@ -0,0 +1,56 @@
+/* Table styling for content types to imitate ckeditor 5 */
+.h5p-iframe {
+ /* The figure around the table */
+ figure.table {
+ display: table;
+ table-layout: fixed;
+ margin: 0 auto;
+ padding: 0;
+ float: left;
+
+ /* The actual table */
+ table {
+ border-collapse: collapse;
+ height: 100%;
+ width: 100%;
+ border-spacing: 0;
+ border-width: 1px;
+ border-color: #494949;
+
+ td, th {
+ padding: 1px;
+ border-color: #494949;
+ border-bottom-style: solid;
+ }
+
+ td {
+ border-width: 0.083em;
+ }
+
+ th {
+ text-align: left;
+ border-width: .167em;
+ }
+
+ tr:last-child > td {
+ border-bottom-style: none;
+ }
+ }
+
+ figcaption {
+ background-color: transparent;
+ caption-side: top;
+ color: #333;
+ display: table-caption;
+ font-size: .75em;
+ outline-offset: -1px;
+ padding: .6em;
+ text-align: center;
+ word-break: break-word;
+ }
+ }
+
+ .table-overflow-protection {
+ clear: both;
+ }
+}
diff --git a/h5p/h5plib/v127/joubel/core/styles/h5p.css b/h5p/h5plib/v127/joubel/core/styles/h5p.css
index c0a18a54ab4..b4f65182049 100644
--- a/h5p/h5plib/v127/joubel/core/styles/h5p.css
+++ b/h5p/h5plib/v127/joubel/core/styles/h5p.css
@@ -4,11 +4,11 @@
/* Custom H5P font to use for icons. */
@font-face {
font-family: 'h5p';
- src: url('../fonts/h5p-core-28.eot?h1atjl');
- src: url('../fonts/h5p-core-28.eot?h1atjl#iefix') format('embedded-opentype'),
- url('../fonts/h5p-core-28.ttf?h1atjl') format('truetype'),
- url('../fonts/h5p-core-28.woff?h1atjl') format('woff'),
- url('../fonts/h5p-core-28.svg?h1atjl#h5p-core-28') format('svg');
+ src: url('../fonts/h5p-core-30.eot?h1atjl');
+ src: url('../fonts/h5p-core-30.eot?h1atjl#iefix') format('embedded-opentype'),
+ url('../fonts/h5p-core-30.ttf?h1atjl') format('truetype'),
+ url('../fonts/h5p-core-30.woff?h1atjl') format('woff'),
+ url('../fonts/h5p-core-30.svg?h1atjl#h5p-core-30') format('svg');
font-weight: normal;
font-style: normal;
}