Changeset 5961


Ignore:
Timestamp:
01/24/12 23:53:36 (4 months ago)
Author:
vain
Message:
  • lowercased the style tag
  • added developer comment about the nicEdit css classes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/viewhelper/form/elements/wysiwygnicedit.php

    r5934 r5961  
    6969        $javascript = '<script src="'.WWW_ROOT_THEMES_CORE . 'javascript/nicedit/nicedit.js'. '" type="text/javascript"></script>'; 
    7070 
    71         # watch it! the online version has some icons changes 
    72         #$javascript = '<script type="text/javascript" src="http://js.nicedit.com/nicEdit-latest.js"></script>'; 
    73  
    7471        # b) handler to attach nicedit to all textareas 
    7572        $javascript .= "<script type=\"text/javascript\">// <![CDATA[ 
    7673                        var wysiwyg; 
    7774                            bkLib.onDomLoaded(function() { 
    78                               wysiwyg = new nicEditor({     fullPanel : true, 
     75                              wysiwyg = new nicEditor({ 
     76                                    fullPanel : true, 
    7977                                    iconsPath : '" . WWW_ROOT_THEMES_CORE . "/javascript/nicedit/nicEditorIcons.gif', 
    80                                     maxHeight : 600, 
     78                                    maxHeight : 320, 
    8179                                    bbCode    : true, 
    8280                                    xhtml     : true 
     
    8785        # wysiwyg.instanceById('page_body').saveContent(); 
    8886 
    89         # c) css style 
    90         $html = '<STYLE type="text/css">'.CR.' 
     87        /** 
     88         * c) css style 
     89         * 
     90         * Developer Notice 
     91         * 
     92         * nicEdit has the following CSS classes: 
     93         * 
     94         * .nicEdit-panelContain 
     95         * .nicEdit-panel 
     96         * .nicEdit-main 
     97         * .nicEdit-button 
     98         * .nicEdit-select 
     99         */ 
     100        $html = '<style type="text/css">'.CR.' 
    91101                 .nicEdit-main { 
    92102                    background-color: #eee !important; 
     
    94104                    padding: 3px; 
    95105                    }'.CR.' 
    96                 </STYLE>'; 
     106                </style>'; 
    97107 
    98108 
Note: See TracChangeset for help on using the changeset viewer.