게시물 HTML iframe 블록 추가

This commit is contained in:
2026-06-17 09:52:56 +09:00
parent 6c4064d8b5
commit d41cb71d40
17 changed files with 211 additions and 45 deletions

View File

@@ -132,9 +132,9 @@ const blockCommands = [
},
{
type: 'embed',
label: '임베드',
description: 'YouTube 등 외부 링크 삽입',
keywords: ['embed', 'youtube', 'link', '임베드', '유튜브']
label: 'HTML',
description: 'URL 또는 iframe HTML 삽입',
keywords: ['html', 'iframe', 'embed', 'youtube', 'link', '임베드', '유튜브']
},
{
type: 'quote',
@@ -2281,12 +2281,12 @@ defineExpose({
<input
v-model="block.url"
class="admin-block-editor__embed-url w-full border-0 bg-transparent text-base font-semibold text-ink outline-none placeholder:text-soft"
type="url"
placeholder="https://www.youtube.com/watch?v=..."
type="text"
placeholder="https://www.youtube.com/watch?v=... 또는 iframe HTML"
@input="updateStructuredBlock"
>
<p class="admin-block-editor__embed-help mt-2 text-xs text-muted">
YouTube 링크는 공개 화면에서 영상으로 표시됩니다.
URL 또는 iframe HTML은 공개 화면에서 HTML 블록으로 표시됩니다.
</p>
</section>