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/dcCKEditor/_post_config.php

    r3897 r3915  
    256256 
    257257    CKEDITOR.on('instanceReady',function(e) { 
    258         if (typeof dotclear_htmlFontSize !== 'undefined') { 
    259             e.editor.document.$.documentElement.style.setProperty('--html-font-size',dotclear_htmlFontSize); 
     258        if (dotclear && dotclear.data && dotclear.data.htmlFontSize) { 
     259            e.editor.document.$.documentElement.style.setProperty('--html-font-size',dotclear.data.htmlFontSize); 
    260260        } 
    261261 
Note: See TracChangeset for help on using the changeset viewer.

Sites map