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>
File: 7106