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

Fix SimpleMDE quote reply #9757

Merged
merged 2 commits into from
Jan 14, 2020
Merged

Fix SimpleMDE quote reply #9757

merged 2 commits into from
Jan 14, 2020

Conversation

jolheiser
Copy link
Member

Resolves #9657

SimpleMDE cannot have its value set by normal means (that I can find, anyways) and must be set using the object. This PR saves the auto-initialized object to a scope where quote reply can reach it and set the value appropriately.

Unfortunately, I couldn't find a way to force the object to focus, so it doesn't currently scroll once it sets the value...but it's arguably better than not doing anything.

Signed-off-by: jolheiser <john.olheiser@gmail.com>
@codecov-io
Copy link

codecov-io commented Jan 14, 2020

Codecov Report

Merging #9757 into master will increase coverage by 0.01%.
The diff coverage is 75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9757      +/-   ##
==========================================
+ Coverage   42.31%   42.32%   +0.01%     
==========================================
  Files         599      600       +1     
  Lines       78324    78357      +33     
==========================================
+ Hits        33141    33168      +27     
- Misses      41127    41134       +7     
+ Partials     4056     4055       -1
Impacted Files Coverage Δ
modules/migrations/base/pullrequest.go 0% <ø> (ø) ⬆️
modules/migrations/gitea.go 7.91% <0%> (-0.05%) ⬇️
models/issue_comment.go 46.4% <0%> (ø) ⬆️
models/issue.go 55.42% <100%> (ø) ⬆️
routers/api/v1/api.go 74.45% <100%> (+0.03%) ⬆️
routers/api/v1/notify/notifications.go 100% <100%> (ø)
modules/migrations/github.go 77.46% <100%> (+0.15%) ⬆️
models/notification.go 64.13% <50%> (-0.17%) ⬇️
models/unit.go 62.16% <0%> (-5.41%) ⬇️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 85caea1...b3fba61. Read the comment docs.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jan 14, 2020
@lunny lunny added this to the 1.12.0 milestone Jan 14, 2020
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jan 14, 2020
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jan 14, 2020
@sapk sapk merged commit d89022c into go-gitea:master Jan 14, 2020
@sapk
Copy link
Member

sapk commented Jan 14, 2020

please send backport

@jolheiser jolheiser deleted the simplemde_reply branch January 14, 2020 20:48
jolheiser added a commit to jolheiser/gitea that referenced this pull request Jan 14, 2020
Signed-off-by: jolheiser <john.olheiser@gmail.com>

Co-authored-by: zeripath <art27@cantab.net>
@sapk sapk added the backport/done All backports for this PR have been created label Jan 14, 2020
sapk added a commit that referenced this pull request Jan 15, 2020
Signed-off-by: jolheiser <john.olheiser@gmail.com>

Co-authored-by: zeripath <art27@cantab.net>

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quote reply not working with SimpleMDE
7 participants