From 9aef2552588f73d9d9c008fe66ff80ad78637326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotrek=20Koszuli=C5=84ski?= Date: Thu, 29 Jan 2015 11:07:08 +0100 Subject: [PATCH] Clarified how to disable the chameleon feature (based on http://dev.ckeditor.com/ticket/12387). --- guides/skin_sdk/chameleon/README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/guides/skin_sdk/chameleon/README.md b/guides/skin_sdk/chameleon/README.md index 4dc34e96c..a672cf16e 100644 --- a/guides/skin_sdk/chameleon/README.md +++ b/guides/skin_sdk/chameleon/README.md @@ -12,4 +12,12 @@ The core editor API controls the input of the preferred color, but it is the ski For that purpose, the `CKEDITOR.skin.chameleon` function must be defined in the `skin.js` file. Please check the [Moono skin](#!/guide/skin_sdk_intro-section-2) files for full details. -Note that adopting this feature is totally optional. A skin developer may decide to have a fixed color and not give the possibility to change it. Of course we do not recommend this, but if that is the case, it is enough to not defined the chameleon function in the `skin.js` file. +Note that adopting this feature is totally optional. A skin developer may decide to have a fixed color and not give the possibility to change it. Of course we do not recommend this, but if that is the case, it is enough to set in the `skin.js` file the `CKEDITOR.skin.chameleon` property to `null`: + + CKEDITOR.skin.chameleon = null; + +Or, for compatibility with older versions of CKEditor (prior to 4.4.7), set it to a function that returns an empty string: + + CKEDITOR.skin.chameleon = function() { + return ''; + }; \ No newline at end of file