In CKEditor, how do I always enable scrollbars?

When editing inside CKEditor, I always want the scroll bars to be displayed. Is there a way to override CSS to always show scrollbars, even if they are not at the bottom?

+4
source share
1 answer

It must be achieved using CSS.

I have a tool that uses CKEditor, and I see the body iframe tag in which the content is being edited has a .cke_show_borders class.

So you can do:

 .cke_show_borders { overflow: scroll; } 

Or have more granular control over vertical / horizontal scrollbars

 .cke_show_borders { overflow-y: scroll; // vertical scrollbar overflow-x: scroll; // horizontal scrollbar } 
+4
source

Source: https://habr.com/ru/post/1394611/


All Articles