changed the wrapping function for HTML-bold and italic#1
changed the wrapping function for HTML-bold and italic#1keshav234156 wants to merge 4 commits intojywarren:masterfrom
Conversation
|
Hi have made the new wrapping function for bold, so that other modules are undisturbed It should most probably fix the publiclab/PublicLab.Editor#307 and may also cause some other bugs due to changes. So need to test it with different test cases as much as possible. Another thing is that to exit out of module we need to press hotkey ie |
|
Mostly this part of code was changed: https://github.com/jywarren/woofmark/pull/1/files#diff-723d030cca36e1fdbae13e84f3ac27b9R20-R40 |
VladimirMikulic
left a comment
There was a problem hiding this comment.
Good, but needs to be documented for future devs.
|
@VladimirMikulic Will surely do that, just trying now to get it tested with as much as possible with manual test cases |
|
What is Also, can you add a GIF of how the changes now works? Thanks😆 |
|
|
@Shulammite-Aso @NitinBhasneria @Shreyaa-s Please review and try to test it with as much as possible with manual test cases |
|
@keshav234156 it is a little difficult thing to understand all your changes. As @Shulammite-Aso said can you make the gif of the changes so that we can particularly check on the changes and its effect. |
|
Oh interesting! Are you able to publish this on your Thank you! |
| function boldOrItalic (chunks, type) { | ||
| wrapping(type === 'bold' ? 'strong' : 'em', strings.placeholders[type], chunks); | ||
| function boldOrItalic(chunks, type) { | ||
| wrappingBoldItalic(type === 'bold' ? 'strong' : 'em', strings.placeholders[type], chunks); |
There was a problem hiding this comment.
Can you link us to the general wrapping() function for comparison? Thanks!
There was a problem hiding this comment.
|
@jywarren I tried deploying gh-page at https://keshav234156.github.io/woofmark-testing/examples/index.html But there is an error.Can you please help me to figure it out? |
|
@jywarren wrapping function is only called when we press the respective hotkey, for bold its |
|
@Shreyaa-s @NitinBhasneria @Shulammite-Aso any changes except documenting it. |
|
Since you're familiar with this part of the code, please have a look at this discussion and see if you can answer some of these questions publiclab/PublicLab.Editor#457. Any input would be appreciated! Thanks! |
|
This is looking great. In keeping with our idea of maintaining our own branch, would you be able to open this against |
ok,made a new PR #4 |
will take a look!! |
|
Deferring to copy of this in #4, moving over there! |

Concerns publiclab/PublicLab.Editor#307