Skip to content

Commit

Permalink
[Embed] Set view mode for embedded
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova committed Sep 13, 2024
1 parent 7a1601d commit d864a67
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/documenteditor/embed/js/ApplicationController.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ DE.ApplicationController = new(function(){
ttOffset[1] = 40;
}

config.mode && (config.mode = 'view'); // always view for embedded
config.canCloseEditor = false;
var _canback = false;
if (typeof config.customization === 'object') {
Expand Down
1 change: 1 addition & 0 deletions apps/presentationeditor/embed/js/ApplicationController.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ PE.ApplicationController = new(function(){
$('#box-preview').addClass('top');
}

config.mode && (config.mode = 'view'); // always view for embedded
config.canCloseEditor = false;
var _canback = false;
if (typeof config.customization === 'object') {
Expand Down
1 change: 1 addition & 0 deletions apps/spreadsheeteditor/embed/js/ApplicationController.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ SSE.ApplicationController = new(function(){
$('.viewer').addClass('top');
}

config.mode && (config.mode = 'view'); // always view for embedded
config.canCloseEditor = false;
var _canback = false;
if (typeof config.customization === 'object') {
Expand Down

0 comments on commit d864a67

Please sign in to comment.