We are aware of the recently disclosed PHP2Shell vulnerabilities (CVE-2026-109618 and CVE-2026-109619) and can confirm FROALA is not impacted by these vulnerabilities.

0
Days
00
Hours
00
Minutes
00
Seconds
x
Skip to content
Froala Documentation

Live Content Preview

Live Content Preview

This example allows you to see when the contentChanged event is triggered and how the rich text editor's content appears outside the editable area.

Try it yourself:


Edit in JSFiddle

HTML

<div id="froala-editor">
  <p>Start typing and you can preview the content of the WYSIWYG HTML editor as you type below the editing box.</p>
</div>
<br/>
<div id="preview" class="fr-view">
  <p>Start typing and you can preview the content of the WYSIWYG HTML editor as you type below the editing box.</p>
</div>

JAVASCRIPT

<script>
  $(function() {
    new FroalaEditor('div#froala-editor', {
      events: {
        contentChanged: function () {
          $('#preview').html(this.html.get());
        }
      }
    })
  });
</script>