@instructure/canvas-rce 5.10.0 → 5.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/es/enhance-user-content/enhance_user_content.js +9 -1
- package/es/rce/RCEWrapper.js +987 -82
- package/es/rce/StatusBar.js +4 -6
- package/es/rce/plugins/instructure_rce_external_tools/lti13-content-items/models/ResourceLinkContentItem.js +1 -1
- package/es/rce/plugins/shared/fileTypeUtils.js +14 -6
- package/es/rce/plugins/tinymce-a11y-checker/components/checker.js +4 -6
- package/es/rce/transformContent.js +8 -0
- package/es/sidebar/actions/upload.js +3 -1
- package/es/skins/theme.js +127 -0
- package/lib/enhance-user-content/enhance_user_content.js +9 -1
- package/lib/rce/RCEWrapper.js +987 -82
- package/lib/rce/StatusBar.js +4 -6
- package/lib/rce/plugins/instructure_rce_external_tools/lti13-content-items/models/ResourceLinkContentItem.js +1 -1
- package/lib/rce/plugins/shared/fileTypeUtils.js +14 -6
- package/lib/rce/plugins/tinymce-a11y-checker/components/checker.js +4 -6
- package/lib/rce/transformContent.js +8 -0
- package/lib/sidebar/actions/upload.js +3 -1
- package/lib/skins/theme.js +127 -0
- package/package.json +9 -10
- package/canvas/README.md +0 -84
- package/canvas/locales/en.json +0 -934
- package/canvas/package.json +0 -189
- package/es/getThemeVars.js +0 -46
- package/es/rce/style.js +0 -843
- package/lib/getThemeVars.js +0 -46
- package/lib/rce/style.js +0 -843
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## 5.10.2 - 2023-12-01
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- Reverted changes that require instui8 upgrade
|
|
12
|
+
|
|
13
|
+
## 5.10.1 - 2023-12-01
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- Allow more fields from Canvas media object creation
|
|
17
|
+
- Ensure postMessage works with RCE LTI launches
|
|
18
|
+
|
|
8
19
|
## 5.10.0 - 2023-09-26
|
|
9
20
|
|
|
10
21
|
### Fixed
|
|
@@ -216,8 +216,16 @@ export function enhanceUserContent() {
|
|
|
216
216
|
iframeElem.setAttribute('src', addParentFrameContextToUrl(src, containingCanvasLtiToolId));
|
|
217
217
|
}
|
|
218
218
|
});
|
|
219
|
-
}
|
|
219
|
+
} // tell LTI tools that they are launching from within the active RCE
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
unenhanced_elem.querySelectorAll('iframe[src]').forEach(iframeElem => {
|
|
223
|
+
const src = iframeElem.getAttribute('src');
|
|
220
224
|
|
|
225
|
+
if (src.startsWith(canvasOrigin)) {
|
|
226
|
+
iframeElem.setAttribute('src', src.replace('display=in_rce', 'display=borderless'));
|
|
227
|
+
}
|
|
228
|
+
});
|
|
221
229
|
unenhanced_elem.querySelectorAll('a:not(.not_external, .external)').forEach(childLink => {
|
|
222
230
|
if (!isExternalLink(childLink, canvasOrigin)) return;
|
|
223
231
|
if (childLink.tagName === 'IMG' || childLink.querySelectorAll('img').length > 0) return;
|