How to use the prosemirror-transform.StepResult function in prosemirror-transform

To help you get started, we’ve selected a few prosemirror-transform examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github chanzuckerberg / czi-prosemirror / dist / SetDocAttrStep.js View on Github external
value: function apply(doc) {
      this.prevValue = doc.attrs[this.key];
      var attrs = (0, _extends4.default)({}, doc.attrs, (0, _defineProperty3.default)({}, this.key, this.value));
      var docNew = doc.type.create(attrs, doc.content, doc.marks);
      return _prosemirrorTransform.StepResult.ok(docNew);
  }, {