Fix firefox by removing the document.execCommand('useCSS', false, true) stuff
This commit is contained in:
+1
-3
@@ -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);
|
||||
});
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user