Documentation / API Reference

Format

set #

Arguments
params Object

Wraps the selected block in the specified tag.

this.app.format.set({ tag: 'h1' });

Wraps the selected block in the specified tag with attributes.

this.app.format.set({
    tag: 'h1',
    classname: 'red',
    style: { 'font-size': '24px' }
});