Froala editor default behavior

by RomainMazB

HTML

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://editor-latest.s3.amazonaws.com/js/third_party/font_awesome.min.js"></script>
<script src="https://editor-latest.s3.amazonaws.com/v3/js/froala_editor.pkgd.min.js"></script>
<link rel="stylesheet" href="https://editor-latest.s3.amazonaws.com/v3/css/froala_editor.pkgd.min.css">
<link rel="stylesheet" href="https://editor-latest.s3.amazonaws.com/v3/css/froala_style.min.css">
<div id="froala-editor">
  <script>console.log('debug')</script> <!-- Script will be removed --> 
  <style>.myClass { margin:left }</style> <!-- Style will be removed -->
  <i class="right triangle icon"></i> <!-- I will be removed --> 
  
  <textarea></textarea> <!-- Textarea will live --> 
  
  <p>
  Here the i, style and script tag are removed at the run time but not the textarea which is allowed
  </p>
  <p>i tag is removed because not present in the htmlAllowedEmptyTags</p>
  <p>style and script tags are removed because present in htmlRemoveTags</p>
</div>

JavaScript

new FroalaEditor(
 		'div#froala-editor',
    {
        'toolbarButtons': {
            'moreMisc': {
                'buttons': ['html']
            }
        }
    }
 )