feat: style figures in the editor to prevent clickthrough and to highlight selected figures and images

This commit is contained in:
Jacob Overgaard
2024-09-26 14:02:18 +02:00
parent 3adb862c60
commit e6fe6539d2

View File

@@ -180,6 +180,25 @@ export class UmbInputTiptapElement extends UmbFormControlMixin<string, typeof Um
margin-top: 0;
margin-bottom: 0.5em;
}
figure {
> p,
img {
pointer-events: none;
margin: 0;
padding: 0;
}
&.ProseMirror-selectednode {
outline: 3px solid #b4d7ff;
}
}
img {
&.ProseMirror-selectednode {
outline: 3px solid #b4d7ff;
}
}
}
`,
];