Changeset 3669:41c8e8a58e1f for plugins/dcCKEditor
- Timestamp:
- 01/19/18 16:54:20 (8 years ago)
- Branch:
- default
- Location:
- plugins/dcCKEditor
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dcCKEditor/_post_config.php
r3641 r3669 251 251 } 252 252 } 253 254 if (typeof dotclear_htmlFontSize !== 'undefined') { 255 e.editor.document.$.documentElement.style.setProperty('--html-font-size',dotclear_htmlFontSize); 256 } 253 257 }); 254 258 -
plugins/dcCKEditor/inc/dc.ckeditor.behaviors.php
r3421 r3669 32 32 } 33 33 34 return34 $res = 35 35 '<script type="text/javascript">'."\n". 36 36 dcPage::jsVar('dotclear.ckeditor_context', $context). … … 58 58 dcPage::jsLoad(self::$p_url.'/js/ckeditor/adapters/jquery.js'). 59 59 dcPage::jsLoad($config_js); 60 61 if ($GLOBALS['core']->auth->user_prefs->interface->htmlfontsize) { 62 $res .= 63 '<script type="text/javascript">'."\n". 64 dcPage::jsVar('dotclear_htmlFontSize',$GLOBALS['core']->auth->user_prefs->interface->htmlfontsize)."\n". 65 "</script>\n"; 66 } 67 68 return $res; 60 69 } 61 70 -
plugins/dcCKEditor/js/ckeditor/contents.css
r3616 r3669 27 27 word-wrap: break-word; 28 28 } 29 30 /* Dotclear */ 31 :root { 32 --html-font-size: 62.5%; } 33 34 html { 35 font-size: 62.5%; 36 font-size: var(--html-font-size); } 37 38 body { 39 font-size: 1.4rem; 40 line-height: 1.5; 41 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; 42 } 43 .cke_editable 44 { 45 font-size: 1.4rem; 46 } 47 /* End Dotclear */ 29 48 30 49 blockquote
Note: See TracChangeset
for help on using the changeset viewer.