src/model/node.js
// Deserialize a node from its JSON representation.
Deserialize a node from its JSON representation.
Deserialize a node from its JSON representation .
static fromJSON(schema, json) {
    let type = schema.nodeType(json.type)
    let content = json.text != null ? json.text : Fragment.fromJSON(schema, json.content)
    return type.create(json.attrs, content, json.marks && json.marks.map(schema.markFromJSON))
  }
static fromJSON ( schema , json ) { let type = schema . nodeType ( json . type ) let content = json . text != null ? json . text : Fragment . fromJSON ( schema , json . content ) return type . create ( json . attrs , content , json . marks && json . marks . map ( schema . markFromJSON ) ) }
Deserialize a node from its JSON representation.
Deserialize a node from its JSON representation .