Re: [editing-explainer] replaceText input event could span multiple Typing Nodes (#50)

I just tried this in LibreOffice. As you said, it does spell checking across styling borders. But when one corrects a word, it loses part of the styling. Is that also what you found @teleclimber? 

The thing is that word processors are rather limited in what they allow. When editing HTML, there may be other more complex parts that one simply does not want the browser to mess with -- for example data attributes on span elements that are used inside of custom editors. And then there is the magic related to determining whether something is a word or not -- that will eb quite a nightmare for editor developers, especially when one involves custom elements.

Of course, the editor gets to decide whether or not to actually handle the correction. But if it's not handled, it will look very strange to the user.

So the only way I could see this happen would be if it is an option that can be turned off (and preferably is turned off by default). It would need to be an option on the spell checker itself, to correct across element boundaries or not.

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing-explainer/issues/50#issuecomment-105323109

Received on Monday, 25 May 2015 21:38:56 UTC