Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix(editor): fix after delete cell content using backspace, the cell does not enter edit mode (#5682)
wpxp123456f4e3b4e2f566
diff --git a/packages/core/src/sheets/util.ts b/packages/core/src/sheets/util.tsindex b831ea8053..819546be60 100644--- a/packages/core/src/sheets/util.ts+++ b/packages/core/src/sheets/util.ts@@ -120,7 +120,15 @@ export function createDocumentModelWithStyle(content: string, textStyle: ITextStvertexAngle,wrapStrategy,cellValueType,- zeroWidthParagraphBreak: 1,+ /**+ * TODO@weird94+ * This config was previously used to fix the issue of cell image editing, now remove it first.+ * If you need to use it, please note the following issues:+ * 1. After delete cell content using backspace, the cell does not enter edit mode.+ * because the code `if (!info || info.actualWidth <= 0) return;`, code in `packages/sheets-ui/src/services/editor/cell-editor-resize.service.ts`+ * 2. copy empty cell content from excel and paste it to univer, the empty cell does not enter edit mode. The reason is the same as above.+ */+ // zeroWidthParagraphBreak: 1,},},drawings: {},