Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.state.addedText.push(
- <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"}}>
- {this.state.textDivAdded[nextItem]}
- </div>
- );
- {this.state.addedText.length > 0 && this.state.addedText.map(v => {
- return (
- <Draggable defaultPosition={{x: 0, y: 0}} enableUserSelectHack={false} axis="both" bounds="parent">
- {v}
- </Draggable>
- )
- })}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement