Contribute to this guideReport an issue

Fixed User Interface Documentation

Fixed user interface is the default UI for classic editor. It is characterized by the following features:

  • The editor toolbar is always visible.
  • The toolbar and bottom bar location is static and does not change.
  • The editing area takes a predefined amount of space, regardless of the size of the content inside.

Classic Editor with Fixed UI

Inline Editor with Fixed UI

By default, inline editor comes with floating UI. The following sample presents an inline editor instance with fixed UI instead.

Saturn V carrying Apollo 11 Apollo 11

Apollo 11 was the spaceflight that landed the first humans, Americans Neil Armstrong and Buzz Aldrin, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.

Armstrong spent about three and a half two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5 kg) of lunar material for return to Earth. A third member of the mission, Michael Collins, piloted the command spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.

Note: Fixed UI for inline editor is provided by a dedicated, optional plugin called Div Editing Area.
Please be aware that using this plugin has a few of drawbacks:

  • Under the hood, the element replaced by CKEditor 4 is hidden automatically and a <div>-based editor is created next to it. This might affect the styles of content inside the editor, e.g. because of the lack of original element ID attribute used by CSS selectors.
  • The <div>-based editor is rendered using multiple nested <div> elements. This might affect editor content styles, too.
  • Last but not least, the Auto Grow feature is not fully supported — the value of the config.autoGrow_minHeight option is ignored.

If you want to achieve a fixed UI experience with inline editor, consider using the Shared Toolbar and Bottom Bar feature instead, where these limitations do not exist.

Related Features

Get Sample Source Code

  • Classic editor with fixed UI
    <!doctype html>
    <html lang="en">
    
    <head>
      <meta charset="utf-8">
      <meta name="robots" content="noindex, nofollow">
      <title>Classic editor with fixed UI</title>
      <script src="https://cdn.ckeditor.com/4.25.0-lts/standard-all/ckeditor.js"></script>
    </head>
    
    <body>
      <textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href=&quot;https://ckeditor.com/&quot;&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
      <script>
        CKEDITOR.replace('editor1', {
          height: 250,
          removeButtons: 'PasteFromWord'
        });
      </script>
    </body>
    
    </html>
  • Inline editor with fixed UI
    <!doctype html>
    <html lang="en">
    
    <head>
      <meta charset="utf-8">
      <meta name="robots" content="noindex, nofollow">
      <title>Inline editor with fixed UI</title>
      <script src="https://cdn.ckeditor.com/4.25.0-lts/standard-all/ckeditor.js"></script>
    </head>
    
    <body>
      <div id="editor2">
        <h1><img alt="Saturn V carrying Apollo 11" style="float:right" src="assets/sample.jpg"> Apollo 11</h1>
    
        <p><strong>Apollo 11</strong> was the spaceflight that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong">Neil Armstrong</a> and
          <a href="http://en.wikipedia.org/wiki/Buzz_Aldrin">Buzz Aldrin</a>, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours
          later on July 21 at 02:56 UTC.
        </p>
    
        <p>Armstrong spent about <s>three and a half</s> two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&nbsp;kg) of lunar
          material for return to Earth. A third member of the mission, <a href="http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)">Michael Collins</a>, piloted the
          <a href="http://en.wikipedia.org/wiki/Apollo_Command/Service_Module">command</a> spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to
          Earth.
        </p>
      </div>
      <script>
        CKEDITOR.replace('editor2', {
          height: 250,
          extraPlugins: 'divarea',
          removeButtons: 'PasteFromWord'
        });
      </script>
    </body>
    
    </html>