]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/techniques/Form.js
add proper HTML editor
[alttp.git] / resources / js / components / techniques / Form.js
index 9bbb5112511a4d1e0fef78cb22c000bc6954052a..b6dd3d547707d447babe7aa222861ac7205cccf7 100644 (file)
@@ -4,6 +4,7 @@ import React from 'react';
 import { Button, Col, Form, Modal, Row } from 'react-bootstrap';
 import { useTranslation } from 'react-i18next';
 
+import HTMLInput from '../common/HTMLInput';
 import { getTranslation } from '../../helpers/Technique';
 import yup from '../../schema/yup';
 
@@ -48,7 +49,7 @@ const ContentForm = ({
                        <Form.Group controlId="content.description">
                                <Form.Label>{t('content.description')}</Form.Label>
                                <Form.Control
-                                       as="textarea"
+                                       as={HTMLInput}
                                        isInvalid={!!(touched.description && errors.description)}
                                        name="description"
                                        onBlur={handleBlur}