Make code block Enter behavior the same as quote block (#6010)
This commit is contained in:
@@ -86,8 +86,7 @@ export const newlineInCode: Command = (state, dispatch) => {
|
||||
return false;
|
||||
}
|
||||
const { tr, selection } = state;
|
||||
const text = selection?.$anchor?.nodeBefore?.text;
|
||||
|
||||
const text = selection.$anchor.nodeBefore?.text;
|
||||
let newText = "\n";
|
||||
|
||||
if (text) {
|
||||
|
||||
Reference in New Issue
Block a user