getSelectionContext: selectionContextByRuleCategories()

in src/js/rule-definitions.js [133:154]


    getSelectionContext: selectionContextByRuleCategories([
      RuleCategories.TEXT,
    ]),
    properties: Map({
      'anchor.href': RulePropertyDefinitionFactory({
        name: 'anchor.href',
        displayName: 'URL',
        placeholder: 'Example: a',
        supportedTypes: Set([RulePropertyTypes.STRING]),
        defaultType: RulePropertyTypes.STRING,
        defaultAttribute: 'href',
        required: true,
      }),
      'anchor.rel': RulePropertyDefinitionFactory({
        name: 'anchor.rel',
        displayName: 'Rel',
        placeholder: 'Example: a',
        supportedTypes: Set([RulePropertyTypes.STRING]),
        defaultType: RulePropertyTypes.STRING,
        defaultAttribute: 'rel',
      }),
    }),