Days
Hours
Minutes
Seconds
x

Froala Editor v4.2.0 is Here LEARN MORE

Skip to content

Modes

Init On Button

It is possible to initialize the WYSIWYG HTML editor only on a button.

Try it yourself:



Edit in JSFiddle

HTML

<button id="edit" class="btn r-btn highlight text-small">Button</button>

JAVASCRIPT

<script>
  new FroalaEditor('button#edit', {
    events: {
      contentChanged: function () {
        console.log ('content changed');
      }
    }
  })
</script>