mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 20:27:23 +00:00
Add copy button for image Markdown format in resource edit page
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
import { useEffect, useState } from "react";
|
||||
import { MdAdd, MdClose, MdDelete, MdOutlineInfo } from "react-icons/md";
|
||||
import {
|
||||
MdAdd,
|
||||
MdClose,
|
||||
MdContentCopy,
|
||||
MdDelete,
|
||||
MdOutlineInfo,
|
||||
} from "react-icons/md";
|
||||
import { Tag } from "../network/models.ts";
|
||||
import { network } from "../network/network.ts";
|
||||
import { useNavigate, useParams } from "react-router";
|
||||
@@ -262,7 +268,19 @@ export default function EditResourcePage() {
|
||||
alt={"image"}
|
||||
/>
|
||||
</td>
|
||||
<td>{`})`}</td>
|
||||
<td>
|
||||
<span>{`})`}</span>
|
||||
<button
|
||||
className={"btn btn-sm btn-circle btn-ghost ml-1"}
|
||||
onClick={() => {
|
||||
navigator.clipboard.writeText(
|
||||
`})`,
|
||||
);
|
||||
}}
|
||||
>
|
||||
<MdContentCopy />
|
||||
</button>
|
||||
</td>
|
||||
<td>
|
||||
<button
|
||||
className={"btn btn-square"}
|
||||
|
Reference in New Issue
Block a user