-
Notifications
You must be signed in to change notification settings - Fork 130
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
Bold formatting bugs - need jquery.autotype to write a test #307
Comments
PUBLISHED to GCI dashboard |
Hmm. Was this fixed recently, i thought perhaps? |
Maybe linked to this? #220 |
@jywarren I was just thinking of rough idea of how we can solve this . The problem is occurring because of https://github.com/bevacqua/woofmark/blob/master/src/html/wrapping.js#L19-L21 .Only the HTML mode is using the wrapping function. The Markdown mode is using other function and it works perfectly in Markdown mode(Please check it so that I am confirmed that it's the correct behavior). We can directly make changes to https://github.com/bevacqua/woofmark , but author doesn't seem to be active(as the previous commit was 1 year ago). What we can do is that,to write our own bold and wrapping function similar to https://github.com/publiclab/PublicLab.Editor/blob/master/src/modules/PublicLab.RichTextModule.HorizontalRule.js .Src code would be similar to https://github.com/bevacqua/woofmark but with the desired modification which solves this bug. |
@jywarren We could then also be able to implement the feature of the darkening of the icon when bold is on like we have in google docs. The basic idea is to introduce woofmark in our src code rather than having a node module So tat we can format it according to our needs. |
Italic text also faces similar issue |
Looks great, good analysis and great noting it affects italics too! Thanks! |
I agree with @keshav234156 , we should write our own wrapping function. I've been tracking down a bug #457 and the implementation of |
From what I've worked with so far, the current implementation includes:
|
I believe this is done in #543 -- thank you! |
Please note we are preparing to participate in Google Code-in, and have reserved this issue for GCI participants - but we'd love to have your help with another one! Please check out https://code.publiclab.org to see more.
Problem statement by the user Jeffrey: I was typing into an editor, and did the following sequence:
ctrl-b
(or used the bold button)Hello
, replacing thestrong text
example text that appeared when i pressed boldctrl-b
again to /unbold/, sawstrong text
again but not bolded this time, world
replacing the 2nd (not bold) instance ofstrong text
Hello
and pressed enter to add a line breakctrl-b
to unbold and gotstrong text
but bold this timeworld
and pressedctrl-b
again, got unboldedstrong text
.I did this a couple times, this was the output in the most recent:
I think really we need to tackle this in smaller parts. I suggest that we install the
autotype
plugin so that we can simulate typing here: https://github.com/mmonteleone/jquery.autotypeThen we can try to reproduce a subset of the above sequence in a test,
The text was updated successfully, but these errors were encountered: