ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 26,937
- Points
- 823
Reputation:
This javacsript works in XF2.2 (it replaces children with the word "ignore") but fails in XF2.3, as
JavaScript:
Continue reading...
XF.createElementFromString
returns null instead of the expected text node.JavaScript:
Code:
this.field = this.target || this.$target.get(0);
...
const html = "ignore";
XF.setupHtmlInsert(html, (html) =>
{
if (html.jquery) {
html = html.get(0);
}
this.field.replaceChildren(html);
});
Continue reading...