Skip to content

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Dec 9, 2025

Backport of #8002

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Forward port of https://github.com/nextcloud/text/pull/8028/commits

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbot backportbot bot added enhancement New feature or request 3. to review labels Dec 9, 2025
@backportbot backportbot bot added this to the Nextcloud 31.0.12 milestone Dec 9, 2025
silverkszlo and others added 7 commits December 9, 2025 08:27
Add createTable() API to enable embedding markdown tables in other apps
without rich text editing features. Introduces PlainTableDocument node
that restricts content to tables only, and PlainTable extension that
bundles required functionality (table editing, markdown serialization).

- Add PlainTableDocument node with table-only content model
- Add PlainTable extension (bundles Markdown, EditableTable, etc.)
- Add PlainTableContentEditor.vue component
- Expose window.OCA.Text.createTable() API in editor.js
- Export PlainTable from extensions/index.js

Signed-off-by: silver <s.szmajduch@posteo.de>
Signed-off-by: silver <s.szmajduch@posteo.de>
Signed-off-by: silver <s.szmajduch@posteo.de>
Signed-off-by: silver <s.szmajduch@posteo.de>
Signed-off-by: silver <s.szmajduch@posteo.de>
Signed-off-by: silver <s.szmajduch@posteo.de>

[skip ci]
Signed-off-by: Benjamin Frueh <benjamin.frueh@gmail.com>
Signed-off-by: silver <s.szmajduch@posteo.de>
@silverkszlo silverkszlo marked this pull request as ready for review December 11, 2025 11:41
@codecov
Copy link

codecov bot commented Dec 11, 2025

Codecov Report

❌ Patch coverage is 24.60317% with 95 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/components/Editor/PlainTableContentEditor.vue 0.00% 62 Missing and 1 partial ⚠️
src/editor.js 0.00% 31 Missing ⚠️
src/extensions/PlainTable.js 95.23% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@silverkszlo silverkszlo merged commit 72b4ee2 into stable31 Dec 11, 2025
63 of 64 checks passed
@silverkszlo silverkszlo deleted the backport/8002/stable31 branch December 11, 2025 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants