]> git.andy128k.dev Git - ipf.git/commitdiff
html editor font & fontsize select
authoravl <alex.litovchenko@gmail.com>
Fri, 24 Oct 2008 20:02:48 +0000 (23:02 +0300)
committeravl <alex.litovchenko@gmail.com>
Fri, 24 Oct 2008 20:02:48 +0000 (23:02 +0300)
ipf/form/widget/htmlinput.php

index 99d7f2b0d6de6443bd4f816a07f829ce813ec2d7..c85c51b247eded38a1bd3536d1248c42098e65ab 100644 (file)
@@ -5,12 +5,12 @@ class IPF_Form_Widget_HTMLInput extends IPF_Form_Widget
     public $mode = 'textareas';
     public $theme = 'simple';
     public $include_tinymce = true;
-    
+
     static $js_include = False;
 
     public function __construct($attrs=array())
     {
-        $defaults = array('cols' => '70', 
+        $defaults = array('cols' => '70',
                           'rows' => '20');
         $config = array('tinymce_url', 'mode', 'theme', 'include_tinymce');
         foreach ($config as $cfg) {
@@ -53,7 +53,7 @@ class IPF_Form_Widget_HTMLInput extends IPF_Form_Widget
                     $out .='<script language="javascript" type="text/javascript">
                tinyMCE.init({
                     theme_advanced_buttons1 : "bold, italic, separator, undo, redo, separator, bullist, numlist, outdent, indent, separator, justifyleft, justifycenter, justifyright, separator, link, unlink, forecolor, backcolor, sub, sup",
-                    theme_advanced_buttons2 : "code, images, fullscreen, charmap, separator, separator, pastetext, pasteword, selectall, removeformat, separator, formatselect, preview", 
+                    theme_advanced_buttons2 : "code, images, fullscreen, charmap, separator, separator, pastetext, pasteword, selectall, removeformat, separator, formatselect, fontselect, fontsizeselect, preview",
                     theme_advanced_buttons3 : "",
                     theme_advanced_toolbar_location : "top",
                     theme_advanced_toolbar_align: "left",