Fontcolor
Set the text color and/or text background color.
Code
<!DOCTYPE html>
<html>
<head>
<title>Redactor</title>
<meta charset="utf-8">
<!-- redactor css -->
<link rel="stylesheet" href="/your-folder/redactor.css" />
</head>
<body>
<!-- element -->
<textarea id="content">...</textarea>
<!-- redactor js -->
<script src="/your-folder/redactor.js"></script>
<!-- plugin js -->
<script src="/your-folder/plugins/fontcolor.js"></script>
<!-- call -->
<script>
$R('#content', { plugins: ['fontcolor'] });
// change the color set
$R('#content', {
plugins: ['fontcolor'],
fontcolors: [
'#000', '#333', '#555', '#777', '#999', '#aaa',
'#bbb', '#ccc', '#ddd', '#eee', '#f4f4f4'
]
});
</script>
</body>
</html>