Dotclear


Ignore:
Timestamp:
01/19/18 16:54:20 (8 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Adjust editors base font size (CodeMirror?, dcLegacyEditor, dcCKEditor), should fix #2263

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/dcLegacyEditor/inc/dc.legacy.editor.behaviors.php

    r3421 r3669  
    6969          "jsToolBar.prototype.iframe_css = '". 
    7070          'body {'. 
    71           '    font: 12px "DejaVu Sans","Lucida Grande","Lucida Sans Unicode",Arial,sans-serif;'. 
    7271          '    color: #000;'. 
    7372          '    background: #f9f9f9;'. 
     
    7675          '    border: none;'. 
    7776          (l10n::getTextDirection($GLOBALS['_lang']) == 'rtl' ? '     direction: rtl;' : ''). 
    78           '}'. 
    79           'pre, code, kbd, samp {'. 
    80           '    font-family: "Courier New",Courier,monospace;'. 
    81           '    font-size: 1.1em;'. 
    8277          '}'. 
    8378          'code {'. 
     
    140135          "</script>\n"; 
    141136 
     137          if ($GLOBALS['core']->auth->user_prefs->interface->htmlfontsize) { 
     138               $res .= 
     139               '<script type="text/javascript">'."\n". 
     140               dcPage::jsVar('dotclear_htmlFontSize',$GLOBALS['core']->auth->user_prefs->interface->htmlfontsize)."\n". 
     141               "</script>\n"; 
     142          } 
     143 
    142144          return $res; 
    143145     } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map