Skip to content

3.1.3#1641

Merged
JiHong88 merged 12 commits into
releasefrom
master
May 3, 2026
Merged

3.1.3#1641
JiHong88 merged 12 commits into
releasefrom
master

Conversation

@JiHong88

@JiHong88 JiHong88 commented May 3, 2026

Copy link
Copy Markdown
Owner

No description provided.

JiHong88 and others added 12 commits April 21, 2026 12:26
…format

  - Fixed issue where Image URL and Alternative Text displayed "undefined" when editing an image wrapped by a link (`<a>` tag)
  - Fixed `insertBefore` error when editing inline images with links
  - Fixed link loss when editing inline images
  - Fixed link loss when changing Block Style from block to inline for images with links
Fixed multiple issues when editing images with links in inline/block …
…tributes

fix: annotate generated form fields
@JiHong88 JiHong88 merged commit cbd258e into release May 3, 2026
1 check passed
@augmentcode

augmentcode Bot commented May 3, 2026

Copy link
Copy Markdown
🤖 Augment PR Summary

Summary: This PR bumps SunEditor to 3.1.3 and updates UI layering to support the Popover API, improving compatibility with browser top-layer contexts (e.g., Angular CDK Overlay).

Changes:

  • Annotates editor-generated form fields with stable ids and autocomplete="off", and removes decorative line-number fields from the accessibility/tab order.
  • Adopts Popover API hooks for floating UI elements (menus, controllers, modals, toasts, loading/backdrop layers, drag cursor) and adds UA CSS overrides for popover styling.
  • Fixes document-type page height/page break recalculation behavior after page breaks.
  • Preserves anchor wrappers when switching image format between inline/block styles.
  • Updates Firefox minimum version to 125 (required for Popover API) and bumps related docs/browserslist.
  • Adjusts lint scripts and updates build tooling dependency versions (e.g., webpack-dev-server).

Technical Notes: Includes unit test updates for generated-field annotations and Figure behavior; release-note content is updated for 3.1.3 and introduces a breaking-change note for Firefox support.

🤖 Was this summary useful? React with 👍 or 👎

@augmentcode augmentcode Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 4 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

/** @type {HTMLElement} */ ((rootKey ? this.#frameRoots.get(rootKey).get('container') : this.#carrierWrapper).querySelector('.se-loading-box')).style.display = 'block';
const el = /** @type {HTMLElement} */ ((rootKey ? this.#frameRoots.get(rootKey).get('container') : this.#carrierWrapper).querySelector('.se-loading-box'));
el.style.display = 'block';
el.showPopover?.();

@augmentcode augmentcode Bot May 3, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

src/core/logic/shell/ui.js:402 showPopover() / hidePopover() can throw InvalidStateError (e.g., if already open/closed) on browsers that support the Popover API, and optional chaining won’t prevent that. This can surface as runtime crashes if these UI toggles are called redundantly (same pattern appears in other newly-added popover calls).

Severity: medium

Other Locations
  • src/core/logic/shell/ui.js:411
  • src/core/logic/shell/ui.js:431
  • src/core/logic/shell/ui.js:441
  • src/core/logic/shell/ui.js:462
  • src/core/logic/shell/ui.js:479
  • src/core/logic/panel/menu.js:125
  • src/core/logic/panel/menu.js:166
  • src/modules/contract/Browser.js:201
  • src/modules/contract/Browser.js:222
  • src/modules/contract/Controller.js:398
  • src/modules/contract/Controller.js:469
  • src/modules/contract/Modal.js:165
  • src/modules/contract/Modal.js:201

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

Comment thread package.json
"node": ">=14.0.0"
},
"overrides": {
"uuid": ">=14.0.0"

@augmentcode augmentcode Bot May 3, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

package.json:53 Overriding uuid to >=14.0.0 likely pulls in uuid v14, which upstream notes as requiring Node 20+ (e.g., relies on global crypto), but this repo’s engines.node still allows Node >=14. This mismatch can break installs/tests on older Node versions even if SunEditor itself still supports them.

Severity: medium

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

Comment thread changes.md
@@ -0,0 +1 @@

@augmentcode augmentcode Bot May 3, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes.md is currently empty even though this PR introduces user-facing enhancements/bugfixes and a breaking browser-support change. (Rule: GUIDE.md) says to always update changes.md, so leaving it blank may break the changelog/release-note workflow.

Severity: medium

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

* a: 'href|target',
* img: 'src|alt',
* '*': 'id|data-*'
* '*': 'id|data-[^\s]+'

@augmentcode augmentcode Bot May 3, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

src/core/schema/options.js:366 In the JSDoc example, data-[^\s]+ looks intended, but the literal shown is data-[^\s]+ written as data-[^\s]+ without escaping, so copy/pasting into JS would typically drop the backslash and change the regex meaning. This same doc example is duplicated in the generated typings and could propagate incorrect configuration examples.

Severity: low

Other Locations
  • types/core/schema/options.d.ts:312
  • types/core/schema/options.d.ts:1058

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants