ProsemirrorEx.Transform.AttrStep (prosemirror_ex v0.3.0)

Copy Markdown View Source

Update an attribute in a specific node.

Ports AttrStep from prosemirror-transform/src/attr_step.ts.

Summary

Functions

Create a new AttrStep.

Types

t()

@type t() :: %ProsemirrorEx.Transform.AttrStep{
  attr: String.t(),
  pos: non_neg_integer(),
  value: any()
}

Functions

new(pos, attr, value)

Create a new AttrStep.