diff --git a/forms/HtmlEditorField.php b/forms/HtmlEditorField.php
index 8cfabd8d4..271da6152 100644
--- a/forms/HtmlEditorField.php
+++ b/forms/HtmlEditorField.php
@@ -313,8 +313,9 @@ class HtmlEditorField_Toolbar extends RequestHandler {
'external' => _t('HtmlEditorField.LINKEXTERNAL', 'Another website'),
'anchor' => _t('HtmlEditorField.LINKANCHOR', 'Anchor on this page'),
'email' => _t('HtmlEditorField.LINKEMAIL', 'Email address'),
- 'file' => _t('HtmlEditorField.LINKFILE', 'Download a file'),
- )
+ 'file' => _t('HtmlEditorField.LINKFILE', 'Download a file'),
+ ),
+ 'internal'
),
new LiteralField('Step2',
'
' . sprintf($numericLabelTmpl, '2', _t('HtmlEditorField.DETAILS', 'Details')) . '
'
diff --git a/javascript/HtmlEditorField.js b/javascript/HtmlEditorField.js
index 944924473..d6686ebf6 100644
--- a/javascript/HtmlEditorField.js
+++ b/javascript/HtmlEditorField.js
@@ -295,6 +295,7 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
url: url,
success: function(html) {
dialog.html(html);
+ dialog.getForm().redraw();
}
});
}
@@ -330,7 +331,7 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
},
ondialogopen: function(e) {
this.getForm().updateFromEditor();
- this.redraw();
+ this.getForm().redraw();
},
ondialogclose: function(e) {
this.getForm().resetFields();