You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding horizontal rule, you get a blank new line on top of the <hr/> tag.
I even used the following to make sure no <p/> would be rendered above with no avail.
In other words: Is it possible to delete certain nodes programmatically?
In my case finding the last empty <p/> and deleting it after inserting a <hr/>
Solution
I dont know if this is the right way to do it, but I am just listening every transaction and dipatching a prosemirror action to delete the node.
Description
When adding horizontal rule, you get a blank new line on top of the
<hr/>
tag.I even used the following to make sure no
<p/>
would be rendered above with no avail.Screen.Recording.2021-07-30.at.23.30.14.mov
Question
In other words: Is it possible to delete certain nodes programmatically?
In my case finding the last empty
<p/>
and deleting it after inserting a<hr/>
Solution
I dont know if this is the right way to do it, but I am just listening every transaction and dipatching a prosemirror action to delete the node.
The text was updated successfully, but these errors were encountered: