mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 17:08:58 +01:00
feat(react/type_widget): add copy image reference floating button to image
This commit is contained in:
parent
0a0d9775b2
commit
3a68395ca7
@ -264,7 +264,7 @@ function GeoMapButtons({ triggerEvent, viewType, isReadOnly }: FloatingButtonCon
|
|||||||
|
|
||||||
function CopyImageReferenceButton({ note, isDefaultViewMode }: FloatingButtonContext) {
|
function CopyImageReferenceButton({ note, isDefaultViewMode }: FloatingButtonContext) {
|
||||||
const hiddenImageCopyRef = useRef<HTMLDivElement>(null);
|
const hiddenImageCopyRef = useRef<HTMLDivElement>(null);
|
||||||
const isEnabled = ["mermaid", "canvas", "mindMap"].includes(note?.type ?? "")
|
const isEnabled = ["mermaid", "canvas", "mindMap", "image"].includes(note?.type ?? "")
|
||||||
&& note?.isContentAvailable() && isDefaultViewMode;
|
&& note?.isContentAvailable() && isDefaultViewMode;
|
||||||
|
|
||||||
return isEnabled && (
|
return isEnabled && (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user