Skip to content

Commit

Permalink
Document Editor({ parserPlugins: ... }) option
Browse files Browse the repository at this point in the history
Also fix number of arguments to parser plugins.
  • Loading branch information
courajs committed Jun 8, 2016
1 parent e31c3c8 commit da52ebb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ editor.render(element);
whenever it encounters an unknown card
* `unknownAtomHandler` - [function] This will be invoked by the editor-renderer
whenever it encounters an unknown atom
* `parserPlugins` - [array] See [DOM Parsing Hooks](https://github.com/bustlelabs/mobiledoc-kit#dom-parsing-hooks)

### Editor API

Expand Down Expand Up @@ -267,7 +268,7 @@ var element = document.querySelector('#editor');
editor.render(element);
```

Parser hooks are called with two arguments:
Parser hooks are called with three arguments:

* `node` - The node of DOM being parsed. This may be a text node or an element.
* `builder` - The abstract model builder.
Expand Down

0 comments on commit da52ebb

Please sign in to comment.