Hello,
I've already searched the forum for this particular topic, but haven't found any relevant results...
I want to insert an element (custom page break) at the current cursor position (which is no problem -> therefore I'm using the insertHtml()-method)
My problem is, whether it is possible to insert the element at the current cursor position, but if it is currently inside e.g. an <ul>, the element should be inserted afterwards (at the root level)?
Do you have any ideas how to implement this?
Regards,
Vyper
I've already searched the forum for this particular topic, but haven't found any relevant results...
I want to insert an element (custom page break) at the current cursor position (which is no problem -> therefore I'm using the insertHtml()-method)
My problem is, whether it is possible to insert the element at the current cursor position, but if it is currently inside e.g. an <ul>, the element should be inserted afterwards (at the root level)?
Do you have any ideas how to implement this?
Regards,
Vyper