Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7527313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:04:41+00:00 2026-05-30T04:04:41+00:00

Is it possible to change body style when entering a full page preview in

  • 0

Is it possible to change body style when entering a full page preview in ckeditor 3. Maybe to set a different body style for full page than when it is not in a full page mode.
The reason for this is using ckeditor when viewing a web page on a larger screen with maximized browser… in that case it is very wide and it is hard to read the content. So I would like to add in body style (but only for full page mode) something like:

...
margin: 5%;
padding: 5%;
border: 1px dotted #666;
...

… that will give more text processor look to the content.

TNX!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T04:04:42+00:00Added an answer on May 30, 2026 at 4:04 am

    When CKEditor is toggled to fullscreen mode it adds “cke_maximized” class to container span.

    So you may apply styles for entire container span (body+toolbar) like:

    .cke_maximized{
       margin: 5%;
       padding: 5%;
       border: 1px dotted #666;
    }
    

    or just for content body:

    .cke_maximized iframe{
       margin: 5%;
       padding: 5%;
       border: 1px dotted #666;
    }
    

    Those are just examples and you may experiment and choose css selector that is more suitable for you .

    UPDATE 1:

    Sure, you can use javascript code if it is not enough for your purposes. You can use something like this:

    var editor = CKEDITOR.instances.editor1;
    
    editor.on("afterCommandExec", function(e){
      if(e.data.name == 'maximize'){
          // maximized
          if(e.data.command.state == CKEDITOR.TRISTATE_ON){
              // add special css class to body(e.editor.document.getBody())
          } else {
          // minimized
          // remove special css from body
          }  
      }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was wondering if it was possible to change another page that's not opened
Possible Duplicate: Change the URL in the browser without loading the new page using
Is it possible to change C#'s built-in Vector3 struct to not use floating point
Is it possible to change object's value not directly? For example a = {x:
Is it possible to change the size of an UITabBarItem? I'm not talking about
<body style=CURSOR: url('arrr.ani')> hello </body> Why the above CSS property does not work on
Possible Duplicate: How to change style of iframe content cross-domain? Hi everybody. Is it
I've set a specific width to the body div in my Master Page and
I'm curious: Is it possible to change the the id of the body tag
Is it possible to change the style of the scrollbars of on iframe? i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.