Skip to content

Cannot copy table cell #1933

Closed
Closed

Description

@fxha

Description

An exception is thown when you select a table with Ctrl+A and try to copy it afterwards.

  • Can you reproduce the issue?

Steps to reproduce

  1. Create a table
  2. Select a cell (with text) and press Ctrl+A to select the whole cell/text
  3. Press Ctrl+C

Expected behavior:

The cell context should be copied.

Actual behavior:

An exception is thrown:

renderer.js:21 Uncaught TypeError: Cannot read property 'replace' of undefined
    at escapeText (//src/muya/lib/utils/exportMarkdown.js:290)
    at map (//src/muya/lib/utils/exportMarkdown.js:293)
    at Array.map (<anonymous>)
    at Er.normalizeTable (//src/muya/lib/utils/exportMarkdown.js:293)
    at Er.translateBlocks2Markdown (//src/muya/lib/utils/exportMarkdown.js:71)
    at Er.generate (//src/muya/lib/utils/exportMarkdown.js:32)
    at $r.docCopyHandler (//src/muya/lib/contentState/copyCutCtrl.js:248)
    at HTMLBodyElement.i (//src/muya/lib/eventHandler/clipboard.js:16)

Versions

  • Mark Text: v0.16.0-rc3
  • Operating system: all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions