feat: style figures in the editor to prevent clickthrough and to highlight selected figures and images
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
`,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user