Page tree
Skip to end of metadata
Go to start of metadata

 

The ui shortcuts property turns editor content keyboard shortcuts on or off. Content keyboard shortcuts include any keyboard shortcut that directly affects the contents of the editor (eg: indending, marking bold text, etc).

This property is true by default. When set to false, most of the editor keyboard shortcuts will be disabled. The following shortcuts are not affected by this:

  • undo
  • redo
  • focus toolbar
  • open context menu

Use of this property does not alter the toolbar, it just deactivates the keyboard shortcuts.

Example Configuration

In this example, a simple configuration object is created that disables editor content keyboard shortcuts.

var configUi = {
	shortcuts : false
};
 
var editor = textboxio.replace('#targetId', configUi);
  • No labels