You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.
Could we use Rangy? This is a polyfill for Range (AFAIK).
Commands
Note that a future version of Scribe could altogether scrap the commands provided by the document.execCommand API. Our current approach is to use them and patch any browser inconsistencies, of which there are many due to the lack of standards. We could avoid having to write patches if we had complete ownership of the commands, and therefore they would work across all browsers.
On the other hand, if we want to embrace the future of standards, there is some work in progress to standardise the commands. Theoretically then we would be talking about two versions of Scribe – a legacy version with custom commands to support older browsers (which shouldn't be too hard leveraging the APIs Scribe provides) and a modern version which uses the upcoming standard when it arrives in the browser.
I’ve been meaning to reach out to the public-webapps mailing list, to send them the list of browser inconsistencies concerning the editing APIs, but I haven’t had time yet. I think there’s great potential for us to help move things forward in this space, so please don’t hesitate to get on board!
The text was updated successfully, but these errors were encountered:
So Selection and Range is more or less OK in IE 10 I think. The issue is about observer (do you really need that, doesn't current transactions work pretty well as well?) and for execCommand you would probably need to implement some manually.
Off the top of my head, these are the APIs we use that will likely not work in older browsers:
MutationObserver
Selection
APIRange
APIdocument.execCommand
and its suite of non-standardised commandsinput
eventSelection
andRange
APIsCould we use Rangy? This is a polyfill for
Range
(AFAIK).Commands
Note that a future version of Scribe could altogether scrap the commands provided by the
document.execCommand
API. Our current approach is to use them and patch any browser inconsistencies, of which there are many due to the lack of standards. We could avoid having to write patches if we had complete ownership of the commands, and therefore they would work across all browsers.On the other hand, if we want to embrace the future of standards, there is some work in progress to standardise the commands. Theoretically then we would be talking about two versions of Scribe – a legacy version with custom commands to support older browsers (which shouldn't be too hard leveraging the APIs Scribe provides) and a modern version which uses the upcoming standard when it arrives in the browser.
I’ve been meaning to reach out to the public-webapps mailing list, to send them the list of browser inconsistencies concerning the editing APIs, but I haven’t had time yet. I think there’s great potential for us to help move things forward in this space, so please don’t hesitate to get on board!
The text was updated successfully, but these errors were encountered: