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 Oct 25, 2022. It is now read-only.
in a browser tab with some HTML that contains a link enter DevTools, in the Elements pane select the link and remove all the content in it, so its childNodes property is an empty iterator
select the link and a few surrounding visible characters from the view
copy that
paste it inside a HtmlSlateWidget (e.g. in a News Item)
save the page with that HtmlSlateWidget
the browser shows the view of the News Item
open React DevTools and in it start using the tool called Select an element in the page to inspect it
with it click the div with the empty paragraph with the empty link
in the React DevTools in the right side pane which shows info about the currently selected element right click dangerouslySetInnerHtml and select Store as global variable
also see that the view displays the link as going until the end of the paragraph since it does not understand XML/React-like autoclosing tag <a />
in the DevTools console a new global variable is logged and in it you can see that it contains the HTML string with an autoclosing tag
From what I see Text blocks are not affected by this issue.
The text was updated successfully, but these errors were encountered:
Steps
childNodes
property is an empty iteratorHtmlSlateWidget
(e.g. in a News Item)HtmlSlateWidget
Select an element in the page to inspect it
div
with the empty paragraph with the empty linkdangerouslySetInnerHtml
and selectStore as global variable
<a />
From what I see Text blocks are not affected by this issue.
The text was updated successfully, but these errors were encountered: