Commit Graph

26424 Commits

Author SHA1 Message Date
73b7bda2fe TINY-11932: Changelog for 7.7.2 (#10223)
* TINY-11932: Changelog for 7.7.2

* TINY-11932: Changelog merged

* TINY-11962: Skip safari (#10229)

* TINY-11962: Downgrade macOS version and Skip safari
7.7.2
2025-03-19 12:53:59 +11:00
269cb7d287 TINY-11962: Skip safari (#10229)
* TINY-11962: Downgrade macOS version and Skip safari
2025-03-19 12:28:38 +11:00
4564534cf3 TINY-11781: fix using context form api after component detached (#10162)
Related Ticket: TINY-11781

Description of Changes:
* Exceptions were raised if you call setValue on the context from API after the toolbar has been detached from the DOM.

Pre-checks:
* [x] Changelog entry added
* [x] Tests have been added (if applicable)
* [x] Branch prefixed with `feature/`, `hotfix/` or `spike/`

Review:
* [x] Milestone set
* [x] Docs ticket created (if applicable)

GitHub issues (if applicable):

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

- **Bug Fixes**
  - Fixed an exception that occurred when using context forms after a component was detached.

- **New Features**
  - Enhanced state consistency in context form components including text, slider, and size inputs for smoother interactions.
  - Introduced new context forms in the editor’s UI that manage values correctly after detachment events.
  - Added new test cases to verify functionality of the context forms.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-03-12 13:36:27 +11:00
18069e93bb TINY-11763: fix jumping cursor on delete within list (#10184)
Related Ticket: TINY-11763

Description of Changes:
* Deleting an empty block within `<li>` would move cursor at the end of the `<li>`.
* Deleting an empty block that is between two lists would throw an error when all of the elements were nested inside the same `<li>`.

Pre-checks:
* [x] Changelog entry added
* [x] Tests have been added (if applicable)
* [x] Branch prefixed with `feature/`, `hotfix/` or `spike/`

Review:
* [x] Milestone set
* [x] Docs ticket created (if applicable)

GitHub issues (if applicable):


<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **Bug Fixes and Improvements**
	- Corrected cursor movement when deleting empty blocks within list items.
	- Resolved errors during deletions between nested list structures, enhancing editor robustness.
- **Tests**
	- Added test cases to verify backspace and delete behaviors with empty `<div>` elements in list items.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-03-12 12:40:38 +11:00
ade5cb8570 TINY-11797: Fix infinite loop while tabbing inside table (#10142)
* TINY-11797: Fix infinite loop while tabbing inside table

* TINY-11797: add changelog entry

* TINY-11797: fix linting

* TINY-11797: Update changelog
2025-03-12 12:39:06 +11:00
da485592b6 TINY-11877: Bump package.json version for next patch release 2025-03-05 11:24:41 +10:00
ace8933855 TINY-11877: Changelog 7.7.1 (#10211) 7.7.1 2025-03-05 09:50:34 +10:00
ac00c87e37 TINY-11749: Use PTC images (#10205) 2025-03-04 13:01:05 +11:00
dce8e47882 TINY-11890: fix behavior when a context form has setInputEnabled(false) on init (#10199)
* TINY-11890: fix behavior when a context form has `setInputEnabled(false)` on init

* TINY-11890: add changelog entry

* TINY-11890: refactor

* TINY-11890: typo

* TINY-11890: typos + remove useless row
2025-02-27 09:23:31 +01:00
748b6179b1 TINY-11838: Update dompurify to 3.2.4 (#10197) 2025-02-27 10:03:18 +10:00
7b7486978f TINY-11878: Downgrade chalk version (#10194)
* TINY-11878: Downgrade `chalk` version

* TINY-11878: Remove `--force` build param
2025-02-26 11:34:56 +11:00
839fffa13d TINY-11875: Fix content css truncated when bundling, add validation to build step (#10193) 2025-02-25 20:58:13 +11:00
f6b40d123d TINY-11591: Bumped to next patch version 2025-02-20 09:42:35 +01:00
8c3d04829b TINY-11837: Restored Safari test branching but with minor browser version testing (#10182)
* TINY-11837: Restored Safari test branching but with minor browser version testing

* TINY-11837: Fixed version range check
7.7.0
2025-02-20 08:31:50 +01:00
38bf39d8b5 TINY-11591: 7.7.0 changelog (#10173)
* TINY-11591: Batched changelogs

* TINY-11591: Updated changelog

* TINY-11591: Updated release date

* TINY-11591: Merged changelogs
2025-02-20 07:33:36 +01:00
f7a3c620f4 Revert "TINY-11368: close dropdowns on window scroll (#10037)" (#10175)
This reverts commit 5f4049f304.
2025-02-17 13:20:33 +01:00
5737bd417e TINY-11837: Fixed Safari test issues (#10176) 2025-02-17 12:34:01 +01:00
8ae7594093 TINY-11549: Revert "TINY-11549: improve context toolbar positioning (#10033)" (#10157)
This reverts commit 8f507e8c19.
2025-02-13 14:38:43 +01:00
a98d4e07ee TINY-11828: fix Firefox tests (#10163)
* TINY-11828: fix Firefox tests

* TINY-11828: fix test
2025-02-13 14:02:13 +01:00
8b5dc7e608 Revert build.properties 2025-02-11 14:16:17 +01:00
adb922938f Merge remote-tracking branch 'origin/main' into release/7 2025-02-11 14:15:41 +01:00
bf620a4cac TINY-11658: add focus style to tox-toolbar-textfield (#10139)
* TINY-11658: add focus style to `tox-toolbar-textfield`

* TINY-11658: add changelog entry

* TINY-11658: fix changelog entry

* TINY-11658: refactor
2025-02-10 14:17:07 +01:00
0463e03eb6 Move caret behind newly inserted links (#9998) 2025-02-10 16:32:47 +10:00
3f930284cd TINY-11630: Update devDependencies (#10129)
* TINY-11630: Bump `bedrock-server` and `types/sizzle` patch

* TINY-11630: Bump `less` patch

* TINY-11630: Bump patches for types

* TINY-11630: Bump `lerna` and `stylelint-config-standard` patches

* TINY-11630: Bump `postcss` minor

* TINY-11630: Bump `changie` and `stylelint` minors

* TINY-11630: Bump `chai` and `terser` minors

* TINY-11630: Bump `chalk` major

* TINY-11630: Bump `less-plugin-preset-env` major

* TINY-11630: Bump `postcss-preset-env` major

* TINY-11630: Bump `stylelint-config-standard` major

* TINY-11630: Bump `patch-package` major

* TINY-11630: Bump `fork-ts-checker-webpack-plugin` major

* TINY-11630: Bump `webpack-cli` and `webpack-dev-server` majors

* TINY-11630: Bump `grunt-webpack` majors

* TINY-11630: Bump `chai` types major

* TINY-11630: Bump `chai` major

* TINY-11630: Bump `bedrock-server` patch

* TINY-11630: Clean up lockfile structure

* TINY-11630: Added missing dependency (`chalk`)
2025-02-10 15:57:21 +10:00
6205ac4c57 Fire input event when a unit test sets the value of an input field (#10145)
Co-authored-by: Andrew Herron <thespyder@programmer.net>
2025-02-10 16:50:30 +11:00
a62e30d13d Remove the TinyComments hack from SelectedTextLinkTest
Fixes #10143.

It's unclear to me what this comment was meant for, but it looks like it's supposed to trick the SUT into thinking that the TinyComments plugin is also active, so that the SUT would change its behavior accordingly. But the SUT does not check for the presence of TinyComments (anymore?), so this seems redundant. Additionally it's undesirable, because this HTML comment accidentally becomes the text of inserted links (rather than the URL being copied into the link text field).
2025-02-10 10:16:53 +10:00
8f507e8c19 TINY-11549: improve context toolbar positioning (#10033)
* TINY-11549: [test] with improved boundaries

* TINY-11549: [test] considering boundaries in `LayoutInsert.ts`

* TINY-11549: add test and improve centerY position too

* TINY-11549: clean-up

* TINY-11549: add changelog

* TINY-11549: typos

* TINY-11549: many typos

* TINY-11549: fix changelog entry

* TINY-11549: [test] move the logic to get the correct position to the anchor

* TINY-11549: [part of the test] removed unused dep

* TINY-11549: add the correct test, fix changelog entry and behavior

* TINY-11549: test to fix the test

* TINY-11549: test with editor container

* TINY-11549: [test] add debugger to check some params

* TINY-11549: fix typo

* TINY-11549: refactor
2025-02-07 15:09:23 +01:00
145b005b20 TINY-11177: Do less CI testing on branches (#10130) 2025-02-06 15:14:02 +11:00
387f7a7a77 TINY-11657: Add style overwrite for warning message (#10131)
* TINY-11733: Add style overwrite for warning message

* TINY-11733: Optimise less structure

* Update modules/oxide/src/less/theme/components/accessibility-checker/accessibility-checker.less

Co-authored-by: spocke <spocke@moxiecode.com>

* Update modules/oxide/src/less/theme/components/accessibility-checker/accessibility-checker.less

Co-authored-by: ltrouton <46954949+ltrouton@users.noreply.github.com>

---------

Co-authored-by: spocke <spocke@moxiecode.com>
Co-authored-by: ltrouton <46954949+ltrouton@users.noreply.github.com>
2025-02-05 11:07:05 +11:00
cfdf345c99 TINY-11768: Prevent duplicate title element (#10135)
* TINY-11768: Prevent duplicate title element

* Changed title to aria-label.

* TINY-11768: Changelog change.

* TINY-11786: Changed test

* TINY-11768: More test fixes.
2025-02-04 14:55:26 +01:00
3cd6558457 TINY-11762: more-button should no longer trap tab-movement. (#10134)
* TINY-11762: more-button should no longer trap tab-movement.

* incrrectly named test suit

* TINY-11762: Changelog The added.
2025-02-04 14:08:58 +01:00
634cb31cf6 TINY-11729: Comment card jumps when editing large comment in Chrome (#10118) 2025-02-04 10:31:30 +01:00
97e021d76d TINY-11665: now tox-toolbar__group are not focusable (#10123)
* TINY-11665: now `tox-toolbar__group` are not focusable

* TINY-11665: add test

* TINY-11665: add changelog entry

* TINY-11665: test refacor

* TINY-11665: test refactor

* TINY-11665: refactor

* TINY-11665: fix changelog entry

* TINY-11665: fix changelog entry

* TINY-11665: refactor

* TINY-11665: improve test
2025-02-04 09:37:32 +01:00
b243435e0d TINY-11304: Fixed expand to word not working inside inline editable hosts (#10117)
* TINY-11304: Fixed issue with expand to word

* TINY-11304: Added changelog

* TINY-11304: Changed predicate to name

* TINY-11304: Updated changelog text

* TINY-11304: Fixed typo
2025-02-03 17:06:52 +01:00
feefc0d793 TINY-11755: Retain semantics if annotations are allowed (#10122)
Related Ticket: TINY-11755

Description of Changes:
* Fixed the issue with `semantics` being removed even when `annotation` elements was allowed
* Also changed so that the `annotation` element is properly removed if it's not allowed so that it wouldn't get rendered.
* The `semantics` element is unwrapped if it's not allowed that should work since the first one should be equation and we want to keep that.

Pre-checks:
* [x] Changelog entry added
* [x] Tests have been added (if applicable)
* [x] Branch prefixed with `feature/`, `hotfix/` or `spike/`

Review:
* [x] Milestone set
* [x] Docs ticket created (if applicable)

GitHub issues (if applicable):


<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

- **Bug Fixes**
	- Resolved an issue with MathML element handling, specifically ensuring the `semantics` element is properly retained when annotation elements are allowed.
	- Improved parsing and sanitization of MathML annotations based on specified encoding rules.

- **Tests**
	- Added new test cases to verify MathML annotation handling under different configuration scenarios.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-02-03 15:23:30 +01:00
b278a0c3a1 TINY-11670: triggering caption now remove float from the image (#10101)
* TINY-11670: triggering caption now remove `float` from the image

* TINY-11670: add test case

* TINY-11670: add changelog entry

* TINY-11670: remove unused code

* TINY-11670: fix tests texts

* TINY-11670: typos

* TINY-11670: refactor
2025-02-03 11:13:58 +01:00
5a852db344 TINY-11552: Upgrade to rollup v4 (#10100) 2025-02-03 15:09:27 +11:00
9ea9a794aa TINY-11769: Update device farm support (#10128) 2025-02-03 12:02:41 +11:00
1eead831d9 TINY-11740: Update preventClicksOnLinksScript to handle anchor links appropriately (#10096)
* TINY-11740: Update `preventClicksOnLinksScript` to handle anchor links appropriately

* Update .changes/unreleased/tinymce-TINY-11740-2025-01-16.yaml

Co-authored-by: Andrew Herron <thespyder@programmer.net>

* Update modules/tinymce/src/plugins/preview/main/ts/core/IframeContent.ts

Co-authored-by: Andrew Herron <thespyder@programmer.net>

* Update modules/tinymce/src/plugins/preview/main/ts/core/IframeContent.ts

Co-authored-by: Andrew Herron <thespyder@programmer.net>

* TINY-11740: Refactor `preventClicksOnLinksScript` to use template strings

* TINY-11740: Refactor to avoid code duplication

* TINY-11740: Move `ClickBehavior` from `api` to `impl`

* TINY-11740: Add cleanup mechanism for event listener

* TINY-11740: Pass `isMacOSOrIOS` to `getPreventClicksOnLinksScript` on serialization

* TINY-11740: Add `behavior: 'smooth'`  to  `scrollIntoView` call

---------

Co-authored-by: Andrew Herron <thespyder@programmer.net>
2025-01-30 16:43:53 +10:00
7c159b303e TINY-11728: Update to latest eslint-plugin (#10092) 2025-01-30 13:37:37 +10:00
2ca81d0507 TINY-11551: Upgrade Typescript to v5.7 (#10091) 2025-01-30 12:35:13 +10:00
81319b89e3 Sometimes lambdatest is having a slow day and 20 minutes isn't enough 2025-01-27 13:57:02 +10:00
d48fd2f22a TINY-11177: Performance improvements to CI testing (#10104)
Co-authored-by: shanmen-tiny <shanmen.ng@tiny.cloud>
Co-authored-by: Seb <jscasca@gmail.com>
2025-01-27 12:55:13 +10:00
27623ef11d TINY-11715: add z index to comments side panel header (#10067)
* TINY-11715: add z index to comments sidepanel header

* TINY-11715: changelog

* TINY-11715: typo

Co-authored-by: Hamza Benkhaldoun <hamza0867@gmail.com>

---------

Co-authored-by: Hamza Benkhaldoun <hamza0867@gmail.com>
2025-01-24 13:16:29 +01:00
ae7ba138e4 Revert "TINY-11652: Update accessibility checker styles for dark mode support (#10078)" (#10108)
This reverts commit 3bfbda75dd.
2025-01-24 11:53:57 +11:00
Seb
0dece0bdb6 Bump version 2025-01-23 11:38:16 +11:00
Seb
1797d7e7df Merge 'release/7' into 'main' 2025-01-22 15:00:15 +11:00
a24a3a1884 TINY-11590: 7.6.1 changelog (#10102)
* TINY-11590: 7.6.1 changelog

* TINY-11590: Fix changelog

* TINY-11590: Merge changelog
7.6.1
2025-01-22 12:24:46 +11:00
6d4d3b8fc8 TINY-11672: Remove open help dialog aria label when help plugin is not enabled (#10076)
Related Ticket: TINY-11672

Description of Changes:
* Remove open help dialog aria label when help plugin is not enabled

Pre-checks:
* [x] Changelog entry added
* [x] Tests have been added (if applicable)
* [x] Branch prefixed with `feature/`, `hotfix/` or `spike/`

Review:
* [x] Milestone set
* [x] Docs ticket created (if applicable)

GitHub issues (if applicable):


<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **Bug Fixes**
  - Improved iframe accessibility text to only suggest help dialog when the help plugin is enabled.
  - Prevented misleading aria text for editors without the help plugin.

- **Documentation**
  - Updated default iframe aria text to be more context-aware.

- **Tests**
  - Enhanced test cases to verify correct iframe aria text behavior under different plugin configurations, including new assertions for custom aria text.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-20 12:17:44 +01:00
74fecff0ae TINY-11596: fix double border (#10085) 2025-01-20 11:05:09 +01:00