arckinteractive / statamic-bard-font-weight

Statamic bard font weight addon
0 stars 1 forks source link

After installation error: "Call to undefined method Statamic\Fieldtypes\Bard\Augmentor::addMark()" #2

Open QuintenJustus opened 5 months ago

QuintenJustus commented 5 months ago

Keep getting this error after installation.

Seems like it needs to be updated to bard v2

Call to undefined method Statamic\Fieldtypes\Bard\Augmentor::addMark()

at vendor/arckinteractive/statamic-bard-font-weight/src/ServiceProvider.php:25 21▕ 22▕ public function boot() 23▕ { 24▕ parent::boot(); ➜25▕ Augmentor::addMark(ArckFontWeight::class); 26▕ 27▕ $this->publishes([ 28▕ DIR . '/../public' => public_path('vendor/arckinteractive-bard-font-weight'), 29▕ ], 'arckinteractive-bard-font-weight');

Krzemo commented 5 months ago

Looks like fix for this issue (prolly v4 related) is in mater branch but no new release on packagist have been made. Install it via composer require arckinteractive/statamic-bard-font-weight:dev-master

QuintenJustus commented 5 months ago

@Krzemo this does not work.

Two things go wrong with the dev-master version:

  1. No icon visible, button is there to the left of show source code button
  2. After saving with font weights configured for the HTML it shows the error message as seen in the screenshot

image