Commit fb7d0dcf authored by Alexey.Musinov's avatar Alexey.Musinov

mobile-coautoring

parent f6816dac
......@@ -5702,20 +5702,28 @@ function offline_cell_editor_open(x, y, width, height, ratio, isSelectAll, isFor
wb.cellEditor.isSelectAll = isSelectAll;
//var canEditCell = false;
if (!isFormulaInsertMode) {
//if (ws._isLockedCells(ws.getActiveCell(0, 0, false), null)) {
var isFocus = undefined, isClearCell = undefined, isHideCursor = true, isQuickInput = false;
// canEditCell = true;
var t = wb;
if (!isFormulaInsertMode) {
wb._onEditCell(undefined, undefined, true, false);
var ws = t.getWorksheet();
var activeCellRange = ws.getActiveCell(0, 0, false);
var selectionRange = ws.model.selectionRange.clone();
t.setCellEditMode(true);
ws.setCellEditMode(true);
ws.openCellEditor(t.cellEditor, /*fragments*/undefined, /*cursorPos*/undefined, isFocus, isClearCell,
/*isHideCursor*/isHideCursor, /*isQuickInput*/isQuickInput, selectionRange);
//t.input.disabled = false;
t.handlers.trigger("asc_onEditCell", Asc.c_oAscCellEditorState.editStart);
// Эвент на обновление состояния редактора
t.cellEditor._updateEditorState();
}
//}
ws.visibleRange = range;
return true;// canEditCell;
}
function offline_cell_editor_test_cells(x, y, width, height, ratio, isSelectAll, isFormulaInsertMode, c1, r1, c2, r2) {
_null_object.width = width * ratio;
......@@ -5732,30 +5740,12 @@ function offline_cell_editor_test_cells(x, y, width, height, ratio, isSelectAll,
wb.cellEditor.isSelectAll = isSelectAll;
var canEditCell = false;
var editFunction = function() {
//console.log("editFunction");
window["native"]["openCellEditor"]();
// t.setCellEditMode(true);
// ws.setCellEditMode(true);
// ws.openCellEditor(t.cellEditor, /*fragments*/undefined, /*cursorPos*/undefined, isFocus, isClearCell,
// /*isHideCursor*/isHideCursor, /*isQuickInput*/isQuickInput, selectionRange);
// t.input.disabled = false;
// t.handlers.trigger("asc_onEditCell", c_oAscCellEditorState.editStart);
// Эвент на обновление состояния редактора
// t.cellEditor._updateEditorState();
// asc_applyFunction(callback, true);
};
var editLockCallback = function(res) {
//console.log("editLockCallback: " + res);
if (!res) {
window["native"]["closeCellEditor"]();
......@@ -5780,17 +5770,7 @@ function offline_cell_editor_test_cells(x, y, width, height, ratio, isSelectAll,
editFunction();
}
//if (ws._isLockedCells(ws.getActiveCell(0, 0, false), null)) {
// canEditCell = true;
//
// if (!isFormulaInsertMode) {
// wb._onEditCell(undefined, undefined, true, false);
// }
// }
wb.visibleRange = range;
return canEditCell;
}
function offline_cell_editor_process_input_commands(commands, width, height, ratio) {
......
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