Roo/form/HtmlEditor/ToolbarContext.js
authorAlan Knowles <alan@roojs.com>
Tue, 20 Aug 2013 04:48:07 +0000 (12:48 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 20 Aug 2013 04:48:07 +0000 (12:48 +0800)
Roo/form/HtmlEditor/ToolbarContext.js

index d8db6af..e13408a 100644 (file)
@@ -202,11 +202,12 @@ Roo.form.HtmlEditor.ToolbarContext[ 'font-family']  = {
 }
 
 Roo.each([ 'SPAN', 'DIV' , 'TD' , 'P' ], function(tg) {
-    if (typeof(Roo.form.HtmlEditor.ToolbarContext.types[tg]) == 'undefined') {
-        Roo.form.HtmlEditor.ToolbarContext.types[tg] = {};
+    var cx= Roo.form.HtmlEditor.ToolbarContext;
+    if (typeof(cx.types[tg]) == 'undefined') {
+        cx.types[tg] = {};
     }
     
-    Roo.form.HtmlEditor.ToolbarContext.types[tg]['font-family'] = Roo.form.HtmlEditor.ToolbarContext[ 'font-family'] ;
+    cx.types[tg]['font-family'] = cx[ 'font-family'] ;
 });
 
 Roo.form.HtmlEditor.ToolbarContext.types