mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-23 22:53:42 +08:00
fixed edit text btn in edit mode
This commit is contained in:
@ -635,9 +635,16 @@ define([
|
||||
|
||||
editText: function() {
|
||||
var me = this;
|
||||
this.mode && !this.mode.isPDFEdit && Common.NotificationCenter.trigger('pdf:mode-apply', 'edit', undefined, function() {
|
||||
me.api && me.mode.isPDFEdit && me.api.asc_EditPage();
|
||||
});
|
||||
|
||||
if (this.mode) {
|
||||
if (this.mode.isPDFEdit) {
|
||||
me.api && me.api.asc_EditPage();
|
||||
} else {
|
||||
Common.NotificationCenter.trigger('pdf:mode-apply', 'edit', undefined, function() {
|
||||
me.api && me.mode.isPDFEdit && me.api.asc_EditPage();
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
clearSelection: function() {
|
||||
|
||||
Reference in New Issue
Block a user