Commit 97e997f7 authored by Alexander.Trofimov's avatar Alexander.Trofimov

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
parent 25eabd4b
......@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment