mediawiki-extensions-Discus.../modules
Bartosz Dziewoński e5e6fdd3af Stop using native Range objects, they're too annoying
Native Range objects are automatically updated when the DOM elements
they refer to are affected (e.g. detached from the DOM, or their offset
changes because of siblings being added/removed).

This seemed harmless or maybe even slightly useful, but it turns out
it conflicts with VisualEditor, which has to wrap the entire page in a
new DOM node when it opens (and unwrap it when it closes), effectively
temporarily detaching it from the DOM, which destroys all our ranges.

Just use a plain object that stores the same data as a Range. And when
we need to use Range's API, we can simply construct a temporary one.

Bug: T241861
Change-Id: Iee64aa3d667877265ef8a59293c202e6478d7fb6
2020-02-05 19:42:03 +01:00
..
lib Handle timestamps in daylight saving time 2019-10-22 16:33:21 +02:00
.eslintrc.json build: Update linters 2019-10-28 12:29:56 +00:00
CommentTarget.js Option to integrate VisualEditor instead of textarea 2020-01-07 22:15:03 +00:00
CommentTargetWidget.js Option to integrate VisualEditor instead of textarea 2020-01-07 22:15:03 +00:00
CommentTargetWidget.less Option to integrate VisualEditor instead of textarea 2020-01-07 22:15:03 +00:00
controller.js Stop using native Range objects, they're too annoying 2020-02-05 19:42:03 +01:00
dt.debug.js Re-add debug highlighter 2019-10-24 23:21:40 +02:00
dt.init.js Fix re-initialization after page is updated 2020-01-04 18:49:55 +01:00
dt.init.less Merge "Highlight comment after saving" 2019-12-03 16:49:01 +00:00
dt.ui.ReplyWidget.js ReplyWidget: Handle save errors 2020-01-21 22:21:57 +01:00
dt.ui.ReplyWidget.less ReplyWidget: Handle save errors 2020-01-21 22:21:57 +01:00
dt.ui.ReplyWidgetPlain.js Merge "ReplyWidget: Handle save errors" 2020-01-29 20:51:50 +00:00
dt.ui.ReplyWidgetVisual.js Merge "ReplyWidget: Handle save errors" 2020-01-29 20:51:50 +00:00
highlighter.css Re-add debug highlighter 2019-10-24 23:21:40 +02:00
highlighter.js Stop using native Range objects, they're too annoying 2020-02-05 19:42:03 +01:00
modifier.js Pick reply insertion point based on parser tree, not DOM tree 2020-01-23 21:13:12 +01:00
parser.js Stop using native Range objects, they're too annoying 2020-02-05 19:42:03 +01:00