clearBlockFormatting() Since: 1.4.4
Clears the formatting of the first block level element that contains the cursor.
Syntax
instance.clearBlockFormatting();
Return
Type: sceditor
Clears the formatting of the first block level element that contains the cursor.
instance.clearBlockFormatting();
Type: sceditor
Clears the formatting of the passed element by removing all CSS classes, all inline styling and if it isn’t a p
or div
tag by converting it into a p
tag.
instance.clearBlockFormatting(element);
element
Type: HTMLElement
The DOM element to remove the formatting from.
Type: sceditor