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…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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