Days
Hours
Minutes
Seconds
x

Froala Editor v4.3 is hereLEARN MORE

Skip to content

Modes

Init On Button

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

init-on-button

Try it yourself:



Edit in JSFiddle

HTML

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

JAVASCRIPT

<script>
  $(function() {
    $('button#edit').froalaEditor()
    .on('froalaEditor.contentChanged', function () {
      console.log ('content changed');
    })
  });
</script>