Skip to content

Commit

Permalink
Merge pull request slab#1 from benbro/clipboad-header
Browse files Browse the repository at this point in the history
Fix section header
  • Loading branch information
benbro committed Sep 8, 2016
2 parents fe09857 + 8f2b871 commit 4c0f6d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/modules/clipboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ The Clipboard interprets pasted HTML by traversing the corresponding DOM tree in
Familiarity and comfort with [Deltas](https://github.com/ottypes/rich-text) is necessary in using matchers. See [Working with Deltas](/guides/working-with-deltas/) for a starter guide.


### addMatcher
## Methods

Adds a custom matcher to the Clipboard. Matchers using `nodeType` are called first, in the order they were added, followed by matchers using a CSS `selector`, also in the order they were added. [`nodeType`](https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType) may be `Node.ELEMENT_NODE` or `Node.TEXT_NODE`.
**addMatcher**

**Methods**
Adds a custom matcher to the Clipboard. Matchers using `nodeType` are called first, in the order they were added, followed by matchers using a CSS `selector`, also in the order they were added. [`nodeType`](https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType) may be `Node.ELEMENT_NODE` or `Node.TEXT_NODE`.

```javascript
addMatcher(String: selector, (Node: node, Delta: delta) => Delta)
Expand Down

0 comments on commit 4c0f6d1

Please sign in to comment.