all files / packages/strong/ StrongPackage.js

90.91% Statements 10/11
75% Branches 3/4
100% Functions 1/1
90.91% Lines 10/11
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37                  365× 365× 365× 365×   365×       365×     365× 365×       365× 365×                  
import { platform } from '../../util'
import { AnnotationCommand, AnnotationTool } from '../../ui'
import Strong from './Strong'
import StrongHTMLConverter from './StrongHTMLConverter'
import StrongComponent from './StrongComponent'
 
export default {
  name: 'strong',
  configure: function(config, {toolGroup, disableCollapsedCursor}) {
    config.addNode(Strong)
    config.addConverter('html', StrongHTMLConverter)
    config.addConverter('xml', StrongHTMLConverter)
    config.addComponent('strong', StrongComponent)
 
    config.addCommand('strong', AnnotationCommand, {
      nodeType: 'strong',
      disableCollapsedCursor
    })
    config.addTool('strong', AnnotationTool, {
      toolGroup: toolGroup || 'annotations'
    })
    config.addIcon('strong', { 'fontawesome': 'fa-bold' })
    config.addLabel('strong', {
      en: 'Strong',
      de: 'Fett'
    })
    Eif (platform.isMac) {
      config.addKeyboardShortcut('cmd+b', { command: 'strong' })
    } else {
      config.addKeyboardShortcut('ctrl+b', { command: 'strong' })
    }
  },
  Strong,
  StrongComponent,
  StrongHTMLConverter
}