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

Class not applied #54

Closed FrankPeters closed 1 year ago

FrankPeters commented 1 year ago

Bug Description

I've installed the plugin and added a simple button style to my Bard sets. It's stored correctly (I think) but I do not see the class getting applied when the bard renders. Am I missing anything?

How to Reproduce

  1. Install plugin
  2. Enable simple link style
  3. Add a link style button to a link in the content.
  4. Refresh content

Extra Detail

Config:

         'action' => [
             'type' => 'link',
             'name' => 'Button',
             'ident' => 'B',
             'icon' => 'square-solid',
             'class' => 'btn btn-lg btn-info text-white px-6 py-2',
             'cp_css' => 'background: #737f8d; color: white; padding: 0.2em 0.5em; border-radius: 4px',
             'cp_badge' => false,
         ],

Saved markdown:

    type: paragraph
    content:
      -
        text: 'Button link'
        type: text
        marks:
          -
            type: link
            attrs:
              rel: null
              href: 'https://google.com'
              class: 'btn btn-lg btn-info text-white px-6 py-2'
              title: null
              target: null

Environment

Environment Application Name: Testapp Laravel Version: 9.52.15 PHP Version: 8.0.30 Composer Version: 2.6.3 Environment: local Debug Mode: ENABLED URL: localhost Maintenance Mode: OFF

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

Drivers Broadcasting: log Cache: statamic Database: mysql Logs: daily Mail: smtp Queue: sync Session: file

Statamic Addons: 5 Antlers: runtime Stache Watcher: Enabled Static Caching: Disabled Version: 4.22.0 PRO

Statamic Addons aryehraber/statamic-captcha: 1.10.0 jacksleight/statamic-bard-texstyle: 3.1.3 private/repository: dev-develop statamic/seo-pro: 5.2.2 xndbogdan/statamic-bard-text-color: 4.0.0

FrankPeters commented 1 year ago

I am sorry, I realize my mistake now. I was working in two repositories and the one with the buttons did not have the config file set up. After I did that, it started working.