mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 07:45:51 +01:00
feat(admonitions): allow changing admonition type
This commit is contained in:
@@ -162,6 +162,10 @@ export default class AdmonitionCommand extends Command {
|
||||
quote = writer.createElement( 'aside', { type });
|
||||
|
||||
writer.wrap( groupRange, quote );
|
||||
} else if (quote.is("element")) {
|
||||
this.editor.model.change((writer) => {
|
||||
writer.setAttribute("type", type, quote as Element);
|
||||
});
|
||||
}
|
||||
|
||||
quotesToMerge.push( quote );
|
||||
|
||||
Reference in New Issue
Block a user