AttrStepUpdate an attribute in a specific node. class AttrStep extends Step {constructor(pos: number,attr: string,value: any,);readonly attr: string;readonly pos: number;readonly value: any; apply(doc: Node): StepResult;getMap(): StepMap;invert(doc: Node): AttrStep;map(mapping: Mappable): AttrStep | null;toJSON(): any; static fromJSON(schema: Schema, json: any): AttrStep;}§Extends§Step[src]§Constructors§new AttrStep(pos: number, attr: string, value: any)[src]Construct an attribute step. §Properties§attr: string[src]The attribute to set. §pos: number[src]The position of the target node. §value: any[src]§Methods§apply(doc: Node): StepResult[src]§getMap(): StepMap[src]§invert(doc: Node): AttrStep[src]§map(mapping: Mappable): AttrStep | null[src]§toJSON(): any[src]§Static Methods§fromJSON(schema: Schema, json: any): AttrStep[src]