mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 08:15:52 +01:00
fix(admonitions): double enter to exit block
This commit is contained in:
@@ -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' } );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user