basecamp / basecamp/trix

Trix adds newline after list

Open
#1,085 3 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
20k
Forks
1.1k
Avg merge
3d 12h
Merged PRs (30d)
13

Description

If there is a list (ordered or unordered) at the end of the data, trix adds another `


` to the end. So if you submit the data and reopen the editor three times you have 3 extra lines in the data.

##### Steps to Reproduce

1. Click in the editor and insert a list with text
2. Submit the data and reopen it
3. Now you have an extra newline at the end
4. Repeat 2. for more extra lines

##### Details

* Trix version: 2.0.5
* Browser name and version: Chrome latest 3 versions
* Operating system: Windows, Linux

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue in Trix 2.0.5 using Chrome and the listed ordered or unordered list steps. Trace what happens when the submitted data is reopened, and verify that repeated reopen cycles no longer append an extra


or newline.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.