Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copy code block button does not work with line numbers #12297

Closed
ShlomoCode opened this issue Jan 22, 2024 · 0 comments
Closed

copy code block button does not work with line numbers #12297

ShlomoCode opened this issue Jan 22, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@ShlomoCode
Copy link

ShlomoCode commented Jan 22, 2024

NodeBB version

v3.6.3

NodeBB git hash

No response

NodeJS version

No response

Installed NodeBB plugins

No response

Database type

No response

Database version

No response

Exact steps to cause this issue

  • Start from a clean installation of nodebb from master
  • Go to /admin/plugins/markdown#section3
  • Enable "line numbers" for all languages and save
  • Create a post with the content (it seems that in code blocks with more than one line this is fine):
    ```
    const
    ```
  • Try to click the copy button, it will appear that the code has been copied, but nothing has actually been copied
CleanShot.2024-01-22.at.18.37.31.mp4

What you expected

The code will be copied to the clipboard

What happened instead

No response

Anything else?

No response

@ShlomoCode ShlomoCode added the bug label Jan 22, 2024
@barisusakli barisusakli self-assigned this Jan 22, 2024
@barisusakli barisusakli modified the milestones: 3.7.0, 3.6.4 Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants