Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

143
Views
REACT: ¿Por qué usar 'estilo' con react-draft-wysiwyg no funciona?

¿Hay alguna manera de delimitar mis cuadros de texto en un rectángulo y darles una altura predeterminada? Intenté usar style en mi <Editor /> pero no funciona.

 import { Editor } from "react-draft-wysiwyg"; import { EditorState } from "draft-js"; import "react-draft-wysiwyg/dist/react-draft-wysiwyg.css"; const TabContent = ({ name, typeProof }) => { const [text, setText] = useState( () => EditorState.createEmpty(),); return ( <> <SafeAreaView> <Editor editorState={text} onEditorStateChange={setText} wrapperClassName="wrapperClassName" editorClassName="editorClassName" toolbarClassName="toolbarClassName" placeholder="Enter your text here:" style={{ height: 200, margin: 12, borderWidth: 0.5, padding: 10, borderRadius: "2px" }} toolbar={{ options: ['inline', 'blockType', 'fontSize', 'fontFamily', 'list', 'textAlign', 'colorPicker', 'embedded', 'remove', 'history'], ... }} /> </SafeAreaView> </> ); };

Aquí mi código

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Tal vez necesites usar

editorStyle={{ altura: 200, margen: 12,borderWidth: 0.5,relleno: 10,borderRadius: "2px" }}

atributo en lugar de estilo

ingrese la descripción de la imagen aquí

ingrese la descripción de la imagen aquí

funciona para mí `

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!