in src/js/rule-definitions.js [367:400]
getSelectionContext: selectionContextByRules(['SlideshowRule']),
displayName: 'Slideshow Image',
placeholder: 'Example: div.img',
properties: Map({
'image.url': RulePropertyDefinitionFactory({
name: 'image.url',
displayName: 'Image URL',
placeholder: 'Example: img',
supportedTypes: Set([RulePropertyTypes.STRING]),
defaultType: RulePropertyTypes.STRING,
defaultAttribute: 'src',
required: true,
defaultProperty: RulePropertyFactory({
selector: 'img',
attribute: 'src',
}),
}),
'caption.title': RulePropertyDefinitionFactory({
name: 'caption.title',
displayName: 'Caption (Title)',
placeholder: 'Example: p.caption',
supportedTypes: Set([RulePropertyTypes.STRING]),
defaultType: RulePropertyTypes.STRING,
defaultAttribute: 'textContent',
}),
'caption.credit': RulePropertyDefinitionFactory({
name: 'caption.credit',
displayName: 'Caption (Credit)',
placeholder: 'Example: p.credit',
supportedTypes: Set([RulePropertyTypes.STRING]),
defaultType: RulePropertyTypes.STRING,
defaultAttribute: 'textContent',
}),
}),