mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fixing regression from #4733
This commit is contained in:
parent
43e4eb129a
commit
f8cd876217
@ -578,7 +578,7 @@ class HtmlEditorField_Toolbar extends RequestHandler {
|
||||
|
||||
// Similar to the regex found in HtmlEditorField.js / getAnchors method.
|
||||
if (preg_match_all("/\s(name|id)=\"([^\"]+?)\"|\s(name|id)='([^']+?)'/im", $page->Content, $matches)) {
|
||||
$anchors = $matches[1];
|
||||
$anchors = array_filter(array_merge($matches[2], $matches[4]));
|
||||
}
|
||||
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user