Skip to content

[Feature] Add line break support for table cell #2078

@MonoGray22

Description

@MonoGray22

Initial checklist

  • I agree to follow the code of conduct
  • I searched issues and discussions and couldn’t find anything (or linked relevant results below)

Affected packages and versions

v7.15.5

Link to runnable example

https://milkdown.dev/playground?text=D4AgLgpgzmICYEMwJKAPAIwE4gPQD5URMcDUAoUALgFo766jaGmGaL1s9CRfPTC%2Fbh2JcyvIiWFCywcuSA%3D%3D

Steps to reproduce

  1. Open page and navigate to the page/document containing the table.
  2. Click on a table cell to put it in edit mode.
  3. Type some content, then press Enter and observe whether a line break occurs.
  4. Type more content, then press Shift+Enter and observe whether a line break occurs.

Expected behavior

Pressing Enter or Shift+Enter should break the line within the current cell, allowing multi-line input

Actual behavior

Neither Enter nor Shift+Enter triggers a line break within the cell, contradicting the expected behavior.

Runtime

No response

OS

No response

Build and bundle tools

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions