question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding link via toolbar is broken in 3.2.0

See original GitHub issue

Describe the bug

I am unable to add a link in wysiwyg mode - after typing the values into the fields and pressing “OK”, I get this error in the console:

index.js:19269 Uncaught ReferenceError: getCustomAttrs is not defined
    at Object.toDOM (index.js:19269:36)
    at MarkViewDesc.create (index.js:1118:117)
    at ViewTreeUpdater.syncToMarks (index.js:1699:45)
    at eval (index.js:1268:21)
    at iterDeco (index.js:1898:13)
    at NodeViewDesc.updateChildren (index.js:1258:9)
    at NodeViewDesc.updateInner (index.js:1355:18)
    at NodeViewDesc.update (index.js:1347:14)
    at ViewTreeUpdater.updateNextNode (index.js:1775:37)
    at eval (index.js:1276:30)

And I’ve managed to track down the error to this file

To Reproduce

Steps to reproduce the behavior:

  1. Create a new editor with default options
  2. Click the toolbar button to add a link
  3. Fill out fields, press OK, observe error (link does not appear, and error appears in console)

Expected behavior

Link toolbar button works

Screenshots

I took some screenshots of index.js where the error was occurring, the issue seems to be due to compiling at some point. The defined function is getCustomAttrs$1() but is being called as getCustomAttrs() g2048 g2058

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Brave/Chromium
  • Version: Brave v1.42.88 Chromium 104.0.5112.81

Additional context

My environment: vuejs application Vuejs 2.6.11 I am not using the vue-editor wrapper Other toolbar buttons work as intended, I am having no other issues with the editor so far.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:8
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
jooy2commented, Aug 19, 2022

I also had the same problem. However, downgrading the version did not solve the problem.

3reactions
Cypherballcommented, Aug 19, 2022

@jooy2 Problem is in the dependency list of @toast-ui/react-editor (see in package-lock): "@toast-ui/editor": "^3.1.10" install this in package.json by fixing the version also…

I’m also on NextJS and this was fixed for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

cannot add a new link or modify an existing link using ... - GitHub
Tested and found that I cannot add a new link or modify an existing link using the classic block "Link options" (gear icon)...
Read more >
Issues for Admin Toolbar | Drupal.org
Title Status Priority Category ArgumentCountError: Too few arguments Closed (works as designed) Major Bug rep... Route "views_ui.reports_fields" does not exist Active Normal Bug rep... Replace README.txt...
Read more >
3.2.0 - SupportPal Documentation
Type Issue Description Improvement DEV‑1620 Added support for Facebook attachments. Improvement DEV‑2337 Added an indicator for when a draft exists. Improvement DEV‑2342 Increased the size of...
Read more >
ngx-extended-pdf-viewer - UNPKG
72, - 1.0.0-rc.7 #118 corrected the width and the position of the secondary toolbar (which was broken by fixing #115 in 1.0.0-rc.5).
Read more >
Harlowe 3.3.3 manual
Using (click-append:) to add a link in the middle of a paragraph. ... 3) ) - but since line breaks between values in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found