How do I make a script so that when I click the edit button, my div will automatically be editable and the save button will appear that will disappear when it is clicked and my div will be non-editable again?
<div class="texto" contenteditable="false">
<p class="meu-texto" ><center>Meu texto Que sera editado</center></p>
</div>
<button class="editar">Editar</button>
<div class="hide" id="salvar-frase"><button class="btn-editar">Salvar</button></div>