fix: scope template editor — use RichEditor instead of textarea for content
This commit is contained in:
@@ -5,6 +5,7 @@ import { motion, AnimatePresence } from 'framer-motion'
|
|||||||
import ConfirmModal from '../components/ConfirmModal'
|
import ConfirmModal from '../components/ConfirmModal'
|
||||||
import FormField from '../components/FormField'
|
import FormField from '../components/FormField'
|
||||||
import Forbidden from '../components/Forbidden'
|
import Forbidden from '../components/Forbidden'
|
||||||
|
import RichEditor from '../components/RichEditor'
|
||||||
import useModalLock from '../hooks/useModalLock'
|
import useModalLock from '../hooks/useModalLock'
|
||||||
|
|
||||||
import apiFetch from '../utils/api'
|
import apiFetch from '../utils/api'
|
||||||
@@ -579,13 +580,11 @@ function ScopeTemplatesTab() {
|
|||||||
</FormField>
|
</FormField>
|
||||||
</div>
|
</div>
|
||||||
<FormField label="Obsah">
|
<FormField label="Obsah">
|
||||||
<textarea
|
<RichEditor
|
||||||
value={section.content}
|
value={section.content}
|
||||||
onChange={(e) => updateSection(index, 'content', e.target.value)}
|
onChange={(val) => updateSection(index, 'content', val)}
|
||||||
className="admin-form-input"
|
|
||||||
placeholder="Obsah sekce..."
|
placeholder="Obsah sekce..."
|
||||||
rows={6}
|
minHeight="150px"
|
||||||
style={{ minHeight: '150px' }}
|
|
||||||
/>
|
/>
|
||||||
</FormField>
|
</FormField>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user