mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
Stringify and parse rendered references
It turns out there are events bound to the rendering of CE nodes that prevent certain events. The quick fix is to just round trip the reference rendering to through the browser's HTML serializer and parser, but T92583 has been filed to find a more general solution. Bug: T92427 Change-Id: I725a0d2dbb24af9cbe7b1e7e0c8e0bda7fd8417c
This commit is contained in:
parent
993c7ecfe5
commit
5cbd04ac3e
|
@ -64,7 +64,8 @@ ve.ui.MWReferenceContextItem.prototype.getRendering = function () {
|
|||
|
||||
view.destroy();
|
||||
|
||||
return view.$element;
|
||||
// Strip the HTML rendering of any events that might be still bound to it
|
||||
return $( view.$element.html() );
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue