disable native context menu (headless mode)
This commit is contained in:
parent
2d0c548fee
commit
c5efefddf8
1 changed files with 3 additions and 0 deletions
|
|
@ -12,6 +12,9 @@ var data = require('./data-workers'),
|
|||
|
||||
var init = function(){
|
||||
|
||||
document.addEventListener("contextmenu", function(e){
|
||||
e.preventDefault()
|
||||
}, false);
|
||||
|
||||
$('body').off('.editor').on('mousedown.editor touchstart.editor',function(e){
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue