SCEditor

clearBlockFormatting()

clearBlockFormatting() Since: 1.4.4

Clears the formatting of the first block level element that contains the cursor.

Syntax

instance.clearBlockFormatting();

Return

Type: sceditor

clearBlockFormatting(element) Since: 1.4.4

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.

Syntax

instance.clearBlockFormatting(element);

Parameters

element
Type: HTMLElement

The DOM element to remove the formatting from.

Return

Type: sceditor