Skip to content

Navigation Link: Keep the text formatting when editing in the sidebar - #85223

Merged
jeryj merged 10 commits into
trunkfrom
update/navigation-link-text-field-keep-formats
Oct 29, 2026
Merged

jeryj merged 10 commits into
trunkfrom
update/navigation-link-text-field-keep-formats

Conversation

@jeryj

@jeryj jeryj commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

What?

Editing a Navigation Link or Navigation Submenu's text in the sidebar Text field no longer drops the formatting of the text. Bold, italic, and other inline formats outside the edited characters survive, and typed characters take the format of the character before them, which differs from the canvas default of dropping the format at a boundary, because a plain input has no way to override active formats.

Why?

The sidebar field showed stripHTML( label ) and wrote the plain string back on every keystroke, so the first keystroke turned <strong>Shop</strong> now into Shop now. Raised while reviewing #84854, where the Button block gets the same sidebar field; the Button can adopt this helper once both land.

How?

A new applyPlainTextEdit( html, newText ) helper in packages/block-library/src/utils/plain-text-edit.ts:

  1. Parses the attribute with create( { html } ) from @wordpress/rich-text.
  2. Finds the edited span as the text between the longest common prefix and suffix of the old and new plain text. A keystroke changes one span.
  3. Replaces only that span with insert, giving the inserted characters the formats of the character before them (or the first character's formats when typing at the start).
  4. Serializes back with toHTMLString.

getPlainText( html ) gives the field its value from the same parse, so the text the user sees and the text the diff runs against are the same string.

Known limit: a label with a <br> loses it on edit, because a single-line input cannot hold a newline. The old code lost it too.

Testing Instructions

  1. Insert a Navigation block with a link whose label has bold text, for example by typing a label on the canvas and bolding part of it.
  2. Select the link and open the sidebar. The Text field shows the plain text.
  3. Type in the Text field. The bold text stays bold on the canvas, and new characters typed inside the bold span are bold.
  4. Delete across the bold boundary. What remains keeps its format.

Unit tests cover the helper in packages/block-library/src/utils/test/plain-text-edit.jsdom.test.ts, and navigation.spec.js has a new test, "keeps the label formatting when editing the sidebar Text field".

🤖 Generated with Claude Code

https://claude.ai/code/session_01DaQQeap7U6o932CHso3b4C

The sidebar Text field stripped the label's markup for display and wrote
the plain string back on every keystroke, so the first keystroke dropped
bold, italic, and any other inline format.

Add `applyPlainTextEdit`, which diffs the old and new plain text, replaces
only the edited span in the rich text value, and gives typed characters
the format of the character before them, as typing on the canvas does.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DaQQeap7U6o932CHso3b4C
@jeryj
jeryj requested a review from fabiankaegy as a code owner October 20, 2026 18:11
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DaQQeap7U6o932CHso3b4C
@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

Preview in WordPress Playground

🎉 Props

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: jeryj <jeryj@git.wordpress.org>
Co-authored-by: mikachan <mikachan@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

Updated as activity occurs, without notifying anyone named here. Add the props-bot label to refresh.

📦 Bundle size

Size Change: +432 B (+0.01%)

Total Size: 8.56 MB

📦 View Changed
Filename Size Change
build/scripts/block-library/index.min.js 402 kB +432 B (+0.11%)

76ecf44 Run

⚡ Performance

Show the results

Client side metrics exclude the server response time.

front-end-block-theme

Metric c7ffad0 trunk % Change
timeToFirstByte 55.85 ms +15.04% -3.58% 55.1 ms +7.8% -3.45% 1.36%
largestContentfulPaint 96 ms +4.17% -8.33% 96 ms +4.17% -4.17% 0%
lcpMinusTtfb 34.15 ms +17.42% -4.83% 38.9 ms +9% -14.78% -12.21%
wpBeforeTemplate 29.28 ms +20.56% -1.71% 28.25 ms +11.61% -1.35% 3.65%
wpTemplate 22.25 ms +5.17% -3.6% 22.36 ms +2.86% -4.79% -0.49%
wpTotal 52.01 ms +14.5% -3.52% 51.29 ms +8.33% -3.82% 1.4%
wpMemoryUsage 7.70 MB +0% -0% 7.67 MB +0% -0% 0.43%
wpDbQueries 16 +0% -0% 16 +0% -0% 0%

front-end-classic-theme

Metric c7ffad0 trunk % Change
timeToFirstByte 46.55 ms +9.13% -2.69% 46.05 ms +5.43% -2.28% 1.09%
largestContentfulPaint 100 ms +8% -2% 98 ms +2.04% -2.04% 2.04%
lcpMinusTtfb 53.45 ms +2.53% -2.43% 51.75 ms +4.06% -1.84% 3.29%
wpBeforeTemplate 26.64 ms +6.76% -2.06% 26.15 ms +3.33% -1.87% 1.87%
wpTemplate 17.06 ms +3.05% -7.97% 16.55 ms +5.38% -3.38% 3.08%
wpTotal 43.38 ms +8.51% -2.31% 43.19 ms +5.33% -3.24% 0.44%
wpMemoryUsage 6.40 MB +0% -0% 6.36 MB +0% -0% 0.53%
wpDbQueries 13 +0% -0% 13 +0% -0% 0%

media-processing

Metric c7ffad0 trunk % Change
mediaProcessingJpeg 399.42 ms +3.79% -0.76% 404.67 ms +0.71% -0.79% -1.3%
mediaProcessingAvif 6135.83 ms +0.38% -0.25% 6169.3 ms +0.19% -0.34% -0.54%
mediaProcessingJpegToAvif 4237.92 ms +0.28% -0.47% 4254.28 ms +0.49% -0.18% -0.38%

media-upload

Metric c7ffad0 trunk % Change
jpegUploadProcessing 1963.18 ms +1.29% -25.48% 1469.19 ms +1.13% -0.86% 33.62%
pngUploadProcessing 255.32 ms +11.74% -28.07% 192.06 ms +45.15% -15.9% 32.94%
largeJpegUploadProcessing 1946.88 ms +0.11% -24.73% 1459.86 ms +1.44% -0.65% 33.36%
multipleImageUploadProcessing 2043.65 ms +1.04% -0.47% 2051.33 ms +0.21% -0.74% -0.37%

post-editor

Metric c7ffad0 trunk % Change
serverResponse 529.8 ms +10.9% -4.23% 530.13 ms +5.59% -6.34% -0.06%
firstPaint 490.58 ms +10.84% -38.57% 512.41 ms +3.28% -46.21% -4.26%
domContentLoaded 914.61 ms +2.34% -6.06% 903.22 ms +1.79% -2.11% 1.26%
loaded 915.95 ms +2.34% -5.97% 904.46 ms +1.78% -2.1% 1.27%
firstContentfulPaint 506.51 ms +8.28% -7.03% 526.75 ms +1.25% -2.01% -3.84%
firstBlock 3078.35 ms +1.26% -2.21% 2987.94 ms +1.75% -0.91% 3.03%
type 18.74 ms +8.32% -4.43% 18.76 ms +4.69% -12.47% -0.11%
typeWithoutInspector 18.82 ms +4.94% -6.8% 18.93 ms +1.58% -8.61% -0.58%
typeWithTopToolbar 25.07 ms +2.63% -6.74% 24.24 ms +10.02% -3.26% 3.42%
typeContainer 8.96 ms +1.12% -13.62% 8.46 ms +7.68% -7.45% 5.91%
focus 120.3 ms +7.36% -6.45% 115.87 ms +13.92% -6.88% 3.82%
firstFocus 246.93 ms +0% -0% 236.21 ms +0% -0% 4.54%
selectAll 477.67 ms +3.38% -3% 480.15 ms +0.86% -3.74% -0.52%
undo 32.27 ms +0.96% -7.03% 30.39 ms +13.13% -1.41% 6.19%
listViewOpen 86.21 ms +5.45% -5.17% 72.7 ms +17.7% -3.41% 18.58%
inserterOpen 45.07 ms +3.73% -7.63% 40.49 ms +14.77% -2.69% 11.31%
inserterHover 11.81 ms +6.52% -7.28% 11.71 ms +3.33% -6.58% 0.85%
inserterSearch 9.45 ms +2.33% -10.37% 8.61 ms +5.34% -14.52% 9.76%
loadPatterns 645.35 ms +9.92% -1.91% 673.79 ms +4.8% -6.34% -4.22%
wpTotal 519.5 ms +11.1% -4.25% 519.81 ms +5.66% -6.59% -0.06%
wpMemoryUsage 14.73 MB +0% -0% 14.72 MB +0% -0% 0.1%
wpDbQueries 55 +0% -1.82% 55 +0% -1.82% 0%

site-editor

Metric c7ffad0 trunk % Change
serverResponse 330.93 ms +1.86% -7.53% 325.47 ms +3.63% -9.49% 1.68%
firstPaint 201.38 ms +17.52% -3.55% 214.77 ms +19.03% -7.05% -6.23%
domContentLoaded 677.04 ms +2.06% -1.24% 673.07 ms +1.77% -0.69% 0.59%
loaded 677.92 ms +2.03% -1.23% 674.11 ms +1.75% -0.7% 0.57%
firstContentfulPaint 386.24 ms +3.84% -3.3% 382.04 ms +4.76% -0.56% 1.1%
firstBlock 2929.08 ms +0.93% -1.92% 2889.38 ms +1.12% -3.23% 1.37%
type 14.55 ms +3.78% -4.67% 15.09 ms +1.26% -9.54% -3.58%
navigate 92.2 ms +15.78% -5.79% 97.43 ms +3.61% -18.8% -5.37%
loadPatterns 898.33 ms +5.04% -5.45% 1064.73 ms +9.34% -18.1% -15.63%
loadPages 1022 ms +2.91% -1.32% 998.44 ms +8.48% -0.76% 2.36%
wpTotal 322.3 ms +1.9% -7.81% 317.19 ms +3.58% -9.84% 1.61%
wpMemoryUsage 12.77 MB +0% -0% 12.73 MB +0% -0% 0.27%
wpDbQueries 44 +2.27% -0% 44 +2.27% -0% 0%

76ecf44 Run

🏁 Flaky tests

Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

Backspace in /test/e2e/specs/editor/blocks/list.spec.js, passed after 1 failed attempt.
Error: expect(received).toMatchObject(expected)

- Expected  -  5
+ Received  + 11

@@ -1,25 +1,31 @@
  Array [
    Object {
      "innerBlocks": Array [
        Object {
          "attributes": Object {
-           "content": "1",
+           "content": "1‸a",
          },
-         "innerBlocks": Array [
+         "innerBlocks": Array [],
+         "name": "core/list-item",
+       },
        Object {
+         "attributes": Object {
+           "content": "2",
+         },
          "innerBlocks": Array [
            Object {
              "attributes": Object {
-                   "content": "a‸2",
+               "ordered": false,
+               "values": "",
              },
-                 "name": "core/list-item",
-               },
+             "innerBlocks": Array [
                Object {
                  "attributes": Object {
                    "content": "b",
                  },
+                 "innerBlocks": Array [],
                  "name": "core/list-item",
                },
              ],
              "name": "core/list",
            },

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:2041:42
Undo restores the post selection when another synced entity is loaded in /test/e2e/specs/editor/collaboration/collaboration-undo-redo.spec.ts, passed after 1 failed attempt.
Error: expect(received).toMatchObject(expected)

- Expected  - 2
+ Received  + 2

  Object {
    "attributeKey": "content",
    "blockIndex": 0,
    "content": "abcdef",
-   "endOffset": 3,
-   "offset": 3,
+   "endOffset": 0,
+   "offset": 0,
  }

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/collaboration/collaboration-undo-redo.spec.ts:363:5
inserts a block in proper place after having clicked `Browse All` from inline inserter in /test/e2e/specs/editor/various/inserting-blocks.spec.js, passed after 1 failed attempt.
TimeoutError: locator.click: Timeout 10000ms exceeded.
Call log:
  - waiting for getByRole('button', { name: 'Add block' })
    - locator resolved to <button type="button" aria-pressed="false" aria-haspopup="true" aria-expanded="false" aria-label="Add block" class="components-button block-editor-inserter__toggle is-next-40px-default-size has-icon">…</button>
  - attempting click action
    - waiting for element to be visible, enabled and stable
  - element was detached from the DOM, retrying

    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/inserting-blocks.spec.js:557:5
should change the indented list type in /test/e2e/specs/editor/blocks/list.spec.js, passed after 1 failed attempt.
TimeoutError: locator.click: Timeout 10000ms exceeded.
Call log:
  - waiting for locator('role=toolbar[name="Block tools"i]').locator('role=button[name="Indent"]')

    at Editor.clickBlockToolbarButton (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/editor/click-block-toolbar-button.ts:17:15)
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:727:3
should create paragraph on Enter in quote block in /test/e2e/specs/editor/blocks/list.spec.js, passed after 1 failed attempt.
TimeoutError: locator.click: Timeout 10000ms exceeded.
Call log:
  - waiting for getByRole('option', { name: 'List', exact: true })

    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:751:67
should create paragraph on split at end and merge back with content in /test/e2e/specs/editor/blocks/list.spec.js, passed after 1 failed attempt.
Error: expect(received).toBe(expected) // Object.is equality

- Expected  - 1
+ Received  + 1

@@ -1,8 +1,8 @@
  <!-- wp:list -->
  <ul class="wp-block-list"><!-- wp:list-item -->
- <li>one</li>
+ <li>ne</li>
  <!-- /wp:list-item --></ul>
  <!-- /wp:list -->

  <!-- wp:paragraph -->
  <p></p>

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:461:52
should indent and outdent a list item when its content is fully selected in /test/e2e/specs/editor/blocks/list.spec.js, passed after 1 failed attempt.
Error: expect(received).toBe(expected) // Object.is equality

- Expected  - 7
+ Received  + 7

  <!-- wp:list -->
  <ul class="wp-block-list"><!-- wp:list-item -->
- <li>a<!-- wp:list -->
- <ul class="wp-block-list"><!-- wp:list-item -->
- <li>b</li>
+ <li></li>
+ <!-- /wp:list-item --></ul>
- <!-- /wp:list-item --></ul>
+ <!-- /wp:list -->
+
- <!-- /wp:list --></li>
- <!-- /wp:list-item --></ul>
+ <!-- wp:paragraph -->
+ <p>b</p>
- <!-- /wp:list -->
+ <!-- /wp:paragraph -->

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:819:52
should offer the formats every selected block allows in /test/e2e/specs/editor/various/multi-block-selection.spec.js, passed after 1 failed attempt.
Error: expect(received).toEqual(expected) // deep equality

- Expected  - 2
+ Received  + 2

  Object {
-   "anchorOffset": 1,
+   "anchorOffset": 0,
    "blocks": 2,
-   "focusOffset": 1,
+   "focusOffset": 0,
  }

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/multi-block-selection.spec.js:2553:5
should outdent with children in /test/e2e/specs/editor/blocks/list.spec.js, passed after 1 failed attempt.
TimeoutError: locator.click: Timeout 10000ms exceeded.
Call log:
  - waiting for locator('role=toolbar[name="Block tools"i]').locator('role=button[name="Indent"]')

    at Editor.clickBlockToolbarButton (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/editor/click-block-toolbar-button.ts:17:15)
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:1055:3
should replace selected non-breaking spaces from the toolbar in /test/e2e/specs/editor/various/rich-text.spec.js, passed after 1 failed attempt.
Error: expect(received).toMatchObject(expected)

- Expected  - 1
+ Received  + 1

  Array [
    Object {
      "attributes": Object {
-       "content": "one two three",
+       "content": "e two three",
      },
      "name": "core/paragraph",
    },
  ]

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/rich-text.spec.js:1053:41
should replace the selection across blocks with an inline image in /test/e2e/specs/editor/various/multi-block-selection.spec.js, passed after 1 failed attempt.
Error: expect(received).toMatchObject(expected)

- Expected  - 1
+ Received  + 1

@@ -1,9 +1,9 @@
  Array [
    Object {
      "attributes": Object {
-       "content": "ab",
+       "content": "",
      },
      "name": "core/paragraph",
    },
    Object {
      "attributes": Object {

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/multi-block-selection.spec.js:2421:41
should select by dragging into nested block in /test/e2e/specs/editor/various/multi-block-selection.spec.js, passed after 1 failed attempt.
Error: expect(received).toEqual(expected) // deep equality

- Expected  - 1
+ Received  + 0

  Array [
    1,
-   2,
  ]

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/multi-block-selection.spec.js:568:5

76ecf44 Run

@github-actions github-actions Bot added the [Package] Block library /packages/block-library label Oct 20, 2026
@jeryj jeryj added [Feature] Content Only Editing [Type] Bug An existing feature does not function as intended [Block] Navigation Affects the Navigation Block and removed [Feature] Content Only Editing labels Oct 20, 2026

@mikachan mikachan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for this, it's a nice fix and reusing @wordpress/rich-text rather than a customised parser feels better. I've left a couple of questions.

jeryj and others added 3 commits October 21, 2026 09:12
The menu's blocks are controlled inner blocks, so the call is scoped to
the navigation block rather than the top of the tree.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EtGfAZnXUVsD6CvXeULph5
…nreleased

The new TypeScript test needs a dev project, so the build project moves to tsconfig.build.json and tsconfig.json becomes the dev project, registered in the root tsconfig.json. The changelog entry was filed under the published 12.0.0 version.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015tAAXENkcdrTwiyH7K8vCc
@github-actions github-actions Bot added the [Package] Edit Site /packages/edit-site label Oct 21, 2026

@mikachan mikachan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I found one more potential change to address before bringing this in (sorry!)

* @return The text with the markup removed.
*/
export function getPlainText( html?: string ): string {
return html ? create( { html } ).text : '';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

create().text isn't always something a plain input can show. Two cases:

  1. <br> becomes \n, and <input type="text"> strips line breaks from its value. A label of Shop<br><em>now</em> shows as Shopnow, but applyPlainTextEdit still diffs against Shop\nnow. Typing ! at the end sends Shopnow!. The prefix stops at index 4 (\n vs n) and the suffix is 0, so the whole \nnow span is replaced and takes the format of p.
  2. Inline images: the Navigation Link's RichText doesn't set allowedFormats, so core/image is allowed. An <img> becomes U+FFFC in .text, and the field then shows a replacement-character box. stripHTML used to drop the image from the field value entirely.

Suggestion: normalise the value in one place before both the display and the diff. For example, run replace( value, /\n/g, '' ) (or turn the break into a space), and decide what to show for \ufffc. Then the field text and oldText actually are the same string.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for catching this! I tried something a little beyond just having a space preserve the non-text content. I'm unsure about this, but I'm using a symbol to represent it. An image gets 🖼️ and a line break is ↵.

I tested it with undo and typing around it, and deleting it, and it all works correctly. One known issue (but I think is acceptable) is that you can't copy/paste the symbol. That's because, if you add a new 🖼️ symbol, we treat it as that symbol and not a representation of an image. Same with ↵. If we had all ↵ symbols become line breaks, then you couldn't type a ↵ symbol in the input.

Text plus image in canvas for a navigation link represented as text plus 🖼️ symbol in the text input sidebar

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I like the idea of using a symbol here! I can't think of a better alternative.

My Claude found a potential issue with this fix: toFieldText iterates value.text with for…of, which steps by code point, but value.formats and the start/end passed to insert are UTF-16 indices. So if the label contains an emoji, the offsets are off by one. For example, typing ! at the end of "😀 Shop" saves "😀 Sho!p", and Backspace saves "😀 Shp". Looping by index should fix it:

for ( let index = 0; index < value.text.length; index++ ) {
       const character = value.text[ index ];
       offsets.push( text.length );
       text += FIELD_SYMBOLS[ character ] ?? character;
}

We could also add a test using an emoji to catch this, although I'm sure this isn't a common case.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch! updating.

@jeryj jeryj Oct 29, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There was another related issue too. The formats for the inserted text were built with Array.from( inserted.text, … ), which also steps by code point. So typing an emoji after bold text only bolded half of it: Shop😀 came out as Shop��.

Both are fixed now. I added tests for typing and deleting after an emoji, and for typing an emoji into formatted text.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice, thank you! 🙌

jeryj and others added 2 commits October 28, 2026 10:39
A single-line input drops the newline of a line break and shows an inline image's object replacement character as a box, so the field text and the text the edit was diffed against did not match. Typing at the end of `Shop<br><em>now</em>` replaced the whole `\nnow` span. The field now shows `↵` and `🖼️` for them, and each edit is mapped back onto the value so the break, image and formatting outside the edit survive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1u1vgxiwiRMeiSuiiRF5T
…nk-text-field-keep-formats

# Conflicts:
#	packages/block-library/CHANGELOG.md
#	packages/block-library/tsconfig.build.json
#	packages/block-library/tsconfig.json
#	routes/guidelines/tsconfig.json
#	tsconfig.json
@github-actions github-actions Bot removed the [Package] Edit Site /packages/edit-site label Oct 28, 2026
Extend the line-break e2e test with steps for an inline image shown as a symbol, typing beside it, deleting the symbol to remove the image, and undoing that deletion.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1u1vgxiwiRMeiSuiiRF5T
Iterating the label by code point put edits after an emoji one place off,
and gave a typed emoji's formats only half its length.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1u1vfugcM4cEV6dj8F4yW

@mikachan mikachan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

All the latest updates look good! I think this is ready as soon as CI is happy.

…nk-text-field-keep-formats

# Conflicts:
#	packages/block-library/CHANGELOG.md
@jeryj
jeryj enabled auto-merge (squash) October 29, 2026 19:40
@jeryj
jeryj merged commit 336ec97 into trunk Oct 29, 2026
83 checks passed
@jeryj
jeryj deleted the update/navigation-link-text-field-keep-formats branch October 29, 2026 20:00
@github-actions github-actions Bot added this to the Gutenberg 24.4 milestone Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Navigation Affects the Navigation Block [Package] Block library /packages/block-library [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants