nextcloud-libraries / nextcloud-libraries/nextcloud-vue

`NcRichContenteditable` appends newline to content

Open
#3,669 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug feature: rich-contenteditable
Dominant language
Vue
Stars
246
Forks
99
Avg merge
1d 20h
Merged PRs (30d)
103

Description

Not sure if this is a bug or the intended (undocumented) behavior, but NcRichContenteditable always appends a newline to the content.

So if there is no content the value will be \n. Noticed this because the value of an empty NcRichContenteditable will not be a falsy value like an empty string ('') but \n which is a truthy value.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names NcRichContenteditable but provides no source file or test path. Locate that component in the nextcloud-vue source, reproduce its empty-value behavior, and inspect any existing component tests; done means the intended handling of empty content is established and covered by the relevant test or documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.