Documentation

Inline

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'
    }
});