Skip to content

Commit

Permalink
Fix issue processwire/processwire-issues#627 InputfieldCKEditor when …
Browse files Browse the repository at this point in the history
…extraAllowedContent empty
  • Loading branch information
ryancramerdesign committed Jul 16, 2018
1 parent 2fb5ebb commit 411fedf
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -308,6 +308,10 @@ class InputfieldCKEditor extends InputfieldTextarea {
'pwUploadField' => $imagesField,
'pwAssetPageID' => $assetPage->id,
);

if(empty($settings['extraAllowedContent'])) {
unset($settings['extraAllowedContent']);
}

if($assetPage !== $this->hasPage && $assetPage->id) {
// external asset page (FUTURE USE)
Expand Down

0 comments on commit 411fedf

Please sign in to comment.