fixed edit text btn in edit mode

This commit is contained in:
nikita_bartoshuk
2026-01-23 12:27:20 +03:00
parent b6b91e1167
commit ffc4ad2de5

View File

@ -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() {