diff --git a/forms/HtmlEditorField.php b/forms/HtmlEditorField.php
index a2adff2ac..cc4e3bafc 100644
--- a/forms/HtmlEditorField.php
+++ b/forms/HtmlEditorField.php
@@ -576,7 +576,7 @@ class HtmlEditorField_Toolbar extends RequestHandler {
$id = (int)$this->getRequest()->getVar('PageID');
$anchors = array();
- if (($page = Page::get()->byID($id)) && !empty($page)) {
+ if (($page = SiteTree::get()->byID($id)) && !empty($page)) {
if (!$page->canView()) {
throw new SS_HTTPResponse_Exception(
_t(