mirror of
https://github.com/google/blockly.git
synced 2026-01-09 18:10:08 +01:00
Disable ws comments in IE
This commit is contained in:
@@ -388,7 +388,11 @@ Blockly.ContextMenu.workspaceCommentOption = function(ws, e) {
|
||||
}
|
||||
};
|
||||
|
||||
var wsCommentOption = {enabled: true};
|
||||
var wsCommentOption = {
|
||||
// Foreign objects don't work in IE. Don't let the user create comments
|
||||
// that they won't be able to edit.
|
||||
enabled: !goog.userAgent.IE
|
||||
};
|
||||
wsCommentOption.text = Blockly.Msg.ADD_COMMENT;
|
||||
wsCommentOption.callback = function() {
|
||||
addWsComment();
|
||||
|
||||
Reference in New Issue
Block a user