게시물 HTML iframe 블록 추가
This commit is contained in:
@@ -115,7 +115,7 @@ const panelTitle = computed(() => {
|
||||
}
|
||||
|
||||
if (props.panel.kind === 'embed') {
|
||||
return '임베드'
|
||||
return 'HTML'
|
||||
}
|
||||
|
||||
if (props.panel.kind === 'quote') {
|
||||
@@ -155,7 +155,7 @@ const panelMeta = computed(() => {
|
||||
}
|
||||
|
||||
if (props.panel.kind === 'embed') {
|
||||
return 'YouTube·X 등 URL'
|
||||
return 'URL·iframe'
|
||||
}
|
||||
|
||||
if (props.panel.kind === 'quote') {
|
||||
@@ -254,17 +254,16 @@ const onPanelFocusOut = (event) => {
|
||||
|
||||
<template v-else-if="panel.kind === 'embed'">
|
||||
<label class="admin-editor-block-panel__field grid gap-2 text-sm">
|
||||
<span class="font-semibold text-[#394047]">임베드 URL</span>
|
||||
<input
|
||||
class="rounded border border-[#d7dde2] bg-[#eff1f2] px-3 py-2 text-sm text-[#15171a] outline-none transition-colors focus:border-[#8e9cac]"
|
||||
<span class="font-semibold text-[#394047]">HTML 코드 또는 URL</span>
|
||||
<textarea
|
||||
class="min-h-28 resize-y rounded border border-[#d7dde2] bg-[#eff1f2] px-3 py-2 font-mono text-xs leading-5 text-[#15171a] outline-none transition-colors focus:border-[#8e9cac]"
|
||||
:value="panel.url"
|
||||
type="url"
|
||||
placeholder="https://www.youtube.com/watch?v=..."
|
||||
placeholder="https://www.youtube.com/watch?v=... 또는 <iframe src="..."></iframe>"
|
||||
@input="emit('update-embed-url', $event.target.value)"
|
||||
>
|
||||
/>
|
||||
</label>
|
||||
<p class="admin-editor-block-panel__hint mt-3 text-xs leading-relaxed text-[#8e9cac]">
|
||||
YouTube·YouTube Shorts, X(트위터) 게시물 URL을 지원합니다. 그 외 URL은 링크 카드로 표시됩니다.
|
||||
YouTube·YouTube Shorts, X(트위터) 게시물 URL과 외부 서비스 iframe 코드를 지원합니다. iframe은 src 등 허용된 속성만 사용합니다.
|
||||
</p>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user