Open shrutimehta13 opened 6 years ago
just to clarify @shrutimehta13, it can be fixed by going in and adding hitting return or some space?
@sapraaman is this easily fixable by adding a
or
after the image upon insert, or?
Will try
so i'm taking it that adding
before and after the image insert didn't work, yes? just confirming @sapraaman
@connieimdialog , the issue is that ep_copy_paste_images plugin get the callback and adds stuff for us. I was able to fix the weird cursor by adding < p / > before and after span tags it adds in ep_copy_paste_images code. One option is that we remove that plugin and copy/paste all the functionality in our plugin, remove ep_copy_paste_images and go from there. What do you think ?
i don't exactly understand how this impacts what we currently have: what are we losing/how does the work around work?
@connieimdialog in etherpad, a plugin registers callbacks, like callback when image is encountered, callback when html is being generated etc. We are already using a plugin called ep_copy_paste_images which registers callbacks to deal with images (to support drag/drop). So to fix the issues we are facing, we will have to debug and modify the code for this plugin.
ok, thanks for one more clarification @sapraaman : so the weird cursor thing is supposed to be fixed, from your comment above? is that in staging? or
Hey @connieimdialog sorry for not clarifying it. No, I tried modifying ep_copy_paste_images plugin locally to see if weird cursor thing gets fixed, and it does. However, those changes were not checked in or deployed on staging.
Do we want to go that route of maintaining a third party plugin? Should I make the change locally without checking in the code and deploy on staging for you to test ?
somehow my response from yesterday didn't get logged, drat Github. Yes, i would like to test, @sapraaman
@connieimdialog its on staging. Weird cursor issue gets fixed partially with this fix.
@sapraaman @shrutimehta13 -- i followed shruti's steps above but didn't get the weird formatting issue, see for example http://gv-stage.dev.colab.coop/projects/48
maybe this bug is fixed, or fixed enough?
-- weird cursor image fix, i think i'm ok with this --it's workaroundable. i think that would close #6 for the most part.
thoughts?
@connieimdialog please note this fix was temporary, and was done in ep_copy_paste_images plugin. If you are ok with that fix, we can checkin the plugin code in our repository with the fix.
Connie is okay with modifying the third party plug-in.
@shrutimehta13 same comment as #6 and #14 . Please test once and let us know
@sapraaman Reproducible and now on all browsers (chrome/safari/firefox)
Browser: Firefox
Observed Result: Para shows wrapped up as per the image width
It gets corrected in ether pad only after some character is added to this paragraph