I got a solution in a different way, but very simple without changing the existing code. Create a class in CSS:
<style>
/* Amplia o modal para preencher toda tela*/
.bodyFullscreen {
width: 100% !important;
height: 100% !important;
margin: 0px 0px 0px 0px !important;
}
</style>
Remembering what should come after inserting the bootstrap code and summernote to avoid conflicts.
The code below is the event (action) of click on the fullscreen button in the modal. It is well documented to avoid doubts:
// Evento de click no botao fullscreen
$('body').on('click', '#modalNome [data-event=fullscreen]', function(event){
// Modal que esta sendo exibido
var modal = $('#modalNome .modal-dialog');
// Verifica se modal possui a classe bodyFullscreen, se possuir a remove, caso contrario insere
if(!modal.hasClass('bodyFullscreen')){
modal.addClass('bodyFullscreen');
}else{
modal.removeClass('bodyFullscreen');
}
});