Skip to content
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

fix: Formatting toolbar appearance on fade out using innerHTML #645

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

YousefED
Copy link
Collaborator

Alternative to #642.

@matthewlipski curious to here your thoughts + can you try to find any bugs in this approach?

Copy link

vercel bot commented Mar 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview Mar 14, 2024 9:54am
blocknote-website ✅ Ready (Inspect) Visit Preview Mar 14, 2024 9:54am

@matthewlipski
Copy link
Collaborator

Alternative to #642.

@matthewlipski curious to here your thoughts + can you try to find any bugs in this approach?

Looks good! Couldn't find any situations where it breaks. However, I'm still a bit hesitant to merge this vs #642 since using dangerouslySetInnerHTML seems like a bit of a hack. #642 on the other hand introduces a lot of extra code just to deal with animations, but also fixes the issue at the root imo. Not sure which one is more sensible to use tbh

@matthewlipski matthewlipski merged commit f105792 into main Mar 14, 2024
4 checks passed
matthewlipski added a commit that referenced this pull request Mar 14, 2024
* Cleaned up component code

* Renamed "Link" in components to "Hyperlink"

* Implemented PR feedback

* alternative solution for toolbar fadeout (#645)

* chore: Playwright update (#640)

* Updated playwright

* Small fix

* dont upgrade tiptap etc

* fix pw install?

---------

Co-authored-by: yousefed <yousefdardiry@gmail.com>

* fix `setEditable` called when not necessary (#635)

* Added temp fix for shortcuts and input rules in tables (#561)

---------

Co-authored-by: Yousef <yousefdardiry@gmail.com>
matthewlipski added a commit that referenced this pull request Mar 14, 2024
* wip

* Refactored image toolbar

* Refactored image toolbar, hyperlink toolbar, and table handles

* Implemented PR feedback

* Implemented PR feedback

* Implemented PR feedback

* refactor: Clean up component code (#637)

* Cleaned up component code

* Renamed "Link" in components to "Hyperlink"

* Implemented PR feedback

* alternative solution for toolbar fadeout (#645)

* chore: Playwright update (#640)

* Updated playwright

* Small fix

* dont upgrade tiptap etc

* fix pw install?

---------

Co-authored-by: yousefed <yousefdardiry@gmail.com>

* fix `setEditable` called when not necessary (#635)

* Added temp fix for shortcuts and input rules in tables (#561)

---------

Co-authored-by: Yousef <yousefdardiry@gmail.com>

* Renamed hyperlink toolbar -> link toolbar and small changes

---------

Co-authored-by: Yousef <yousefdardiry@gmail.com>
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.

None yet

2 participants