BitPoet / HannaCodeDialogTiny

ProcessWire module that provides a number of enhancements for working with Hanna Code tags in TinyMCE.
Mozilla Public License 2.0
1 stars 0 forks source link

Needs older version of TextformatterHannaCode? #1

Closed mattgs closed 9 months ago

mattgs commented 1 year ago

With the latest version of the HannaCode module (0.3.2 Stable at this moment in time) it's throwing the following error:

Method TextformatterHannaCode::extractDefaultCodeAttrs does not exist or is not callable in this context

Method extractDefaultCodeAttrs has been removed from the HannaCode module some time ago.

mattgs commented 1 year ago

This seems to be a quick fix:

HannaCodeDialogTiny.module Line 140: $h = $hanna->hannaCodes()->get($name); Line 141: foreach($h->attrs as $attr_name => $attr_value) {

BitPoet commented 1 year ago

Thanks for reporting this. I wasn't aware that I was working with an old release of HannaCode. I added a version switch so it works with the old and new TextformatterHannaCode API.