[stable29] feat: Add table-only editor API#8028
Merged
juliusknorr merged 7 commits intostable29from Dec 10, 2025
Merged
Conversation
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]
eb07542 to
881379b
Compare
Signed-off-by: Benjamin Frueh <benjamin.frueh@gmail.com>
881379b to
40be457
Compare
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. |
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 |
Member
|
CI failures seem unrelated |
juliusknorr
approved these changes
Dec 10, 2025
Member
juliusknorr
left a comment
There was a problem hiding this comment.
Tested and works, thanks for wrapping this up @benjaminfrueh
Collaborator
|
thank you @benjaminfrueh ! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #8002
Warning, This backport's changes differ from the original and might be incomplete⚠️
Todo
Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.