Merge pull request #1341 from ONLYOFFICE/feature/bug-fixes
Feature/bug fixes
This commit is contained in:
commit
983c2a94a1
|
@ -18,6 +18,8 @@ const ErrorController = inject('storeAppOptions')(({storeAppOptions, LoadingDocu
|
||||||
});
|
});
|
||||||
|
|
||||||
const onError = (id, level, errData) => {
|
const onError = (id, level, errData) => {
|
||||||
|
const api = Common.EditorApi.get();
|
||||||
|
api.asc_enableKeyEvents(false);
|
||||||
|
|
||||||
if (id === Asc.c_oAscError.ID.LoadingScriptError) {
|
if (id === Asc.c_oAscError.ID.LoadingScriptError) {
|
||||||
f7.notification.create({
|
f7.notification.create({
|
||||||
|
@ -31,8 +33,6 @@ const ErrorController = inject('storeAppOptions')(({storeAppOptions, LoadingDocu
|
||||||
Common.Notifications.trigger('preloader:close');
|
Common.Notifications.trigger('preloader:close');
|
||||||
Common.Notifications.trigger('preloader:endAction', Asc.c_oAscAsyncActionType['BlockInteraction'], LoadingDocument,true);
|
Common.Notifications.trigger('preloader:endAction', Asc.c_oAscAsyncActionType['BlockInteraction'], LoadingDocument,true);
|
||||||
|
|
||||||
const api = Common.EditorApi.get();
|
|
||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
closable: false
|
closable: false
|
||||||
};
|
};
|
||||||
|
@ -357,7 +357,10 @@ const ErrorController = inject('storeAppOptions')(({storeAppOptions, LoadingDocu
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
text: 'OK',
|
text: 'OK',
|
||||||
onClick: config.callback
|
onClick: () => {
|
||||||
|
api.asc_enableKeyEvents(true);
|
||||||
|
config.callback;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}).open();
|
}).open();
|
||||||
|
|
|
@ -109,7 +109,7 @@ const CellEditorView = props => {
|
||||||
</div>
|
</div>
|
||||||
<div className="ce-group group--content" style={contentStyle}>
|
<div className="ce-group group--content" style={contentStyle}>
|
||||||
<div id="idx-list-target" className="target-function-list"></div>
|
<div id="idx-list-target" className="target-function-list"></div>
|
||||||
<textarea id="idx-cell-content" spellCheck="false" />
|
<textarea id="idx-cell-content" spellCheck="false" onFocus={(e) => {wsLock && e.target.blur()}}/>
|
||||||
</div>
|
</div>
|
||||||
<div className="ce-group">
|
<div className="ce-group">
|
||||||
<Link icon="caret" onClick={expandClick} />
|
<Link icon="caret" onClick={expandClick} />
|
||||||
|
|
Loading…
Reference in a new issue