[PE embed] debug 'player' mode

This commit is contained in:
Maxim Kadushkin 2016-11-14 14:38:41 +03:00
parent 2c93966dd2
commit b697411317

View file

@ -212,7 +212,10 @@ var ApplicationController = new(function(){
api.ShowThumbnails(false);
api.asc_DeleteVerticalScroll();
if (!embedConfig.autostart || embedConfig.autostart == 'player') onPlayStart();
if (!embedConfig.autostart || embedConfig.autostart == 'player') {
api.SetDemonstrationModeOnly();
onPlayStart();
}
hidePreloader();
if ( !embedConfig.shareUrl )
@ -547,7 +550,8 @@ var ApplicationController = new(function(){
});
api = new Asc.asc_docs_api({
'id-view' : 'editor_sdk'
'id-view' : 'editor_sdk',
'embedded' : true
});
if (api){