ContentEdit
ContentEdit copied to clipboard
Wrong selection used to apply bold/italic
Hello, I'm currently implementing your awesome tool in my CMS, but I encountered a weird bug when simply applying a bold or italic on text.
See it by yourself on the demo :
- Start a new paragraph
- Write "aaaaa bbbbb"
- Select "bbbbb"
- Set it bold or italic
- Bug happen
Another way to see it :
- Start a new paragraph
- Write "aaaaa bbbbb"
- Set bold to "aaaaa"
- Set italic to "bbbbb"
- Select all text
- Set it bold
- Bug happen again
In both cases, selection seems to change before applying.
Hey @magiksd could you let me know what browser and version of CT your using please. I'm not able to repeat the bug in Chrome on the demo page per your instructions.
Thank you for your quick answer. Indeed, I just tried in Chrome and the bug is not present. I encountered it in Firefox 63.0 on Ubuntu and Windows.
OK I can repeat this in firefox - it's an odd one - once you click away and re-enter the paragraph the bug is not longer present. I'll flag this as a bug and take a look ASAP - the issue will be in ContentSelect I'm sure so will fix there and bring CT up to date.
Thank you :)
Hello, I just noticed that the bug only occurs when double clicking the part to select, not when selecting carefully with the mouse, maybe this will help.
@magiksd thanks for the extra info - much appreciated :+1: