Documentation

Inline

  1. set

set #

Arguments
params Object

Wraps the selected text in the specified inline tag.

this.app.inline.set({ tag: 'b' });

Wraps the selected text in the specified inline tag with attributes.


this.app.inline.set({
    tag: 'span',
    attr: {
        class: 'red',
        data-name: 'my-span'
    }
});