Skip to content

Commit ab38b85

Browse files
committed
Update to TinyMCE 8.2.1
1 parent a619696 commit ab38b85

File tree

5 files changed

+26
-12
lines changed

5 files changed

+26
-12
lines changed

app/assets/source/tinymce/tinymce.js

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* TinyMCE version 8.2.0 (2025-10-23)
2+
* TinyMCE version 8.2.1 (2025-11-06)
33
*/
44

55
(function () {
@@ -3465,6 +3465,8 @@
34653465
const isListItem$3 = matchNodeName$1('li');
34663466
const isDetails = matchNodeName$1('details');
34673467
const isSummary$1 = matchNodeName$1('summary');
3468+
const ucVideoNodeName = 'uc-video';
3469+
const isUcVideo = (el) => el.nodeName.toLowerCase() === ucVideoNodeName;
34683470

34693471
const defaultOptionValues = {
34703472
skipBogus: true,
@@ -13090,8 +13092,6 @@
1309013092
}
1309113093
};
1309213094

13093-
const ucVideoNodeName = 'uc-video';
13094-
const isUcVideo = (el) => el.nodeName.toLowerCase() === ucVideoNodeName;
1309513095
const elementSelectionAttr = 'data-mce-selected';
1309613096
const controlElmSelector = `table,img,figure.image,hr,video,span.mce-preview-object,details,${ucVideoNodeName}`;
1309713097
const abs = Math.abs;
@@ -34954,8 +34954,22 @@
3495434954
}
3495534955
return newRange;
3495634956
};
34957+
const getUcVideoClone = (ucVideo) => {
34958+
const newElm = editor.getDoc().createElement('div');
34959+
newElm.style.width = ucVideo.style.width;
34960+
newElm.style.height = ucVideo.style.height;
34961+
const ucVideoWidth = ucVideo.getAttribute('width');
34962+
if (ucVideoWidth) {
34963+
newElm.setAttribute('width', ucVideoWidth);
34964+
}
34965+
const ucVideoHeight = ucVideo.getAttribute('height');
34966+
if (ucVideoHeight) {
34967+
newElm.setAttribute('height', ucVideoHeight);
34968+
}
34969+
return newElm;
34970+
};
3495734971
const selectElement = (elm) => {
34958-
const targetClone = elm.cloneNode(true);
34972+
const targetClone = isUcVideo(elm) ? getUcVideoClone(elm) : elm.cloneNode(true);
3495934973
const e = editor.dispatch('ObjectSelected', { target: elm, targetClone });
3496034974
if (e.isDefaultPrevented()) {
3496134975
return null;
@@ -40529,14 +40543,14 @@
4052940543
* @property minorVersion
4053040544
* @type String
4053140545
*/
40532-
minorVersion: '2.0',
40546+
minorVersion: '2.1',
4053340547
/**
4053440548
* Release date of TinyMCE build.
4053540549
*
4053640550
* @property releaseDate
4053740551
* @type String
4053840552
*/
40539-
releaseDate: '2025-10-23',
40553+
releaseDate: '2025-11-06',
4054040554
/**
4054140555
* Collection of language pack data.
4054240556
*

lib/tinymce/rails/version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module TinyMCE
22
module Rails
3-
VERSION = "8.2.0"
4-
TINYMCE_VERSION = "8.2.0"
3+
VERSION = "8.2.1"
4+
TINYMCE_VERSION = "8.2.1"
55
end
66
end

0 commit comments

Comments
 (0)