plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

Wrong text input gets selected while using toolbar on comments

Open urvashigupta7 opened this issue 6 years ago • 5 comments

While trying to add new comment when any of the option is choosen from toolbar the changes are displayed in different text input.

ezgif com-video-to-gif (6)

where to look

https://publiclab.org/questions/Cogreg/09-20-2020/how-do-i-test-home-made-fertilizer

urvashigupta7 avatar Oct 07 '20 14:10 urvashigupta7

Correct! Always the first comment editor is changed. This is because if do not have any id associated to each comment editor.

Sagarpreet avatar Oct 07 '20 15:10 Sagarpreet

Hi @Sagarpreet . Outreachy applicant here. Can I take a look at this?

nibble0101 avatar Oct 09 '20 10:10 nibble0101

Hey @nibble0101 , yes we would like your help 👍 So this is a little big issue, you may want to break this down 😄 Also let’s wait for @jywarren approval before we start because we might want to spin off a separate library for comment editor and solving here may not be useful now.

sagarpreet-chadha avatar Oct 09 '20 17:10 sagarpreet-chadha

Hi @sagarpreet-chadha - just noting that the "spin out new library" would happen /after/ most of the fixes and refinements in the Comment project - it'll be a stretch goal. Thanks!

This is a great catch @urvashigupta7 and I think we'll have to do a couple things. We should identify all the various types of comment boxes -- i made a list below -- and ensure that a proper unique CSS id is assigned for all of them, in a standard way, and protect this with tests --

* comment
* reply to comment
* comment just posted (form inserted via AJAX)
* reply to comment just posted
* editing existing comments
* editing comments just posted
* editing comment replies
* editing comment replies just posted

This is a major part of the Comment project for Outreachy!

jywarren avatar Oct 13 '20 13:10 jywarren

Starting to work on this one! Just made a PR to add unique IDs to the toolbar buttons. After that, I think it will be a very similar fix to the image upload cross-wiring issues (linked above in this issue)

noi5e avatar Jan 12 '21 05:01 noi5e