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 FormField from '../components/FormField'
|
||||
import Forbidden from '../components/Forbidden'
|
||||
import RichEditor from '../components/RichEditor'
|
||||
import useModalLock from '../hooks/useModalLock'
|
||||
|
||||
import apiFetch from '../utils/api'
|
||||
@@ -579,13 +580,11 @@ function ScopeTemplatesTab() {
|
||||
</FormField>
|
||||
</div>
|
||||
<FormField label="Obsah">
|
||||
<textarea
|
||||
<RichEditor
|
||||
value={section.content}
|
||||
onChange={(e) => updateSection(index, 'content', e.target.value)}
|
||||
className="admin-form-input"
|
||||
onChange={(val) => updateSection(index, 'content', val)}
|
||||
placeholder="Obsah sekce..."
|
||||
rows={6}
|
||||
style={{ minHeight: '150px' }}
|
||||
minHeight="150px"
|
||||
/>
|
||||
</FormField>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user