mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
add asc_findText, asc_replaceText
// ToDo add code here git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48929 954022d7-b5bf-4e40-9824-e11837661b57
This commit is contained in:
committed by
Alexander.Trofimov
parent
e213979b39
commit
52c56a4d94
15
Word/api.js
15
Word/api.js
@ -2239,11 +2239,11 @@ asc_docs_api.prototype.asc_Save = function (isAutoSave) {
|
||||
this.canSave = false;
|
||||
this.isAutoSave = !!isAutoSave;
|
||||
if (!this.isAutoSave) {
|
||||
editor.sync_StartAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.Save);
|
||||
editor.sync_StartAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.PrepareToSave);
|
||||
this.sync_StartAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.Save);
|
||||
this.sync_StartAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.PrepareToSave);
|
||||
}
|
||||
|
||||
this.CoAuthoringApi.askSaveChanges( OnSave_Callback );
|
||||
this.CoAuthoringApi.askSaveChanges(OnSave_Callback);
|
||||
}
|
||||
};
|
||||
|
||||
@ -2328,7 +2328,7 @@ function OnSave_Callback(e)
|
||||
editor.autoSaveInit(editor.autoSaveGapAsk);
|
||||
return;
|
||||
}
|
||||
// Для автосохранения не стоит пытаться еще раз запросить... (нужно рестартовать функцию автосохранения)
|
||||
|
||||
setTimeout( function(){ editor.CoAuthoringApi.askSaveChanges( OnSave_Callback ); }, 1000 );
|
||||
}
|
||||
}
|
||||
@ -5418,6 +5418,13 @@ asc_docs_api.prototype.asc_enableKeyEvents = function(value){
|
||||
}
|
||||
}
|
||||
|
||||
asc_docs_api.prototype.asc_findText = function (text, scanByRows, scanForward, isMatchCase, isWholeCell) {
|
||||
// ToDo add code here
|
||||
}
|
||||
asc_docs_api.prototype.asc_replaceText = function (findWhat, replaceWith, isReplaceAll, isMatchCase, isWholeCell) {
|
||||
// ToDo add code here
|
||||
}
|
||||
|
||||
asc_docs_api.prototype.asyncServerIdStartLoaded = function()
|
||||
{
|
||||
this._coSpellCheckInit();
|
||||
|
||||
Reference in New Issue
Block a user