mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-25 22:41:36 +08:00
fix(admonitions): double enter to exit block
This commit is contained in:
parent
8c6c15a8d1
commit
283dbb2b75
@ -129,7 +129,7 @@ export default class AdmonitionEditing extends Plugin {
|
|||||||
data.preventDefault();
|
data.preventDefault();
|
||||||
evt.stop();
|
evt.stop();
|
||||||
}
|
}
|
||||||
}, { context: 'blockquote' } );
|
}, { context: 'aside' } );
|
||||||
|
|
||||||
// Overwrite default Backspace key behavior.
|
// Overwrite default Backspace key behavior.
|
||||||
// If Backspace key is pressed with selection collapsed in first empty block inside a quote, break the quote.
|
// If Backspace key is pressed with selection collapsed in first empty block inside a quote, break the quote.
|
||||||
@ -147,6 +147,6 @@ export default class AdmonitionEditing extends Plugin {
|
|||||||
data.preventDefault();
|
data.preventDefault();
|
||||||
evt.stop();
|
evt.stop();
|
||||||
}
|
}
|
||||||
}, { context: 'blockquote' } );
|
}, { context: 'aside' } );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user