Fix api use typos #143

Merged
pftom merged 1 commit from fix-typos into master 2021-05-28 08:02:51 +02:00
pftom commented 2021-05-28 04:55:49 +02:00 (Migrated from github.com)

When I learn Prosemirror from the guide, meet with following error:

node_modules/prosemirror-transform/dist/index.js:814
  var $pos = this.doc.resolve(pos), before = prosemirrorModel.Fragment.empty, after = prosemirrorModel.Fragment.empty;
                      ^

TypeError: Cannot read property 'resolve' of undefined

So I replace the Transaction with Transform, and it's pass, So I thought it's maybe a API typos.

Then with this PR 😄

When I learn Prosemirror from the guide, meet with following error: ```shell node_modules/prosemirror-transform/dist/index.js:814 var $pos = this.doc.resolve(pos), before = prosemirrorModel.Fragment.empty, after = prosemirrorModel.Fragment.empty; ^ TypeError: Cannot read property 'resolve' of undefined ``` So I replace the `Transaction` with `Transform`, and it's pass, So I thought it's maybe a API typos. Then with this PR 😄
marijnh commented 2021-05-28 08:03:05 +02:00 (Migrated from github.com)

That's right. Thanks for spotting this!

That's right. Thanks for spotting this!
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
prosemirror/website!143
No description provided.