I want to get the value of what was typed in the editor in v6. How do I do this?
This seems like the kind of thing that’d be quicker to get from the docs (for example here) than the forum.
To be fair, I would not expect a user to have to look at the v5->v6 migration guide to discover that. The reference documentation for the Text
class doesn’t mention the Text.toString
method (which is presumably what the poster wants). It is mentioned in an example console.log
in the “Changes and Transactions” section, but that also seems somewhat obscure.
1 Like
Good point. This has been changed so that it does show up in the code, but no new release of @codemirror/state has been cut yet.
1 Like