From 8afa2472794be6ff222652ddc91a88ec7b9ab2b2 Mon Sep 17 00:00:00 2001 From: Patrick Craston Date: Thu, 28 May 2015 09:12:20 +0100 Subject: [PATCH] Add tinymce 4 initialization example to readme --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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.