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

index 631cfe2..356d9e0 100644 (file)
@@ -39,11 +39,7 @@ Roo.form.HtmlEditor.ToolbarContext = function(config)
 }
 
 Roo.form.HtmlEditor.ToolbarContext.fontFamilies = [
-        'Arial',
-        'Courier New',
-        'Tahoma',
-        'Times New Roman',
-        'Verdana'
+        
     ],
     
 
@@ -192,8 +188,32 @@ Roo.form.HtmlEditor.ToolbarContext.types = {
     '*' : {
         // empty..
     }
+
 };
+Roo.form.HtmlEditor.ToolbarContext[ 'font-family']  = {
+        title : "font",
+        opts : [
+            [""],
+            [ 'Arial'],
+            [ 'Courier New'],
+            [ 'Tahoma'],
+            [ 'Times New Roman'],
+            [ 'Verdana' ]
+        ],
+        width: 80
+    }
+}
+
+Roo.each([ 'SPAN', 'DIV' , 'TD' , 'P' ], function(tg) {
+    if (typeof(Roo.form.HtmlEditor.ToolbarContext.types[tg]) == 'undefined') {
+        Roo.form.HtmlEditor.ToolbarContext.types[tg] = {};
+    }
+    
+    Roo.form.HtmlEditor.ToolbarContext.types[tg]['font-family'] = 
+}
+
 
+Roo.form.HtmlEditor.ToolbarContext.types
 
 
 Roo.apply(Roo.form.HtmlEditor.ToolbarContext.prototype,  {