Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
collin committed Mar 2, 2016
1 parent 7b9d787 commit 9e640b4
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 0.2.46

Adds a filter-for-export filter:

This formatter walks through the content tree.

At each node it checks if the node implements a method `filterForExport`

If so, the method is called.

In this way, custom elements can filter out their contents from export.

So if an editor includes an element: `<custom-element></custom-element>`,

And the custom element sets some content such that inner html looks like:

`<custom-element>Content For Display</custom-element>`

The prototype for `<custom-element>` may implement `filterForExport` thusly:

```
CustomElement.prototype.filterForExport = function () {
this.innerHTML == '';
}
```

And the exported html will look like this:

`<custom-element></custom-element>`

In this way a custom element my render demonstrative content inside the editor,
but not have that content saved to our database.

0 comments on commit 9e640b4

Please sign in to comment.