Skip to content

Commit

Permalink
Tweak README
Browse files Browse the repository at this point in the history
  • Loading branch information
mixonic committed Jul 29, 2015
1 parent c010686 commit d6f9ca8
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@ The `ContentKit.Editor` class is invoked with an element to render into and
optionally a Mobiledoc to load. For example:

```js
var simpleMobiledoc = [[], [
[1, "p", [
[[], 0, "Welcome to Content-Kit"]
]]
];
var simpleMobiledoc = {
version: "0.1",
sections: [[], [
[1, "p", [
[[], 0, "Welcome to Content-Kit"]
]]
]
};
var element = $('#editor')[0];
var options = { mobiledoc: simpleMobiledoc };
var editor = new ContentKit.Editor(element, options);
Expand Down

0 comments on commit d6f9ca8

Please sign in to comment.