埋め込み内のコードハイライトではコピーを使えないように

This commit is contained in:
kakkokari-gtyih 2024-06-29 21:10:30 +09:00
parent 48d3b9a7b8
commit 153a25bd30
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,7 @@ import MkCodeInline from '@/components/MkCodeInline.vue';
import MkGoogle from '@/components/MkGoogle.vue';
import MkSparkle from '@/components/MkSparkle.vue';
import MkA, { MkABehavior } from '@/components/global/MkA.vue';
import { host } from '@/config.js';
import { host, embedPage } from '@/config.js';
import { defaultStore } from '@/store.js';
import { nyaize as doNyaize } from '@/scripts/nyaize.js';
import { safeParseFloat } from '@/scripts/safe-parse.js';
@ -377,6 +377,7 @@ export default function (props: MfmProps, { emit }: { emit: SetupContext<MfmEven
key: Math.random(),
code: token.props.code,
lang: token.props.lang ?? undefined,
copyButton: !embedPage, // 埋め込みページからクリップボードにはアクセスさせない
})];
}