name - (string) defines the name of the format in text formats menu.
tagname - (string) name of tag generated (as default is used 'div')
toggle - (boolean) if set as true, click on format, when format is already selected, remove the format.
classname - (string)sets class name for generated tag
classRegExp - (regular expression) for detecting similar classes as active state, a regular expression can be provided matching similar classes. These classes are switched instead of adding to class list, meaning other similar classes are removed before applying new one. If toggle is used applying format with the same classname removes format while applying similar classname replaces class with new one. Useful for example in adding text alignment classes: