Skip to content
Snippets Groups Projects
Commit 16bf13d5 authored by Thomas Whitaker's avatar Thomas Whitaker
Browse files

Updated behavior to match canvas default

parent fbc44dce
No related branches found
No related tags found
No related merge requests found
...@@ -115,7 +115,11 @@ class Ufixit ...@@ -115,7 +115,11 @@ class Ufixit
foreach ($imgs as $img) { foreach ($imgs as $img) {
$img->setAttribute('alt', $new_content); $img->setAttribute('alt', $new_content);
$img->setAttribute('data-decorative', $make_decorative ? 'true' : 'false'); if($make_decorative) {
$img->setAttribute('data-decorative', 'true');
} else {
$img->removeAttribute('data-decorative');
}
$removed_endpoint = $img->removeAttribute('data-api-endpoint'); $removed_endpoint = $img->removeAttribute('data-api-endpoint');
$removed_endpoint = $img->removeAttribute('data-api-returntype'); $removed_endpoint = $img->removeAttribute('data-api-returntype');
$fixed_img = $this->dom->saveHTML($img); $fixed_img = $this->dom->saveHTML($img);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment