'Allo,
So I have a bit of code in a plugin that calls the range.splitBlock() function (It's actually just a slightly modded pagebreak plugin). It performs the break fine, but later if I need to recombine them, it leaves me with something like:
I've been looking for something to turn it back into one solid element, but have so far been unsuccessful. Is there any function in any of the classes that will recombine adjacent text nodes if their paths are the exact same?
Thanks in advance.
So I have a bit of code in a plugin that calls the range.splitBlock() function (It's actually just a slightly modded pagebreak plugin). It performs the break fine, but later if I need to recombine them, it leaves me with something like:
<em><u><strong>ips</strong></u></em><em><u><strong>um</strong></u></em>
I've been looking for something to turn it back into one solid element, but have so far been unsuccessful. Is there any function in any of the classes that will recombine adjacent text nodes if their paths are the exact same?
EX: <em><u><strong>ipsum</strong></u></em>
Thanks in advance.