Days
Hours
Minutes
Seconds
x

Froala Editor v4.2.1 is HereLEARN MORE

Skip to content

Examples

Shortcuts

Change what shortcuts should be available in the WYSIWYG HTML editor.

HTML

<div id="eg-shortcuts" class="text-small">
  <p>Change what shortcuts should be available in the WYSIWYG HTML editor.</p>
</div>

JAVASCRIPT

<script>
  $(function() {
    $('div#eg-shortcuts').editable({
      inlineMode: false,

      // Enable shortcuts.
      shortcuts: true,

      // Set the list of available shortcuts.
      shortcutsAvailable: ['bold', 'italic']
    })
  });
</script>