Skip to content

Commit

Permalink
Add tinymce 4 initialization example to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Craston committed Jun 4, 2015
1 parent 6b2de89 commit fd063c1
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Additional options:
```
***

**_Tinymce initialization_** - Add the ice plugin to your tinymce plugins directory and include the following in your tinymce init:
**_Tinymce 3 initialization_** - Add the ice plugin to your tinymce plugins directory and include the following in your tinymce init:
```javascript
tinymce.init({
plugins: 'ice',
Expand All @@ -111,6 +111,22 @@ Additional options:
```
***

**_Tinymce 4 initialization_** - Add the ice plugin to your tinymce plugins directory and include the following in your tinymce init:
```javascript
tinymce.init({
plugins: 'ice',
toolbar: 'ice_togglechanges ice_toggleshowchanges iceacceptall icerejectall iceaccept icereject',
ice: {
user: { name: 'Miss T', id: 1},
preserveOnPaste: 'p,a[href],i,em,strong',
// Optional param - defaults to the css found in the plugin directory
css: 'http://example.com/custom.css'
},
...
});
```
***

## Limitations/Dependencies

- ice needs to be initialized after the DOM ready event fires.
Expand Down

0 comments on commit fd063c1

Please sign in to comment.