SCEditor

fixNesting

fixNesting(node) Since: 1.3.0

Fixes nesting of child nodes so no block level nodes are inside inline nodes.

For example, if the node contained the children:

<span>test<div>test</div>test</span>

they would become:

<span>test</span><div>test</div><span>test</span>

Syntax

sceditor.dom.fixNesting(node);

Parameters

nodeA
Type: Node

The node to fix the children of.