mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
feat(react/ribbon): finalize port of inherited attributes tab
This commit is contained in:
@@ -6,6 +6,7 @@ interface RawHtmlProps {
|
||||
className?: string;
|
||||
html?: HTMLElementLike;
|
||||
style?: CSSProperties;
|
||||
onClick?: (e: MouseEvent) => void;
|
||||
}
|
||||
|
||||
export default function RawHtml(props: RawHtmlProps) {
|
||||
@@ -16,11 +17,12 @@ export function RawHtmlBlock(props: RawHtmlProps) {
|
||||
return <div {...getProps(props)} />
|
||||
}
|
||||
|
||||
function getProps({ className, html, style }: RawHtmlProps) {
|
||||
function getProps({ className, html, style, onClick }: RawHtmlProps) {
|
||||
return {
|
||||
className: className,
|
||||
dangerouslySetInnerHTML: getHtml(html ?? ""),
|
||||
style
|
||||
style,
|
||||
onClick
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user