Skip to content

Commit

Permalink
Fix encoding [[~xx]] links in RTE
Browse files Browse the repository at this point in the history
  • Loading branch information
theboxer committed Sep 4, 2019
1 parent 5db1259 commit 8db9fa2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/components/fred/model/fred/src/RenderResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,13 @@ private function renderElement($html, $item, $replaceFakes = false)
$node->removeAttr('data-fred-link-page');
$node->removeAttr('data-fred-link-anchor');
}

if ($linkType === 'url') {
$href = $node->attr('href');
$node->removeAttr('href');

$node->attr('data-fred-fake-href', $href);
}
});

$blockClasses = $html->filter('[data-fred-block-class]');
Expand Down

0 comments on commit 8db9fa2

Please sign in to comment.