wysiwyg-editor
wysiwyg-editor copied to clipboard
Triple click content bug.
This issue came to our notice as a result another bug which was not fixed yet.
Expected behavior.
When we Triple click content in the editor there will be a selection on the content after that when we change the font size, family or other style attributes it should only affect the selected content.
Actual behavior.
When we Triple click content in the editor there will be a selection on the content after that when we change the font size, family or other style attributes the content's beneath the content we selected also changes its style.
Steps to reproduce the problem.
Triple click content in the fiddle and change it's font size etc the paragraph beneath will also be affected, a jsFiddle for you to check.
Editor version.
froala_editor v3.1.1
OS.
MacOS Mojave 10.14.6, Windows
Browser.
Chrome Version 80.0.3987.163
Recording.
(https://drive.google.com/file/d/1SFIqUbD1cD8wzwyRibHY9Y5tPpftavUR/view)
We're facing this as well, esp. when bulleted lists are involved.
Still reproducible on v4.
Reproducible in Chrome and Safari (not reproducible in Firefox).
Additionally, on Chrome, this bug can even cause formatting to bleed onto elements outside the editor. This makes the bug very disruptive, especially since affected elements outside the editor can't be reverted.
More info in this fiddle: https://jsfiddle.net/jcvkd8oz/
Aside from triple-clicking, this can generally happen whenever a user selects a full line and the mouse cursor ends at start of the next line (without highlighting an additional character).
Having the same issue on our side with the latest version (4.1.4)