diff --git a/apps/common/main/lib/controller/Desktop.js b/apps/common/main/lib/controller/Desktop.js index 8fb453e1f7..f41ac0f326 100644 --- a/apps/common/main/lib/controller/Desktop.js +++ b/apps/common/main/lib/controller/Desktop.js @@ -617,7 +617,8 @@ define([ menu.hide(); } else if ( action == 'create:fromtemplate' ) { - native.execCommand('create:new', 'template:' + (!!window.SSE ? 'cell' : !!window.PE ? 'slide' : !!window.PDFE ? 'form' : 'word')); + native.execCommand('create:new', 'template:' + (!!window.SSE ? 'cell' : !!window.PE ? 'slide' : !!window.PDFE ? 'form' : + window.PDFE || config.isPDFForm ? 'form' : 'word')); menu.hide(); } }, @@ -648,7 +649,8 @@ define([ } else if ( opts == 'create:new' ) { if (config.createUrl == 'desktop://create.new') { - native.execCommand("create:new", !!window.SSE ? 'cell' : !!window.PE ? 'slide' : 'word'); + native.execCommand("create:new", !!window.SSE ? 'cell' : !!window.PE ? 'slide' : + window.PDFE || config.isPDFForm ? 'form' : 'word'); return true; } }