diff --git a/js/redactor-plugins.js b/js/redactor-plugins.js
index a7a143a05d48df8b33c6a3d015a34530f5a17ed5..7ecef2bba40bb6859f9094ef66fff9cb1513f7a6 100644
--- a/js/redactor-plugins.js
+++ b/js/redactor-plugins.js
@@ -90,12 +90,11 @@ RedactorPlugins.fontcolor = function()
 			{
 				e.preventDefault();
                 var $this = $(e.target);
-				self.fontcolor.set($this.data('rule'), $this.attr('rel'));
+				self.fontcolor.set(rule, $this.attr('rel'));
 			};
             $dropdown.on('click', 'a.redactor.color-swatch', func);
 
-            var template = $('<a class="redactor color-swatch" href="#"></a>')
-                .data('rule', rule);
+            var template = $('<a class="redactor color-swatch" href="#"></a>');
 
 			for (var z = 0; z < len; z++)
 			{