JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<script src="https://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
<input value="Gerar caixa de texto" type="button"  onClick="ctexto()" >
<input value="Gerar caixa de texto" type="button"  onClick="ctexto()" >
<div id="editavel"></div>

<script>
function ctexto() {
alert("dasd");
}

        

</script>

CSS

.dragg {
    top: 80px;
    left: 185px;
}

:hover.draggable:before {
  content: "Arrastar";
  color: white;
  font-size: 18px;
  }

:hover.draggable {
    position: absolute;
    background: #272838;
    width: 200px;
    height: 36px;
    top: 80px;
    margin-right: -60px;
    cursor: grab;
    z-index: 6;
}


.selecionar {
    position: absolute;
    width: 176px;
    height: 36px;
    margin-left: 130px;
    cursor: pointer;
    display: none;
    bottom: 0px;
    left: 69px;
}

.dragg:hover .selecionar {
    display: block;
    background: #0387D5;
    z-index: 6;
}


.fechar {
    position: absolute;
    background: #C10913;
    width: 80px;
    height: 36px;
    margin-left: 280px;
    display: none;
    left: -104px;
    cursor: pointer;
   
}

.fechar:before {
  content: "Fechar";
  color: white;
  font-size: 28px;
}

.dragg:hover .fechar {
    display: block;
    z-index: 6;
}


.divv {
   position: absolute;
    top: 36px;
    left: 1px;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 500;
    resize: both;
    width: 450px;
    height: 150px;
    cursor: text;
}

.divv:hover {
    border: 1px dashed #999999;
    margin-left: ;
}


#editavel {
    position: absolute;
    top: 60px;
    left: 30px;
    border: 1px solid #999999;
    box-shadow: 10px 7px 10px gray;
    z-index: 10;
    overflow: hidden;
    width: 800px;
    height: 400px;

}