Skip to content

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Dec 9, 2025

Backport of PR #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

@backportbot backportbot bot added enhancement New feature or request 3. to review labels Dec 9, 2025
@backportbot backportbot bot added this to the Nextcloud 32.0.3 milestone Dec 9, 2025
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]>
@codecov
Copy link

codecov bot commented Dec 11, 2025

Codecov Report

❌ Patch coverage is 19.42446% with 112 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/components/Editor/PlainTableContentEditor.vue 1.33% 74 Missing ⚠️
src/editor.js 0.00% 37 Missing ⚠️
src/extensions/PlainTable.js 94.11% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Use editorFlagsKey with provide() instead of provideEditorFlags()
composable

Signed-off-by: silver <[email protected]>
@silverkszlo silverkszlo force-pushed the backport/8002/stable32 branch from 9587aa9 to 906efdc Compare December 11, 2025 16:12
@silverkszlo silverkszlo merged commit 912ea28 into stable32 Dec 11, 2025
62 of 63 checks passed
@silverkszlo silverkszlo deleted the backport/8002/stable32 branch December 11, 2025 16:32
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