Changeset 3669:41c8e8a58e1f for plugins
- Timestamp:
- 01/19/18 16:54:20 (8 years ago)
- Branch:
- default
- Location:
- plugins
- Files:
-
- 6 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 -
plugins/dcLegacyEditor/css/jsToolBar/jsToolBar.css
r3602 r3669 168 168 /* WYSIWYG Document */ 169 169 body.wysiwygDoc { 170 font: 12px "DejaVu Sans","Lucida Grande","Lucida Sans Unicode",Arial,sans-serif;171 170 color : #000; 172 171 background: #f9f9f9; … … 174 173 padding : 2px; 175 174 border: none; 176 }177 .wysiwygDoc pre, .wysiwygDoc code, .wysiwygDoc kbd, .wysiwygDoc samp {178 font-family:"Courier New",Courier,monospace;179 font-size : 1.1em;180 175 } 181 176 .wysiwygDoc code { -
plugins/dcLegacyEditor/inc/dc.legacy.editor.behaviors.php
r3421 r3669 69 69 "jsToolBar.prototype.iframe_css = '". 70 70 'body {'. 71 ' font: 12px "DejaVu Sans","Lucida Grande","Lucida Sans Unicode",Arial,sans-serif;'.72 71 ' color: #000;'. 73 72 ' background: #f9f9f9;'. … … 76 75 ' border: none;'. 77 76 (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;'.82 77 '}'. 83 78 'code {'. … … 140 135 "</script>\n"; 141 136 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 142 144 return $res; 143 145 } -
plugins/dcLegacyEditor/js/jsToolBar/jsToolBar.wysiwyg.js
r3258 r3669 165 165 '<html>\n'+ 166 166 '<head>\n'+ 167 '<link rel="stylesheet" href="style/default.css" type="text/css" media="screen" />' 167 168 '<style type="text/css">'+This.iframe_css+'</style>\n'+ 168 169 (This.base_url != '' ? '<base href="'+This.base_url+'" />' : '')+ … … 177 178 doc.designMode = 'on'; 178 179 // warning : doc is now inaccessible for IE6 sp1 180 } 181 182 if (typeof dotclear_htmlFontSize !== 'undefined') { 183 doc.documentElement.style.setProperty('--html-font-size',dotclear_htmlFontSize); 179 184 } 180 185
Note: See TracChangeset
for help on using the changeset viewer.