From 06e96407d3a3e6e2edf14f25bdb3e1f64ead734c Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Tue, 4 Sep 2012 14:10:46 -0400 Subject: [PATCH] Fix firefox by removing the document.execCommand('useCSS', false, true) stuff --- lib/app/index.js | 4 +--- src/app/index.coffee | 5 +++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/app/index.js b/lib/app/index.js index 77e11b355c..73eea1bee6 100644 --- a/lib/app/index.js +++ b/lib/app/index.js @@ -331,7 +331,7 @@ ready(function(model) { exports.updateSchema = function(e, el) { return schema.updateSchema(model); }; - exports.shortcuts = function(e) { + return exports.shortcuts = function(e) { var code, command; if (!(e.metaKey || e.ctrlKey)) { return; @@ -359,6 +359,4 @@ ready(function(model) { } return false; }; - document.execCommand('useCSS', false, true); - return document.execCommand('styleWithCSS', false, false); }); diff --git a/src/app/index.coffee b/src/app/index.coffee index 0a48cd0382..655a76ed6d 100644 --- a/src/app/index.coffee +++ b/src/app/index.coffee @@ -296,5 +296,6 @@ ready (model) -> # Tell Firefox to use elements for styles instead of CSS # See: https://developer.mozilla.org/en/Rich-Text_Editing_in_Mozilla - document.execCommand 'useCSS', false, true - document.execCommand 'styleWithCSS', false, false + # FIXME, removing for now - seems to break our app in FireFox + # document.execCommand 'useCSS', false, true + # document.execCommand 'styleWithCSS', false, false