#14442·nocodb

Bug: Copying a single Long Text cell wraps the value in double quotes when pasted outside NocoDB

Author: soeren234Created Aug 20, 2026Updated Sep 24, 2026

Steps to reproduce

  1. Create a Long Text field and put any multi-line text into a cell.
  2. Select the cell in grid view and press Ctrl/Cmd+C.
  3. Paste into any application outside NocoDB (text editor, mail client, chat).

Expected: the cell content as stored. Actual: the content wrapped in " … ", with inner quotes escaped as \".

Desired Behavior

Copying a single cell should put the raw value on the clipboard.

Cause: packages/nocodb-sdk/src/lib/columnHelper/columns/LongText.ts, parseValue returns

typescript
return `"${value.replace(/"/g, '\\"')}"`;

unconditionally. It is invisible inside NocoDB because serializeStringValue (columnHelper/utils/serializer.ts) strips the outer quotes again on paste, so it only shows up when pasting into another application.

The quoting is needed for a multi-cell selection: serializeRange (nc-gui/utils/pasteUtils.ts) builds a TSV where tabs and newlines are separators, so a multi-line value has to be quoted. For a single cell there is nothing to separate — copyValue puts textToCopy straight on the clipboard. Suggested fix: keep the quoting in the range/TSV path and copy the raw value in the single-cell path, as Airtable and Google Sheets do.

The line is unchanged in 2026.08.1 and in develop.

Project Details

NocoDB used as docker : true
NocoDB version : 2026.05.1 (self-hosted, Community Edition)
Database used in NC_DB URL : pg
Project was created by clicking : New Project
Database on which spreadsheet is created : pg
OS on which NocoDB is running : Debian in Docker, arm64
Node.js version if running as node : v24.14.0 (inside container)
Database version : PostgreSQL 16