diff --git a/javascript/DocumentHtmlEditorFieldToolbar.js b/javascript/DocumentHtmlEditorFieldToolbar.js
index 7352489..3981f79 100644
--- a/javascript/DocumentHtmlEditorFieldToolbar.js
+++ b/javascript/DocumentHtmlEditorFieldToolbar.js
@@ -10,7 +10,7 @@
var form = $('form.htmleditorfield-linkform');
var show = false;
- if (this.attr('value') === 'document') {
+ if (this.attr('value') === 'documentopt') {
if (this.is(':checked')) {
show = true;
}