Skip to content

Commit

Permalink
Update to TinyMCE 7.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
spohlenz committed Jan 23, 2025
1 parent 6a081d2 commit a9c6ba4
Show file tree
Hide file tree
Showing 34 changed files with 48 additions and 41 deletions.
15 changes: 11 additions & 4 deletions app/assets/source/tinymce/tinymce.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* TinyMCE version 7.6.0 (2024-12-11)
* TinyMCE version 7.6.1 (2025-01-22)
*/

(function () {
Expand Down Expand Up @@ -26004,9 +26004,16 @@
});
};

const isValidContainer = (root, container) => root === container || root.contains(container);
const isInEditableRange = (editor, range) => {
if (!isValidContainer(editor.getBody(), range.startContainer) || !isValidContainer(editor.getBody(), range.endContainer)) {
return true;
}
return isEditableRange(editor.dom, range);
};
const setup$e = editor => {
editor.on('beforeinput', e => {
if (!editor.selection.isEditable() || exists(e.getTargetRanges(), rng => !isEditableRange(editor.dom, rng))) {
if (!editor.selection.isEditable() || exists(e.getTargetRanges(), rng => !isInEditableRange(editor, rng))) {
e.preventDefault();
}
});
Expand Down Expand Up @@ -31829,8 +31836,8 @@
documentBaseURL: null,
suffix: null,
majorVersion: '7',
minorVersion: '6.0',
releaseDate: '2024-12-11',
minorVersion: '6.1',
releaseDate: '2025-01-22',
i18n: I18n,
activeEditor: null,
focusedEditor: null,
Expand Down
4 changes: 2 additions & 2 deletions lib/tinymce/rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module TinyMCE
module Rails
VERSION = "7.6.0"
TINYMCE_VERSION = "7.6.0"
VERSION = "7.6.1"
TINYMCE_VERSION = "7.6.1"
end
end
4 changes: 2 additions & 2 deletions vendor/assets/javascripts/tinymce/models/dom/model.js

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a9c6ba4

Please sign in to comment.