- Timestamp:
- 06/09/24 14:24:03 (2 weeks ago)
- Branches:
- main
- Children:
- b248810
- Parents:
- 19398ad
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
jobvista-frontend/src/views/job_advertisements/EditJobAdModal.js
r19398ad r28b3398 15 15 import {useDispatch, useSelector} from "react-redux"; 16 16 import {JobAdvertisementActions} from "../../redux/actions/jobAdvertisementActions"; 17 import {Editor} from "primereact/editor"; 17 18 18 19 … … 85 86 86 87 <label className="label">Job description:</label> 87 <textarea type="text" defaultValue={jobAd.props.description} placeholder="Describe the job position and all the requirements" 88 className="description-textarea" {...register("description")}/> 88 {/*<textarea type="text" defaultValue={jobAd.props.description} placeholder="Describe the job position and all the requirements"*/} 89 {/* className="description-textarea" {...register("description")}/>*/} 90 91 <Controller 92 name="description" 93 control={control} 94 render={({ field }) => ( 95 <Editor 96 defaultValue={jobAd.props.description} 97 value={jobAd.props.description} 98 onTextChange={(e) => field.onChange(e.htmlValue)} 99 style={{ height: '300px', fontSize: "16px", fontFamily: "Segoe UI" }} 100 /> 101 )} 102 /> 103 89 104 <p style={{color: "red"}}>{errors.description?.message}</p> 90 105 </div>
Note:
See TracChangeset
for help on using the changeset viewer.