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

Empty Style/Attributes Dropdown #48

Closed janoschdigg closed 1 year ago

janoschdigg commented 1 year ago

Bug Description

Attributes Dropdown is empty

image

Styles Dropdown is empty

image

How to Reproduce

  1. Install the plugin via Composer
  2. Enable Pro Mode
  3. In bard_textstyle.php add all attributes and styles from comments

Environment

Environment
Application Name: Statamic
Laravel Version: 10.10.1
PHP Version: 8.2.5
Composer Version: 2.5.5
Environment: local
Debug Mode: ENABLED
URL: testplugin.test
Maintenance Mode: OFF

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: statamic
Database: mysql
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Statamic
Addons: 1
Antlers: runtime
Stache Watcher: Enabled
Static Caching: Disabled
Version: 4.1.1 Solo

Statamic Addons
jacksleight/statamic-bard-texstyle: 3.0.2
jacksleight commented 1 year ago

Have you added options to the Styles dropdown? See https://jacksleight.dev/docs/bard-texstyle/styles#style-selection-menu-pro

When you're opening the attributes panel do you have an element you've added attributes for selected in the editor?

janoschdigg commented 1 year ago

You were right, i didnt have one selected. But now i selected my own that i added and a Heading like this:

image

But the dropdown is still empty

jacksleight commented 1 year ago

And are those options also enabled in the buttons bar? They have to be in there as well so that Statamic enables the relevant extensions. Can you share the field config?

janoschdigg commented 1 year ago

im Sorry you were right sorry for bothering

jacksleight commented 1 year ago

No problem, glad it's working now. 🙂