Skip to content

feat(NcRichContenteditable): allow to pass menuContainer as string#8417

Merged
Antreesy merged 2 commits into
mainfrom
fix/noid/ncrich-tribute-container
Apr 15, 2026
Merged

feat(NcRichContenteditable): allow to pass menuContainer as string#8417
Antreesy merged 2 commits into
mainfrom
fix/noid/ncrich-tribute-container

Conversation

@Antreesy

@Antreesy Antreesy commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

☑️ Resolves

  • 🚀 allow to pass string selector as a prop
    • 🧹 change default value to null (as per upstream)
    • 🧹 resolve selector at mounted() -> initializeTribute()
  • 🧹 move DOM patch inside of initializeTribute()
    • Not needed as per 5.1.4 release, but it's not published on NPM

🚧 Tasks

  • Can we fork tributejs and release under @nextcloud-libraries ?

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable
  • 2️⃣ Backport to stable8 for maintained Vue 2 version or not applicable

- change default value to null (as per upstream)
- allow to pass string selector as a prop
- resolve selector at mounted() -> initializeTribute()

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
- it's a patch for new Tribute() and should be coupled with it
- upstream fix is released but not published on npm

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
@Antreesy Antreesy added this to the 9.6.0 milestone Apr 13, 2026
@Antreesy Antreesy requested review from ShGKme and susnux April 13, 2026 16:07
@Antreesy Antreesy self-assigned this Apr 13, 2026
@Antreesy Antreesy added enhancement New feature or request 3. to review Waiting for reviews feature: richtext Related to the richtext component labels Apr 13, 2026
@codecov

codecov Bot commented Apr 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 54.08%. Comparing base (08100af) to head (02005e8).
⚠️ Report is 35 commits behind head on main.

Files with missing lines Patch % Lines
...ts/NcRichContenteditable/NcRichContenteditable.vue 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8417      +/-   ##
==========================================
- Coverage   54.09%   54.08%   -0.01%     
==========================================
  Files         104      104              
  Lines        3398     3400       +2     
  Branches      989      992       +3     
==========================================
+ Hits         1838     1839       +1     
- Misses       1321     1322       +1     
  Partials      239      239              

☔ 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.

@ShGKme

ShGKme commented Apr 13, 2026

Copy link
Copy Markdown
Contributor
  • Can we fork tributejs and release under @nextcloud-libraries ?

We have quite many problems with it. At this point, I'd consider making our own solution.

@Antreesy Antreesy requested a review from DorraJaouad April 14, 2026 07:42
@Antreesy Antreesy modified the milestones: 9.6.0, 9.7.0 Apr 15, 2026
@Antreesy

Copy link
Copy Markdown
Contributor Author

/backport to stable8

@Antreesy Antreesy merged commit a85904a into main Apr 15, 2026
27 checks passed
@Antreesy Antreesy deleted the fix/noid/ncrich-tribute-container branch April 15, 2026 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews enhancement New feature or request feature: richtext Related to the richtext component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants