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(nodes): fixed switching a non-empty cut block in wysiwyg #545

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ReFFaT
Copy link
Contributor

@ReFFaT ReFFaT commented Dec 28, 2024

There was a problem that when using an empty block of code in cut and switching to markup mode and back, he does not see this block and puts the placeholder text. The problem can be solved by checking for a paragraph, since this is an empty node by default, now we consider a cut to be empty if there is no content in it and the only node in it is node = "paragraph", that is, if there is no text in the cut, but there is a block of code or something else, then it will not being considered empty also fixes a problem for the note node.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

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.

2 participants