1commit 54728e1dbad534190b571211cf932102fabdbf3c 2Author: Scott Moser <smoser@brickies.net> 3Date: Thu Mar 7 19:33:05 2013 -0500 4 5 changes to support dokucrypt plugin 6 7 * Resolving problems with empty pages and toolbar header buttons 8 lib/scripts/edit.js 9 10 The header buttons in the editor toolbar are not working. 11 Reported by Termiter. 12 13diff --git a/lib/scripts/edit.js b/lib/scripts/edit.js 14index 5a5e829..c4892fa 100644 15--- a/lib/scripts/edit.js 16+++ b/lib/scripts/edit.js 17@@ -146,7 +146,7 @@ function currentHeadlineLevel(textboxId){ 18 var field = jQuery('#' + textboxId)[0], 19 s = false, 20 opts = [field.value.substr(0,getSelection(field).start)]; 21- if (field.form.prefix) { 22+ if (field.form && field.form.prefix) { // DOKUCRYPT 23 // we need to look in prefix context 24 opts.push(field.form.prefix.value); 25 } 26