webinar/candy-plugins/colors/README.md

905 B

Colors

Send and receive colored messages.

This plugin uses an own format of messages (foobar becomes e.g. |c:1|foobar). If you'd like to use XHTML for formatting messages (this ensures third-party clients could also display it properly), please use colors-html.

Color Picker

Usage

To enable Colors you have to include its JavaScript code and stylesheet

<script type="text/javascript" src="candyshop/colors/candy.js"></script>
<link rel="stylesheet" type="text/css" href="candyshop/colors/candy.css" />

Call its init() method after Candy has been initialized:

Candy.init('/http-bind/');

// enable Colors plugin (default: 8 colors)
CandyShop.Colors.init();

Candy.Core.connect();

To enable less or more colors just call CandyShop.Colors.init(<number-of-colors>).