- Move and rename
config/bard-paragraph-style.php
toconfig/statamic/bard_texstyle.php
. - Update the configuration structure:
- If you were using the
button
option:- Add a key to each item in the
styles
array, this must match thebutton
option. - Add a
type
option with a value ofparagraph
to each style. - Remove the
button
option from each style.
- Add a key to each item in the
- If you weren't using the
button
option:- Add a key to each item in the
styles
array, this will be the button name. - Add a
type
option with a value ofparagraph
to each style. - Enable the buttons in each of your Bard fields.
- Add a key to each item in the
- If you were using the
For example, this Bard Paragraph Style configuration:
'styles' => [
[
'name' => 'Introduction',
'ident' => 'I',
'class' => 'intro',
'button' => 'introduction',
'cp_css' => 'font-size: 1.25em',
],
],
Should be changed to this Bard Texstyle configuration:
'styles' => [
'introduction' => [
'type' => 'paragraph',
'name' => 'Introduction',
'ident' => 'I',
'class' => 'intro',
'cp_css' => 'font-size: 1.25em',
],
],