8000 Upgrade Quill to version 2.0.2 and fix toolbar editing and nested lists by maximlt · Pull Request #7739 · holoviz/panel · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Upgrade Quill to version 2.0.2 and fix toolbar editing and nested lists #7739

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

Merged
merged 9 commits into from
Mar 13, 2025

Conversation

maximlt
Copy link
Member
@maximlt maximlt commented Feb 26, 2025

Fixes #7524
Fixes #7460

By upgrading Quill to version 2.0.2. Note the latest is 2.0.3 but has a weird bug that replaces all white spaces with nbsp;. The test test_texteditor_nested_lists failed before this PR and now passes. I've also run the tests locally on Firefox and they all pass, one needed some adjustment.

Keeping it a bit in Draft mode as I'd like to test it on a real app (I'm moderately confident on Quill's robustness and v2 still doesn't support the virtual DOM).

@maximlt maximlt marked this pull request as draft February 26, 2025 16:57
@hoxbro
Copy link
Member
hoxbro commented Feb 26, 2025

pre-commit.ci autofix

Copy link
codecov bot commented Feb 26, 2025

Codecov Report

Attention: Patch coverage is 94.44444% with 1 line in your changes missing coverage. Please review.

Project coverage is 87.21%. Comparing base (afa745c) to head (002e26f).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
panel/tests/ui/widgets/test_texteditor.py 94.44% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7739      +/-   ##
==========================================
+ Coverage   86.11%   87.21%   +1.09%     
==========================================
  Files         346      346              
  Lines       52828    52843      +15     
==========================================
+ Hits        45492    46085     +593     
+ Misses       7336     6758     -578     

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

@maximlt maximlt marked this pull request as ready for review March 6, 2025 15:26
@maximlt
Copy link
Member Author
maximlt commented Mar 12, 2025

Failing UI test is unrelated.

I've been trying to run the example notebook locally but without luck due to another bug in how resources are handled in a local development setting.

We discussed whether merging a PR like this one should be part of a patch release (incoming 1.6.2) or a minor release (1.7). I think it's okay if it is released in 1.6.2 as after all this is just affecting one specific widget, which has a blast radius much smaller than the new compatibility to Bokeh 3.7. What is annoying with this widget is that it is already broken in various ways (I just found out the bubble version doesn't seem to work, at least on the website) but it does have a few UI tests that can catch potential regressions, and from my own testing I saw no new bug introduced by this PR.

image

(I guess it wouldn't be a bad idea for me to start working on a new panel extension that leverages another JS rich text editor to see if we can get something better than this one)

@philippjfr philippjfr changed the title Support nested lists in the TextEditor by migrating Quill to version 2.0.2 Upgrade Quill to version 2.0.2 and fix toolbar editing and nested lists Mar 13, 2025
@philippjfr philippjfr merged commit 06d08f1 into main Mar 13, 2025
19 checks passed
@philippjfr philippjfr deleted the quill2 branch March 13, 2025 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TextEditor: nested lists not semantically returned The texteditor widget does not work properly: the toolbar can not format the text as designed.
3 participants
0