Skip to content

Releases: automerge/automerge-prosemirror

v0.0.13

04 Oct 17:52
Compare
Choose a tag to compare

Instead of intercepting and replacing ProseMirror transactions the library now implements a plugin that listens to ProseMirror transactions and updates the automerge document. This means that this library now plays nice with other plugins such as the history plugin. Thanks to @BrianHung for implementing this.

Now that we have a plugin based architecture we are able to simplify the API, so where you would previously have instantiated an AutoMirror and used it to intercept transactions in ProseMirrors' dispatchTransaction method, you now use init from this library to create a plugin, ProseMirror document, and schema, which you pass to the editor.

// This is the important part, we initialize the plugin with some handle and the path to the text field in the document
// and we get back a schema, a ProseMirror document, and a plugin
const { schema, pmDoc, plugin } = init(handle, ["text"])

// Create your prosemirror state with the schema, plugin, and document
let editorConfig = {
  schema,
  plugins: [
    plugin,
    ...
  ],
  doc: pmDoc
}

Contributors

v0.0.13-alpha.3

07 Aug 11:04
08612db
Compare
Choose a tag to compare
v0.0.13-alpha.3 Pre-release
Pre-release
v0.0.13-alpha.3 (#15)

v0.0.13-alpha.2

31 Jul 22:55
Compare
Choose a tag to compare
v0.0.13-alpha.2 Pre-release
Pre-release
v0.0.13-alpha.2

v0.0.13-alpha.1

24 May 09:55
Compare
Choose a tag to compare
v0.0.13-alpha.1 Pre-release
Pre-release
v0.0.13-alpha.1

v0.0.12

06 May 14:55
a809c12
Compare
Choose a tag to compare
  • Fix an issue which caused the bindings to break if you were using a bundler which minified certain classnames

v0.0.11

04 May 23:11
00b4cc5
Compare
Choose a tag to compare
  • Correctly handle editing in code blocks

v0.0.10

04 May 22:16
dad5efb
Compare
Choose a tag to compare
  • Fixed some bugs with nested list handling
  • Correctly handle stored marks

v0.0.9

25 Apr 21:16
20a43a0
Compare
Choose a tag to compare
  • Remove the unnecessary path argument from AutoMirror.initialize

v0.0.8

23 Apr 15:33
8a97466
Compare
Choose a tag to compare

v0.0.7

12 Apr 14:26
e302e8a
Compare
Choose a tag to compare
  • Bump to get package contents right