{@ $css_var = new stdClass; $css_var->colorset = $colorset; $css_var->content_font = $content_font ?: 'none'; $css_var->content_font_size = $content_font_size ?: 'none'; $css_var->content_line_height = $content_line_height ?: 'none'; $css_var->content_word_break = $content_word_break ?: 'none'; $css_var->content_paragraph_spacing = $content_paragraph_spacing ?: 'none'; $css_file_list = array_values($editor_additional_css ?: []); $css_content = ''; $filemtime1 = filemtime(RX_BASEDIR . 'common/js/plugins/ckeditor/ckeditor/ckeditor.js'); $filemtime2 = file_exists(RX_BASEDIR . 'common/js/plugins/ckeditor/ckeditor/config.js') ? filemtime(RX_BASEDIR . 'common/js/plugins/ckeditor/ckeditor/config.js') : 0; $filemtimestamp = max($filemtime1, $filemtime2, $editor_config_timestamp ?? 0); // Start with fixed min-height to prevent layout shift when editor is loaded. if ($editor_toolbar_hide): $editor_height_fixed = $editor_height + 55; elseif ($editor_toolbar === 'simple'): $editor_height_fixed = $editor_height + 71; else: $editor_height_fixed = $editor_height + 137; endif; if (str_contains($_SERVER['HTTP_USER_AGENT'], 'Firefox/')): $editor_height_fixed += 2; endif; }