JiHong88 / suneditor

Pure javascript based WYSIWYG html editor, with no dependencies.
http://suneditor.com
MIT License
1.74k stars 309 forks source link

selection of multiple paragraphs #1431

Open rozek opened 1 month ago

rozek commented 1 month ago

First of all: thank you very much for the SunEditor - it looks quite promising and must have been a lot of work implementing...

That said (and looking at the number of projects that seem to already used this editor), I'm surprised by the number of problems I have using it (I'll try to document a few of them as issues - but many are really difficult to reproduce).

As hinted by the title of this issue, one of the annoying problems is that I can't select multiple paragraphs together. E.g., if I have a heading and a normal paragraph, I can't select them both with the mouse - which is actually a no-go.

Have I missed something in the docs? Is there anything I can do to correct that behaviour?

(Nota bene: I'm using the latest version in a Chrome-based browser under macOS Ventura)

Nota bene: my current impression is that the strange selection behaviour is caused by (or correlated to) the strange HTML code the SunEditor sometimes generates - even when strictMode is set to true