diff --git a/README.md b/README.md index e60b71ee..52d15a3e 100644 --- a/README.md +++ b/README.md @@ -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', @@ -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.