From da52ebb89b16ba34679825fd96cd30e8d74e6c61 Mon Sep 17 00:00:00 2001 From: Aaron Sikes Date: Wed, 8 Jun 2016 15:52:17 -0400 Subject: [PATCH] Document Editor({ parserPlugins: ... }) option Also fix number of arguments to parser plugins. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 090888479..dbe74e711 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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.