Merge pull request #522 from ONLYOFFICE/fix/bug-46765

Fix Bug 46765
This commit is contained in:
Julia Radzhabova 2020-10-02 21:59:20 +03:00 committed by GitHub
commit 408b495ffe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -807,7 +807,7 @@ define([
},
onBtnClick: function(event) {
this._handleInput(event.currentTarget.attributes['result'].value);
this._handleInput(event.currentTarget.attributes['result'].value, true);
},
onPrimary: function(event) {
@ -815,7 +815,11 @@ define([
return false;
},
_handleInput: function(state) {
_handleInput: function(state, fromButton) {
if(!fromButton && document.activeElement && document.activeElement.localName == 'textarea' && /area_id/.test(document.activeElement.id)){
return;
}
var special = this.btnSpecial.isActive();
var settings = special ? this.getSpecialSymbol() : this.getPasteSymbol(this.$window.find('.cell-selected').attr('id'));
if (this.options.handler) {