Skip to content

Conversation

@mejo-
Copy link
Member

@mejo- mejo- commented Jul 29, 2025

📝 Summary

🖼️ Screenshots

🏚️ Before 🏡 After
image image

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits

mejo- added 2 commits July 29, 2025 10:58
No need to iterate over all nodes of the document each time.

Upstream PR: amirhhashemi/tiptap-text-direction#23

Signed-off-by: Jonas <[email protected]>
The upstream Tiptap Keymap extension that we don't use (anymore) also
provides this.

It allows to undo the automatic changes from input rules directly after
they got applied by hitting <Backspace>.

Unfortunately this doesn't work for nodes that get changed by the
TextDirection extension due to a bug, but there's still plenty of input
rules where it works, so let's bring it in.

Signed-off-by: Jonas <[email protected]>
@mejo- mejo- self-assigned this Jul 29, 2025
@mejo- mejo- added the bug Something isn't working label Jul 29, 2025
@mejo- mejo- requested a review from max-nextcloud as a code owner July 29, 2025 12:07
Copy link
Collaborator

@max-nextcloud max-nextcloud left a comment

Choose a reason for hiding this comment

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

Nice. Thanks for including some samples in the tests

@codecov
Copy link

codecov bot commented Jul 29, 2025

Codecov Report

❌ Patch coverage is 71.42857% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.74%. Comparing base (35a9c53) to head (3b81a75).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
src/nodes/Callout.vue 0.00% 4 Missing ⚠️
src/nodes/Table/TableCellView.vue 0.00% 3 Missing ⚠️
src/nodes/Table/TableHeaderView.vue 0.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7513   +/-   ##
=======================================
  Coverage   59.74%   59.74%           
=======================================
  Files         496      496           
  Lines       37990    38016   +26     
  Branches     1120     1120           
=======================================
+ Hits        22698    22714   +16     
- Misses      15185    15195   +10     
  Partials      107      107           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Fixes styling for details and callouts with RTL script.

Signed-off-by: Jonas <[email protected]>
@mejo- mejo- force-pushed the fix/undo_input_rule branch from b996b4e to 3b81a75 Compare July 29, 2025 12:25
@mejo-
Copy link
Member Author

mejo- commented Jul 29, 2025

/backport to stable31

@mejo- mejo- merged commit f28ffc1 into main Jul 29, 2025
65 of 66 checks passed
@mejo- mejo- deleted the fix/undo_input_rule branch July 29, 2025 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants