How to add a scrollbar to the TinyMCE editor? The <html style = "overflow-y: hidden;"> property blocks this function ((
Why was this done?
It would be better to add (for example) max-height: 800px, without blocking the scrollbar overflow-y: hidden.
Now I add quite voluminous materials, with complex formatting (a lot of graphics, headers, text selection in bold, etc.). The lack of scrolling in the editor window makes the work very difficult. Every time you add a headline, highlight words and parts of the text, add pictures, you have to scroll to the cap or basement (add pictures). This is a terrible decision.
The latest version added fullscreen mode, but this does not save the situation. How to work in this mode to add files / pictures ???
In a word.
Please tell me a way to override the <html style = "overflow-y: hidden;"> property. Preferably through the theme functions.php file (site template). To avoid problems with the update wpforo in the future.
Is anybody here? Help please solve the problem.
I know about fullscreen, it does not solve the problem. Try to add an article with complex formatting and a dozen of photos, understand what I'm talking about.
I was hoping for help. All this can be solved through the site’s functions.php file in several lines.
I will try to change the code myself. ☹️
has done the following:
/wp-content/themes/mythemes/functions.php
function wph_my_editor_style($wp) {
return $wp .= ',' . get_bloginfo('stylesheet_directory') . '/myeditor.css';
}
add_filter('mce_css', 'wph_my_editor_style');
/wp-content/themes/mythemes/myeditor.css
html{overflow-y:scroll!important}
/wp-content/themes/mythemes/style.css
#wpforo #wpforo-wrap iframe{max-height:380px}
.mce-fullscreen iframe{max-height:100%!important}
I went the easiest way. After making these changes, it became much more convenient for the editor to work with voluminous articles with many photos.