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 ⚠️

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.

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 <[email protected]>
Signed-off-by: silver <[email protected]>
Signed-off-by: silver <[email protected]>

[skip ci]
@benjaminfrueh benjaminfrueh marked this pull request as ready for review December 10, 2025 01:53
Signed-off-by: Benjamin Frueh <[email protected]>
@benjaminfrueh
Copy link
Contributor

@juliusknorr I commited a fix for this backport, it works now in stable29.

Note: tiptap v2 table editing is less user-friendly compared to v3, there are no quick actions, so rows and columns can only be added with the three-dot menus.

@juliusknorr
Copy link
Member

Thanks also for the clarification on the limitations, this is fine for now. I guess we can forward port your changes from her then to 30 and 31 as well

@juliusknorr
Copy link
Member

CI failures seem unrelated

Copy link
Member

@juliusknorr juliusknorr left a comment

Choose a reason for hiding this comment

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

Tested and works, thanks for wrapping this up @benjaminfrueh

@juliusknorr juliusknorr merged commit 40337f2 into stable29 Dec 10, 2025
56 of 59 checks passed
@juliusknorr juliusknorr deleted the backport/8002/stable29 branch December 10, 2025 08:33
@silverkszlo
Copy link
Collaborator

thank you @benjaminfrueh !

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