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
We added a code block plugin with a custom component. We see that children (lines) of the code block are of type code_line. The problem is, when we try to delete a line the code_line element is reset to p, which messes up with our formatting. We would like to delete the whole code line in this case, not convert it.
Moreover, we cannot delete the line with backspace when it is set to the p element, we can only do it with control+backspace. When it is the first line of the code block not even control+backspace helps, which means we cannot delete the whole code block.
Attached below is a video of the behaviour:
Screen.Recording.2022-12-06.at.10.09.50.mov
We would like to:
stop converting code lines to p element. When we use backspace on an empty code line we want to delete it, not convert it to p.
exit the whole code block if we are using backspace and there is only one empty code line.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
We added a code block plugin with a custom component. We see that children (lines) of the code block are of type code_line. The problem is, when we try to delete a line the code_line element is reset to p, which messes up with our formatting. We would like to delete the whole code line in this case, not convert it.
Moreover, we cannot delete the line with backspace when it is set to the p element, we can only do it with control+backspace. When it is the first line of the code block not even control+backspace helps, which means we cannot delete the whole code block.
Attached below is a video of the behaviour:
Screen.Recording.2022-12-06.at.10.09.50.mov
We would like to:
Beta Was this translation helpful? Give feedback.
All reactions