mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 16:25:51 +01:00
fix(ckeditor5-math): equation not maintaining styles (closes #7211)
This commit is contained in:
@@ -30,7 +30,12 @@ export default class MathCommand extends Command {
|
|||||||
|
|
||||||
mathtex = writer.createElement(
|
mathtex = writer.createElement(
|
||||||
display ? 'mathtex-display' : 'mathtex-inline',
|
display ? 'mathtex-display' : 'mathtex-inline',
|
||||||
{ equation, type, display }
|
{
|
||||||
|
...Object.fromEntries(selection.getAttributes()),
|
||||||
|
equation,
|
||||||
|
type,
|
||||||
|
display
|
||||||
|
}
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
const selection = this.editor.model.document.selection;
|
const selection = this.editor.model.document.selection;
|
||||||
|
|||||||
Reference in New Issue
Block a user