Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

112
Vistas
React Draft Wysiwyg onPaste event not providing clipboard information

The event from onPaste has no clipboard information. When event.clipboardData is run it returns undefined regardless of the paste being a text or image.

<Editor
 toolbarOnFocus
 onPaste={(event) => this.Copy_Paste_Pictures_PO(event)}
 toolbarClassName='toolbar-class-new'
 editorClassName={"toolbar-editor-class"}
 onEditorStateChange={this.onEditorStateChange_PO}
/>
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Unfortunately, I was unable to get the onPaste to provide any clipboard data about an image. The solution is to check if a user pasted text by comparing editor objects. If the paste is not a text (editor object remains the same) pop up an intermediary paste interface. The intermediary interface onPaste provides image information. Upload the image to the server and use the return URL to insert the image into the editor state. The limitation to this solution is a user cannot simultaneously paste text and images.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda