On this page
Configure module for Bootstrap
This module comes with 3 configurable fields that can be used in the editor link dialog by a content editor to create buttons out of normal hyperlinks. The input values of these fields come from 3 config fields that can be configured and appear when you enable the Editor Button Link filter. This filter can be enabled in every text format you create under Text formats and editors in the Drupal admin section. The following 3 fields are available:
- Button Type (This field is required, it triggers the other 2 fields when a key with a value is selected.)
- Button Size
- Button Style
Below an example of the possible values the fields can contain. Only one value per line, in the format key|label.
Bootstrap 4.x
Bootstrap 4 comes with a great amount of buttons styles. You can make them available for content editors by using the example below:
Button Type
|None (Normal Link)
btn|Button
Button Size
(leaving this field blanc, hides it a the link dialog)
|Normal size
btn-sm|Small Button
btn-lg|Large Button
Button Style
(leaving this field blanc, hides it a the link dialog)
|None
btn-primary|Primary
btn-secondary|Secondary
btn-success|Success
btn-danger|Danger
btn-warning|Warning
btn-info|Info
btn-light|Light
btn-dark|Dark
btn-outline-primary|Primary-Outline
btn-outline-secondary|Secondary-Outline
btn-outline-success|Success-Outline
btn-outline-danger|Danger-Outline
btn-outline-warning|Warning-Outline
btn-outline-info|Info-Outline
btn-outline-light|Light-Outline
btn-outline-dark|Dark-Outline
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion