tuil
ReferencePackages@mwillbanks/tuil-editorAPI

insertText

function exported by @mwillbanks/tuil-editor.

View rawEdit

function

Public function exported by @mwillbanks/tuil-editor.

export function insertText(
  session: EditorSession,
  value: string,
): EditorSnapshot;

Members

This declaration has no public members.

Parameters

MemberTypeRequiredDescriptionRelated types
sessionEditorSessionYesSupplies the session value as EditorSession.EditorSession
valuestringYesSupplies the value value as string.

Returns

EditorSnapshot — Returns a value that satisfies EditorSnapshot.

Related types: EditorSnapshot

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-editor

On this page