-
Notifications
You must be signed in to change notification settings - Fork 109
feat: Add table-only editor API #8002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
c8f5d57 to
b11dca0
Compare
max-nextcloud
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but I have not tested it.
Since you are not using collaboration might be possible to write a playwright component test for this that calls createTable() for a div or so. That would make testing it easier.
9474fec to
6f131b9
Compare
e3c3838 to
1a6b79a
Compare
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]>
Signed-off-by: silver <[email protected]>
Signed-off-by: silver <[email protected]>
Signed-off-by: silver <[email protected]>
1a6b79a to
45deeac
Compare
|
/backport to stable32 |
|
/backport to stable31 |
|
/backport to stable30 |
|
/backport to stable29 |
📝 Summary
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).
🏁 Checklist
npm run lint/npm run stylelint/composer run cs:check)