260907_01_ENH: 에디터 이미지맵 보존 및 SMS 미리보기 문구 지원
This commit is contained in:
@@ -38,6 +38,8 @@ interface ToolbarProps {
|
||||
onPickImage: () => void
|
||||
showHtmlToggle: boolean
|
||||
isHtmlView: boolean
|
||||
htmlToWysiwygDisabled?: boolean
|
||||
htmlToWysiwygDisabledReason?: string
|
||||
onToggleHtmlView: () => void
|
||||
onFormatHtml: () => void
|
||||
fontFamilyOptions: KriEditorFontFamilyOption[]
|
||||
@@ -77,6 +79,8 @@ export function Toolbar({
|
||||
onPickImage,
|
||||
showHtmlToggle,
|
||||
isHtmlView,
|
||||
htmlToWysiwygDisabled = false,
|
||||
htmlToWysiwygDisabledReason,
|
||||
onToggleHtmlView,
|
||||
onFormatHtml,
|
||||
fontFamilyOptions,
|
||||
@@ -298,7 +302,14 @@ export function Toolbar({
|
||||
{showHtmlToggle && enabled('html') ? (
|
||||
<>
|
||||
<Separator orientation="vertical" className="mx-1 h-6" />
|
||||
<ToolbarButton active={isHtmlView} title={isHtmlView ? 'WYSIWYG로 전환' : 'HTML 편집'} onClick={onToggleHtmlView}><Code2 className="size-4" /></ToolbarButton>
|
||||
<ToolbarButton
|
||||
active={isHtmlView}
|
||||
disabled={isHtmlView && htmlToWysiwygDisabled}
|
||||
title={isHtmlView && htmlToWysiwygDisabled ? (htmlToWysiwygDisabledReason ?? 'WYSIWYG로 전환할 수 없습니다.') : (isHtmlView ? 'WYSIWYG로 전환' : 'HTML 편집')}
|
||||
onClick={onToggleHtmlView}
|
||||
>
|
||||
<Code2 className="size-4" />
|
||||
</ToolbarButton>
|
||||
{isHtmlView ? (
|
||||
<ToolbarButton title="HTML 정렬" onClick={onFormatHtml}><IndentIncrease className="size-4" /></ToolbarButton>
|
||||
) : null}
|
||||
|
||||
Reference in New Issue
Block a user