mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
feat(react/ribbon): port edited notes
This commit is contained in:
@@ -4,7 +4,7 @@ type HTMLElementLike = string | HTMLElement | JQuery<HTMLElement>;
|
||||
|
||||
interface RawHtmlProps {
|
||||
className?: string;
|
||||
html: HTMLElementLike;
|
||||
html?: HTMLElementLike;
|
||||
style?: CSSProperties;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ export function RawHtmlBlock(props: RawHtmlProps) {
|
||||
function getProps({ className, html, style }: RawHtmlProps) {
|
||||
return {
|
||||
className: className,
|
||||
dangerouslySetInnerHTML: getHtml(html),
|
||||
dangerouslySetInnerHTML: getHtml(html ?? ""),
|
||||
style
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user