|
1 | 1 | /** |
2 | | - * TinyMCE version 8.2.0 (2025-10-23) |
| 2 | + * TinyMCE version 8.2.1 (2025-11-06) |
3 | 3 | */ |
4 | 4 |
|
5 | 5 | (function () { |
|
3465 | 3465 | const isListItem$3 = matchNodeName$1('li'); |
3466 | 3466 | const isDetails = matchNodeName$1('details'); |
3467 | 3467 | const isSummary$1 = matchNodeName$1('summary'); |
| 3468 | + const ucVideoNodeName = 'uc-video'; |
| 3469 | + const isUcVideo = (el) => el.nodeName.toLowerCase() === ucVideoNodeName; |
3468 | 3470 |
|
3469 | 3471 | const defaultOptionValues = { |
3470 | 3472 | skipBogus: true, |
|
13090 | 13092 | } |
13091 | 13093 | }; |
13092 | 13094 |
|
13093 | | - const ucVideoNodeName = 'uc-video'; |
13094 | | - const isUcVideo = (el) => el.nodeName.toLowerCase() === ucVideoNodeName; |
13095 | 13095 | const elementSelectionAttr = 'data-mce-selected'; |
13096 | 13096 | const controlElmSelector = `table,img,figure.image,hr,video,span.mce-preview-object,details,${ucVideoNodeName}`; |
13097 | 13097 | const abs = Math.abs; |
|
34954 | 34954 | } |
34955 | 34955 | return newRange; |
34956 | 34956 | }; |
| 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 | + }; |
34957 | 34971 | const selectElement = (elm) => { |
34958 | | - const targetClone = elm.cloneNode(true); |
| 34972 | + const targetClone = isUcVideo(elm) ? getUcVideoClone(elm) : elm.cloneNode(true); |
34959 | 34973 | const e = editor.dispatch('ObjectSelected', { target: elm, targetClone }); |
34960 | 34974 | if (e.isDefaultPrevented()) { |
34961 | 34975 | return null; |
@@ -40529,14 +40543,14 @@ |
40529 | 40543 | * @property minorVersion |
40530 | 40544 | * @type String |
40531 | 40545 | */ |
40532 | | - minorVersion: '2.0', |
| 40546 | + minorVersion: '2.1', |
40533 | 40547 | /** |
40534 | 40548 | * Release date of TinyMCE build. |
40535 | 40549 | * |
40536 | 40550 | * @property releaseDate |
40537 | 40551 | * @type String |
40538 | 40552 | */ |
40539 | | - releaseDate: '2025-10-23', |
| 40553 | + releaseDate: '2025-11-06', |
40540 | 40554 | /** |
40541 | 40555 | * Collection of language pack data. |
40542 | 40556 | * |
|
0 commit comments