changed wrapping function for HTML-bold and italic#4
changed wrapping function for HTML-bold and italic#4keshav234156 wants to merge 2 commits intojywarren:plots2from
Conversation
|
This is looking good. Can you add a brief text description to the pull request (just copying in from the issue) and also open this against |
|
Just something like |
|
And sorry to ask for such strictness on descriptions and such but we'll really want very clear, readable trail of changes across the 2 repos because of the complex downstream including we'll be doing! Thanks! |
|
I think it would be better if we can first completly and thoroughly do a review and change it accordingly. And then we can open the final commit on bevacqua/woofmark, so that author can then merge it without any much difficulty and hesitation. What do you think about this? |
|
Hmm, this makes sense! Thank you! Can you request a review from another
editor team member so we can be sure folks are synced with this workflow?
Thanks!!!
…On Tue, Jun 16, 2020, 2:50 PM keshav234156 ***@***.***> wrote:
I think it would be better if we can first completly and thoroughly do a
review and change it accordingly. And then we can open the final commit on
bevacqua/woofmark, so that author can then merge it without any much
difficulty and hesitation. What do you think about this?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAF6J77KFHQODXRDNLYQRDRW7LHNANCNFSM4N5SAXXQ>
.
|
|
@keshav234156 @jywarren how we even make PR to Meanwhile i noticed because i was trying to pull in your PR Keshav to try locally, then saw your fork is different from mine. Any way around this that i don't know? |
|
@Shulammite-Aso yes, it shows the error when we try to fork second repo |
|
Aha - ok, so 2 things:
first: then we need to click we select our own fork and the right branch: And i believe it can be a fork already used in another PR! Is this what you needed? Please reach out in the chatroom if you get stuck on this though. I could be misunderstanding. Thank you! |
|
I also expanded the description a bit to show the kind of detail we are looking for! Hope this helps! |
|
Is this something we could write a test for? I know What do you think it would take to add Jest testing along the lines of publiclab/PublicLab.Editor#541 to this repository? cc @Shreyaa-sharmaa ! |
|
From what I've observed jest tests are easy to write and integrate once you get used to dealing with the errors. We can define |
|
@keshav234156 @jywarren Been doing some deep digging into this issue, and have made some observation and have some clearification to seek too. Goal was to see if there's another way to resolve this while still being able to select and un-select commands the normal way, without having to hit My observation so far is that, exiting out of all the commands works quite smoothly in Firefox. The bugs are only present in Chrome, from my end. Has anybody else noticed this?? Also want to be very sure what I'm thinking the bug here is, is the same with what everybody is trying to tackle. I assumed publiclab/PublicLab.Editor#307 is about not being able to easily exit out Bold command. And being taken to the previous command when we hit So here in Firefox, I can smoothly exit the you can see this in the gif, including that hitting you exit out of the block by clicking outside it. sorry i was typing really slow. i actually do type slow, plus some of my keys have become hard to press. (ants invaded my house recently and ruined my keyboard and other things😂) |
|
So this here shows some of our bugs are browser specific. Also given that the HTLM mode at https://bevacqua.github.io/woofmark/ works fine even though it uses the same wrapping function. This has got to do with how different browsers render WYSIWYG spent a lot of time trying to figure out the difference in the way each of the browsers renders different patterns of text, and the only consistent difference in there markup when you convert them to HTML is that in Chrome the SPACES surrounding the texts with Bold formatting are rendered as |
|
Was trying several ways to detect when there is also tried innerHTML of Just mentioning this so that maybe we can look in these directions for a fix, if possible. |
|
Also noting that we still see the extra ** tags at publiclab.org/post in Firefox when you hit enter after using bold, but not at https://bevacqua.github.io/woofmark/ , i don't know why, but we can fix it downstream by extracting the ** tags |
|
Great Finding @Shulammite-Aso!! |
This is really a good observation. I think the -> convention is used in Slack, and is an OK baseline means. But I support finding an even more intuitive way. It doesn't have to be either-or, we can do both, i hope? The observation that it works in Firefox is also critical. What I recommend is that we write a Jest test to demonstrate the error if possible. That will help us really clearly demonstrate it. If we really really want, we could also get a firefox jes test running.
🏠 🐜 🐜 🐜 🐜 🐜 🐜 🐜 OMGGGGG ants have also invaded MY house!
In both Chrome and Firefox? Regarding this, perhaps it's a newer version of Regarding
here again, the first place i would look is the exact version/release running in the demo at Woofmark. See if it's literally the same code, because that's a big clue. If it's not the same version, we could upgrade? If it is the same version, what could we be doing that might interrupt it? Thank you for the excellent detective work, @Shulammite-Aso ! You're really good at it and I appreciate your digging so deeply into this mysterious issue. Thanks!!!! 🎉 🎉 🎉 🎉 🎉 |
Yes, we certainly should write tests demonstrating the errors. Wondering if i can make a commit to @Shreyaa-sharmaa's PR here publiclab/PublicLab.Editor#543 ? |
|
I think you should be able to specify 2 browsers.
Do you think it's possible to set up Jest tests at the `woofmark` level?
Maybe following Shreya's Editor implementation? That would make for a nice
feedback cycle where we can write tests along with the `woofmark` feature
PRs.
Thanks!
…On Thu, Jul 2, 2020 at 11:53 AM Shulammite-Aso ***@***.***> wrote:
What I recommend is that we write a Jest test to demonstrate the error if
possible. That will help us really clearly demonstrate it. If we really
really want, we could also get a firefox jes test running.
Yes, we certainly should write tests demonstrating the errors. Wondering
if i can make a commit to @Shreyaa-sharmaa
<https://github.com/shreyaa-sharmaa>'s PR here
publiclab/PublicLab.Editor#543
<publiclab/PublicLab.Editor#543> ?
About writing firefox jest test, i'm guessing it would mean a different
jest-puppeteer.config.js file for firefox, it is? or can we specify two
browsers in the config file??
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAF6J73EBPMR2QC22SZX5TRZSUPBANCNFSM4N5SAXXQ>
.
|
Oh, okay. Will do this then. Thanks!! |
|
This was some great observation. Sorry, I misunderstood what you meant earlier @jywarren . Tag me if you need any help @Shulammite-Aso. All the best! And great work everyone! 🚀 |
|
Awesome! Linking to #7 here! |
|
hi all! Was this resolved in #15, or are we still working on a few items from this? And if so, could we try to sum up what's left? Thank you!!! |
for me i think we still see that when we use newline after un-selecting a tool, e.g bold, the same tool is used again on the newline. And also if you try to un-select bold without using space first, it doesn't get unselected. But these two aren't issues in firefox, they work fine there. On chrome i'm seeing the below console warning. I'm guessing it may be a pointer? Something about the different way firefox works with selection and range in documents, which may be what woofmark was built in favor of. |
|
That's awesome. Thanks for the update, and looking forward to seeing what
you come up with!
…On Tue, Jul 21, 2020, 5:44 PM Shulammite-Aso ***@***.***> wrote:
hi all! Was this resolved in #15
<#15>, or are we still working
on a few items from this? And if so, could we try to sum up what's left?
Thank you!!!
for me i think we still see that when we use newline after un-selecting a
tool, e.g *bold*, the same tool is used again on the newline. And also if
you try to un-select bold without using space first, it doesn't get
unselected. But these two aren't issues in firefox, they work fine there.
On chrome i'm seeing the below console warning. I'm guessing it may be a
pointer?
[image: Screenshot from 2020-07-21 21-03-44]
<https://user-images.githubusercontent.com/48386390/88110026-04da3480-cb9b-11ea-9c7c-7ac18f962b3a.png>
Something about the different way firefox works with selection and range
in documents, which may be what woofmark was built in favor of.
Currently trying to understand more about Selection and Range from this
article https://javascript.info/selection-range to see if some tweaks can
be used to add better support for other browsers not firefox
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAF6J6WWPEPDF7HPGXJJDDR4YD4VANCNFSM4N5SAXXQ>
.
|
|
Just noting -- GitPod is now running and we can try woofmark out in each PR now. So if you'd like to rebase this it may help! |
|
Hi @keshav234156 @Shulammite-Aso and others, any updates here? Thank you!!! |
|
@keshav234156 i think we're still seeing what @Shulammite-Aso has pointed out:
I'd like to get a test for that, in a new PR, and then to try different solutions to solve it. But a PR with a test would be an excellent first step! |
didn't find a fix for this even after reading this:
and others. A test will just be a good place to start again perhaps. |
|
Thanks for the update, @Shulammite-Aso! Did you mean "didn't find a fix" tho? 👍 |
Oh yeah, meant "didn't find a fix" actually. Will just correct that |
|
Just noting that this code looks good, but is quite a bit more complex than the version before. I think we should try to rebase it so it gets built in GitPod, but also think we should try to demonstrate the original bug using a Jest test now that we have those. I've done something similar for a different bolding bug in publiclab/PublicLab.Editor#659 for reference. |
|
Rebased! |
|
Noting that this looks to work OK in GitPod, but I went through each of the steps described in #307 and still got the same incorrect output: I think we can translate the output into a test, now, though! |






Resolves bold/unbold issues related to improper nesting of selected text during bolding operations: publiclab/PublicLab.Editor#307