PHP Classes

File: public/js/tinymce/src/core/src/main/js/keyboard/FormatShortcuts.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/core/src/main/js/keyboard/FormatShortcuts.js   Download  
File: public/js/tinymce/src/core/src/main/js/keyboard/FormatShortcuts.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: GoLavaCMS
Publish content on Web pages with SEO support
Author: By
Last change:
Date: 6 years ago
Size: 960 bytes
 

Contents

Class file image Download
/** * FormatShortcuts.js * * Released under LGPL License. * Copyright (c) 1999-2017 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ define( 'tinymce.core.keyboard.FormatShortcuts', [ ], function () { var setup = function (editor) { // Add some inline shortcuts editor.addShortcut('meta+b', '', 'Bold'); editor.addShortcut('meta+i', '', 'Italic'); editor.addShortcut('meta+u', '', 'Underline'); // BlockFormat shortcuts keys for (var i = 1; i <= 6; i++) { editor.addShortcut('access+' + i, '', ['FormatBlock', false, 'h' + i]); } editor.addShortcut('access+7', '', ['FormatBlock', false, 'p']); editor.addShortcut('access+8', '', ['FormatBlock', false, 'div']); editor.addShortcut('access+9', '', ['FormatBlock', false, 'address']); }; return { setup: setup }; } );