-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
When blocks are emptied in content, TinyMCE passes in an empty <br /> to the Redux State. #561
Comments
This is to pad empty nodes. Normally they are stripped when getting the content, but we get the raw content. |
(Which is just innerHTML + some internal stuff stripped that may affect undo levels.) |
I think this will impact |
@aduth Looks like it. Should just be a |
@BE-Webdesign Is this still an issue? |
No idea, let me check. |
Looks good, content is now just an empty array. |
When a block with an editable component is emptied, the Redux state on
UPDATE_BLOCK
for that block becomes:Maybe this is a non issue as any block with an Editable component will most likely need this to happen for TinyMCE to work. This could potentially make the final output of a block weird through
save()
as we will be adding in empty<br />
tags. Maybe this is the intended behavior to represent an empty block in the final rendering of post_content?The text was updated successfully, but these errors were encountered: