editor icon indicating copy to clipboard operation
editor copied to clipboard

Bug with bold on a line before

Open PeterDeKeer opened this issue 10 years ago • 1 comments

If you put this in the editor (checked in chrome and IE)

qsdf qsdf

The first line is bold (correct) the second line is italic (wrong!) => bug?

If I look at the preview all looks good. Just annoying when editing.

PeterDeKeer avatar Feb 05 '15 23:02 PeterDeKeer

Same problem. I have tried to add an espace in the function toggleBold: cm.replaceSelection(start + text + end + ' '); It seems to avoid this bug, but if the user deletes the espace manual, il will re-make the seond line on italic. Perhaps a bug from codemirror?

addyhuhu avatar Apr 17 '15 08:04 addyhuhu