Dotclear


Ignore:
Timestamp:
11/05/18 16:40:40 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Switching from inline JS variables to JSON script. A step ahead…

Location:
plugins/dcLegacyEditor
Files:
2 edited

Legend:

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

    r3874 r3915  
    139139            "</script>\n"; 
    140140 
    141         if ($GLOBALS['core']->auth->user_prefs->interface->htmlfontsize) { 
    142             $res .= 
    143             '<script type="text/javascript">' . "\n" . 
    144             dcPage::jsVar('dotclear_htmlFontSize', $GLOBALS['core']->auth->user_prefs->interface->htmlfontsize) . "\n" . 
    145                 "</script>\n"; 
    146         } 
    147  
    148141        return $res; 
    149142    } 
  • plugins/dcLegacyEditor/js/jsToolBar/jsToolBar.wysiwyg.js

    r3897 r3915  
    1 /*global jsToolBar, dotclear_htmlFontSize, chainHandler */ 
     1/*global jsToolBar, dotclear, chainHandler */ 
    22'use strict'; 
    33 
     
    184184    } 
    185185 
    186     if (typeof dotclear_htmlFontSize !== 'undefined') { 
    187       doc.documentElement.style.setProperty('--html-font-size', dotclear_htmlFontSize); 
     186    if (dotclear && dotclear.data && dotclear.data.htmlFontSize) { 
     187      doc.documentElement.style.setProperty('--html-font-size', dotclear.data.htmlFontSize); 
    188188    } 
    189189 
Note: See TracChangeset for help on using the changeset viewer.

Sites map