nextcloud-libraries / nextcloud-libraries/nextcloud-vue
`NcRichContenteditable` appends newline to content
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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