Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. this.state.addedText.push(
  2. <div className="editable" id={idDiv} onChange={(e) => this._changeText(e)} contentEditable style={{display: "block", position: "absolute", fontWeight: "bold", backgroundColor: "rgba(0,0,0,.5)", wordWrap: "break-word", textAlign: "center", width: "100%", color: "white", top: "0px", borderTop: "1px solid white", borderBottom: "1px solid white"}}>
  3. {this.state.textDivAdded[nextItem]}
  4. </div>
  5. );
  6.  
  7. {this.state.addedText.length > 0 && this.state.addedText.map(v => {
  8. return (
  9. <Draggable defaultPosition={{x: 0, y: 0}} enableUserSelectHack={false} axis="both" bounds="parent">
  10. {v}
  11. </Draggable>
  12. )
  13. })}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement