MinimapConfig (minimap)
@ckeditor/ckeditor5-minimap/src/minimap
The configuration of the Minimap
feature.
See all editor options.
Filtering
Properties
-
container : HTMLElement
The DOM element container for the minimap.
Note: The container must have a fixed
width
andoverflow: hidden
for the minimap to work correctly. -
extraClasses : String
Extra CSS class (or classes) that will be set internally on the
<body>
element of the<iframe>
enclosing the minimap.By default, the minimap feature will attempt to clone all website styles and re-apply them in the
<iframe>
for the best accuracy. However, this may not work if the content of your editor inherits the styles from parent containers, resulting in inconsistent look and imprecise scrolling of the minimap.This optional configuration can address these issues by ensuring the same CSS rules apply to the content of the minimap and the original content of the editor.
For instance, consider the following DOM structure:
and the following CSS styles:
To maintain the consistency of styling (
font-size
andcolor
of paragraphs), you will need to pass the CSS class names of these containers: -
useSimplePreview : Boolean
When set to
true
, the minimap will render content as simple boxes instead of replicating the look of the content (default).
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing? Please report it via our issue tracker.