Kirby-MinifyHTML icon indicating copy to clipboard operation
Kirby-MinifyHTML copied to clipboard

Plugin breaks complete panel of Kirby 2.2.1

Open 1n3JgKl9pQ6cUMrW opened this issue 10 years ago • 4 comments

The plugins is extreme powerful, but breaks the complete panel of Kirby 2.2.1.

It forces a Javascript-error, which causes the panel to close down.

My solution was to alter Minify_HTML.php and change this string '/^\\s+|\\s+$/m' to this one '/^\\s+/m' at line #123.

It looks like the trim function on that line is creating the issue.

1n3JgKl9pQ6cUMrW avatar Nov 18 '15 21:11 1n3JgKl9pQ6cUMrW

The following seems to work as a temporary measure when added to the site's config file:

if(function_exists('panel')) { c::set('MinifyHTML', false); }

ivi-admin avatar Dec 08 '15 23:12 ivi-admin

For me, with Kirby 2.3, it doesn't break the whole panel but it breaks the formatting button bars on fields that are supposed to have them, and also ends up making those fields small.

fitzage avatar Nov 11 '16 17:11 fitzage

And the option above to disable the plugin in the panel isn't working.

fitzage avatar Nov 11 '16 17:11 fitzage

I can confirm that. Disabling with c::set('MinifyHTML', false); doesn't work.

simonschaufi avatar Apr 04 '17 19:04 simonschaufi