jacksleight / statamic-bard-texstyle

This Statamic addon allows you to add custom element styles to the Bard fieldtype and edit element attributes.
https://statamic.com/addons/jacksleight/bard-texstyle
Other
12 stars 0 forks source link

Styles type "link" doesn't work #35

Closed richarderoche closed 1 year ago

richarderoche commented 1 year ago

Bug Description

In the styles config, when using: 'type' => 'link' nothing shows up in the bard toolbar.

How to Reproduce

Uncomment the 'action' block in the default config, create a bard field with the 'action' button enabled. Go to CP and see no button.

Environment

Laravel Version: 9.52.0 PHP Version: 8.1.12 Composer Version: 2.2.3

Statamic Version: 3.4.5 PRO

jacksleight/statamic-bard-texstyle: 2.1.1

jacksleight commented 1 year ago

Ah, the link style buttons are only visible when a link is selected in the editor, as you still need to use the standard button to create the link.

I thought I'd put this in the docs but looks like I missed it. Will update.

jacksleight commented 1 year ago

I've added this to the docs now: https://jacksleight.dev/docs/bard-texstyle/getting-started#link-style-buttons

Thanks for reporting!