Problem with scroll horizontal ckeditor

Asked

Viewed 26 times

-1

I have Ckeditor 4 in my cms and when I put a large text not to scroll, I’ve already been looking for a solution and I can’t find, however analyzing the code I find that in the html of iframe there is a style:"overflow-y:Hidden" someone knows how to take it out?

inserir a descrição da imagem aqui

  • Friend, show more your code and try not to put as print.

  • Face this should be solved with some config of the api probably. Take a look at the official documentation that should find something. But since the code is inside the iframe you won’t be able to change with CSS only ,your page

1 answer

0

There may be some file css attributing overflow=hidden for that element.

As not much information was added, I will use an attribute of Ckeditor itself to apply a style to that element.

Inside the folder where it contains your plugin file, there is a file called config.js, inside that file you will find the setting for your editor.

In the file there will be the following line: CKEDITOR.editorConfig = function( config ) {, before the function closes include this line config.contentsCss = 'html {overflow-y: scroll}';


If it’s just on that page this problem, you can call a script to solve the problem just on that page.

CKEDITOR.replace('ID_COMPONENTE', {
     contentsCss : 'html {overflow-y: scroll}'
}

Reference : contentsCss

Browser other questions tagged

You are not signed in. Login or sign up in order to post.