From 1ceaa59ab964e5ed77a1d440b5eba3627563a554 Mon Sep 17 00:00:00 2001 From: John Foerch Date: Fri, 14 May 2010 19:30:18 -0400 Subject: [PATCH] content_buffer_modality: check existence of document.designMode not all documents have this property --- modules/content-buffer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/content-buffer.js b/modules/content-buffer.js index e2c848e..6f7e8c1 100644 --- a/modules/content-buffer.js +++ b/modules/content-buffer.js @@ -83,7 +83,9 @@ function content_buffer_modality (buffer) { return; } var frame = buffer.focused_frame; - if (frame && frame.document.designMode == "on") { + if (frame && frame.document.designMode && + frame.document.designMode == "on") + { richedit_input_mode(buffer, true); return; } -- 2.11.4.GIT