How to configure the Summernote editor to display a web page inside the window?

0

Good morning, I wanted a little help and tips to make the text editor summernote open a web page, for example in a page I'm typing the HTML normally and click to see the code, it would appear the page ready.

example:

    
asked by anonymous 16.08.2018 / 15:10

1 answer

1

You can get the html created in SummerNote in this way:

var htmlPagina = $('#idDoEditor').summernote('code');

Create a div where you want to put the result:

<div id="htmlGerado"></div>

And with jquery play the summernote html on it:

$('#htmlGerado').html(htmlPagina);
    
16.08.2018 / 20:33